@sitevision/api 2.0.0-alpha.1 → 2023.2.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/client/requester/index.d.ts +10 -8
  2. package/client/toasts/index.d.ts +7 -5
  3. package/common/app/index.d.ts +45 -46
  4. package/common/events/index.d.ts +30 -31
  5. package/common/i18n/index.d.ts +7 -5
  6. package/common/router/index.d.ts +72 -77
  7. package/common/security/index.d.ts +27 -21
  8. package/index.d.ts +8 -0
  9. package/package.json +1 -1
  10. package/server/AliasUtil/index.d.ts +11 -9
  11. package/server/ArchiveUtil/index.d.ts +43 -41
  12. package/server/ArraysInstance/index.d.ts +1666 -1807
  13. package/server/ArticleUtil/index.d.ts +292 -224
  14. package/server/AuthenticationUtil/index.d.ts +72 -84
  15. package/server/BookmarkUtil/index.d.ts +74 -79
  16. package/server/BuddyIconRenderer/index.d.ts +123 -131
  17. package/server/BuddyIconRenderer.BuddyIconSize/index.d.ts +41 -0
  18. package/server/BuddyIconRenderer.BuddyIconSize/index.js +25 -0
  19. package/server/ClientUtil/index.d.ts +10 -8
  20. package/server/CollaborationFactory/index.d.ts +37 -40
  21. package/server/CollaborationGroupFolderUtil/index.d.ts +28 -26
  22. package/server/CollaborationGroupState/index.d.ts +27 -0
  23. package/server/CollaborationGroupState/index.js +11 -0
  24. package/server/CollaborationGroupTemplateUtil/index.d.ts +46 -48
  25. package/server/CollaborationGroupType/index.d.ts +28 -0
  26. package/server/CollaborationGroupType/index.js +12 -0
  27. package/server/CollaborationGroupUtil/index.d.ts +84 -80
  28. package/server/CollectionsInstance/index.d.ts +641 -704
  29. package/server/ColorUtil/index.d.ts +34 -35
  30. package/server/CompoundAndFilterBuilder/index.d.ts +28 -26
  31. package/server/CompoundComparatorBuilder/index.d.ts +33 -31
  32. package/server/CompoundOrFilterBuilder/index.d.ts +28 -26
  33. package/server/ContentNodeUtil/index.d.ts +34 -32
  34. package/server/CurrencyFactory/index.d.ts +70 -68
  35. package/server/DateUtil/index.d.ts +131 -141
  36. package/server/DecorationUtil/index.d.ts +11 -9
  37. package/server/DeviceUtil/index.d.ts +19 -17
  38. package/server/DimensionMode/index.d.ts +17 -0
  39. package/server/DimensionMode/index.js +12 -0
  40. package/server/DirectoryUtil/index.d.ts +87 -85
  41. package/server/DocType/index.d.ts +30 -0
  42. package/server/DocType/index.js +14 -0
  43. package/server/DocTypeUtil/index.d.ts +127 -133
  44. package/server/EndecUtil/index.d.ts +329 -346
  45. package/server/ExtendedDismaxParserBuilder/index.d.ts +153 -167
  46. package/server/FileIconRenderer/index.d.ts +152 -171
  47. package/server/FileUtil/index.d.ts +272 -298
  48. package/server/FilterBuilder/index.d.ts +39 -37
  49. package/server/FolderUtil/index.d.ts +91 -92
  50. package/server/FontUtil/index.d.ts +34 -35
  51. package/server/FormatterBuilderFactory/index.d.ts +73 -81
  52. package/server/HighlightBuilder/index.d.ts +76 -83
  53. package/server/IconUtil/index.d.ts +25 -23
  54. package/server/ImageLinkRenderer/index.d.ts +35 -33
  55. package/server/ImageRenderer/index.d.ts +340 -376
  56. package/server/ImageUtil/index.d.ts +245 -263
  57. package/server/IndexUtil/index.d.ts +38 -35
  58. package/server/IndexUtil.IndexType/index.d.ts +29 -0
  59. package/server/IndexUtil.IndexType/index.js +13 -0
  60. package/server/IndexingUtil/index.d.ts +67 -45
  61. package/server/InstanceCreatorUtil/index.d.ts +423 -459
  62. package/server/InstanceTypeUtil/index.d.ts +167 -188
  63. package/server/JwtUtil/index.d.ts +129 -127
  64. package/server/LandingPageUtil/index.d.ts +82 -85
  65. package/server/LandingPageUtil/index.js +1 -0
  66. package/server/LinkPageUtil/index.d.ts +294 -248
  67. package/server/LinkRenderer/index.d.ts +649 -713
  68. package/server/LinkTargetBuilder/index.d.ts +65 -73
  69. package/server/LinkValueBuilder/index.d.ts +66 -73
  70. package/server/ListWrapper/index.d.ts +80 -89
  71. package/server/LocaleUtil/index.d.ts +381 -393
  72. package/server/LogUtil/index.d.ts +118 -127
  73. package/server/MailBuilder/index.d.ts +106 -121
  74. package/server/MailUtil/index.d.ts +58 -63
  75. package/server/MathInstance/index.d.ts +624 -656
  76. package/server/MessageDigesterFactory/index.d.ts +28 -26
  77. package/server/MetadataDefinitionUtil/index.d.ts +77 -81
  78. package/server/MetadataUtil/index.d.ts +321 -345
  79. package/server/MimeTypeUtil/index.d.ts +208 -214
  80. package/server/MonitorBuilder/index.d.ts +17 -17
  81. package/server/NodeComparatorUtil/index.d.ts +214 -224
  82. package/server/NodeFactoryUtil/index.d.ts +19 -17
  83. package/server/NodeFilterUtil/index.d.ts +651 -738
  84. package/server/NodeIteratorUtil/index.d.ts +209 -224
  85. package/server/NodeResolverUtil/index.d.ts +398 -404
  86. package/server/NodeTreeUtil/index.d.ts +211 -226
  87. package/server/NodeTypeUtil/index.d.ts +1430 -546
  88. package/server/OfflineVersionPropertyUtil/index.d.ts +6 -4
  89. package/server/OnlineVersionPropertyUtil/index.d.ts +6 -4
  90. package/server/OutputUtil/index.d.ts +384 -379
  91. package/server/PageUtil/index.d.ts +264 -186
  92. package/server/PermissionUtil/index.d.ts +391 -428
  93. package/server/PermissionUtil.Permission/index.d.ts +54 -0
  94. package/server/PermissionUtil.Permission/index.js +38 -0
  95. package/server/PortletContextUtil/index.d.ts +111 -106
  96. package/server/PortletUtil/index.d.ts +30 -20
  97. package/server/PrincipalUtil/index.d.ts +33 -31
  98. package/server/Properties/index.d.ts +68 -75
  99. package/server/PropertyUtil/index.d.ts +1419 -1461
  100. package/server/PublishingUtil/index.d.ts +246 -247
  101. package/server/QueryStringUtil/index.d.ts +403 -414
  102. package/server/RedirectUtil/index.d.ts +62 -66
  103. package/server/RelatedValueBuilder/index.d.ts +40 -38
  104. package/server/Requester/index.d.ts +123 -123
  105. package/server/ResourceLocatorUtil/index.d.ts +434 -474
  106. package/server/RestApi/index.d.ts +156 -136
  107. package/server/RestAppInvokerFactory/index.d.ts +25 -23
  108. package/server/RoleAssignmentBuilder/index.d.ts +35 -33
  109. package/server/RoleMatcherBuilder/index.d.ts +35 -33
  110. package/server/RoleUtil/index.d.ts +35 -37
  111. package/server/ScriptUtil/index.d.ts +457 -494
  112. package/server/SearchFactory/index.d.ts +102 -117
  113. package/server/SearchUtil/index.d.ts +73 -71
  114. package/server/SearcherBuilder/index.d.ts +107 -114
  115. package/server/Session/index.d.ts +251 -1093
  116. package/server/Session/index.js +1 -20
  117. package/server/SimpleUserUtil/index.d.ts +26 -27
  118. package/server/SiteCookieUtil/index.d.ts +150 -173
  119. package/server/SortBuilder/index.d.ts +24 -22
  120. package/server/SourceSetMode/index.d.ts +12 -0
  121. package/server/SourceSetMode/index.js +12 -0
  122. package/server/SpellCheckBuilder/index.d.ts +27 -27
  123. package/server/StandardParserBuilder/index.d.ts +33 -31
  124. package/server/StructureUtil/index.d.ts +83 -81
  125. package/server/SubscriberUtil/index.d.ts +58 -65
  126. package/server/SubscriptionUtil/index.d.ts +121 -128
  127. package/server/SystemUserUtil/index.d.ts +146 -144
  128. package/server/TagUtil/index.d.ts +113 -118
  129. package/server/TemplateUtil/index.d.ts +113 -118
  130. package/server/TemporaryFileNodeBuilder/index.d.ts +29 -27
  131. package/server/TemporaryNodeBuilder/index.d.ts +136 -174
  132. package/server/TextModuleRendererBuilder/index.d.ts +18 -16
  133. package/server/TimestampUtil/index.d.ts +102 -116
  134. package/server/TranslationUtil/index.d.ts +96 -102
  135. package/server/TrashcanUtil/index.d.ts +112 -115
  136. package/server/UserDataUtil/index.d.ts +108 -109
  137. package/server/UserFactory/index.d.ts +49 -56
  138. package/server/UserFieldRenderer/index.d.ts +118 -126
  139. package/server/UserIdentityUtil/index.d.ts +36 -34
  140. package/server/UserUtil/index.d.ts +30 -28
  141. package/server/Utils/index.d.ts +702 -791
  142. package/server/VelocityRenderer/index.d.ts +94 -92
  143. package/server/VersionUtil/index.d.ts +24 -8
  144. package/server/WebContentUtil/index.d.ts +275 -282
  145. package/server/WebResourceFactory/index.d.ts +46 -51
  146. package/server/XSLTUtil/index.d.ts +33 -31
  147. package/server/XmlParserUtil/index.d.ts +47 -45
  148. package/server/appData/index.d.ts +8 -6
  149. package/server/appInfo/index.d.ts +6 -2
  150. package/server/appResource/index.d.ts +23 -21
  151. package/server/cache/index.d.ts +8 -6
  152. package/server/globalAppData/index.d.ts +8 -6
  153. package/server/headless/index.d.ts +28 -26
  154. package/server/hooks/index.d.ts +9 -9
  155. package/server/oauth2/index.d.ts +12 -10
  156. package/server/privileged/index.d.ts +24 -22
  157. package/server/storage/index.d.ts +22 -20
  158. package/types/javax/jcr/Binary/index.d.ts +0 -20
  159. package/types/javax/jcr/Binary/index.js +0 -1
  160. package/types/javax/jcr/ImportUUIDBehavior/index.d.ts +24 -0
  161. package/types/javax/jcr/Item/index.d.ts +1 -116
  162. package/types/javax/jcr/Item/index.js +0 -6
  163. package/types/javax/jcr/NamespaceRegistry/index.d.ts +66 -42
  164. package/types/javax/jcr/NamespaceRegistry/index.js +0 -2
  165. package/types/javax/jcr/Node/index.d.ts +24 -1495
  166. package/types/javax/jcr/Node/index.js +1 -34
  167. package/types/javax/jcr/NodeIterator/index.d.ts +1 -1
  168. package/types/javax/jcr/Property/index.d.ts +487 -489
  169. package/types/javax/jcr/Property/index.js +0 -5
  170. package/types/javax/jcr/PropertyIterator/index.d.ts +1 -1
  171. package/types/javax/jcr/RangeIterator/index.d.ts +1 -43
  172. package/types/javax/jcr/RangeIterator/index.js +1 -5
  173. package/types/javax/jcr/Repository/index.d.ts +460 -260
  174. package/types/javax/jcr/Repository/index.js +0 -4
  175. package/types/javax/jcr/Value/index.d.ts +0 -29
  176. package/types/javax/jcr/Value/index.js +0 -2
  177. package/types/javax/jcr/ValueFactory/index.d.ts +0 -70
  178. package/types/javax/jcr/ValueFactory/index.js +1 -2
  179. package/types/javax/jcr/Workspace/index.d.ts +93 -569
  180. package/types/javax/jcr/Workspace/index.js +1 -12
  181. package/types/javax/jcr/nodetype/ItemDefinition/index.d.ts +0 -103
  182. package/types/javax/jcr/nodetype/ItemDefinition/index.js +0 -5
  183. package/types/javax/jcr/nodetype/NodeDefinition/index.d.ts +1 -1
  184. package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +1 -1
  185. package/types/javax/jcr/nodetype/NodeType/index.d.ts +255 -264
  186. package/types/javax/jcr/nodetype/NodeType/index.js +1 -12
  187. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +0 -104
  188. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.js +1 -7
  189. package/types/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +1 -1
  190. package/types/javax/jcr/nodetype/NodeTypeManager/index.d.ts +0 -123
  191. package/types/javax/jcr/nodetype/NodeTypeManager/index.js +1 -8
  192. package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +1 -1
  193. package/types/javax/jcr/nodetype/PropertyDefinition/index.d.ts +1 -270
  194. package/types/javax/jcr/nodetype/PropertyDefinition/index.js +1 -7
  195. package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +1 -1
  196. package/types/javax/jcr/observation/Event/index.d.ts +82 -41
  197. package/types/javax/jcr/observation/EventIterator/index.d.ts +1 -1
  198. package/types/javax/jcr/observation/EventJournal/index.d.ts +1 -1
  199. package/types/javax/jcr/observation/EventListenerIterator/index.d.ts +1 -1
  200. package/types/javax/jcr/query/Query/index.d.ts +29 -8
  201. package/types/javax/jcr/query/RowIterator/index.d.ts +1 -1
  202. package/types/javax/jcr/query/qom/And/index.d.ts +1 -1
  203. package/types/javax/jcr/query/qom/BindVariableValue/index.d.ts +1 -1
  204. package/types/javax/jcr/query/qom/ChildNode/index.d.ts +1 -1
  205. package/types/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +1 -1
  206. package/types/javax/jcr/query/qom/Comparison/index.d.ts +1 -1
  207. package/types/javax/jcr/query/qom/DescendantNode/index.d.ts +1 -1
  208. package/types/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +1 -1
  209. package/types/javax/jcr/query/qom/DynamicOperand/index.d.ts +1 -1
  210. package/types/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +1 -1
  211. package/types/javax/jcr/query/qom/FullTextSearch/index.d.ts +1 -1
  212. package/types/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +1 -1
  213. package/types/javax/jcr/query/qom/Join/index.d.ts +1 -1
  214. package/types/javax/jcr/query/qom/Length/index.d.ts +1 -1
  215. package/types/javax/jcr/query/qom/Literal/index.d.ts +1 -1
  216. package/types/javax/jcr/query/qom/LowerCase/index.d.ts +1 -1
  217. package/types/javax/jcr/query/qom/NodeLocalName/index.d.ts +1 -1
  218. package/types/javax/jcr/query/qom/NodeName/index.d.ts +1 -1
  219. package/types/javax/jcr/query/qom/Not/index.d.ts +1 -1
  220. package/types/javax/jcr/query/qom/Or/index.d.ts +1 -1
  221. package/types/javax/jcr/query/qom/PropertyExistence/index.d.ts +1 -1
  222. package/types/javax/jcr/query/qom/PropertyValue/index.d.ts +1 -1
  223. package/types/javax/jcr/query/qom/QueryObjectModel/index.d.ts +1 -1
  224. package/types/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +73 -1
  225. package/types/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +1 -1
  226. package/types/javax/jcr/query/qom/SameNode/index.d.ts +1 -1
  227. package/types/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +1 -1
  228. package/types/javax/jcr/query/qom/Selector/index.d.ts +1 -1
  229. package/types/javax/jcr/query/qom/StaticOperand/index.d.ts +1 -1
  230. package/types/javax/jcr/query/qom/UpperCase/index.d.ts +1 -1
  231. package/types/javax/jcr/security/AccessControlList/index.d.ts +1 -1
  232. package/types/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +1 -1
  233. package/types/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +1 -1
  234. package/types/javax/jcr/security/Privilege/index.d.ts +127 -43
  235. package/types/javax/jcr/version/Version/index.d.ts +1 -1
  236. package/types/javax/jcr/version/VersionHistory/index.d.ts +1 -1
  237. package/types/javax/jcr/version/VersionIterator/index.d.ts +1 -1
  238. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.d.ts +9 -0
  239. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.js +11 -0
  240. package/types/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +9 -5
  241. package/types/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +1 -1
  242. package/types/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +1 -1
  243. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.d.ts +49 -0
  244. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.js +12 -0
  245. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.d.ts +83 -0
  246. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.js +21 -0
  247. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.d.ts +29 -0
  248. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.js +12 -0
  249. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.d.ts +29 -0
  250. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.js +12 -0
  251. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.d.ts +65 -0
  252. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.js +18 -0
  253. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.d.ts +23 -0
  254. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.js +11 -0
  255. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.d.ts +17 -0
  256. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.js +10 -0
  257. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +1241 -0
  258. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +189 -0
  259. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.d.ts +29 -0
  260. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.js +12 -0
  261. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.d.ts +89 -0
  262. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.js +22 -0
  263. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.d.ts +25 -0
  264. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.js +11 -0
  265. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.d.ts +17 -0
  266. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.js +10 -0
  267. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.d.ts +17 -0
  268. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.js +10 -0
  269. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.d.ts +23 -0
  270. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.js +11 -0
  271. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.d.ts +35 -0
  272. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.js +13 -0
  273. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.d.ts +23 -0
  274. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.js +11 -0
  275. package/types/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +2 -2
  276. package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +22 -2
  277. package/types/senselogic/sitevision/api/search/SearchHit/index.d.ts +16 -2
  278. package/types/senselogic/sitevision/api/search/SearchResult/index.d.ts +28 -6
  279. package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +31 -1
  280. package/types/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +1 -1
@@ -1,166 +1,3 @@
1
- /**
2
- * Checks if an object is a <code>String</code>.
3
- * @param aObject the object to be checked
4
- * @return whether <code>aObject</code> is a <code>java.lang.String</code> or not.
5
- */
6
- export function isString(aObject: unknown): boolean;
7
-
8
- /**
9
- * Checks if an object is a <code>Boolean</code>.
10
- * @param aObject the object to be checked
11
- * @return whether <code>aObject</code> is a <code>java.lang.Boolean</code> or not.
12
- */
13
- export function isBoolean(aObject: unknown): boolean;
14
-
15
- /**
16
- * Checks if an object is an <code>Integer</code>.
17
- * @param aObject the object to be checked
18
- * @return whether <code>aObject</code> is a <code>java.lang.Integer</code> or not.
19
- */
20
- export function isInteger(aObject: unknown): boolean;
21
-
22
- /**
23
- * Checks if an object is a <code>Long</code>.
24
- * @param aObject the object to be checked
25
- * @return whether <code>aObject</code> is a <code>java.lang.Long</code> or not.
26
- */
27
- export function isLong(aObject: unknown): boolean;
28
-
29
- /**
30
- * Checks if an object is a <code>Double</code>.
31
- * @param aObject the object to be checked
32
- * @return whether <code>aObject</code> is a <code>java.lang.Double</code> or not.
33
- */
34
- export function isDouble(aObject: unknown): boolean;
35
-
36
- /**
37
- * Checks if an object is a <code>Float</code>.
38
- * @param aObject the object to be checked
39
- * @return whether <code>aObject</code> is a <code>java.lang.Float</code> or not.
40
- */
41
- export function isFloat(aObject: unknown): boolean;
42
-
43
- /**
44
- * Checks if an object is a <code>Number</code>.
45
- * @param aObject the object to be checked
46
- * @return whether <code>aObject</code> is a <code>java.lang.Number</code> or not.
47
- * @since Sitevision 4.2.3
48
- */
49
- export function isNumber(aObject: unknown): boolean;
50
-
51
- /**
52
- * Checks if an object is a <code>Node</code>.
53
- * @param aObject the object to be checked
54
- * @return whether <code>aObject</code> is a <code>{@link javax.jcr.Node}</code> or not.
55
- * @see senselogic.sitevision.api.node.NodeTypeUtil
56
- */
57
- export function isNode(aObject: unknown): boolean;
58
-
59
- /**
60
- * Checks if an object is a <code>Property</code>.
61
- * @param aObject the object to be checked
62
- * @return whether <code>aObject</code> is a <code>{@link javax.jcr.Property}</code> or not.
63
- */
64
- export function isProperty(aObject: unknown): boolean;
65
-
66
- /**
67
- * Checks if an object is a <code>Date</code>.
68
- * @param aObject the object to be checked
69
- * @return whether <code>aObject</code> is a <code>java.util.Date</code> or not.
70
- */
71
- export function isDate(aObject: unknown): boolean;
72
-
73
- /**
74
- * Checks if an object is a <code>Calendar</code>.
75
- * @param aObject the object to be checked
76
- * @return whether <code>aObject</code> is a <code>java.lang.Calendar</code> or not.
77
- * @since Sitevision 4.2.3
78
- */
79
- export function isCalendar(aObject: unknown): boolean;
80
-
81
- /**
82
- * Checks if an object is a <code>List</code>.
83
- * @param aObject the object to be checked
84
- * @return whether <code>aObject</code> is a <code>java.util.List</code> or not.
85
- */
86
- export function isList(aObject: unknown): boolean;
87
-
88
- /**
89
- * Checks if an object is a <code>Map</code>.
90
- * @param aObject the object to be checked
91
- * @return whether <code>aObject</code> is a <code>java.util.Map</code> or not.
92
- */
93
- export function isMap(aObject: unknown): boolean;
94
-
95
- /**
96
- * Checks if an object is a <code>Set</code>.
97
- * @param aObject the object to be checked
98
- * @return whether <code>aObject</code> is a <code>java.util.Set</code> or not.
99
- */
100
- export function isSet(aObject: unknown): boolean;
101
-
102
- /**
103
- * Checks if an object is a <code>Collection</code>.
104
- * @param aObject the object to be checked
105
- * @return whether <code>aObject</code> is a <code>java.util.Collection</code> or not.
106
- */
107
- export function isCollection(aObject: unknown): boolean;
108
-
109
- /**
110
- * Checks if an object is an <code>Iterator</code>.
111
- * @param aObject the object to be checked
112
- * @return whether <code>aObject</code> is a <code>java.util.Iterator</code> or not.
113
- */
114
- export function isIterator(aObject: unknown): boolean;
115
-
116
- /**
117
- * Checks if an object is an <code>Iterable</code>.
118
- * @param aObject the object to be checked
119
- * @return whether <code>aObject</code> is a <code>java.lang.Iterable</code> or not.
120
- * @since Sitevision 4.2.3
121
- */
122
- export function isIterable(aObject: unknown): boolean;
123
-
124
- /**
125
- * Checks if an object is a <code>Serializable</code>.
126
- * @param aObject the object to be checked
127
- * @return whether <code>aObject</code> is a <code>java.io.Serializable</code> or not.
128
- * @since Sitevision 4.2.3
129
- */
130
- export function isSerializable(aObject: unknown): boolean;
131
-
132
- /**
133
- * Checks if an object is a <code>Comparator</code>.
134
- * @param aObject the object to be checked
135
- * @return whether <code>aObject</code> is a <code>java.lang.Comparator</code> or not.
136
- * @since Sitevision 4.2.3
137
- */
138
- export function isComparator(aObject: unknown): boolean;
139
-
140
- /**
141
- * Checks if an object is a <code>Comparable</code>.
142
- * @param aObject the object to be checked
143
- * @return whether <code>aObject</code> is a <code>java.lang.Comparable</code> or not.
144
- * @since Sitevision 4.2.3
145
- */
146
- export function isComparable(aObject: unknown): boolean;
147
-
148
- /**
149
- * Checks if an object is an <code>Exception</code>.
150
- * @param aObject the object to be checked
151
- * @return whether <code>aObject</code> is a <code>java.lang.Exception</code> or not.
152
- * @since Sitevision 4.2.3
153
- */
154
- export function isException(aObject: unknown): boolean;
155
-
156
- /**
157
- * Checks if an object is a <code>Throwable</code>.
158
- * @param aObject the object to be checked
159
- * @return whether <code>aObject</code> is a <code>java.lang.Throwable</code> or not.
160
- * @since Sitevision 4.2.3
161
- */
162
- export function isThrowable(aObject: unknown): boolean;
163
-
164
1
  /**
165
2
  * Instance type utility interface.
166
3
  *
@@ -172,31 +9,173 @@ export function isThrowable(aObject: unknown): boolean;
172
9
  * @author Magnus Lövgren
173
10
  * @since Sitevision 2.6.2
174
11
  */
175
- declare namespace instanceTypeUtil {
176
- export {
177
- isString,
178
- isBoolean,
179
- isInteger,
180
- isLong,
181
- isDouble,
182
- isFloat,
183
- isNumber,
184
- isNode,
185
- isProperty,
186
- isDate,
187
- isCalendar,
188
- isList,
189
- isMap,
190
- isSet,
191
- isCollection,
192
- isIterator,
193
- isIterable,
194
- isSerializable,
195
- isComparator,
196
- isComparable,
197
- isException,
198
- isThrowable,
199
- };
12
+ export interface InstanceTypeUtil {
13
+ /**
14
+ * Checks if an object is a <code>String</code>.
15
+ * @param aObject the object to be checked
16
+ * @return whether <code>aObject</code> is a <code>java.lang.String</code> or not.
17
+ */
18
+ isString(aObject: unknown): boolean;
19
+
20
+ /**
21
+ * Checks if an object is a <code>Boolean</code>.
22
+ * @param aObject the object to be checked
23
+ * @return whether <code>aObject</code> is a <code>java.lang.Boolean</code> or not.
24
+ */
25
+ isBoolean(aObject: unknown): boolean;
26
+
27
+ /**
28
+ * Checks if an object is an <code>Integer</code>.
29
+ * @param aObject the object to be checked
30
+ * @return whether <code>aObject</code> is a <code>java.lang.Integer</code> or not.
31
+ */
32
+ isInteger(aObject: unknown): boolean;
33
+
34
+ /**
35
+ * Checks if an object is a <code>Long</code>.
36
+ * @param aObject the object to be checked
37
+ * @return whether <code>aObject</code> is a <code>java.lang.Long</code> or not.
38
+ */
39
+ isLong(aObject: unknown): boolean;
40
+
41
+ /**
42
+ * Checks if an object is a <code>Double</code>.
43
+ * @param aObject the object to be checked
44
+ * @return whether <code>aObject</code> is a <code>java.lang.Double</code> or not.
45
+ */
46
+ isDouble(aObject: unknown): boolean;
47
+
48
+ /**
49
+ * Checks if an object is a <code>Float</code>.
50
+ * @param aObject the object to be checked
51
+ * @return whether <code>aObject</code> is a <code>java.lang.Float</code> or not.
52
+ */
53
+ isFloat(aObject: unknown): boolean;
54
+
55
+ /**
56
+ * Checks if an object is a <code>Number</code>.
57
+ * @param aObject the object to be checked
58
+ * @return whether <code>aObject</code> is a <code>java.lang.Number</code> or not.
59
+ * @since Sitevision 4.2.3
60
+ */
61
+ isNumber(aObject: unknown): boolean;
62
+
63
+ /**
64
+ * Checks if an object is a <code>Node</code>.
65
+ * @param aObject the object to be checked
66
+ * @return whether <code>aObject</code> is a <code>{@link javax.jcr.Node}</code> or not.
67
+ * @see senselogic.sitevision.api.node.NodeTypeUtil
68
+ */
69
+ isNode(aObject: unknown): boolean;
70
+
71
+ /**
72
+ * Checks if an object is a <code>Property</code>.
73
+ * @param aObject the object to be checked
74
+ * @return whether <code>aObject</code> is a <code>{@link javax.jcr.Property}</code> or not.
75
+ */
76
+ isProperty(aObject: unknown): boolean;
77
+
78
+ /**
79
+ * Checks if an object is a <code>Date</code>.
80
+ * @param aObject the object to be checked
81
+ * @return whether <code>aObject</code> is a <code>java.util.Date</code> or not.
82
+ */
83
+ isDate(aObject: unknown): boolean;
84
+
85
+ /**
86
+ * Checks if an object is a <code>Calendar</code>.
87
+ * @param aObject the object to be checked
88
+ * @return whether <code>aObject</code> is a <code>java.lang.Calendar</code> or not.
89
+ * @since Sitevision 4.2.3
90
+ */
91
+ isCalendar(aObject: unknown): boolean;
92
+
93
+ /**
94
+ * Checks if an object is a <code>List</code>.
95
+ * @param aObject the object to be checked
96
+ * @return whether <code>aObject</code> is a <code>java.util.List</code> or not.
97
+ */
98
+ isList(aObject: unknown): boolean;
99
+
100
+ /**
101
+ * Checks if an object is a <code>Map</code>.
102
+ * @param aObject the object to be checked
103
+ * @return whether <code>aObject</code> is a <code>java.util.Map</code> or not.
104
+ */
105
+ isMap(aObject: unknown): boolean;
106
+
107
+ /**
108
+ * Checks if an object is a <code>Set</code>.
109
+ * @param aObject the object to be checked
110
+ * @return whether <code>aObject</code> is a <code>java.util.Set</code> or not.
111
+ */
112
+ isSet(aObject: unknown): boolean;
113
+
114
+ /**
115
+ * Checks if an object is a <code>Collection</code>.
116
+ * @param aObject the object to be checked
117
+ * @return whether <code>aObject</code> is a <code>java.util.Collection</code> or not.
118
+ */
119
+ isCollection(aObject: unknown): boolean;
120
+
121
+ /**
122
+ * Checks if an object is an <code>Iterator</code>.
123
+ * @param aObject the object to be checked
124
+ * @return whether <code>aObject</code> is a <code>java.util.Iterator</code> or not.
125
+ */
126
+ isIterator(aObject: unknown): boolean;
127
+
128
+ /**
129
+ * Checks if an object is an <code>Iterable</code>.
130
+ * @param aObject the object to be checked
131
+ * @return whether <code>aObject</code> is a <code>java.lang.Iterable</code> or not.
132
+ * @since Sitevision 4.2.3
133
+ */
134
+ isIterable(aObject: unknown): boolean;
135
+
136
+ /**
137
+ * Checks if an object is a <code>Serializable</code>.
138
+ * @param aObject the object to be checked
139
+ * @return whether <code>aObject</code> is a <code>java.io.Serializable</code> or not.
140
+ * @since Sitevision 4.2.3
141
+ */
142
+ isSerializable(aObject: unknown): boolean;
143
+
144
+ /**
145
+ * Checks if an object is a <code>Comparator</code>.
146
+ * @param aObject the object to be checked
147
+ * @return whether <code>aObject</code> is a <code>java.lang.Comparator</code> or not.
148
+ * @since Sitevision 4.2.3
149
+ */
150
+ isComparator(aObject: unknown): boolean;
151
+
152
+ /**
153
+ * Checks if an object is a <code>Comparable</code>.
154
+ * @param aObject the object to be checked
155
+ * @return whether <code>aObject</code> is a <code>java.lang.Comparable</code> or not.
156
+ * @since Sitevision 4.2.3
157
+ */
158
+ isComparable(aObject: unknown): boolean;
159
+
160
+ /**
161
+ * Checks if an object is an <code>Exception</code>.
162
+ * @param aObject the object to be checked
163
+ * @return whether <code>aObject</code> is a <code>java.lang.Exception</code> or not.
164
+ * @since Sitevision 4.2.3
165
+ */
166
+ isException(aObject: unknown): boolean;
167
+
168
+ /**
169
+ * Checks if an object is a <code>Throwable</code>.
170
+ * @param aObject the object to be checked
171
+ * @return whether <code>aObject</code> is a <code>java.lang.Throwable</code> or not.
172
+ * @since Sitevision 4.2.3
173
+ */
174
+ isThrowable(aObject: unknown): boolean;
200
175
  }
201
176
 
177
+ declare namespace InstanceTypeUtil {}
178
+
179
+ declare var instanceTypeUtil: InstanceTypeUtil;
180
+
202
181
  export default instanceTypeUtil;
@@ -1,130 +1,5 @@
1
1
  import type { Node } from "../../types/javax/jcr/Node";
2
2
 
3
- /**
4
- * Create a JWT token with SHA hashing.
5
- *
6
- * <p>
7
- * When creating a JWT token, Sitevision always adds an IAT (issued at) claim. The IAT date is set to the time of creation.
8
- * Custom <em>claims</em> can be of the following types.
9
- * </p>
10
- * <ul>
11
- * <li>String</li>
12
- * <li>Boolean</li>
13
- * <li>Integer</li>
14
- * <li>Long</li>
15
- * <li>Array of String</li>
16
- * <li>Array of Long</li>
17
- * </ul>
18
- *
19
- * <p>
20
- * JWT tokens signed using a pre-shared key can use an <em>algorithm</em> of the following types:
21
- * </p>
22
- * <ul>
23
- * <li>HS256</li>
24
- * <li>HS384</li>
25
- * <li>HS512</li>
26
- * </ul>
27
- * @param aClaims The claims to send as payload. Claim values can be of types String, Boolean, Integer, Long and also arrays of Strings or Longs
28
- * @param aAlgorithm Hashing algorithm used, viable values are HS256, HS384 and HS512
29
- * @param aPreSharedKey Pre-shared key used for hashing.
30
- * @return A JWT token
31
- * @throws JwtException If an error occurs when creating the JWT token
32
- * @throws IllegalArgumentException If aPreSharedKey or aAlgorithm is blank.
33
- */
34
- export function createSHAToken(
35
- aClaims: unknown,
36
- aAlgorithm: string,
37
- aPreSharedKey: string
38
- ): string;
39
-
40
- /**
41
- * Create a JWT token signed with a RSA keypair.
42
- *
43
- * <p>
44
- * When creating a JWT token, Sitevision always adds an IAT (issued at) claim. The IAT date is set to the time of creation.
45
- * Custom <em>claims</em> can be of the following types.
46
- * </p>
47
- * <ul>
48
- * <li>String</li>
49
- * <li>Boolean</li>
50
- * <li>Integer</li>
51
- * <li>Long</li>
52
- * <li>Array of String</li>
53
- * <li>Array of Long</li>
54
- * </ul>
55
- *
56
- * <p>
57
- * JWT tokens signed using a pre-shared key can use an <em>algorithm</em> of the following types:
58
- * </p>
59
- * <ul>
60
- * <li>RS256</li>
61
- * <li>RS384</li>
62
- * <li>RS512</li>
63
- * </ul>
64
- *
65
- * <p>
66
- * When signing or decoding JWT using RSA keypair, Sitevision only support keys coded in standard PEM text format.
67
- * Private keys can use password, but if a key without password is used, an empty string as password must be supplied.
68
- * </p>
69
- * @param aClaims The claims to send as payload. Claim values can be of types String, Boolean, Integer, Long and also arrays of Strings or Longs
70
- * @param aAlgorithm Signing algorithm used, viable values are RS256, RS384 and RS512
71
- * @param aPrivateKey A sv:file or sv:temporaryFile with the PEM formatted RSA private key.
72
- * @param aPassword Password for the private key, use an empty string if the key is not password protected.
73
- * @return A JWT token
74
- * @throws ConstraintViolationException If the private key cannot be found or accessed
75
- * @throws JwtException If an error occurs when creating the JWT token
76
- * @throws IllegalArgumentException If aPassword is null, aAlgorithm is blank, aPrivateKey is null or if aPrivateKey is not a RSA private key.
77
- */
78
- export function createRSAToken(
79
- aClaims: unknown,
80
- aAlgorithm: string,
81
- aPrivateKey: Node,
82
- aPassword: string
83
- ): string;
84
-
85
- /**
86
- * Validate a JWT token created with SHA and a pre-shared key.
87
- *
88
- * <p>
89
- * The algorithm to decode is automatically detected by Sitevision from the token but it must be one of the following types:
90
- * </p>
91
- * <ul>
92
- * <li>HS256</li>
93
- * <li>HS384</li>
94
- * <li>HS512</li>
95
- * </ul>
96
- * @param aToken Token to validate
97
- * @param aPreSharedKey Pre-shared key that the hash was created with
98
- * @return A javascript object with the alg and payload if the token was correctly validated.
99
- * @throws JwtException If an error occurs the decoding the JWT token
100
- * @throws IllegalArgumentException If aToken or aPreSharedKey are blank.
101
- */
102
- export function decodeSHA(aToken: string, aPreSharedKey: string): unknown;
103
-
104
- /**
105
- * Validate a JWT token created using a RSA keypair.
106
- *
107
- * <p>
108
- * The algorithm to decode is automatically detected by Sitevision from the token but it must be one of the following types:
109
- * </p>
110
- * <ul>
111
- * <li>RS256</li>
112
- * <li>RS384</li>
113
- * <li>RS512</li>
114
- * </ul>
115
- *
116
- * <p>
117
- * When signing or decoding JWT using RSA keypair, Sitevision only support keys coded in standard PEM text format.
118
- * </p>
119
- * @param aToken Token to validate.
120
- * @param aPublicKey A sv:file or sv:temporaryFile containing the PEM formatted RSA public key for decrypting the JWT token.
121
- * @return A javascript object with the alg and payload if the token was correctly validated.
122
- * @throws ConstraintViolationException If the public key cannot be found or accessed
123
- * @throws JwtException If an error occurs the decoding the JWT token
124
- * @throws IllegalArgumentException If aToken is blank, aPublicKey is null or aPublicKey is not a RSA public key
125
- */
126
- export function decodeRSA(aToken: string, aPublicKey: Node): unknown;
127
-
128
3
  /**
129
4
  * JSON Web Token (JWT) utilities.
130
5
  *
@@ -139,8 +14,135 @@ export function decodeRSA(aToken: string, aPublicKey: Node): unknown;
139
14
  * @since Sitevision 5.1
140
15
  * @author Anders Sjöstrand
141
16
  */
142
- declare namespace jwtUtil {
143
- export { createSHAToken, createRSAToken, decodeSHA, decodeRSA };
17
+ export interface JwtUtil {
18
+ /**
19
+ * Create a JWT token with SHA hashing.
20
+ *
21
+ * <p>
22
+ * When creating a JWT token, Sitevision always adds an IAT (issued at) claim. The IAT date is set to the time of creation.
23
+ * Custom <em>claims</em> can be of the following types.
24
+ * </p>
25
+ * <ul>
26
+ * <li>String</li>
27
+ * <li>Boolean</li>
28
+ * <li>Integer</li>
29
+ * <li>Long</li>
30
+ * <li>Array of String</li>
31
+ * <li>Array of Long</li>
32
+ * </ul>
33
+ *
34
+ * <p>
35
+ * JWT tokens signed using a pre-shared key can use an <em>algorithm</em> of the following types:
36
+ * </p>
37
+ * <ul>
38
+ * <li>HS256</li>
39
+ * <li>HS384</li>
40
+ * <li>HS512</li>
41
+ * </ul>
42
+ * @param aClaims The claims to send as payload. Claim values can be of types String, Boolean, Integer, Long and also arrays of Strings or Longs
43
+ * @param aAlgorithm Hashing algorithm used, viable values are HS256, HS384 and HS512
44
+ * @param aPreSharedKey Pre-shared key used for hashing.
45
+ * @return A JWT token
46
+ * @throws JwtException If an error occurs when creating the JWT token
47
+ * @throws IllegalArgumentException If aPreSharedKey or aAlgorithm is blank.
48
+ */
49
+ createSHAToken(
50
+ aClaims: unknown,
51
+ aAlgorithm: string,
52
+ aPreSharedKey: string
53
+ ): string;
54
+
55
+ /**
56
+ * Create a JWT token signed with a RSA keypair.
57
+ *
58
+ * <p>
59
+ * When creating a JWT token, Sitevision always adds an IAT (issued at) claim. The IAT date is set to the time of creation.
60
+ * Custom <em>claims</em> can be of the following types.
61
+ * </p>
62
+ * <ul>
63
+ * <li>String</li>
64
+ * <li>Boolean</li>
65
+ * <li>Integer</li>
66
+ * <li>Long</li>
67
+ * <li>Array of String</li>
68
+ * <li>Array of Long</li>
69
+ * </ul>
70
+ *
71
+ * <p>
72
+ * JWT tokens signed using a pre-shared key can use an <em>algorithm</em> of the following types:
73
+ * </p>
74
+ * <ul>
75
+ * <li>RS256</li>
76
+ * <li>RS384</li>
77
+ * <li>RS512</li>
78
+ * </ul>
79
+ *
80
+ * <p>
81
+ * When signing or decoding JWT using RSA keypair, Sitevision only support keys coded in standard PEM text format.
82
+ * Private keys can use password, but if a key without password is used, an empty string as password must be supplied.
83
+ * </p>
84
+ * @param aClaims The claims to send as payload. Claim values can be of types String, Boolean, Integer, Long and also arrays of Strings or Longs
85
+ * @param aAlgorithm Signing algorithm used, viable values are RS256, RS384 and RS512
86
+ * @param aPrivateKey A sv:file or sv:temporaryFile with the PEM formatted RSA private key.
87
+ * @param aPassword Password for the private key, use an empty string if the key is not password protected.
88
+ * @return A JWT token
89
+ * @throws ConstraintViolationException If the private key cannot be found or accessed
90
+ * @throws JwtException If an error occurs when creating the JWT token
91
+ * @throws IllegalArgumentException If aPassword is null, aAlgorithm is blank, aPrivateKey is null or if aPrivateKey is not a RSA private key.
92
+ */
93
+ createRSAToken(
94
+ aClaims: unknown,
95
+ aAlgorithm: string,
96
+ aPrivateKey: Node,
97
+ aPassword: string
98
+ ): string;
99
+
100
+ /**
101
+ * Validate a JWT token created with SHA and a pre-shared key.
102
+ *
103
+ * <p>
104
+ * The algorithm to decode is automatically detected by Sitevision from the token but it must be one of the following types:
105
+ * </p>
106
+ * <ul>
107
+ * <li>HS256</li>
108
+ * <li>HS384</li>
109
+ * <li>HS512</li>
110
+ * </ul>
111
+ * @param aToken Token to validate
112
+ * @param aPreSharedKey Pre-shared key that the hash was created with
113
+ * @return A javascript object with the alg and payload if the token was correctly validated.
114
+ * @throws JwtException If an error occurs the decoding the JWT token
115
+ * @throws IllegalArgumentException If aToken or aPreSharedKey are blank.
116
+ */
117
+ decodeSHA(aToken: string, aPreSharedKey: string): unknown;
118
+
119
+ /**
120
+ * Validate a JWT token created using a RSA keypair.
121
+ *
122
+ * <p>
123
+ * The algorithm to decode is automatically detected by Sitevision from the token but it must be one of the following types:
124
+ * </p>
125
+ * <ul>
126
+ * <li>RS256</li>
127
+ * <li>RS384</li>
128
+ * <li>RS512</li>
129
+ * </ul>
130
+ *
131
+ * <p>
132
+ * When signing or decoding JWT using RSA keypair, Sitevision only support keys coded in standard PEM text format.
133
+ * </p>
134
+ * @param aToken Token to validate.
135
+ * @param aPublicKey A sv:file or sv:temporaryFile containing the PEM formatted RSA public key for decrypting the JWT token.
136
+ * @return A javascript object with the alg and payload if the token was correctly validated.
137
+ * @throws ConstraintViolationException If the public key cannot be found or accessed
138
+ * @throws JwtException If an error occurs the decoding the JWT token
139
+ * @throws IllegalArgumentException If aToken is blank, aPublicKey is null or aPublicKey is not a RSA public key
140
+ */
141
+ decodeRSA(aToken: string, aPublicKey: Node): unknown;
144
142
  }
145
143
 
144
+ declare namespace JwtUtil {}
145
+
146
+ declare var jwtUtil: JwtUtil;
147
+
146
148
  export default jwtUtil;