@sudoplatform/sudo-common 5.6.0 → 5.9.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 (197) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/bin/yarn-audit-with-suppression.sh +1 -1
  3. package/dependencies-report.json +2 -2
  4. package/docs/.nojekyll +1 -0
  5. package/docs/assets/highlight.css +57 -0
  6. package/docs/assets/icons.css +1043 -0
  7. package/docs/assets/{images/icons.png → icons.png} +0 -0
  8. package/docs/assets/{images/icons@2x.png → icons@2x.png} +0 -0
  9. package/docs/assets/main.js +52 -0
  10. package/docs/assets/search.js +1 -0
  11. package/docs/assets/style.css +1384 -0
  12. package/docs/assets/{images/widgets.png → widgets.png} +0 -0
  13. package/docs/assets/{images/widgets@2x.png → widgets@2x.png} +0 -0
  14. package/docs/classes/AccountLockedError.html +7 -332
  15. package/docs/classes/AuthenticationError.html +8 -339
  16. package/docs/classes/Base64.html +3 -283
  17. package/docs/classes/Buffer.html +3 -324
  18. package/docs/classes/ConfigurationNotSetError.html +8 -333
  19. package/docs/classes/ConfigurationSetNotFoundError.html +7 -338
  20. package/docs/classes/DecodeError.html +7 -338
  21. package/docs/classes/DefaultConfigurationManager.html +18 -333
  22. package/docs/classes/DefaultLogger.html +19 -417
  23. package/docs/classes/DefaultSudoKeyArchive.html +61 -598
  24. package/docs/classes/DefaultSudoKeyManager.html +60 -1110
  25. package/docs/classes/FatalError.html +8 -339
  26. package/docs/classes/IllegalArgumentError.html +7 -338
  27. package/docs/classes/IllegalStateError.html +8 -339
  28. package/docs/classes/InsufficientEntitlementsError.html +8 -333
  29. package/docs/classes/InvalidOwnershipProofError.html +7 -332
  30. package/docs/classes/InvalidTokenError.html +7 -332
  31. package/docs/classes/KeyArchiveDecodingError.html +7 -338
  32. package/docs/classes/KeyArchiveIncorrectPasswordError.html +7 -338
  33. package/docs/classes/KeyArchiveMissingError.html +7 -338
  34. package/docs/classes/KeyArchiveNoPasswordRequiredError.html +7 -338
  35. package/docs/classes/KeyArchivePasswordRequiredError.html +7 -338
  36. package/docs/classes/KeyArchiveTypeError.html +7 -338
  37. package/docs/classes/KeyArchiveUnknownKeyTypeError.html +7 -338
  38. package/docs/classes/KeyArchiveVersionError.html +7 -338
  39. package/docs/classes/KeyNotFoundError.html +7 -338
  40. package/docs/classes/KeyStoreNotExportableError.html +7 -338
  41. package/docs/classes/LimitExceededError.html +8 -333
  42. package/docs/classes/NoEntitlementsError.html +7 -332
  43. package/docs/classes/NotAuthorizedError.html +8 -339
  44. package/docs/classes/NotRegisteredError.html +7 -338
  45. package/docs/classes/NotSignedInError.html +8 -333
  46. package/docs/classes/OperationNotImplementedError.html +7 -338
  47. package/docs/classes/RegisterError.html +8 -339
  48. package/docs/classes/RequestFailedError.html +12 -380
  49. package/docs/classes/ServiceError.html +9 -340
  50. package/docs/classes/SignOutError.html +7 -338
  51. package/docs/classes/SudoCryptoProviderDefaults.html +1 -224
  52. package/docs/classes/UnknownGraphQLError.html +7 -338
  53. package/docs/classes/UnrecognizedAlgorithmError.html +7 -0
  54. package/docs/classes/UserNotConfirmedError.html +8 -333
  55. package/docs/classes/VersionMismatchError.html +10 -335
  56. package/docs/enums/CachePolicy.html +4 -170
  57. package/docs/enums/EncryptionAlgorithm.html +5 -171
  58. package/docs/enums/KeyArchiveKeyType.html +4 -198
  59. package/docs/enums/KeyDataKeyFormat.html +18 -202
  60. package/docs/enums/KeyDataKeyType.html +3 -197
  61. package/docs/enums/ListOperationResultStatus.html +10 -0
  62. package/docs/enums/PublicKeyFormat.html +1 -162
  63. package/docs/index.html +14 -369
  64. package/docs/interfaces/AsymmetricEncryptionOptions.html +3 -163
  65. package/docs/interfaces/BooleanFilter.html +3 -177
  66. package/docs/interfaces/ConfigurationManager.html +37 -349
  67. package/docs/interfaces/KeyData.html +8 -236
  68. package/docs/interfaces/ListOperationFailureResult.html +5 -0
  69. package/docs/interfaces/ListOperationPartialResult.html +10 -0
  70. package/docs/interfaces/ListOperationSuccessResult.html +7 -0
  71. package/docs/interfaces/ListOutput.html +3 -185
  72. package/docs/interfaces/Logger.html +39 -401
  73. package/docs/interfaces/Owner.html +1 -170
  74. package/docs/interfaces/PublicKey.html +1 -170
  75. package/docs/interfaces/StringFilter.html +3 -191
  76. package/docs/interfaces/SudoCryptoProvider.html +172 -1305
  77. package/docs/interfaces/SudoKeyArchive.html +54 -490
  78. package/docs/interfaces/SudoKeyManager.html +167 -1298
  79. package/docs/interfaces/SymmetricEncryptionOptions.html +3 -177
  80. package/docs/modules.html +33 -895
  81. package/github/CHANGELOG.md +5 -1
  82. package/github/bin/yarn-audit-with-suppression.sh +1 -1
  83. package/github/docs/.nojekyll +1 -0
  84. package/github/docs/assets/highlight.css +57 -0
  85. package/github/docs/assets/icons.css +1043 -0
  86. package/github/docs/assets/{images/icons.png → icons.png} +0 -0
  87. package/github/docs/assets/{images/icons@2x.png → icons@2x.png} +0 -0
  88. package/github/docs/assets/main.js +52 -0
  89. package/github/docs/assets/search.js +1 -0
  90. package/github/docs/assets/style.css +1384 -0
  91. package/github/docs/assets/{images/widgets.png → widgets.png} +0 -0
  92. package/github/docs/assets/{images/widgets@2x.png → widgets@2x.png} +0 -0
  93. package/github/docs/classes/AccountLockedError.html +7 -332
  94. package/github/docs/classes/AuthenticationError.html +8 -339
  95. package/github/docs/classes/Base64.html +3 -283
  96. package/github/docs/classes/Buffer.html +3 -324
  97. package/github/docs/classes/ConfigurationNotSetError.html +8 -333
  98. package/github/docs/classes/ConfigurationSetNotFoundError.html +7 -338
  99. package/github/docs/classes/DecodeError.html +7 -338
  100. package/github/docs/classes/DefaultConfigurationManager.html +18 -333
  101. package/github/docs/classes/DefaultLogger.html +19 -417
  102. package/github/docs/classes/DefaultSudoKeyArchive.html +61 -598
  103. package/github/docs/classes/DefaultSudoKeyManager.html +60 -1110
  104. package/github/docs/classes/FatalError.html +8 -339
  105. package/github/docs/classes/IllegalArgumentError.html +7 -338
  106. package/github/docs/classes/IllegalStateError.html +8 -339
  107. package/github/docs/classes/InsufficientEntitlementsError.html +8 -333
  108. package/github/docs/classes/InvalidOwnershipProofError.html +7 -332
  109. package/github/docs/classes/InvalidTokenError.html +7 -332
  110. package/github/docs/classes/KeyArchiveDecodingError.html +7 -338
  111. package/github/docs/classes/KeyArchiveIncorrectPasswordError.html +7 -338
  112. package/github/docs/classes/KeyArchiveMissingError.html +7 -338
  113. package/github/docs/classes/KeyArchiveNoPasswordRequiredError.html +7 -338
  114. package/github/docs/classes/KeyArchivePasswordRequiredError.html +7 -338
  115. package/github/docs/classes/KeyArchiveTypeError.html +7 -338
  116. package/github/docs/classes/KeyArchiveUnknownKeyTypeError.html +7 -338
  117. package/github/docs/classes/KeyArchiveVersionError.html +7 -338
  118. package/github/docs/classes/KeyNotFoundError.html +7 -338
  119. package/github/docs/classes/KeyStoreNotExportableError.html +7 -338
  120. package/github/docs/classes/LimitExceededError.html +8 -333
  121. package/github/docs/classes/NoEntitlementsError.html +7 -332
  122. package/github/docs/classes/NotAuthorizedError.html +8 -339
  123. package/github/docs/classes/NotRegisteredError.html +7 -338
  124. package/github/docs/classes/NotSignedInError.html +8 -333
  125. package/github/docs/classes/OperationNotImplementedError.html +7 -338
  126. package/github/docs/classes/RegisterError.html +8 -339
  127. package/github/docs/classes/RequestFailedError.html +12 -380
  128. package/github/docs/classes/ServiceError.html +9 -340
  129. package/github/docs/classes/SignOutError.html +7 -338
  130. package/github/docs/classes/SudoCryptoProviderDefaults.html +1 -224
  131. package/github/docs/classes/UnknownGraphQLError.html +7 -338
  132. package/github/docs/classes/UnrecognizedAlgorithmError.html +7 -0
  133. package/github/docs/classes/UserNotConfirmedError.html +8 -333
  134. package/github/docs/classes/VersionMismatchError.html +10 -335
  135. package/github/docs/enums/CachePolicy.html +4 -170
  136. package/github/docs/enums/EncryptionAlgorithm.html +5 -171
  137. package/github/docs/enums/KeyArchiveKeyType.html +4 -198
  138. package/github/docs/enums/KeyDataKeyFormat.html +18 -202
  139. package/github/docs/enums/KeyDataKeyType.html +3 -197
  140. package/github/docs/enums/ListOperationResultStatus.html +10 -0
  141. package/github/docs/enums/PublicKeyFormat.html +1 -162
  142. package/github/docs/index.html +14 -369
  143. package/github/docs/interfaces/AsymmetricEncryptionOptions.html +3 -163
  144. package/github/docs/interfaces/BooleanFilter.html +3 -177
  145. package/github/docs/interfaces/ConfigurationManager.html +37 -349
  146. package/github/docs/interfaces/KeyData.html +8 -236
  147. package/github/docs/interfaces/ListOperationFailureResult.html +5 -0
  148. package/github/docs/interfaces/ListOperationPartialResult.html +10 -0
  149. package/github/docs/interfaces/ListOperationSuccessResult.html +7 -0
  150. package/github/docs/interfaces/ListOutput.html +3 -185
  151. package/github/docs/interfaces/Logger.html +39 -401
  152. package/github/docs/interfaces/Owner.html +1 -170
  153. package/github/docs/interfaces/PublicKey.html +1 -170
  154. package/github/docs/interfaces/StringFilter.html +3 -191
  155. package/github/docs/interfaces/SudoCryptoProvider.html +172 -1305
  156. package/github/docs/interfaces/SudoKeyArchive.html +54 -490
  157. package/github/docs/interfaces/SudoKeyManager.html +167 -1298
  158. package/github/docs/interfaces/SymmetricEncryptionOptions.html +3 -177
  159. package/github/docs/modules.html +33 -895
  160. package/github/package.json +19 -16
  161. package/github/src/errors/error.ts +10 -0
  162. package/github/src/sudoKeyArchive/sudoKeyArchive.ts +1 -1
  163. package/github/src/sudoKeyManager/sudoCryptoProvider.ts +12 -0
  164. package/github/src/sudoKeyManager/sudoKeyManager.ts +12 -0
  165. package/github/src/types/types.ts +78 -0
  166. package/github/test/utils/listOperationResult.spec.ts +84 -0
  167. package/github/yarn.lock +871 -1264
  168. package/lib/errors/error.d.ts +6 -0
  169. package/lib/errors/error.js +16 -2
  170. package/lib/logging/bunyanLogger.js +1 -1
  171. package/lib/sudoKeyArchive/keyArchive.js +2 -2
  172. package/lib/sudoKeyArchive/keyInfo.js +1 -1
  173. package/lib/sudoKeyArchive/sudoKeyArchive.d.ts +1 -2
  174. package/lib/sudoKeyArchive/sudoKeyArchive.js +1 -1
  175. package/lib/sudoKeyManager/keyData.js +1 -1
  176. package/lib/sudoKeyManager/sudoCryptoProvider.d.ts +12 -0
  177. package/lib/sudoKeyManager/sudoKeyManager.d.ts +12 -0
  178. package/lib/types/types.d.ts +71 -0
  179. package/lib/types/types.js +14 -2
  180. package/package.json +20 -17
  181. package/src/errors/error.ts +10 -0
  182. package/src/sudoKeyArchive/sudoKeyArchive.ts +1 -1
  183. package/src/sudoKeyManager/sudoCryptoProvider.ts +12 -0
  184. package/src/sudoKeyManager/sudoKeyManager.ts +12 -0
  185. package/src/types/types.ts +78 -0
  186. package/test/utils/listOperationResult.spec.ts +84 -0
  187. package/yarn.lock +871 -1264
  188. package/docs/assets/css/main.css +0 -2660
  189. package/docs/assets/js/main.js +0 -248
  190. package/docs/assets/js/search.js +0 -1
  191. package/github/docs/assets/css/main.css +0 -2660
  192. package/github/docs/assets/js/main.js +0 -248
  193. package/github/docs/assets/js/search.js +0 -1
  194. package/github/src/sudoKeyManager/encryptionAlgorithmTransformer.ts +0 -21
  195. package/lib/sudoKeyManager/encryptionAlgorithmTransformer.d.ts +0 -9
  196. package/lib/sudoKeyManager/encryptionAlgorithmTransformer.js +0 -28
  197. package/src/sudoKeyManager/encryptionAlgorithmTransformer.ts +0 -21
package/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
+ ## 0.2.0
2
+
3
+ - Make ListOperationResult S default to T.
4
+
1
5
  ## 0.1.0
2
6
 
3
7
  ### New
4
8
 
5
- - Add support to supress audits.
9
+ - Add support to suppress audits.
6
10
 
7
11
  ## 0.0.6
8
12
 
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- yarn audit --json --groups dependencies | jq -s -c 'map(select(.type == "auditAdvisory").data.advisory) | unique_by(.id) | .[] | {id, title, module_name, vulnerable_versions, patched_versions, severity}' | (new=""; while read advisory ; do
3
+ yarn audit --json --groups "dependencies devDependencies" | jq -s -c 'map(select(.type == "auditAdvisory").data.advisory) | unique_by(.id) | .[] | {id, title, module_name, vulnerable_versions, patched_versions, severity, findings}' | (new=""; while read advisory ; do
4
4
  id=$(echo "${advisory}" | jq '.id')
5
5
  suppression=$(jq ".auditSuppressions[\"$id\"] | select (. != null)" package.json)
6
6
  if [ -z "$suppression" ]; then
@@ -91,14 +91,14 @@
91
91
  },
92
92
  {
93
93
  "name": "fp-ts",
94
- "version": "2.11.1",
94
+ "version": "2.11.4",
95
95
  "publisher": "Giulio Canti",
96
96
  "repository": "https://github.com/gcanti/fp-ts",
97
97
  "license": "MIT"
98
98
  },
99
99
  {
100
100
  "name": "graphql",
101
- "version": "15.5.1",
101
+ "version": "15.6.1",
102
102
  "repository": "https://github.com/graphql/graphql-js",
103
103
  "license": "MIT"
104
104
  },
package/docs/.nojekyll ADDED
@@ -0,0 +1 @@
1
+ TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
@@ -0,0 +1,57 @@
1
+ :root {
2
+ --light-hl-0: #001080;
3
+ --dark-hl-0: #9CDCFE;
4
+ --light-hl-1: #000000;
5
+ --dark-hl-1: #D4D4D4;
6
+ --light-hl-2: #0000FF;
7
+ --dark-hl-2: #569CD6;
8
+ --light-hl-3: #795E26;
9
+ --dark-hl-3: #DCDCAA;
10
+ --light-hl-4: #267F99;
11
+ --dark-hl-4: #4EC9B0;
12
+ --light-code-background: #FFFFFF;
13
+ --dark-code-background: #1E1E1E;
14
+ }
15
+
16
+ @media (prefers-color-scheme: light) { :root {
17
+ --hl-0: var(--light-hl-0);
18
+ --hl-1: var(--light-hl-1);
19
+ --hl-2: var(--light-hl-2);
20
+ --hl-3: var(--light-hl-3);
21
+ --hl-4: var(--light-hl-4);
22
+ --code-background: var(--light-code-background);
23
+ } }
24
+
25
+ @media (prefers-color-scheme: dark) { :root {
26
+ --hl-0: var(--dark-hl-0);
27
+ --hl-1: var(--dark-hl-1);
28
+ --hl-2: var(--dark-hl-2);
29
+ --hl-3: var(--dark-hl-3);
30
+ --hl-4: var(--dark-hl-4);
31
+ --code-background: var(--dark-code-background);
32
+ } }
33
+
34
+ body.light {
35
+ --hl-0: var(--light-hl-0);
36
+ --hl-1: var(--light-hl-1);
37
+ --hl-2: var(--light-hl-2);
38
+ --hl-3: var(--light-hl-3);
39
+ --hl-4: var(--light-hl-4);
40
+ --code-background: var(--light-code-background);
41
+ }
42
+
43
+ body.dark {
44
+ --hl-0: var(--dark-hl-0);
45
+ --hl-1: var(--dark-hl-1);
46
+ --hl-2: var(--dark-hl-2);
47
+ --hl-3: var(--dark-hl-3);
48
+ --hl-4: var(--dark-hl-4);
49
+ --code-background: var(--dark-code-background);
50
+ }
51
+
52
+ .hl-0 { color: var(--hl-0); }
53
+ .hl-1 { color: var(--hl-1); }
54
+ .hl-2 { color: var(--hl-2); }
55
+ .hl-3 { color: var(--hl-3); }
56
+ .hl-4 { color: var(--hl-4); }
57
+ pre, code { background: var(--code-background); }