@fedify/vocab-tools 2.4.0-dev.1599 → 2.4.0-dev.1618
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/deno.json
CHANGED
package/dist/mod.cjs
CHANGED
|
@@ -8,7 +8,7 @@ let yaml = require("yaml");
|
|
|
8
8
|
let es_toolkit = require("es-toolkit");
|
|
9
9
|
//#region deno.json
|
|
10
10
|
var name = "@fedify/vocab-tools";
|
|
11
|
-
var version = "2.4.0-dev.
|
|
11
|
+
var version = "2.4.0-dev.1618+58858243";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/type.ts
|
|
14
14
|
const HEURISTICS_CONTEXTS = [
|
package/dist/mod.js
CHANGED
|
@@ -7,7 +7,7 @@ import { parse } from "yaml";
|
|
|
7
7
|
import { pascalCase } from "es-toolkit";
|
|
8
8
|
//#region deno.json
|
|
9
9
|
var name = "@fedify/vocab-tools";
|
|
10
|
-
var version = "2.4.0-dev.
|
|
10
|
+
var version = "2.4.0-dev.1618+58858243";
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/type.ts
|
|
13
13
|
const HEURISTICS_CONTEXTS = [
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
isTemporalInstant,
|
|
37
37
|
} from \\"@fedify/vocab-runtime/temporal\\";
|
|
38
38
|
const PORTABLE_IRI_PATTERN = /^ap(?:\\\\+ef61)?:\\\\/\\\\//i;
|
|
39
|
-
const PORTABLE_IRI_KEYS: ReadonlySet<string> = new Set([\\"@id\\",\\"_misskey_quote\\",\\"actor\\",\\"alsoKnownAs\\",\\"announceAuthorization\\",\\"anyOf\\",\\"approvedBy\\",\\"assertionMethod\\",\\"attachment\\",\\"attributedTo\\",\\"audience\\",\\"automaticApproval\\",\\"bcc\\",\\"bto\\",\\"cc\\",\\"context\\",\\"controller\\",\\"current\\",\\"describes\\",\\"emojiReactions\\",\\"featureAuthorization\\",\\"featured\\",\\"featuredCollections\\",\\"featuredObject\\",\\"featuredTags\\",\\"first\\",\\"followers\\",\\"followersOf\\",\\"following\\",\\"followingOf\\",\\"generator\\",\\"href\\",\\"http://fedibird.com/ns#emojiReactions\\",\\"http://fedibird.com/ns#quoteUri\\",\\"http://joinmastodon.org/ns#featured\\",\\"http://joinmastodon.org/ns#featuredTags\\",\\"http://www.w3.org/ns/ldp#inbox\\",\\"https://gotosocial.org/ns#announceAuthorization\\",\\"https://gotosocial.org/ns#approvedBy\\",\\"https://gotosocial.org/ns#automaticApproval\\",\\"https://gotosocial.org/ns#interactingObject\\",\\"https://gotosocial.org/ns#interactionTarget\\",\\"https://gotosocial.org/ns#likeAuthorization\\",\\"https://gotosocial.org/ns#manualApproval\\",\\"https://gotosocial.org/ns#replyAuthorization\\",\\"https://misskey-hub.net/ns#_misskey_quote\\",\\"https://w3id.org/fep/044f#quote\\",\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"https://w3id.org/fep/5711#followersOf\\",\\"https://w3id.org/fep/5711#followingOf\\",\\"https://w3id.org/fep/5711#inboxOf\\",\\"https://w3id.org/fep/5711#likedOf\\",\\"https://w3id.org/fep/5711#likesOf\\",\\"https://w3id.org/fep/5711#outboxOf\\",\\"https://w3id.org/fep/5711#repliesOf\\",\\"https://w3id.org/fep/5711#sharesOf\\",\\"https://w3id.org/fep/7aa9#featureAuthorization\\",\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"https://w3id.org/fep/7aa9#featuredObject\\",\\"https://w3id.org/security#assertionMethod\\",\\"https://w3id.org/security#controller\\",\\"https://w3id.org/security#owner\\",\\"https://w3id.org/security#proof\\",\\"https://w3id.org/security#publicKey\\",\\"https://w3id.org/security#verificationMethod\\",\\"https://w3id.org/valueflows/ont/vf#resourceConformsTo\\",\\"https://w3id.org/valueflows/ont/vf#satisfies\\",\\"https://www.w3.org/ns/activitystreams#actor\\",\\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\",\\"https://www.w3.org/ns/activitystreams#anyOf\\",\\"https://www.w3.org/ns/activitystreams#attachment\\",\\"https://www.w3.org/ns/activitystreams#attributedTo\\",\\"https://www.w3.org/ns/activitystreams#audience\\",\\"https://www.w3.org/ns/activitystreams#bcc\\",\\"https://www.w3.org/ns/activitystreams#bto\\",\\"https://www.w3.org/ns/activitystreams#cc\\",\\"https://www.w3.org/ns/activitystreams#context\\",\\"https://www.w3.org/ns/activitystreams#current\\",\\"https://www.w3.org/ns/activitystreams#describes\\",\\"https://www.w3.org/ns/activitystreams#first\\",\\"https://www.w3.org/ns/activitystreams#followers\\",\\"https://www.w3.org/ns/activitystreams#following\\",\\"https://www.w3.org/ns/activitystreams#generator\\",\\"https://www.w3.org/ns/activitystreams#href\\",\\"https://www.w3.org/ns/activitystreams#icon\\",\\"https://www.w3.org/ns/activitystreams#image\\",\\"https://www.w3.org/ns/activitystreams#inReplyTo\\",\\"https://www.w3.org/ns/activitystreams#instrument\\",\\"https://www.w3.org/ns/activitystreams#items\\",\\"https://www.w3.org/ns/activitystreams#last\\",\\"https://www.w3.org/ns/activitystreams#liked\\",\\"https://www.w3.org/ns/activitystreams#likes\\",\\"https://www.w3.org/ns/activitystreams#location\\",\\"https://www.w3.org/ns/activitystreams#movedTo\\",\\"https://www.w3.org/ns/activitystreams#next\\",\\"https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint\\",\\"https://www.w3.org/ns/activitystreams#oauthTokenEndpoint\\",\\"https://www.w3.org/ns/activitystreams#object\\",\\"https://www.w3.org/ns/activitystreams#oneOf\\",\\"https://www.w3.org/ns/activitystreams#origin\\",\\"https://www.w3.org/ns/activitystreams#outbox\\",\\"https://www.w3.org/ns/activitystreams#partOf\\",\\"https://www.w3.org/ns/activitystreams#prev\\",\\"https://www.w3.org/ns/activitystreams#preview\\",\\"https://www.w3.org/ns/activitystreams#provideClientKey\\",\\"https://www.w3.org/ns/activitystreams#proxyUrl\\",\\"https://www.w3.org/ns/activitystreams#quoteUrl\\",\\"https://www.w3.org/ns/activitystreams#relationship\\",\\"https://www.w3.org/ns/activitystreams#replies\\",\\"https://www.w3.org/ns/activitystreams#result\\",\\"https://www.w3.org/ns/activitystreams#sharedInbox\\",\\"https://www.w3.org/ns/activitystreams#shares\\",\\"https://www.w3.org/ns/activitystreams#signClientKey\\",\\"https://www.w3.org/ns/activitystreams#streams\\",\\"https://www.w3.org/ns/activitystreams#subject\\",\\"https://www.w3.org/ns/activitystreams#tag\\",\\"https://www.w3.org/ns/activitystreams#target\\",\\"https://www.w3.org/ns/activitystreams#to\\",\\"https://www.w3.org/ns/activitystreams#units\\",\\"https://www.w3.org/ns/activitystreams#url\\",\\"https://www.w3.org/ns/did#service\\",\\"https://www.w3.org/ns/did#serviceEndpoint\\",\\"icon\\",\\"id\\",\\"image\\",\\"inReplyTo\\",\\"inbox\\",\\"inboxOf\\",\\"instrument\\",\\"interactingObject\\",\\"interactionTarget\\",\\"items\\",\\"last\\",\\"likeAuthorization\\",\\"liked\\",\\"likedOf\\",\\"likes\\",\\"likesOf\\",\\"location\\",\\"manualApproval\\",\\"movedTo\\",\\"next\\",\\"oauthAuthorizationEndpoint\\",\\"oauthTokenEndpoint\\",\\"object\\",\\"oneOf\\",\\"orderedItems\\",\\"origin\\",\\"outbox\\",\\"outboxOf\\",\\"owner\\",\\"partOf\\",\\"prev\\",\\"preview\\",\\"proof\\",\\"provideClientKey\\",\\"proxyUrl\\",\\"publicKey\\",\\"quote\\",\\"quoteAuthorization\\",\\"quoteUri\\",\\"quoteUrl\\",\\"relationship\\",\\"replies\\",\\"repliesOf\\",\\"replyAuthorization\\",\\"resourceConformsTo\\",\\"result\\",\\"satisfies\\",\\"service\\",\\"sharedInbox\\",\\"shares\\",\\"sharesOf\\",\\"signClientKey\\",\\"streams\\",\\"subject\\",\\"tag\\",\\"target\\",\\"to\\",\\"units\\",\\"url\\"]);
|
|
39
|
+
const PORTABLE_IRI_KEYS: ReadonlySet<string> = new Set([\\"@id\\",\\"_misskey_quote\\",\\"actor\\",\\"alsoKnownAs\\",\\"announceAuthorization\\",\\"anyOf\\",\\"approvedBy\\",\\"assertionMethod\\",\\"attachment\\",\\"attributedTo\\",\\"audience\\",\\"automaticApproval\\",\\"bcc\\",\\"bto\\",\\"cc\\",\\"context\\",\\"controller\\",\\"current\\",\\"describes\\",\\"emojiReactions\\",\\"featureAuthorization\\",\\"featured\\",\\"featuredCollections\\",\\"featuredObject\\",\\"featuredTags\\",\\"first\\",\\"followers\\",\\"followersOf\\",\\"following\\",\\"followingOf\\",\\"generator\\",\\"href\\",\\"http://fedibird.com/ns#emojiReactions\\",\\"http://fedibird.com/ns#quoteUri\\",\\"http://joinmastodon.org/ns#featured\\",\\"http://joinmastodon.org/ns#featuredTags\\",\\"http://www.w3.org/ns/ldp#inbox\\",\\"https://gotosocial.org/ns#announceAuthorization\\",\\"https://gotosocial.org/ns#approvedBy\\",\\"https://gotosocial.org/ns#automaticApproval\\",\\"https://gotosocial.org/ns#interactingObject\\",\\"https://gotosocial.org/ns#interactionTarget\\",\\"https://gotosocial.org/ns#likeAuthorization\\",\\"https://gotosocial.org/ns#manualApproval\\",\\"https://gotosocial.org/ns#replyAuthorization\\",\\"https://misskey-hub.net/ns#_misskey_quote\\",\\"https://w3id.org/fep/044f#quote\\",\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"https://w3id.org/fep/5711#followersOf\\",\\"https://w3id.org/fep/5711#followingOf\\",\\"https://w3id.org/fep/5711#inboxOf\\",\\"https://w3id.org/fep/5711#likedOf\\",\\"https://w3id.org/fep/5711#likesOf\\",\\"https://w3id.org/fep/5711#outboxOf\\",\\"https://w3id.org/fep/5711#repliesOf\\",\\"https://w3id.org/fep/5711#sharesOf\\",\\"https://w3id.org/fep/7aa9#featureAuthorization\\",\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"https://w3id.org/fep/7aa9#featuredObject\\",\\"https://w3id.org/security#assertionMethod\\",\\"https://w3id.org/security#controller\\",\\"https://w3id.org/security#owner\\",\\"https://w3id.org/security#proof\\",\\"https://w3id.org/security#publicKey\\",\\"https://w3id.org/security#verificationMethod\\",\\"https://w3id.org/valueflows/ont/vf#resourceConformsTo\\",\\"https://w3id.org/valueflows/ont/vf#satisfies\\",\\"https://www.w3.org/ns/activitystreams#actor\\",\\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\",\\"https://www.w3.org/ns/activitystreams#anyOf\\",\\"https://www.w3.org/ns/activitystreams#attachment\\",\\"https://www.w3.org/ns/activitystreams#attributedTo\\",\\"https://www.w3.org/ns/activitystreams#audience\\",\\"https://www.w3.org/ns/activitystreams#bcc\\",\\"https://www.w3.org/ns/activitystreams#bto\\",\\"https://www.w3.org/ns/activitystreams#cc\\",\\"https://www.w3.org/ns/activitystreams#context\\",\\"https://www.w3.org/ns/activitystreams#current\\",\\"https://www.w3.org/ns/activitystreams#describes\\",\\"https://www.w3.org/ns/activitystreams#first\\",\\"https://www.w3.org/ns/activitystreams#followers\\",\\"https://www.w3.org/ns/activitystreams#following\\",\\"https://www.w3.org/ns/activitystreams#generator\\",\\"https://www.w3.org/ns/activitystreams#href\\",\\"https://www.w3.org/ns/activitystreams#icon\\",\\"https://www.w3.org/ns/activitystreams#image\\",\\"https://www.w3.org/ns/activitystreams#inReplyTo\\",\\"https://www.w3.org/ns/activitystreams#instrument\\",\\"https://www.w3.org/ns/activitystreams#items\\",\\"https://www.w3.org/ns/activitystreams#last\\",\\"https://www.w3.org/ns/activitystreams#liked\\",\\"https://www.w3.org/ns/activitystreams#likes\\",\\"https://www.w3.org/ns/activitystreams#location\\",\\"https://www.w3.org/ns/activitystreams#movedTo\\",\\"https://www.w3.org/ns/activitystreams#next\\",\\"https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint\\",\\"https://www.w3.org/ns/activitystreams#oauthTokenEndpoint\\",\\"https://www.w3.org/ns/activitystreams#object\\",\\"https://www.w3.org/ns/activitystreams#oneOf\\",\\"https://www.w3.org/ns/activitystreams#origin\\",\\"https://www.w3.org/ns/activitystreams#outbox\\",\\"https://www.w3.org/ns/activitystreams#partOf\\",\\"https://www.w3.org/ns/activitystreams#prev\\",\\"https://www.w3.org/ns/activitystreams#preview\\",\\"https://www.w3.org/ns/activitystreams#provideClientKey\\",\\"https://www.w3.org/ns/activitystreams#proxyUrl\\",\\"https://www.w3.org/ns/activitystreams#quoteUrl\\",\\"https://www.w3.org/ns/activitystreams#relationship\\",\\"https://www.w3.org/ns/activitystreams#replies\\",\\"https://www.w3.org/ns/activitystreams#result\\",\\"https://www.w3.org/ns/activitystreams#sharedInbox\\",\\"https://www.w3.org/ns/activitystreams#shares\\",\\"https://www.w3.org/ns/activitystreams#signClientKey\\",\\"https://www.w3.org/ns/activitystreams#streams\\",\\"https://www.w3.org/ns/activitystreams#subject\\",\\"https://www.w3.org/ns/activitystreams#tag\\",\\"https://www.w3.org/ns/activitystreams#target\\",\\"https://www.w3.org/ns/activitystreams#to\\",\\"https://www.w3.org/ns/activitystreams#units\\",\\"https://www.w3.org/ns/activitystreams#uploadMedia\\",\\"https://www.w3.org/ns/activitystreams#url\\",\\"https://www.w3.org/ns/did#service\\",\\"https://www.w3.org/ns/did#serviceEndpoint\\",\\"icon\\",\\"id\\",\\"image\\",\\"inReplyTo\\",\\"inbox\\",\\"inboxOf\\",\\"instrument\\",\\"interactingObject\\",\\"interactionTarget\\",\\"items\\",\\"last\\",\\"likeAuthorization\\",\\"liked\\",\\"likedOf\\",\\"likes\\",\\"likesOf\\",\\"location\\",\\"manualApproval\\",\\"movedTo\\",\\"next\\",\\"oauthAuthorizationEndpoint\\",\\"oauthTokenEndpoint\\",\\"object\\",\\"oneOf\\",\\"orderedItems\\",\\"origin\\",\\"outbox\\",\\"outboxOf\\",\\"owner\\",\\"partOf\\",\\"prev\\",\\"preview\\",\\"proof\\",\\"provideClientKey\\",\\"proxyUrl\\",\\"publicKey\\",\\"quote\\",\\"quoteAuthorization\\",\\"quoteUri\\",\\"quoteUrl\\",\\"relationship\\",\\"replies\\",\\"repliesOf\\",\\"replyAuthorization\\",\\"resourceConformsTo\\",\\"result\\",\\"satisfies\\",\\"service\\",\\"sharedInbox\\",\\"shares\\",\\"sharesOf\\",\\"signClientKey\\",\\"streams\\",\\"subject\\",\\"tag\\",\\"target\\",\\"to\\",\\"units\\",\\"uploadMedia\\",\\"url\\"]);
|
|
40
40
|
|
|
41
41
|
import * as _ppM0 from \\"./preprocessors.ts\\";
|
|
42
42
|
|
|
@@ -56602,6 +56602,7 @@ export class Endpoints {
|
|
|
56602
56602
|
#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey: (URL)[] = [];
|
|
56603
56603
|
#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey: (URL)[] = [];
|
|
56604
56604
|
#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox: (URL)[] = [];
|
|
56605
|
+
#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia: (URL)[] = [];
|
|
56605
56606
|
|
|
56606
56607
|
/**
|
|
56607
56608
|
* Constructs a new instance of Endpoints with the given values.
|
|
@@ -56612,7 +56613,7 @@ export class Endpoints {
|
|
|
56612
56613
|
values:
|
|
56613
56614
|
{
|
|
56614
56615
|
id?: URL | null;
|
|
56615
|
-
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;}
|
|
56616
|
+
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;uploadMedia?: URL | null;}
|
|
56616
56617
|
,
|
|
56617
56618
|
options: {
|
|
56618
56619
|
documentLoader?: DocumentLoader,
|
|
@@ -56716,6 +56717,19 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56716
56717
|
);
|
|
56717
56718
|
}
|
|
56718
56719
|
}
|
|
56720
|
+
|
|
56721
|
+
if (\\"uploadMedia\\" in values && values.uploadMedia != null) {
|
|
56722
|
+
if (values.uploadMedia instanceof URL) {
|
|
56723
|
+
// @ts-ignore: type is checked above.
|
|
56724
|
+
this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
|
|
56725
|
+
|
|
56726
|
+
} else {
|
|
56727
|
+
throw new TypeError(
|
|
56728
|
+
\\"The uploadMedia must be of type \\" +
|
|
56729
|
+
\\"URL\\" + \\".\\",
|
|
56730
|
+
);
|
|
56731
|
+
}
|
|
56732
|
+
}
|
|
56719
56733
|
}
|
|
56720
56734
|
|
|
56721
56735
|
/**
|
|
@@ -56728,7 +56742,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56728
56742
|
values:
|
|
56729
56743
|
{
|
|
56730
56744
|
id?: URL | null;
|
|
56731
|
-
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;}
|
|
56745
|
+
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;uploadMedia?: URL | null;}
|
|
56732
56746
|
|
|
56733
56747
|
= {},
|
|
56734
56748
|
options: {
|
|
@@ -56828,6 +56842,19 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56828
56842
|
);
|
|
56829
56843
|
}
|
|
56830
56844
|
}
|
|
56845
|
+
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
|
|
56846
|
+
if (\\"uploadMedia\\" in values && values.uploadMedia != null) {
|
|
56847
|
+
if (values.uploadMedia instanceof URL) {
|
|
56848
|
+
// @ts-ignore: type is checked above.
|
|
56849
|
+
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
|
|
56850
|
+
|
|
56851
|
+
} else {
|
|
56852
|
+
throw new TypeError(
|
|
56853
|
+
\\"The uploadMedia must be of type \\" +
|
|
56854
|
+
\\"URL\\" + \\".\\",
|
|
56855
|
+
);
|
|
56856
|
+
}
|
|
56857
|
+
}
|
|
56831
56858
|
|
|
56832
56859
|
return clone;
|
|
56833
56860
|
}
|
|
@@ -56939,6 +56966,25 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56939
56966
|
return this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox[0];
|
|
56940
56967
|
}
|
|
56941
56968
|
|
|
56969
|
+
/** Upload endpoint URI for this user for binary data, such as an image or
|
|
56970
|
+
* video, as described in the [ActivityPub Media
|
|
56971
|
+
* Upload](https://www.w3.org/wiki/SocialCG/ActivityPub/MediaUpload) extension.
|
|
56972
|
+
* Clients \`POST\` a \`multipart/form-data\` request containing a \`file\` part
|
|
56973
|
+
* (the binary payload) and an \`object\` part (an ActivityStreams object shell)
|
|
56974
|
+
* to this endpoint.
|
|
56975
|
+
*
|
|
56976
|
+
*/
|
|
56977
|
+
get uploadMedia(): (URL | null) {
|
|
56978
|
+
if (this._warning != null) {
|
|
56979
|
+
getLogger(this._warning.category).warn(
|
|
56980
|
+
this._warning.message,
|
|
56981
|
+
this._warning.values
|
|
56982
|
+
);
|
|
56983
|
+
}
|
|
56984
|
+
if (this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.length < 1) return null;
|
|
56985
|
+
return this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia[0];
|
|
56986
|
+
}
|
|
56987
|
+
|
|
56942
56988
|
/**
|
|
56943
56989
|
* Converts this object to a JSON-LD structure.
|
|
56944
56990
|
* @param options The options to use.
|
|
@@ -57069,6 +57115,22 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57069
57115
|
|
|
57070
57116
|
}
|
|
57071
57117
|
|
|
57118
|
+
compactItems = [];
|
|
57119
|
+
for (const v of this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia) {
|
|
57120
|
+
const item = (
|
|
57121
|
+
formatIri(v)
|
|
57122
|
+
);
|
|
57123
|
+
compactItems.push(item);
|
|
57124
|
+
}
|
|
57125
|
+
if (compactItems.length > 0) {
|
|
57126
|
+
|
|
57127
|
+
result[\\"uploadMedia\\"]
|
|
57128
|
+
= compactItems.length > 1
|
|
57129
|
+
? compactItems
|
|
57130
|
+
: compactItems[0];
|
|
57131
|
+
|
|
57132
|
+
}
|
|
57133
|
+
|
|
57072
57134
|
|
|
57073
57135
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
57074
57136
|
result[\\"@context\\"] = \\"https://www.w3.org/ns/activitystreams\\";
|
|
@@ -57168,6 +57230,21 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57168
57230
|
|
|
57169
57231
|
}
|
|
57170
57232
|
|
|
57233
|
+
array = [];
|
|
57234
|
+
for (const v of this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia) {
|
|
57235
|
+
const element = (
|
|
57236
|
+
{ \\"@id\\": formatIri(v) }
|
|
57237
|
+
);
|
|
57238
|
+
array.push(element);;
|
|
57239
|
+
}
|
|
57240
|
+
if (array.length > 0) {
|
|
57241
|
+
const propValue = (
|
|
57242
|
+
array
|
|
57243
|
+
);
|
|
57244
|
+
values[\\"https://www.w3.org/ns/activitystreams#uploadMedia\\"] = propValue;
|
|
57245
|
+
|
|
57246
|
+
}
|
|
57247
|
+
|
|
57171
57248
|
|
|
57172
57249
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
57173
57250
|
if (options.format === \\"expand\\") {
|
|
@@ -57419,6 +57496,24 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57419
57496
|
_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded);
|
|
57420
57497
|
}
|
|
57421
57498
|
instance.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
57499
|
+
const _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia: (URL)[] = [];
|
|
57500
|
+
|
|
57501
|
+
let _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array = values[\\"https://www.w3.org/ns/activitystreams#uploadMedia\\"];
|
|
57502
|
+
|
|
57503
|
+
for (
|
|
57504
|
+
const v of _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array == null
|
|
57505
|
+
? []
|
|
57506
|
+
: _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array.length === 1 && \\"@list\\" in _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array[0]
|
|
57507
|
+
? _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array[0][\\"@list\\"]
|
|
57508
|
+
: _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array
|
|
57509
|
+
) {
|
|
57510
|
+
if (v == null) continue;
|
|
57511
|
+
|
|
57512
|
+
const decoded = parseIri(v[\\"@id\\"], options.baseUrl);
|
|
57513
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
57514
|
+
_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.push(decoded);
|
|
57515
|
+
}
|
|
57516
|
+
instance.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
|
|
57422
57517
|
|
|
57423
57518
|
if (!(\\"_fromSubclass\\" in options) || !options._fromSubclass) {
|
|
57424
57519
|
try {
|
|
@@ -57582,6 +57677,26 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57582
57677
|
proxy.sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox[0];
|
|
57583
57678
|
}
|
|
57584
57679
|
|
|
57680
|
+
const _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia
|
|
57681
|
+
// deno-lint-ignore no-explicit-any
|
|
57682
|
+
.map((v: any) => v instanceof URL
|
|
57683
|
+
? {
|
|
57684
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
57685
|
+
inspect: typeof Deno.inspect,
|
|
57686
|
+
options: Deno.InspectOptions,
|
|
57687
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
57688
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
57689
|
+
_depth: number,
|
|
57690
|
+
options: unknown,
|
|
57691
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
57692
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
57693
|
+
}
|
|
57694
|
+
: v);
|
|
57695
|
+
|
|
57696
|
+
if (_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.length == 1) {
|
|
57697
|
+
proxy.uploadMedia = _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia[0];
|
|
57698
|
+
}
|
|
57699
|
+
|
|
57585
57700
|
return proxy;
|
|
57586
57701
|
}
|
|
57587
57702
|
}
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
isTemporalInstant,
|
|
35
35
|
} from \\"@fedify/vocab-runtime/temporal\\";
|
|
36
36
|
const PORTABLE_IRI_PATTERN = /^ap(?:\\\\+ef61)?:\\\\/\\\\//i;
|
|
37
|
-
const PORTABLE_IRI_KEYS: ReadonlySet<string> = new Set([\\"@id\\",\\"_misskey_quote\\",\\"actor\\",\\"alsoKnownAs\\",\\"announceAuthorization\\",\\"anyOf\\",\\"approvedBy\\",\\"assertionMethod\\",\\"attachment\\",\\"attributedTo\\",\\"audience\\",\\"automaticApproval\\",\\"bcc\\",\\"bto\\",\\"cc\\",\\"context\\",\\"controller\\",\\"current\\",\\"describes\\",\\"emojiReactions\\",\\"featureAuthorization\\",\\"featured\\",\\"featuredCollections\\",\\"featuredObject\\",\\"featuredTags\\",\\"first\\",\\"followers\\",\\"followersOf\\",\\"following\\",\\"followingOf\\",\\"generator\\",\\"href\\",\\"http://fedibird.com/ns#emojiReactions\\",\\"http://fedibird.com/ns#quoteUri\\",\\"http://joinmastodon.org/ns#featured\\",\\"http://joinmastodon.org/ns#featuredTags\\",\\"http://www.w3.org/ns/ldp#inbox\\",\\"https://gotosocial.org/ns#announceAuthorization\\",\\"https://gotosocial.org/ns#approvedBy\\",\\"https://gotosocial.org/ns#automaticApproval\\",\\"https://gotosocial.org/ns#interactingObject\\",\\"https://gotosocial.org/ns#interactionTarget\\",\\"https://gotosocial.org/ns#likeAuthorization\\",\\"https://gotosocial.org/ns#manualApproval\\",\\"https://gotosocial.org/ns#replyAuthorization\\",\\"https://misskey-hub.net/ns#_misskey_quote\\",\\"https://w3id.org/fep/044f#quote\\",\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"https://w3id.org/fep/5711#followersOf\\",\\"https://w3id.org/fep/5711#followingOf\\",\\"https://w3id.org/fep/5711#inboxOf\\",\\"https://w3id.org/fep/5711#likedOf\\",\\"https://w3id.org/fep/5711#likesOf\\",\\"https://w3id.org/fep/5711#outboxOf\\",\\"https://w3id.org/fep/5711#repliesOf\\",\\"https://w3id.org/fep/5711#sharesOf\\",\\"https://w3id.org/fep/7aa9#featureAuthorization\\",\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"https://w3id.org/fep/7aa9#featuredObject\\",\\"https://w3id.org/security#assertionMethod\\",\\"https://w3id.org/security#controller\\",\\"https://w3id.org/security#owner\\",\\"https://w3id.org/security#proof\\",\\"https://w3id.org/security#publicKey\\",\\"https://w3id.org/security#verificationMethod\\",\\"https://w3id.org/valueflows/ont/vf#resourceConformsTo\\",\\"https://w3id.org/valueflows/ont/vf#satisfies\\",\\"https://www.w3.org/ns/activitystreams#actor\\",\\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\",\\"https://www.w3.org/ns/activitystreams#anyOf\\",\\"https://www.w3.org/ns/activitystreams#attachment\\",\\"https://www.w3.org/ns/activitystreams#attributedTo\\",\\"https://www.w3.org/ns/activitystreams#audience\\",\\"https://www.w3.org/ns/activitystreams#bcc\\",\\"https://www.w3.org/ns/activitystreams#bto\\",\\"https://www.w3.org/ns/activitystreams#cc\\",\\"https://www.w3.org/ns/activitystreams#context\\",\\"https://www.w3.org/ns/activitystreams#current\\",\\"https://www.w3.org/ns/activitystreams#describes\\",\\"https://www.w3.org/ns/activitystreams#first\\",\\"https://www.w3.org/ns/activitystreams#followers\\",\\"https://www.w3.org/ns/activitystreams#following\\",\\"https://www.w3.org/ns/activitystreams#generator\\",\\"https://www.w3.org/ns/activitystreams#href\\",\\"https://www.w3.org/ns/activitystreams#icon\\",\\"https://www.w3.org/ns/activitystreams#image\\",\\"https://www.w3.org/ns/activitystreams#inReplyTo\\",\\"https://www.w3.org/ns/activitystreams#instrument\\",\\"https://www.w3.org/ns/activitystreams#items\\",\\"https://www.w3.org/ns/activitystreams#last\\",\\"https://www.w3.org/ns/activitystreams#liked\\",\\"https://www.w3.org/ns/activitystreams#likes\\",\\"https://www.w3.org/ns/activitystreams#location\\",\\"https://www.w3.org/ns/activitystreams#movedTo\\",\\"https://www.w3.org/ns/activitystreams#next\\",\\"https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint\\",\\"https://www.w3.org/ns/activitystreams#oauthTokenEndpoint\\",\\"https://www.w3.org/ns/activitystreams#object\\",\\"https://www.w3.org/ns/activitystreams#oneOf\\",\\"https://www.w3.org/ns/activitystreams#origin\\",\\"https://www.w3.org/ns/activitystreams#outbox\\",\\"https://www.w3.org/ns/activitystreams#partOf\\",\\"https://www.w3.org/ns/activitystreams#prev\\",\\"https://www.w3.org/ns/activitystreams#preview\\",\\"https://www.w3.org/ns/activitystreams#provideClientKey\\",\\"https://www.w3.org/ns/activitystreams#proxyUrl\\",\\"https://www.w3.org/ns/activitystreams#quoteUrl\\",\\"https://www.w3.org/ns/activitystreams#relationship\\",\\"https://www.w3.org/ns/activitystreams#replies\\",\\"https://www.w3.org/ns/activitystreams#result\\",\\"https://www.w3.org/ns/activitystreams#sharedInbox\\",\\"https://www.w3.org/ns/activitystreams#shares\\",\\"https://www.w3.org/ns/activitystreams#signClientKey\\",\\"https://www.w3.org/ns/activitystreams#streams\\",\\"https://www.w3.org/ns/activitystreams#subject\\",\\"https://www.w3.org/ns/activitystreams#tag\\",\\"https://www.w3.org/ns/activitystreams#target\\",\\"https://www.w3.org/ns/activitystreams#to\\",\\"https://www.w3.org/ns/activitystreams#units\\",\\"https://www.w3.org/ns/activitystreams#url\\",\\"https://www.w3.org/ns/did#service\\",\\"https://www.w3.org/ns/did#serviceEndpoint\\",\\"icon\\",\\"id\\",\\"image\\",\\"inReplyTo\\",\\"inbox\\",\\"inboxOf\\",\\"instrument\\",\\"interactingObject\\",\\"interactionTarget\\",\\"items\\",\\"last\\",\\"likeAuthorization\\",\\"liked\\",\\"likedOf\\",\\"likes\\",\\"likesOf\\",\\"location\\",\\"manualApproval\\",\\"movedTo\\",\\"next\\",\\"oauthAuthorizationEndpoint\\",\\"oauthTokenEndpoint\\",\\"object\\",\\"oneOf\\",\\"orderedItems\\",\\"origin\\",\\"outbox\\",\\"outboxOf\\",\\"owner\\",\\"partOf\\",\\"prev\\",\\"preview\\",\\"proof\\",\\"provideClientKey\\",\\"proxyUrl\\",\\"publicKey\\",\\"quote\\",\\"quoteAuthorization\\",\\"quoteUri\\",\\"quoteUrl\\",\\"relationship\\",\\"replies\\",\\"repliesOf\\",\\"replyAuthorization\\",\\"resourceConformsTo\\",\\"result\\",\\"satisfies\\",\\"service\\",\\"sharedInbox\\",\\"shares\\",\\"sharesOf\\",\\"signClientKey\\",\\"streams\\",\\"subject\\",\\"tag\\",\\"target\\",\\"to\\",\\"units\\",\\"url\\"]);
|
|
37
|
+
const PORTABLE_IRI_KEYS: ReadonlySet<string> = new Set([\\"@id\\",\\"_misskey_quote\\",\\"actor\\",\\"alsoKnownAs\\",\\"announceAuthorization\\",\\"anyOf\\",\\"approvedBy\\",\\"assertionMethod\\",\\"attachment\\",\\"attributedTo\\",\\"audience\\",\\"automaticApproval\\",\\"bcc\\",\\"bto\\",\\"cc\\",\\"context\\",\\"controller\\",\\"current\\",\\"describes\\",\\"emojiReactions\\",\\"featureAuthorization\\",\\"featured\\",\\"featuredCollections\\",\\"featuredObject\\",\\"featuredTags\\",\\"first\\",\\"followers\\",\\"followersOf\\",\\"following\\",\\"followingOf\\",\\"generator\\",\\"href\\",\\"http://fedibird.com/ns#emojiReactions\\",\\"http://fedibird.com/ns#quoteUri\\",\\"http://joinmastodon.org/ns#featured\\",\\"http://joinmastodon.org/ns#featuredTags\\",\\"http://www.w3.org/ns/ldp#inbox\\",\\"https://gotosocial.org/ns#announceAuthorization\\",\\"https://gotosocial.org/ns#approvedBy\\",\\"https://gotosocial.org/ns#automaticApproval\\",\\"https://gotosocial.org/ns#interactingObject\\",\\"https://gotosocial.org/ns#interactionTarget\\",\\"https://gotosocial.org/ns#likeAuthorization\\",\\"https://gotosocial.org/ns#manualApproval\\",\\"https://gotosocial.org/ns#replyAuthorization\\",\\"https://misskey-hub.net/ns#_misskey_quote\\",\\"https://w3id.org/fep/044f#quote\\",\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"https://w3id.org/fep/5711#followersOf\\",\\"https://w3id.org/fep/5711#followingOf\\",\\"https://w3id.org/fep/5711#inboxOf\\",\\"https://w3id.org/fep/5711#likedOf\\",\\"https://w3id.org/fep/5711#likesOf\\",\\"https://w3id.org/fep/5711#outboxOf\\",\\"https://w3id.org/fep/5711#repliesOf\\",\\"https://w3id.org/fep/5711#sharesOf\\",\\"https://w3id.org/fep/7aa9#featureAuthorization\\",\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"https://w3id.org/fep/7aa9#featuredObject\\",\\"https://w3id.org/security#assertionMethod\\",\\"https://w3id.org/security#controller\\",\\"https://w3id.org/security#owner\\",\\"https://w3id.org/security#proof\\",\\"https://w3id.org/security#publicKey\\",\\"https://w3id.org/security#verificationMethod\\",\\"https://w3id.org/valueflows/ont/vf#resourceConformsTo\\",\\"https://w3id.org/valueflows/ont/vf#satisfies\\",\\"https://www.w3.org/ns/activitystreams#actor\\",\\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\",\\"https://www.w3.org/ns/activitystreams#anyOf\\",\\"https://www.w3.org/ns/activitystreams#attachment\\",\\"https://www.w3.org/ns/activitystreams#attributedTo\\",\\"https://www.w3.org/ns/activitystreams#audience\\",\\"https://www.w3.org/ns/activitystreams#bcc\\",\\"https://www.w3.org/ns/activitystreams#bto\\",\\"https://www.w3.org/ns/activitystreams#cc\\",\\"https://www.w3.org/ns/activitystreams#context\\",\\"https://www.w3.org/ns/activitystreams#current\\",\\"https://www.w3.org/ns/activitystreams#describes\\",\\"https://www.w3.org/ns/activitystreams#first\\",\\"https://www.w3.org/ns/activitystreams#followers\\",\\"https://www.w3.org/ns/activitystreams#following\\",\\"https://www.w3.org/ns/activitystreams#generator\\",\\"https://www.w3.org/ns/activitystreams#href\\",\\"https://www.w3.org/ns/activitystreams#icon\\",\\"https://www.w3.org/ns/activitystreams#image\\",\\"https://www.w3.org/ns/activitystreams#inReplyTo\\",\\"https://www.w3.org/ns/activitystreams#instrument\\",\\"https://www.w3.org/ns/activitystreams#items\\",\\"https://www.w3.org/ns/activitystreams#last\\",\\"https://www.w3.org/ns/activitystreams#liked\\",\\"https://www.w3.org/ns/activitystreams#likes\\",\\"https://www.w3.org/ns/activitystreams#location\\",\\"https://www.w3.org/ns/activitystreams#movedTo\\",\\"https://www.w3.org/ns/activitystreams#next\\",\\"https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint\\",\\"https://www.w3.org/ns/activitystreams#oauthTokenEndpoint\\",\\"https://www.w3.org/ns/activitystreams#object\\",\\"https://www.w3.org/ns/activitystreams#oneOf\\",\\"https://www.w3.org/ns/activitystreams#origin\\",\\"https://www.w3.org/ns/activitystreams#outbox\\",\\"https://www.w3.org/ns/activitystreams#partOf\\",\\"https://www.w3.org/ns/activitystreams#prev\\",\\"https://www.w3.org/ns/activitystreams#preview\\",\\"https://www.w3.org/ns/activitystreams#provideClientKey\\",\\"https://www.w3.org/ns/activitystreams#proxyUrl\\",\\"https://www.w3.org/ns/activitystreams#quoteUrl\\",\\"https://www.w3.org/ns/activitystreams#relationship\\",\\"https://www.w3.org/ns/activitystreams#replies\\",\\"https://www.w3.org/ns/activitystreams#result\\",\\"https://www.w3.org/ns/activitystreams#sharedInbox\\",\\"https://www.w3.org/ns/activitystreams#shares\\",\\"https://www.w3.org/ns/activitystreams#signClientKey\\",\\"https://www.w3.org/ns/activitystreams#streams\\",\\"https://www.w3.org/ns/activitystreams#subject\\",\\"https://www.w3.org/ns/activitystreams#tag\\",\\"https://www.w3.org/ns/activitystreams#target\\",\\"https://www.w3.org/ns/activitystreams#to\\",\\"https://www.w3.org/ns/activitystreams#units\\",\\"https://www.w3.org/ns/activitystreams#uploadMedia\\",\\"https://www.w3.org/ns/activitystreams#url\\",\\"https://www.w3.org/ns/did#service\\",\\"https://www.w3.org/ns/did#serviceEndpoint\\",\\"icon\\",\\"id\\",\\"image\\",\\"inReplyTo\\",\\"inbox\\",\\"inboxOf\\",\\"instrument\\",\\"interactingObject\\",\\"interactionTarget\\",\\"items\\",\\"last\\",\\"likeAuthorization\\",\\"liked\\",\\"likedOf\\",\\"likes\\",\\"likesOf\\",\\"location\\",\\"manualApproval\\",\\"movedTo\\",\\"next\\",\\"oauthAuthorizationEndpoint\\",\\"oauthTokenEndpoint\\",\\"object\\",\\"oneOf\\",\\"orderedItems\\",\\"origin\\",\\"outbox\\",\\"outboxOf\\",\\"owner\\",\\"partOf\\",\\"prev\\",\\"preview\\",\\"proof\\",\\"provideClientKey\\",\\"proxyUrl\\",\\"publicKey\\",\\"quote\\",\\"quoteAuthorization\\",\\"quoteUri\\",\\"quoteUrl\\",\\"relationship\\",\\"replies\\",\\"repliesOf\\",\\"replyAuthorization\\",\\"resourceConformsTo\\",\\"result\\",\\"satisfies\\",\\"service\\",\\"sharedInbox\\",\\"shares\\",\\"sharesOf\\",\\"signClientKey\\",\\"streams\\",\\"subject\\",\\"tag\\",\\"target\\",\\"to\\",\\"units\\",\\"uploadMedia\\",\\"url\\"]);
|
|
38
38
|
|
|
39
39
|
import * as _ppM0 from \\"./preprocessors.ts\\";
|
|
40
40
|
|
|
@@ -56600,6 +56600,7 @@ export class Endpoints {
|
|
|
56600
56600
|
#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey: (URL)[] = [];
|
|
56601
56601
|
#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey: (URL)[] = [];
|
|
56602
56602
|
#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox: (URL)[] = [];
|
|
56603
|
+
#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia: (URL)[] = [];
|
|
56603
56604
|
|
|
56604
56605
|
/**
|
|
56605
56606
|
* Constructs a new instance of Endpoints with the given values.
|
|
@@ -56610,7 +56611,7 @@ export class Endpoints {
|
|
|
56610
56611
|
values:
|
|
56611
56612
|
{
|
|
56612
56613
|
id?: URL | null;
|
|
56613
|
-
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;}
|
|
56614
|
+
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;uploadMedia?: URL | null;}
|
|
56614
56615
|
,
|
|
56615
56616
|
options: {
|
|
56616
56617
|
documentLoader?: DocumentLoader,
|
|
@@ -56714,6 +56715,19 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56714
56715
|
);
|
|
56715
56716
|
}
|
|
56716
56717
|
}
|
|
56718
|
+
|
|
56719
|
+
if (\\"uploadMedia\\" in values && values.uploadMedia != null) {
|
|
56720
|
+
if (values.uploadMedia instanceof URL) {
|
|
56721
|
+
// @ts-ignore: type is checked above.
|
|
56722
|
+
this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
|
|
56723
|
+
|
|
56724
|
+
} else {
|
|
56725
|
+
throw new TypeError(
|
|
56726
|
+
\\"The uploadMedia must be of type \\" +
|
|
56727
|
+
\\"URL\\" + \\".\\",
|
|
56728
|
+
);
|
|
56729
|
+
}
|
|
56730
|
+
}
|
|
56717
56731
|
}
|
|
56718
56732
|
|
|
56719
56733
|
/**
|
|
@@ -56726,7 +56740,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56726
56740
|
values:
|
|
56727
56741
|
{
|
|
56728
56742
|
id?: URL | null;
|
|
56729
|
-
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;}
|
|
56743
|
+
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;uploadMedia?: URL | null;}
|
|
56730
56744
|
|
|
56731
56745
|
= {},
|
|
56732
56746
|
options: {
|
|
@@ -56826,6 +56840,19 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56826
56840
|
);
|
|
56827
56841
|
}
|
|
56828
56842
|
}
|
|
56843
|
+
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
|
|
56844
|
+
if (\\"uploadMedia\\" in values && values.uploadMedia != null) {
|
|
56845
|
+
if (values.uploadMedia instanceof URL) {
|
|
56846
|
+
// @ts-ignore: type is checked above.
|
|
56847
|
+
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
|
|
56848
|
+
|
|
56849
|
+
} else {
|
|
56850
|
+
throw new TypeError(
|
|
56851
|
+
\\"The uploadMedia must be of type \\" +
|
|
56852
|
+
\\"URL\\" + \\".\\",
|
|
56853
|
+
);
|
|
56854
|
+
}
|
|
56855
|
+
}
|
|
56829
56856
|
|
|
56830
56857
|
return clone;
|
|
56831
56858
|
}
|
|
@@ -56937,6 +56964,25 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56937
56964
|
return this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox[0];
|
|
56938
56965
|
}
|
|
56939
56966
|
|
|
56967
|
+
/** Upload endpoint URI for this user for binary data, such as an image or
|
|
56968
|
+
* video, as described in the [ActivityPub Media
|
|
56969
|
+
* Upload](https://www.w3.org/wiki/SocialCG/ActivityPub/MediaUpload) extension.
|
|
56970
|
+
* Clients \`POST\` a \`multipart/form-data\` request containing a \`file\` part
|
|
56971
|
+
* (the binary payload) and an \`object\` part (an ActivityStreams object shell)
|
|
56972
|
+
* to this endpoint.
|
|
56973
|
+
*
|
|
56974
|
+
*/
|
|
56975
|
+
get uploadMedia(): (URL | null) {
|
|
56976
|
+
if (this._warning != null) {
|
|
56977
|
+
getLogger(this._warning.category).warn(
|
|
56978
|
+
this._warning.message,
|
|
56979
|
+
this._warning.values
|
|
56980
|
+
);
|
|
56981
|
+
}
|
|
56982
|
+
if (this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.length < 1) return null;
|
|
56983
|
+
return this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia[0];
|
|
56984
|
+
}
|
|
56985
|
+
|
|
56940
56986
|
/**
|
|
56941
56987
|
* Converts this object to a JSON-LD structure.
|
|
56942
56988
|
* @param options The options to use.
|
|
@@ -57067,6 +57113,22 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57067
57113
|
|
|
57068
57114
|
}
|
|
57069
57115
|
|
|
57116
|
+
compactItems = [];
|
|
57117
|
+
for (const v of this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia) {
|
|
57118
|
+
const item = (
|
|
57119
|
+
formatIri(v)
|
|
57120
|
+
);
|
|
57121
|
+
compactItems.push(item);
|
|
57122
|
+
}
|
|
57123
|
+
if (compactItems.length > 0) {
|
|
57124
|
+
|
|
57125
|
+
result[\\"uploadMedia\\"]
|
|
57126
|
+
= compactItems.length > 1
|
|
57127
|
+
? compactItems
|
|
57128
|
+
: compactItems[0];
|
|
57129
|
+
|
|
57130
|
+
}
|
|
57131
|
+
|
|
57070
57132
|
|
|
57071
57133
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
57072
57134
|
result[\\"@context\\"] = \\"https://www.w3.org/ns/activitystreams\\";
|
|
@@ -57166,6 +57228,21 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57166
57228
|
|
|
57167
57229
|
}
|
|
57168
57230
|
|
|
57231
|
+
array = [];
|
|
57232
|
+
for (const v of this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia) {
|
|
57233
|
+
const element = (
|
|
57234
|
+
{ \\"@id\\": formatIri(v) }
|
|
57235
|
+
);
|
|
57236
|
+
array.push(element);;
|
|
57237
|
+
}
|
|
57238
|
+
if (array.length > 0) {
|
|
57239
|
+
const propValue = (
|
|
57240
|
+
array
|
|
57241
|
+
);
|
|
57242
|
+
values[\\"https://www.w3.org/ns/activitystreams#uploadMedia\\"] = propValue;
|
|
57243
|
+
|
|
57244
|
+
}
|
|
57245
|
+
|
|
57169
57246
|
|
|
57170
57247
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
57171
57248
|
if (options.format === \\"expand\\") {
|
|
@@ -57417,6 +57494,24 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57417
57494
|
_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded);
|
|
57418
57495
|
}
|
|
57419
57496
|
instance.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
57497
|
+
const _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia: (URL)[] = [];
|
|
57498
|
+
|
|
57499
|
+
let _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array = values[\\"https://www.w3.org/ns/activitystreams#uploadMedia\\"];
|
|
57500
|
+
|
|
57501
|
+
for (
|
|
57502
|
+
const v of _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array == null
|
|
57503
|
+
? []
|
|
57504
|
+
: _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array.length === 1 && \\"@list\\" in _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array[0]
|
|
57505
|
+
? _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array[0][\\"@list\\"]
|
|
57506
|
+
: _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array
|
|
57507
|
+
) {
|
|
57508
|
+
if (v == null) continue;
|
|
57509
|
+
|
|
57510
|
+
const decoded = parseIri(v[\\"@id\\"], options.baseUrl);
|
|
57511
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
57512
|
+
_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.push(decoded);
|
|
57513
|
+
}
|
|
57514
|
+
instance.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
|
|
57420
57515
|
|
|
57421
57516
|
if (!(\\"_fromSubclass\\" in options) || !options._fromSubclass) {
|
|
57422
57517
|
try {
|
|
@@ -57580,6 +57675,26 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57580
57675
|
proxy.sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox[0];
|
|
57581
57676
|
}
|
|
57582
57677
|
|
|
57678
|
+
const _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia
|
|
57679
|
+
// deno-lint-ignore no-explicit-any
|
|
57680
|
+
.map((v: any) => v instanceof URL
|
|
57681
|
+
? {
|
|
57682
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
57683
|
+
inspect: typeof Deno.inspect,
|
|
57684
|
+
options: Deno.InspectOptions,
|
|
57685
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
57686
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
57687
|
+
_depth: number,
|
|
57688
|
+
options: unknown,
|
|
57689
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
57690
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
57691
|
+
}
|
|
57692
|
+
: v);
|
|
57693
|
+
|
|
57694
|
+
if (_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.length == 1) {
|
|
57695
|
+
proxy.uploadMedia = _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia[0];
|
|
57696
|
+
}
|
|
57697
|
+
|
|
57583
57698
|
return proxy;
|
|
57584
57699
|
}
|
|
57585
57700
|
}
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
isTemporalInstant,
|
|
37
37
|
} from "@fedify/vocab-runtime/temporal";
|
|
38
38
|
const PORTABLE_IRI_PATTERN = /^ap(?:\\+ef61)?:\\/\\//i;
|
|
39
|
-
const PORTABLE_IRI_KEYS: ReadonlySet<string> = new Set(["@id","_misskey_quote","actor","alsoKnownAs","announceAuthorization","anyOf","approvedBy","assertionMethod","attachment","attributedTo","audience","automaticApproval","bcc","bto","cc","context","controller","current","describes","emojiReactions","featureAuthorization","featured","featuredCollections","featuredObject","featuredTags","first","followers","followersOf","following","followingOf","generator","href","http://fedibird.com/ns#emojiReactions","http://fedibird.com/ns#quoteUri","http://joinmastodon.org/ns#featured","http://joinmastodon.org/ns#featuredTags","http://www.w3.org/ns/ldp#inbox","https://gotosocial.org/ns#announceAuthorization","https://gotosocial.org/ns#approvedBy","https://gotosocial.org/ns#automaticApproval","https://gotosocial.org/ns#interactingObject","https://gotosocial.org/ns#interactionTarget","https://gotosocial.org/ns#likeAuthorization","https://gotosocial.org/ns#manualApproval","https://gotosocial.org/ns#replyAuthorization","https://misskey-hub.net/ns#_misskey_quote","https://w3id.org/fep/044f#quote","https://w3id.org/fep/044f#quoteAuthorization","https://w3id.org/fep/5711#followersOf","https://w3id.org/fep/5711#followingOf","https://w3id.org/fep/5711#inboxOf","https://w3id.org/fep/5711#likedOf","https://w3id.org/fep/5711#likesOf","https://w3id.org/fep/5711#outboxOf","https://w3id.org/fep/5711#repliesOf","https://w3id.org/fep/5711#sharesOf","https://w3id.org/fep/7aa9#featureAuthorization","https://w3id.org/fep/7aa9#featuredCollections","https://w3id.org/fep/7aa9#featuredObject","https://w3id.org/security#assertionMethod","https://w3id.org/security#controller","https://w3id.org/security#owner","https://w3id.org/security#proof","https://w3id.org/security#publicKey","https://w3id.org/security#verificationMethod","https://w3id.org/valueflows/ont/vf#resourceConformsTo","https://w3id.org/valueflows/ont/vf#satisfies","https://www.w3.org/ns/activitystreams#actor","https://www.w3.org/ns/activitystreams#alsoKnownAs","https://www.w3.org/ns/activitystreams#anyOf","https://www.w3.org/ns/activitystreams#attachment","https://www.w3.org/ns/activitystreams#attributedTo","https://www.w3.org/ns/activitystreams#audience","https://www.w3.org/ns/activitystreams#bcc","https://www.w3.org/ns/activitystreams#bto","https://www.w3.org/ns/activitystreams#cc","https://www.w3.org/ns/activitystreams#context","https://www.w3.org/ns/activitystreams#current","https://www.w3.org/ns/activitystreams#describes","https://www.w3.org/ns/activitystreams#first","https://www.w3.org/ns/activitystreams#followers","https://www.w3.org/ns/activitystreams#following","https://www.w3.org/ns/activitystreams#generator","https://www.w3.org/ns/activitystreams#href","https://www.w3.org/ns/activitystreams#icon","https://www.w3.org/ns/activitystreams#image","https://www.w3.org/ns/activitystreams#inReplyTo","https://www.w3.org/ns/activitystreams#instrument","https://www.w3.org/ns/activitystreams#items","https://www.w3.org/ns/activitystreams#last","https://www.w3.org/ns/activitystreams#liked","https://www.w3.org/ns/activitystreams#likes","https://www.w3.org/ns/activitystreams#location","https://www.w3.org/ns/activitystreams#movedTo","https://www.w3.org/ns/activitystreams#next","https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint","https://www.w3.org/ns/activitystreams#oauthTokenEndpoint","https://www.w3.org/ns/activitystreams#object","https://www.w3.org/ns/activitystreams#oneOf","https://www.w3.org/ns/activitystreams#origin","https://www.w3.org/ns/activitystreams#outbox","https://www.w3.org/ns/activitystreams#partOf","https://www.w3.org/ns/activitystreams#prev","https://www.w3.org/ns/activitystreams#preview","https://www.w3.org/ns/activitystreams#provideClientKey","https://www.w3.org/ns/activitystreams#proxyUrl","https://www.w3.org/ns/activitystreams#quoteUrl","https://www.w3.org/ns/activitystreams#relationship","https://www.w3.org/ns/activitystreams#replies","https://www.w3.org/ns/activitystreams#result","https://www.w3.org/ns/activitystreams#sharedInbox","https://www.w3.org/ns/activitystreams#shares","https://www.w3.org/ns/activitystreams#signClientKey","https://www.w3.org/ns/activitystreams#streams","https://www.w3.org/ns/activitystreams#subject","https://www.w3.org/ns/activitystreams#tag","https://www.w3.org/ns/activitystreams#target","https://www.w3.org/ns/activitystreams#to","https://www.w3.org/ns/activitystreams#units","https://www.w3.org/ns/activitystreams#url","https://www.w3.org/ns/did#service","https://www.w3.org/ns/did#serviceEndpoint","icon","id","image","inReplyTo","inbox","inboxOf","instrument","interactingObject","interactionTarget","items","last","likeAuthorization","liked","likedOf","likes","likesOf","location","manualApproval","movedTo","next","oauthAuthorizationEndpoint","oauthTokenEndpoint","object","oneOf","orderedItems","origin","outbox","outboxOf","owner","partOf","prev","preview","proof","provideClientKey","proxyUrl","publicKey","quote","quoteAuthorization","quoteUri","quoteUrl","relationship","replies","repliesOf","replyAuthorization","resourceConformsTo","result","satisfies","service","sharedInbox","shares","sharesOf","signClientKey","streams","subject","tag","target","to","units","url"]);
|
|
39
|
+
const PORTABLE_IRI_KEYS: ReadonlySet<string> = new Set(["@id","_misskey_quote","actor","alsoKnownAs","announceAuthorization","anyOf","approvedBy","assertionMethod","attachment","attributedTo","audience","automaticApproval","bcc","bto","cc","context","controller","current","describes","emojiReactions","featureAuthorization","featured","featuredCollections","featuredObject","featuredTags","first","followers","followersOf","following","followingOf","generator","href","http://fedibird.com/ns#emojiReactions","http://fedibird.com/ns#quoteUri","http://joinmastodon.org/ns#featured","http://joinmastodon.org/ns#featuredTags","http://www.w3.org/ns/ldp#inbox","https://gotosocial.org/ns#announceAuthorization","https://gotosocial.org/ns#approvedBy","https://gotosocial.org/ns#automaticApproval","https://gotosocial.org/ns#interactingObject","https://gotosocial.org/ns#interactionTarget","https://gotosocial.org/ns#likeAuthorization","https://gotosocial.org/ns#manualApproval","https://gotosocial.org/ns#replyAuthorization","https://misskey-hub.net/ns#_misskey_quote","https://w3id.org/fep/044f#quote","https://w3id.org/fep/044f#quoteAuthorization","https://w3id.org/fep/5711#followersOf","https://w3id.org/fep/5711#followingOf","https://w3id.org/fep/5711#inboxOf","https://w3id.org/fep/5711#likedOf","https://w3id.org/fep/5711#likesOf","https://w3id.org/fep/5711#outboxOf","https://w3id.org/fep/5711#repliesOf","https://w3id.org/fep/5711#sharesOf","https://w3id.org/fep/7aa9#featureAuthorization","https://w3id.org/fep/7aa9#featuredCollections","https://w3id.org/fep/7aa9#featuredObject","https://w3id.org/security#assertionMethod","https://w3id.org/security#controller","https://w3id.org/security#owner","https://w3id.org/security#proof","https://w3id.org/security#publicKey","https://w3id.org/security#verificationMethod","https://w3id.org/valueflows/ont/vf#resourceConformsTo","https://w3id.org/valueflows/ont/vf#satisfies","https://www.w3.org/ns/activitystreams#actor","https://www.w3.org/ns/activitystreams#alsoKnownAs","https://www.w3.org/ns/activitystreams#anyOf","https://www.w3.org/ns/activitystreams#attachment","https://www.w3.org/ns/activitystreams#attributedTo","https://www.w3.org/ns/activitystreams#audience","https://www.w3.org/ns/activitystreams#bcc","https://www.w3.org/ns/activitystreams#bto","https://www.w3.org/ns/activitystreams#cc","https://www.w3.org/ns/activitystreams#context","https://www.w3.org/ns/activitystreams#current","https://www.w3.org/ns/activitystreams#describes","https://www.w3.org/ns/activitystreams#first","https://www.w3.org/ns/activitystreams#followers","https://www.w3.org/ns/activitystreams#following","https://www.w3.org/ns/activitystreams#generator","https://www.w3.org/ns/activitystreams#href","https://www.w3.org/ns/activitystreams#icon","https://www.w3.org/ns/activitystreams#image","https://www.w3.org/ns/activitystreams#inReplyTo","https://www.w3.org/ns/activitystreams#instrument","https://www.w3.org/ns/activitystreams#items","https://www.w3.org/ns/activitystreams#last","https://www.w3.org/ns/activitystreams#liked","https://www.w3.org/ns/activitystreams#likes","https://www.w3.org/ns/activitystreams#location","https://www.w3.org/ns/activitystreams#movedTo","https://www.w3.org/ns/activitystreams#next","https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint","https://www.w3.org/ns/activitystreams#oauthTokenEndpoint","https://www.w3.org/ns/activitystreams#object","https://www.w3.org/ns/activitystreams#oneOf","https://www.w3.org/ns/activitystreams#origin","https://www.w3.org/ns/activitystreams#outbox","https://www.w3.org/ns/activitystreams#partOf","https://www.w3.org/ns/activitystreams#prev","https://www.w3.org/ns/activitystreams#preview","https://www.w3.org/ns/activitystreams#provideClientKey","https://www.w3.org/ns/activitystreams#proxyUrl","https://www.w3.org/ns/activitystreams#quoteUrl","https://www.w3.org/ns/activitystreams#relationship","https://www.w3.org/ns/activitystreams#replies","https://www.w3.org/ns/activitystreams#result","https://www.w3.org/ns/activitystreams#sharedInbox","https://www.w3.org/ns/activitystreams#shares","https://www.w3.org/ns/activitystreams#signClientKey","https://www.w3.org/ns/activitystreams#streams","https://www.w3.org/ns/activitystreams#subject","https://www.w3.org/ns/activitystreams#tag","https://www.w3.org/ns/activitystreams#target","https://www.w3.org/ns/activitystreams#to","https://www.w3.org/ns/activitystreams#units","https://www.w3.org/ns/activitystreams#uploadMedia","https://www.w3.org/ns/activitystreams#url","https://www.w3.org/ns/did#service","https://www.w3.org/ns/did#serviceEndpoint","icon","id","image","inReplyTo","inbox","inboxOf","instrument","interactingObject","interactionTarget","items","last","likeAuthorization","liked","likedOf","likes","likesOf","location","manualApproval","movedTo","next","oauthAuthorizationEndpoint","oauthTokenEndpoint","object","oneOf","orderedItems","origin","outbox","outboxOf","owner","partOf","prev","preview","proof","provideClientKey","proxyUrl","publicKey","quote","quoteAuthorization","quoteUri","quoteUrl","relationship","replies","repliesOf","replyAuthorization","resourceConformsTo","result","satisfies","service","sharedInbox","shares","sharesOf","signClientKey","streams","subject","tag","target","to","units","uploadMedia","url"]);
|
|
40
40
|
|
|
41
41
|
import * as _ppM0 from "./preprocessors.ts";
|
|
42
42
|
|
|
@@ -56602,6 +56602,7 @@ export class Endpoints {
|
|
|
56602
56602
|
#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey: (URL)[] = [];
|
|
56603
56603
|
#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey: (URL)[] = [];
|
|
56604
56604
|
#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox: (URL)[] = [];
|
|
56605
|
+
#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia: (URL)[] = [];
|
|
56605
56606
|
|
|
56606
56607
|
/**
|
|
56607
56608
|
* Constructs a new instance of Endpoints with the given values.
|
|
@@ -56612,7 +56613,7 @@ export class Endpoints {
|
|
|
56612
56613
|
values:
|
|
56613
56614
|
{
|
|
56614
56615
|
id?: URL | null;
|
|
56615
|
-
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;}
|
|
56616
|
+
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;uploadMedia?: URL | null;}
|
|
56616
56617
|
,
|
|
56617
56618
|
options: {
|
|
56618
56619
|
documentLoader?: DocumentLoader,
|
|
@@ -56716,6 +56717,19 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56716
56717
|
);
|
|
56717
56718
|
}
|
|
56718
56719
|
}
|
|
56720
|
+
|
|
56721
|
+
if ("uploadMedia" in values && values.uploadMedia != null) {
|
|
56722
|
+
if (values.uploadMedia instanceof URL) {
|
|
56723
|
+
// @ts-ignore: type is checked above.
|
|
56724
|
+
this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
|
|
56725
|
+
|
|
56726
|
+
} else {
|
|
56727
|
+
throw new TypeError(
|
|
56728
|
+
"The uploadMedia must be of type " +
|
|
56729
|
+
"URL" + ".",
|
|
56730
|
+
);
|
|
56731
|
+
}
|
|
56732
|
+
}
|
|
56719
56733
|
}
|
|
56720
56734
|
|
|
56721
56735
|
/**
|
|
@@ -56728,7 +56742,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56728
56742
|
values:
|
|
56729
56743
|
{
|
|
56730
56744
|
id?: URL | null;
|
|
56731
|
-
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;}
|
|
56745
|
+
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;uploadMedia?: URL | null;}
|
|
56732
56746
|
|
|
56733
56747
|
= {},
|
|
56734
56748
|
options: {
|
|
@@ -56828,6 +56842,19 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56828
56842
|
);
|
|
56829
56843
|
}
|
|
56830
56844
|
}
|
|
56845
|
+
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
|
|
56846
|
+
if ("uploadMedia" in values && values.uploadMedia != null) {
|
|
56847
|
+
if (values.uploadMedia instanceof URL) {
|
|
56848
|
+
// @ts-ignore: type is checked above.
|
|
56849
|
+
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
|
|
56850
|
+
|
|
56851
|
+
} else {
|
|
56852
|
+
throw new TypeError(
|
|
56853
|
+
"The uploadMedia must be of type " +
|
|
56854
|
+
"URL" + ".",
|
|
56855
|
+
);
|
|
56856
|
+
}
|
|
56857
|
+
}
|
|
56831
56858
|
|
|
56832
56859
|
return clone;
|
|
56833
56860
|
}
|
|
@@ -56939,6 +56966,25 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56939
56966
|
return this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox[0];
|
|
56940
56967
|
}
|
|
56941
56968
|
|
|
56969
|
+
/** Upload endpoint URI for this user for binary data, such as an image or
|
|
56970
|
+
* video, as described in the [ActivityPub Media
|
|
56971
|
+
* Upload](https://www.w3.org/wiki/SocialCG/ActivityPub/MediaUpload) extension.
|
|
56972
|
+
* Clients \`POST\` a \`multipart/form-data\` request containing a \`file\` part
|
|
56973
|
+
* (the binary payload) and an \`object\` part (an ActivityStreams object shell)
|
|
56974
|
+
* to this endpoint.
|
|
56975
|
+
*
|
|
56976
|
+
*/
|
|
56977
|
+
get uploadMedia(): (URL | null) {
|
|
56978
|
+
if (this._warning != null) {
|
|
56979
|
+
getLogger(this._warning.category).warn(
|
|
56980
|
+
this._warning.message,
|
|
56981
|
+
this._warning.values
|
|
56982
|
+
);
|
|
56983
|
+
}
|
|
56984
|
+
if (this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.length < 1) return null;
|
|
56985
|
+
return this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia[0];
|
|
56986
|
+
}
|
|
56987
|
+
|
|
56942
56988
|
/**
|
|
56943
56989
|
* Converts this object to a JSON-LD structure.
|
|
56944
56990
|
* @param options The options to use.
|
|
@@ -57069,6 +57115,22 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57069
57115
|
|
|
57070
57116
|
}
|
|
57071
57117
|
|
|
57118
|
+
compactItems = [];
|
|
57119
|
+
for (const v of this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia) {
|
|
57120
|
+
const item = (
|
|
57121
|
+
formatIri(v)
|
|
57122
|
+
);
|
|
57123
|
+
compactItems.push(item);
|
|
57124
|
+
}
|
|
57125
|
+
if (compactItems.length > 0) {
|
|
57126
|
+
|
|
57127
|
+
result["uploadMedia"]
|
|
57128
|
+
= compactItems.length > 1
|
|
57129
|
+
? compactItems
|
|
57130
|
+
: compactItems[0];
|
|
57131
|
+
|
|
57132
|
+
}
|
|
57133
|
+
|
|
57072
57134
|
|
|
57073
57135
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
57074
57136
|
result["@context"] = "https://www.w3.org/ns/activitystreams";
|
|
@@ -57168,6 +57230,21 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57168
57230
|
|
|
57169
57231
|
}
|
|
57170
57232
|
|
|
57233
|
+
array = [];
|
|
57234
|
+
for (const v of this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia) {
|
|
57235
|
+
const element = (
|
|
57236
|
+
{ "@id": formatIri(v) }
|
|
57237
|
+
);
|
|
57238
|
+
array.push(element);;
|
|
57239
|
+
}
|
|
57240
|
+
if (array.length > 0) {
|
|
57241
|
+
const propValue = (
|
|
57242
|
+
array
|
|
57243
|
+
);
|
|
57244
|
+
values["https://www.w3.org/ns/activitystreams#uploadMedia"] = propValue;
|
|
57245
|
+
|
|
57246
|
+
}
|
|
57247
|
+
|
|
57171
57248
|
|
|
57172
57249
|
if (this.id != null) values["@id"] = formatIri(this.id);
|
|
57173
57250
|
if (options.format === "expand") {
|
|
@@ -57419,6 +57496,24 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57419
57496
|
_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded);
|
|
57420
57497
|
}
|
|
57421
57498
|
instance.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
57499
|
+
const _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia: (URL)[] = [];
|
|
57500
|
+
|
|
57501
|
+
let _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array = values["https://www.w3.org/ns/activitystreams#uploadMedia"];
|
|
57502
|
+
|
|
57503
|
+
for (
|
|
57504
|
+
const v of _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array == null
|
|
57505
|
+
? []
|
|
57506
|
+
: _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array.length === 1 && "@list" in _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array[0]
|
|
57507
|
+
? _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array[0]["@list"]
|
|
57508
|
+
: _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array
|
|
57509
|
+
) {
|
|
57510
|
+
if (v == null) continue;
|
|
57511
|
+
|
|
57512
|
+
const decoded = parseIri(v["@id"], options.baseUrl);
|
|
57513
|
+
if (typeof decoded === "undefined") continue;
|
|
57514
|
+
_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.push(decoded);
|
|
57515
|
+
}
|
|
57516
|
+
instance.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
|
|
57422
57517
|
|
|
57423
57518
|
if (!("_fromSubclass" in options) || !options._fromSubclass) {
|
|
57424
57519
|
try {
|
|
@@ -57582,6 +57677,26 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57582
57677
|
proxy.sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox[0];
|
|
57583
57678
|
}
|
|
57584
57679
|
|
|
57680
|
+
const _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia
|
|
57681
|
+
// deno-lint-ignore no-explicit-any
|
|
57682
|
+
.map((v: any) => v instanceof URL
|
|
57683
|
+
? {
|
|
57684
|
+
[Symbol.for("Deno.customInspect")]: (
|
|
57685
|
+
inspect: typeof Deno.inspect,
|
|
57686
|
+
options: Deno.InspectOptions,
|
|
57687
|
+
): string => "URL " + inspect(v.href, options),
|
|
57688
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
57689
|
+
_depth: number,
|
|
57690
|
+
options: unknown,
|
|
57691
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
57692
|
+
): string => "URL " + inspect(v.href, options),
|
|
57693
|
+
}
|
|
57694
|
+
: v);
|
|
57695
|
+
|
|
57696
|
+
if (_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.length == 1) {
|
|
57697
|
+
proxy.uploadMedia = _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia[0];
|
|
57698
|
+
}
|
|
57699
|
+
|
|
57585
57700
|
return proxy;
|
|
57586
57701
|
}
|
|
57587
57702
|
}
|