types.jsonld 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "@context": {
  3. "so": "https://schema.org/",
  4. "dp": "http://dbpedia.org/resource/",
  5. "pb": "?jsonld=types#"
  6. },
  7. "Base64": {
  8. "@type": "so:Text"
  9. },
  10. "CipherText": {
  11. "@type": "pb:Base64"
  12. },
  13. "PasteCipherMessage": {
  14. "paste": {
  15. "@type": "so:Text"
  16. },
  17. "attachment": {
  18. "@type": "so:MediaObject"
  19. },
  20. "attachment_name": {
  21. "@type": "so:Text"
  22. }
  23. },
  24. "CommentCipherMessage": {
  25. "comment": {
  26. "@type": "so:Text"
  27. },
  28. "nickname": {
  29. "@type": "so:Text"
  30. }
  31. },
  32. "InitializationVector": {
  33. "@type": "pb:Base64"
  34. },
  35. "Salt": {
  36. "@type": "pb:Base64"
  37. },
  38. "Iterations": {
  39. "@type": "so:Integer",
  40. "@minimum": 1
  41. },
  42. "KeySize": {
  43. "@type": "so:Integer",
  44. "@value": 256,
  45. "@minimum": 128,
  46. "@maximum": 256,
  47. "@enum": [128, 196, 256]
  48. },
  49. "TagSize": {
  50. "@type": "so:Integer",
  51. "@value": 128,
  52. "@minimum": 32,
  53. "@maximum": 128,
  54. "@enum": [32, 64, 96, 104, 112, 120, 128]
  55. },
  56. "Algorithm": {
  57. "@type": "so:Text",
  58. "@value": "aes"
  59. },
  60. "Mode": {
  61. "@type": "so:Text",
  62. "@value": "gcm",
  63. "@enum": ["ctr", "cbc", "gcm"]
  64. },
  65. "Compression": {
  66. "@type": "so:Text",
  67. "@value": "zlib",
  68. "@enum": ["zlib", "none"]
  69. },
  70. "Formatter": {
  71. "@type": "so:Text",
  72. "@value": "plaintext",
  73. "@enum": ["plaintext", "syntaxhighlighting", "markdown"]
  74. },
  75. "Expiration": {
  76. "@type": "so:Text",
  77. "@value": "1week",
  78. "@enum": ["5min", "10min", "1hour", "1day", "1week", "1month", "1year", "never"]
  79. },
  80. "OpenDiscussion": {
  81. "@type": "so:Boolean",
  82. "@enum": [false, true]
  83. },
  84. "BurnAfterReading": {
  85. "@type": "so:Boolean",
  86. "@enum": [false, true]
  87. },
  88. "RemainingSeconds": {
  89. "@type": "dp:Second",
  90. "@minimum": 1
  91. },
  92. "CipherParameters": {
  93. "@container": "@list",
  94. "@value": [
  95. {
  96. "@type": "pb:InitializationVector"
  97. },
  98. {
  99. "@type": "pb:Salt"
  100. },
  101. {
  102. "@type": "pb:Iterations"
  103. },
  104. {
  105. "@type": "pb:KeySize"
  106. },
  107. {
  108. "@type": "pb:TagSize"
  109. },
  110. {
  111. "@type": "pb:Algorithm"
  112. },
  113. {
  114. "@type": "pb:Mode"
  115. },
  116. {
  117. "@type": "pb:Compression"
  118. }
  119. ]
  120. }
  121. }