2023-01-25 01:11:28 +00:00
|
|
|
exports.ActivityStreamsContext = 'https://www.w3.org/ns/activitystreams';
|
2023-01-25 04:40:12 +00:00
|
|
|
exports.PublicCollectionId = 'https://www.w3.org/ns/activitystreams#Public';
|
2023-01-29 23:52:01 +00:00
|
|
|
exports.ActivityStreamMediaType = 'application/activity+json';
|
2023-01-25 01:11:28 +00:00
|
|
|
|
2023-02-20 23:01:16 +00:00
|
|
|
exports.ActorCollectionId = exports.PublicCollectionId + 'Actors';
|
|
|
|
|
2023-01-25 01:11:28 +00:00
|
|
|
const WellKnownActivity = {
|
|
|
|
Create: 'Create',
|
|
|
|
Update: 'Update',
|
|
|
|
Delete: 'Delete',
|
|
|
|
Follow: 'Follow',
|
|
|
|
Accept: 'Accept',
|
|
|
|
Reject: 'Reject',
|
|
|
|
Add: 'Add',
|
|
|
|
Remove: 'Remove',
|
|
|
|
Like: 'Like',
|
|
|
|
Announce: 'Announce',
|
|
|
|
Undo: 'Undo',
|
2023-01-29 23:52:01 +00:00
|
|
|
Tombstone: 'Tombstone',
|
2023-01-25 01:11:28 +00:00
|
|
|
};
|
|
|
|
exports.WellKnownActivity = WellKnownActivity;
|
|
|
|
|
|
|
|
const WellKnownActivityTypes = Object.values(WellKnownActivity);
|
|
|
|
exports.WellKnownActivityTypes = WellKnownActivityTypes;
|
2023-01-29 23:52:01 +00:00
|
|
|
|
|
|
|
exports.WellKnownRecipientFields = ['audience', 'bcc', 'bto', 'cc', 'to'];
|
|
|
|
|
|
|
|
// Signatures utilized in HTTP signature generation
|
|
|
|
exports.HttpSignatureSignHeaders = [
|
|
|
|
'(request-target)',
|
|
|
|
'host',
|
|
|
|
'date',
|
|
|
|
'digest',
|
|
|
|
'content-type',
|
|
|
|
];
|
2023-02-18 04:46:24 +00:00
|
|
|
|
|
|
|
const Collections = {
|
|
|
|
Following: 'following',
|
|
|
|
Followers: 'followers',
|
|
|
|
FollowRequests: 'followRequests',
|
|
|
|
Outbox: 'outbox',
|
|
|
|
Inbox: 'inbox',
|
|
|
|
SharedInbox: 'sharedInbox',
|
2023-02-20 23:01:16 +00:00
|
|
|
Actors: 'actors',
|
2023-02-18 04:46:24 +00:00
|
|
|
};
|
|
|
|
exports.Collections = Collections;
|