You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
837 B
40 lines
837 B
|
|
export namespace Pub {
|
|
const ACCEPT_TYPE = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
|
|
|
|
export interface Config {
|
|
uri: string,
|
|
}
|
|
|
|
export interface Object {
|
|
id: string,
|
|
type: string, // FIXME
|
|
}
|
|
|
|
export interface Actor extends Object {
|
|
["@context"]: [
|
|
"https://www.w3.org/ns/activitystreams",
|
|
"https://w3id.org/security/v1"
|
|
],
|
|
type: 'Person',
|
|
preferredUsername: string,
|
|
inbox: string,
|
|
publicKey: {
|
|
id: string,
|
|
owner: string,
|
|
publicKeyPem: string,
|
|
},
|
|
}
|
|
|
|
export interface Link {
|
|
rel: string,
|
|
type: string,
|
|
href: string,
|
|
}
|
|
|
|
export interface Webfinger {
|
|
subject: string,
|
|
links: Link[],
|
|
}
|
|
}
|