import { BASE_URL, PUBLIC_KEY } from "./src/env" // change "activitypub" to whatever you want your account name to be export const preferredUsername:string = process.env.ACCOUNT || "activitypub" export const name = process.env.REAL_NAME || preferredUsername export const summary = "" // avatar image const icon:{ type:"Image", mediaType:string, url:string } = { type: "Image", mediaType: "image/svg+xml", url: BASE_URL + "/assets/img/avatar-tt.svg" } // banner image const image:{ type:"Image", mediaType:string, url:string } = { type: "Image", mediaType: "image/jpeg", url: BASE_URL + "/assets/img/banner-1500x500.jpg" } // This is a list of other actor ids you identify as const alsoKnownAs:string[] = [] // I'm not exactly sure what this time represents. // The date your website got published? const published:string = "2023-09-14T00:00:00Z" // customize this to add or remove PropertyValues // this is the table that appears on Mastodon, etc, profile pages const attachment:{ type:"PropertyValue", name:string, value:string }[] = [ { type: "PropertyValue", name: "Pronouns", value: "they/them" }, { type: "PropertyValue", name: "Website", value: `${BASE_URL}` } ] export default { "@context": [ "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1", { manuallyApprovesFollowers: "as:manuallyApprovesFollowers", toot: "http://joinmastodon.org/ns#", alsoKnownAs: { "@id": "as:alsoKnownAs", "@type": "@id" }, schema: "http://schema.org#", PropertyValue: "schema:PropertyValue", value: "schema:value", discoverable: "toot:discoverable", Ed25519Signature: "toot:Ed25519Signature", Ed25519Key: "toot:Ed25519Key", Curve25519Key: "toot:Curve25519Key", EncryptedMessage: "toot:EncryptedMessage", publicKeyBase64: "toot:publicKeyBase64" } ], id: BASE_URL, type: "Person", following: `${BASE_URL}/following`, followers: `${BASE_URL}/followers`, inbox: `${BASE_URL}/inbox`, outbox: `${BASE_URL}/outbox`, preferredUsername, name, summary, url: BASE_URL, manuallyApprovesFollowers: false, discoverable: true, published, alsoKnownAs, publicKey: { id: `${BASE_URL}#main-key`, owner: BASE_URL, publicKeyPem: PUBLIC_KEY, }, attachment, icon, image }