@sudoplatform/sudo-common 6.1.0 → 6.3.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 (193) hide show
  1. package/.gitignore +1 -0
  2. package/.yarn/releases/yarn-1.22.18.cjs +147520 -0
  3. package/.yarnrc +5 -0
  4. package/dependencies-report.json +118 -8
  5. package/docs/assets/highlight.css +1 -1
  6. package/docs/assets/main.js +2 -2
  7. package/docs/assets/search.js +1 -1
  8. package/docs/assets/style.css +32 -2
  9. package/docs/classes/AccountLockedError.html +3 -3
  10. package/docs/classes/AuthenticationError.html +3 -3
  11. package/docs/classes/Base64.html +2 -2
  12. package/docs/classes/Buffer.html +2 -2
  13. package/docs/classes/ConfigurationNotSetError.html +3 -3
  14. package/docs/classes/ConfigurationSetNotFoundError.html +3 -3
  15. package/docs/classes/DecodeError.html +3 -3
  16. package/docs/classes/DefaultConfigurationManager.html +13 -6
  17. package/docs/classes/DefaultLogger.html +7 -7
  18. package/docs/classes/DefaultSudoKeyArchive.html +13 -13
  19. package/docs/classes/DefaultSudoKeyManager.html +28 -28
  20. package/docs/classes/FatalError.html +3 -3
  21. package/docs/classes/IllegalArgumentError.html +3 -3
  22. package/docs/classes/IllegalStateError.html +3 -3
  23. package/docs/classes/InsufficientEntitlementsError.html +3 -3
  24. package/docs/classes/InvalidOwnershipProofError.html +3 -3
  25. package/docs/classes/InvalidTokenError.html +3 -3
  26. package/docs/classes/KeyArchiveDecodingError.html +3 -3
  27. package/docs/classes/KeyArchiveIncorrectPasswordError.html +3 -3
  28. package/docs/classes/KeyArchiveMissingError.html +3 -3
  29. package/docs/classes/KeyArchiveNoPasswordRequiredError.html +3 -3
  30. package/docs/classes/KeyArchivePasswordRequiredError.html +3 -3
  31. package/docs/classes/KeyArchiveTypeError.html +3 -3
  32. package/docs/classes/KeyArchiveUnknownKeyTypeError.html +3 -3
  33. package/docs/classes/KeyArchiveVersionError.html +3 -3
  34. package/docs/classes/KeyNotFoundError.html +3 -3
  35. package/docs/classes/KeyStoreNotExportableError.html +3 -3
  36. package/docs/classes/LimitExceededError.html +3 -3
  37. package/docs/classes/NoEntitlementsError.html +3 -3
  38. package/docs/classes/NotAuthorizedError.html +3 -3
  39. package/docs/classes/NotRegisteredError.html +3 -3
  40. package/docs/classes/NotSignedInError.html +3 -3
  41. package/docs/classes/OperationNotImplementedError.html +3 -3
  42. package/docs/classes/RegisterError.html +3 -3
  43. package/docs/classes/RequestFailedError.html +5 -5
  44. package/docs/classes/ServiceError.html +3 -3
  45. package/docs/classes/SignOutError.html +3 -3
  46. package/docs/classes/SudoCryptoProviderDefaults.html +1 -1
  47. package/docs/classes/UnknownGraphQLError.html +3 -3
  48. package/docs/classes/UnrecognizedAlgorithmError.html +3 -3
  49. package/docs/classes/UserNotConfirmedError.html +3 -3
  50. package/docs/classes/VersionMismatchError.html +3 -3
  51. package/docs/enums/CachePolicy.html +2 -2
  52. package/docs/enums/EncryptionAlgorithm.html +2 -2
  53. package/docs/enums/KeyArchiveKeyType.html +2 -2
  54. package/docs/enums/KeyDataKeyFormat.html +3 -3
  55. package/docs/enums/KeyDataKeyType.html +2 -2
  56. package/docs/enums/ListOperationResultStatus.html +4 -4
  57. package/docs/enums/PublicKeyFormat.html +1 -1
  58. package/docs/index.html +2 -2
  59. package/docs/interfaces/AsymmetricEncryptionOptions.html +2 -2
  60. package/docs/interfaces/BooleanFilter.html +2 -2
  61. package/docs/interfaces/ConfigurationManager.html +13 -6
  62. package/docs/interfaces/KeyData.html +2 -2
  63. package/docs/interfaces/ListOperationFailureResult.html +2 -2
  64. package/docs/interfaces/ListOperationPartialResult.html +4 -4
  65. package/docs/interfaces/ListOperationSuccessResult.html +3 -3
  66. package/docs/interfaces/ListOutput.html +2 -2
  67. package/docs/interfaces/Logger.html +7 -7
  68. package/docs/interfaces/Owner.html +1 -1
  69. package/docs/interfaces/PublicKey.html +1 -1
  70. package/docs/interfaces/ServiceCompatibilityInfo.html +17 -0
  71. package/docs/interfaces/StringFilter.html +2 -2
  72. package/docs/interfaces/SudoCryptoProvider.html +28 -28
  73. package/docs/interfaces/SudoKeyArchive.html +10 -10
  74. package/docs/interfaces/SudoKeyManager.html +28 -28
  75. package/docs/interfaces/SymmetricEncryptionOptions.html +2 -2
  76. package/docs/interfaces/ValidationResult.html +11 -0
  77. package/docs/modules.html +6 -6
  78. package/github/.gitignore +1 -0
  79. package/github/.yarn/releases/yarn-1.22.18.cjs +147520 -0
  80. package/github/.yarnrc +5 -0
  81. package/github/docs/assets/highlight.css +1 -1
  82. package/github/docs/assets/main.js +2 -2
  83. package/github/docs/assets/search.js +1 -1
  84. package/github/docs/assets/style.css +32 -2
  85. package/github/docs/classes/AccountLockedError.html +3 -3
  86. package/github/docs/classes/AuthenticationError.html +3 -3
  87. package/github/docs/classes/Base64.html +2 -2
  88. package/github/docs/classes/Buffer.html +2 -2
  89. package/github/docs/classes/ConfigurationNotSetError.html +3 -3
  90. package/github/docs/classes/ConfigurationSetNotFoundError.html +3 -3
  91. package/github/docs/classes/DecodeError.html +3 -3
  92. package/github/docs/classes/DefaultConfigurationManager.html +13 -6
  93. package/github/docs/classes/DefaultLogger.html +7 -7
  94. package/github/docs/classes/DefaultSudoKeyArchive.html +13 -13
  95. package/github/docs/classes/DefaultSudoKeyManager.html +28 -28
  96. package/github/docs/classes/FatalError.html +3 -3
  97. package/github/docs/classes/IllegalArgumentError.html +3 -3
  98. package/github/docs/classes/IllegalStateError.html +3 -3
  99. package/github/docs/classes/InsufficientEntitlementsError.html +3 -3
  100. package/github/docs/classes/InvalidOwnershipProofError.html +3 -3
  101. package/github/docs/classes/InvalidTokenError.html +3 -3
  102. package/github/docs/classes/KeyArchiveDecodingError.html +3 -3
  103. package/github/docs/classes/KeyArchiveIncorrectPasswordError.html +3 -3
  104. package/github/docs/classes/KeyArchiveMissingError.html +3 -3
  105. package/github/docs/classes/KeyArchiveNoPasswordRequiredError.html +3 -3
  106. package/github/docs/classes/KeyArchivePasswordRequiredError.html +3 -3
  107. package/github/docs/classes/KeyArchiveTypeError.html +3 -3
  108. package/github/docs/classes/KeyArchiveUnknownKeyTypeError.html +3 -3
  109. package/github/docs/classes/KeyArchiveVersionError.html +3 -3
  110. package/github/docs/classes/KeyNotFoundError.html +3 -3
  111. package/github/docs/classes/KeyStoreNotExportableError.html +3 -3
  112. package/github/docs/classes/LimitExceededError.html +3 -3
  113. package/github/docs/classes/NoEntitlementsError.html +3 -3
  114. package/github/docs/classes/NotAuthorizedError.html +3 -3
  115. package/github/docs/classes/NotRegisteredError.html +3 -3
  116. package/github/docs/classes/NotSignedInError.html +3 -3
  117. package/github/docs/classes/OperationNotImplementedError.html +3 -3
  118. package/github/docs/classes/RegisterError.html +3 -3
  119. package/github/docs/classes/RequestFailedError.html +5 -5
  120. package/github/docs/classes/ServiceError.html +3 -3
  121. package/github/docs/classes/SignOutError.html +3 -3
  122. package/github/docs/classes/SudoCryptoProviderDefaults.html +1 -1
  123. package/github/docs/classes/UnknownGraphQLError.html +3 -3
  124. package/github/docs/classes/UnrecognizedAlgorithmError.html +3 -3
  125. package/github/docs/classes/UserNotConfirmedError.html +3 -3
  126. package/github/docs/classes/VersionMismatchError.html +3 -3
  127. package/github/docs/enums/CachePolicy.html +2 -2
  128. package/github/docs/enums/EncryptionAlgorithm.html +2 -2
  129. package/github/docs/enums/KeyArchiveKeyType.html +2 -2
  130. package/github/docs/enums/KeyDataKeyFormat.html +3 -3
  131. package/github/docs/enums/KeyDataKeyType.html +2 -2
  132. package/github/docs/enums/ListOperationResultStatus.html +4 -4
  133. package/github/docs/enums/PublicKeyFormat.html +1 -1
  134. package/github/docs/index.html +2 -2
  135. package/github/docs/interfaces/AsymmetricEncryptionOptions.html +2 -2
  136. package/github/docs/interfaces/BooleanFilter.html +2 -2
  137. package/github/docs/interfaces/ConfigurationManager.html +13 -6
  138. package/github/docs/interfaces/KeyData.html +2 -2
  139. package/github/docs/interfaces/ListOperationFailureResult.html +2 -2
  140. package/github/docs/interfaces/ListOperationPartialResult.html +4 -4
  141. package/github/docs/interfaces/ListOperationSuccessResult.html +3 -3
  142. package/github/docs/interfaces/ListOutput.html +2 -2
  143. package/github/docs/interfaces/Logger.html +7 -7
  144. package/github/docs/interfaces/Owner.html +1 -1
  145. package/github/docs/interfaces/PublicKey.html +1 -1
  146. package/github/docs/interfaces/ServiceCompatibilityInfo.html +17 -0
  147. package/github/docs/interfaces/StringFilter.html +2 -2
  148. package/github/docs/interfaces/SudoCryptoProvider.html +28 -28
  149. package/github/docs/interfaces/SudoKeyArchive.html +10 -10
  150. package/github/docs/interfaces/SudoKeyManager.html +28 -28
  151. package/github/docs/interfaces/SymmetricEncryptionOptions.html +2 -2
  152. package/github/docs/interfaces/ValidationResult.html +11 -0
  153. package/github/docs/modules.html +6 -6
  154. package/github/package.json +30 -25
  155. package/github/src/configurationManager/defaultConfigurationManager.ts +156 -7
  156. package/github/src/errors/error.ts +5 -1
  157. package/github/src/types/types.ts +1 -0
  158. package/github/test/integration/defaultConfigurationManager.spec.ts +85 -0
  159. package/github/test/unit/configurationManager/defaultConfigurationManager.spec.ts +506 -0
  160. package/{test → github/test/unit}/errors/error.spec.ts +4 -19
  161. package/github/test/{sudoKeyArchive → unit}/keyType.spec.ts +0 -0
  162. package/{test → github/test/unit}/logging/logger.spec.ts +1 -1
  163. package/github/test/{sudoKeyArchive → unit}/sudoKeyArchive.spec.ts +0 -0
  164. package/github/test/{sudoKeyManager → unit}/sudoKeyManager.spec.ts +0 -0
  165. package/github/test/{utils → unit/utils}/base64.spec.ts +1 -1
  166. package/github/test/{utils → unit/utils}/buffer.spec.ts +1 -1
  167. package/{test → github/test/unit}/utils/listOperationResult.spec.ts +1 -1
  168. package/github/tsconfig.test.json +3 -1
  169. package/github/yarn.lock +1852 -1342
  170. package/lib/configurationManager/defaultConfigurationManager.d.ts +57 -0
  171. package/lib/configurationManager/defaultConfigurationManager.js +102 -7
  172. package/lib/errors/error.d.ts +1 -1
  173. package/lib/errors/error.js +3 -0
  174. package/lib/types/types.d.ts +1 -0
  175. package/lib/types/types.js +1 -0
  176. package/package.json +30 -25
  177. package/src/configurationManager/defaultConfigurationManager.ts +156 -7
  178. package/src/errors/error.ts +5 -1
  179. package/src/types/types.ts +1 -0
  180. package/test/integration/defaultConfigurationManager.spec.ts +85 -0
  181. package/test/unit/configurationManager/defaultConfigurationManager.spec.ts +506 -0
  182. package/{github/test → test/unit}/errors/error.spec.ts +4 -19
  183. package/test/{sudoKeyArchive → unit}/keyType.spec.ts +0 -0
  184. package/{github/test → test/unit}/logging/logger.spec.ts +1 -1
  185. package/test/{sudoKeyArchive → unit}/sudoKeyArchive.spec.ts +0 -0
  186. package/test/{sudoKeyManager → unit}/sudoKeyManager.spec.ts +0 -0
  187. package/test/{utils → unit/utils}/base64.spec.ts +1 -1
  188. package/test/{utils → unit/utils}/buffer.spec.ts +1 -1
  189. package/{github/test → test/unit}/utils/listOperationResult.spec.ts +1 -1
  190. package/tsconfig.test.json +3 -1
  191. package/yarn.lock +1852 -1342
  192. package/github/test/configurationManager/defaultConfigurationManager.spec.ts +0 -185
  193. package/test/configurationManager/defaultConfigurationManager.spec.ts +0 -185
package/.gitignore CHANGED
@@ -10,3 +10,4 @@ yarn-error.log
10
10
  coverage
11
11
  .yalc/
12
12
  yalc.lock
13
+ config