Merge branch 'v1.3-dev' as v1.3.11
[websub-hub] / src / enum.js
1 'use strict';
2
3 const common = require('./common');
4 const { Enum: DingusEnum } = require('@squeep/api-dingus');
5
6 const Enum = common.mergeDeep(DingusEnum, {
7 Specification: 'W3C.REC-websub-20180123',
8
9 Mode: {
10 Denied: 'denied',
11 Publish: 'publish',
12 Subscribe: 'subscribe',
13 Unsubscribe: 'unsubscribe',
14 },
15
16 Header: {
17 Authorization: 'Authorization',
18 Cookie: 'Cookie',
19 From: 'From',
20 LastSeen: 'Last-Seen',
21 Link: 'Link',
22 Location: 'Location',
23 SetCookie: 'Set-Cookie',
24 Signature: 'Signature',
25 UserAgent: 'User-Agent',
26 WWWAuthenticate: 'WWW-Authenticate',
27 XHubSignature: 'X-Hub-Signature',
28 },
29
30 ContentType: {
31 ApplicationAtom: 'application/atom+xml',
32 ApplicationOctetStream: 'application/octet-stream',
33 ApplicationRDF: 'application/rdf+xml',
34 ApplicationRSS: 'application/rss+xml',
35 ApplicationXML: 'application/xml',
36 ImageSVG: 'image/svg+xml',
37 TextXML: 'text/xml',
38 },
39
40 Message : {
41 BeginningOfTime: 'Beginning of Time',
42 EndOfTime: 'End of Time',
43 Never: 'Never',
44 NextPublish: 'Next Publish',
45 NoSuchTopicId: 'no such topic id',
46 Pending: 'Pending',
47 Unknown: 'Unknown',
48 },
49 });
50
51 module.exports = common.freezeDeep(Enum);