@sudoplatform/sudo-privacy-interaction 0.0.0-placeholder → 1.1.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 (260) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +30 -0
  3. package/cjs/gen/graphqlTypes.js +1800 -0
  4. package/cjs/index.js +10 -0
  5. package/cjs/private/data/analysis-result/analysisResultSubscriptionManager.js +25 -0
  6. package/cjs/private/data/analysis-result/defaultAnalysisResultService.js +83 -0
  7. package/cjs/private/data/analysis-result/transformer/analysisResultDataTransformer.js +59 -0
  8. package/cjs/private/data/analysis-result/transformer/analysisResultStatusTransformer.js +43 -0
  9. package/cjs/private/data/analysis-result/transformer/analysisResultTransformer.js +47 -0
  10. package/cjs/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +37 -0
  11. package/cjs/private/data/analysis-result/transformer/categorySignalsTransformer.js +51 -0
  12. package/cjs/private/data/analysis-result/transformer/dataCategoryTransformer.js +91 -0
  13. package/cjs/private/data/analysis-result/transformer/organizationCategoryTransformer.js +139 -0
  14. package/cjs/private/data/analysis-result/transformer/organizationIdentityTransformer.js +29 -0
  15. package/cjs/private/data/analysis-result/transformer/privacyScoreTransformer.js +29 -0
  16. package/cjs/private/data/analysis-result/transformer/privacySummaryTransformer.js +25 -0
  17. package/cjs/private/data/analysis-result/transformer/retentionInfoTransformer.js +27 -0
  18. package/cjs/private/data/analysis-result/transformer/retentionStyleTransformer.js +39 -0
  19. package/cjs/private/data/analysis-result/transformer/riskIndicatorsTransformer.js +35 -0
  20. package/cjs/private/data/analysis-result/transformer/shareStyleTransformer.js +41 -0
  21. package/cjs/private/data/analysis-result/transformer/signalValueTransformer.js +35 -0
  22. package/cjs/private/data/common/apiClient.js +209 -0
  23. package/cjs/private/data/common/baseSubscriptionManager.js +73 -0
  24. package/cjs/private/data/common/config.js +23 -0
  25. package/cjs/private/data/common/privateSudoPrivacyInteractionClientOptions.js +7 -0
  26. package/cjs/private/data/common/transformer/errorTransformer.js +30 -0
  27. package/cjs/private/data/data-holder/dataHolderSubscriptionManager.js +25 -0
  28. package/cjs/private/data/data-holder/defaultDataHolderService.js +72 -0
  29. package/cjs/private/data/data-holder/transformer/dataHolderProtectionStateTransformer.js +37 -0
  30. package/cjs/private/data/data-holder/transformer/dataHolderTransformer.js +44 -0
  31. package/cjs/private/data/virtual-presence/defaultVirtualPresenceService.js +74 -0
  32. package/cjs/private/data/virtual-presence/transformer/providerTypeTransformer.js +29 -0
  33. package/cjs/private/data/virtual-presence/transformer/virtualPresenceStateTransformer.js +45 -0
  34. package/cjs/private/data/virtual-presence/transformer/virtualPresenceTransformer.js +43 -0
  35. package/cjs/private/data/virtual-presence/virtualPresenceSubscriptionManager.js +25 -0
  36. package/cjs/private/domain/entities/analysis-result/analysisResultEntity.js +135 -0
  37. package/cjs/private/domain/entities/analysis-result/analysisResultService.js +7 -0
  38. package/cjs/private/domain/entities/data-holder/dataHolderEntity.js +24 -0
  39. package/cjs/private/domain/entities/data-holder/dataHolderService.js +7 -0
  40. package/cjs/private/domain/entities/inputs/scanOptionsEntity.js +7 -0
  41. package/cjs/private/domain/entities/virtual-presence/virtualPresenceEntity.js +38 -0
  42. package/cjs/private/domain/entities/virtual-presence/virtualPresenceService.js +7 -0
  43. package/cjs/private/domain/use-cases/analysis-result/getAnalysisResultUseCase.js +25 -0
  44. package/cjs/private/domain/use-cases/analysis-result/listAnalysisResultsUseCase.js +29 -0
  45. package/cjs/private/domain/use-cases/analysis-result/subscribeToAnalysisResultUseCase.js +37 -0
  46. package/cjs/private/domain/use-cases/analysis-result/unsubscribeFromAnalysisResultUseCase.js +27 -0
  47. package/cjs/private/domain/use-cases/data-holder/getDataHolderUseCase.js +25 -0
  48. package/cjs/private/domain/use-cases/data-holder/listDataHoldersUseCase.js +29 -0
  49. package/cjs/private/domain/use-cases/data-holder/subscribeToDataHoldersUseCase.js +37 -0
  50. package/cjs/private/domain/use-cases/data-holder/unsubscribeFromDataHoldersUseCase.js +27 -0
  51. package/cjs/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithAuthCodeUseCase.js +27 -0
  52. package/cjs/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.js +27 -0
  53. package/cjs/private/domain/use-cases/virtual-presence/disconnectVirtualPresenceUseCase.js +25 -0
  54. package/cjs/private/domain/use-cases/virtual-presence/listVirtualPresencesUseCase.js +30 -0
  55. package/cjs/private/domain/use-cases/virtual-presence/rescanVirtualPresenceUseCase.js +25 -0
  56. package/cjs/private/domain/use-cases/virtual-presence/subscribeToVirtualPresenceUseCase.js +37 -0
  57. package/cjs/private/domain/use-cases/virtual-presence/unsubscribeFromVirtualPresenceUseCase.js +27 -0
  58. package/cjs/public/defaultSudoPrivacyInteractionClient.js +173 -0
  59. package/cjs/public/errors.js +29 -0
  60. package/cjs/public/index.js +13 -0
  61. package/cjs/public/inputs/analysisResult.js +7 -0
  62. package/cjs/public/inputs/common.js +7 -0
  63. package/cjs/public/inputs/dataHolder.js +7 -0
  64. package/cjs/public/inputs/index.js +12 -0
  65. package/cjs/public/inputs/virtualPresence.js +7 -0
  66. package/cjs/public/sudoPrivacyInteractionClient.js +7 -0
  67. package/cjs/public/typings/analysisResult.js +135 -0
  68. package/cjs/public/typings/dataHolder.js +24 -0
  69. package/cjs/public/typings/index.js +12 -0
  70. package/cjs/public/typings/subscription.js +21 -0
  71. package/cjs/public/typings/virtualPresence.js +38 -0
  72. package/docs/.nojekyll +1 -0
  73. package/docs/assets/hierarchy.js +1 -0
  74. package/docs/assets/highlight.css +78 -0
  75. package/docs/assets/icons.js +18 -0
  76. package/docs/assets/icons.svg +1 -0
  77. package/docs/assets/main.js +60 -0
  78. package/docs/assets/navigation.js +1 -0
  79. package/docs/assets/search.js +1 -0
  80. package/docs/assets/style.css +1648 -0
  81. package/docs/classes/DefaultSudoPrivacyInteractionClient.html +383 -0
  82. package/docs/classes/InvalidArgumentError.html +181 -0
  83. package/docs/classes/PrivacyInteractionServiceConfigNotFoundError.html +181 -0
  84. package/docs/enums/AnalysisResultStatus.html +81 -0
  85. package/docs/enums/ConnectionState.html +67 -0
  86. package/docs/enums/DataCategory.html +153 -0
  87. package/docs/enums/DataHolderProtectionState.html +75 -0
  88. package/docs/enums/OrganizationCategory.html +225 -0
  89. package/docs/enums/ProviderType.html +63 -0
  90. package/docs/enums/RetentionStyle.html +75 -0
  91. package/docs/enums/ShareStyle.html +81 -0
  92. package/docs/enums/SignalValue.html +69 -0
  93. package/docs/enums/VirtualPresenceState.html +87 -0
  94. package/docs/hierarchy.html +39 -0
  95. package/docs/index.html +79 -0
  96. package/docs/interfaces/AnalysisResult.html +133 -0
  97. package/docs/interfaces/AnalysisResultData.html +110 -0
  98. package/docs/interfaces/AnalysisResultSubscriber.html +92 -0
  99. package/docs/interfaces/AnalysisResultUpdate.html +125 -0
  100. package/docs/interfaces/CapabilitySignals.html +117 -0
  101. package/docs/interfaces/CategorySignals.html +133 -0
  102. package/docs/interfaces/ConnectVirtualPresenceWithRefreshTokenInput.html +85 -0
  103. package/docs/interfaces/DataHolder.html +142 -0
  104. package/docs/interfaces/DataHolderSubscriber.html +92 -0
  105. package/docs/interfaces/ListAnalysisResultsInput.html +85 -0
  106. package/docs/interfaces/ListDataHoldersInput.html +85 -0
  107. package/docs/interfaces/ListVirtualPresencesInput.html +77 -0
  108. package/docs/interfaces/OrganizationIdentity.html +85 -0
  109. package/docs/interfaces/Pagination.html +77 -0
  110. package/docs/interfaces/PrivacyScore.html +69 -0
  111. package/docs/interfaces/PrivacySummary.html +77 -0
  112. package/docs/interfaces/RescanVirtualPresenceInput.html +69 -0
  113. package/docs/interfaces/RetentionInfo.html +77 -0
  114. package/docs/interfaces/RiskIndicators.html +110 -0
  115. package/docs/interfaces/ScanOptions.html +93 -0
  116. package/docs/interfaces/ScoreContribution.html +69 -0
  117. package/docs/interfaces/SudoPrivacyInteractionClient.html +347 -0
  118. package/docs/interfaces/VirtualPresence.html +126 -0
  119. package/docs/interfaces/VirtualPresenceSubscriber.html +92 -0
  120. package/docs/modules.html +48 -0
  121. package/docs/types/SudoPrivacyInteractionClientOptions.html +57 -0
  122. package/lib/gen/graphqlTypes.js +1797 -0
  123. package/lib/index.js +7 -0
  124. package/lib/private/data/analysis-result/analysisResultSubscriptionManager.js +21 -0
  125. package/lib/private/data/analysis-result/defaultAnalysisResultService.js +79 -0
  126. package/lib/private/data/analysis-result/transformer/analysisResultDataTransformer.js +55 -0
  127. package/lib/private/data/analysis-result/transformer/analysisResultStatusTransformer.js +39 -0
  128. package/lib/private/data/analysis-result/transformer/analysisResultTransformer.js +43 -0
  129. package/lib/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +33 -0
  130. package/lib/private/data/analysis-result/transformer/categorySignalsTransformer.js +47 -0
  131. package/lib/private/data/analysis-result/transformer/dataCategoryTransformer.js +87 -0
  132. package/lib/private/data/analysis-result/transformer/organizationCategoryTransformer.js +135 -0
  133. package/lib/private/data/analysis-result/transformer/organizationIdentityTransformer.js +25 -0
  134. package/lib/private/data/analysis-result/transformer/privacyScoreTransformer.js +25 -0
  135. package/lib/private/data/analysis-result/transformer/privacySummaryTransformer.js +21 -0
  136. package/lib/private/data/analysis-result/transformer/retentionInfoTransformer.js +23 -0
  137. package/lib/private/data/analysis-result/transformer/retentionStyleTransformer.js +35 -0
  138. package/lib/private/data/analysis-result/transformer/riskIndicatorsTransformer.js +31 -0
  139. package/lib/private/data/analysis-result/transformer/shareStyleTransformer.js +37 -0
  140. package/lib/private/data/analysis-result/transformer/signalValueTransformer.js +31 -0
  141. package/lib/private/data/common/apiClient.js +205 -0
  142. package/lib/private/data/common/baseSubscriptionManager.js +69 -0
  143. package/lib/private/data/common/config.js +18 -0
  144. package/lib/private/data/common/privateSudoPrivacyInteractionClientOptions.js +6 -0
  145. package/lib/private/data/common/transformer/errorTransformer.js +26 -0
  146. package/lib/private/data/data-holder/dataHolderSubscriptionManager.js +21 -0
  147. package/lib/private/data/data-holder/defaultDataHolderService.js +68 -0
  148. package/lib/private/data/data-holder/transformer/dataHolderProtectionStateTransformer.js +33 -0
  149. package/lib/private/data/data-holder/transformer/dataHolderTransformer.js +40 -0
  150. package/lib/private/data/virtual-presence/defaultVirtualPresenceService.js +70 -0
  151. package/lib/private/data/virtual-presence/transformer/providerTypeTransformer.js +25 -0
  152. package/lib/private/data/virtual-presence/transformer/virtualPresenceStateTransformer.js +41 -0
  153. package/lib/private/data/virtual-presence/transformer/virtualPresenceTransformer.js +39 -0
  154. package/lib/private/data/virtual-presence/virtualPresenceSubscriptionManager.js +21 -0
  155. package/lib/private/domain/entities/analysis-result/analysisResultEntity.js +132 -0
  156. package/lib/private/domain/entities/analysis-result/analysisResultService.js +6 -0
  157. package/lib/private/domain/entities/data-holder/dataHolderEntity.js +21 -0
  158. package/lib/private/domain/entities/data-holder/dataHolderService.js +6 -0
  159. package/lib/private/domain/entities/inputs/scanOptionsEntity.js +6 -0
  160. package/lib/private/domain/entities/virtual-presence/virtualPresenceEntity.js +35 -0
  161. package/lib/private/domain/entities/virtual-presence/virtualPresenceService.js +6 -0
  162. package/lib/private/domain/use-cases/analysis-result/getAnalysisResultUseCase.js +21 -0
  163. package/lib/private/domain/use-cases/analysis-result/listAnalysisResultsUseCase.js +25 -0
  164. package/lib/private/domain/use-cases/analysis-result/subscribeToAnalysisResultUseCase.js +33 -0
  165. package/lib/private/domain/use-cases/analysis-result/unsubscribeFromAnalysisResultUseCase.js +23 -0
  166. package/lib/private/domain/use-cases/data-holder/getDataHolderUseCase.js +21 -0
  167. package/lib/private/domain/use-cases/data-holder/listDataHoldersUseCase.js +25 -0
  168. package/lib/private/domain/use-cases/data-holder/subscribeToDataHoldersUseCase.js +33 -0
  169. package/lib/private/domain/use-cases/data-holder/unsubscribeFromDataHoldersUseCase.js +23 -0
  170. package/lib/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithAuthCodeUseCase.js +23 -0
  171. package/lib/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.js +23 -0
  172. package/lib/private/domain/use-cases/virtual-presence/disconnectVirtualPresenceUseCase.js +21 -0
  173. package/lib/private/domain/use-cases/virtual-presence/listVirtualPresencesUseCase.js +26 -0
  174. package/lib/private/domain/use-cases/virtual-presence/rescanVirtualPresenceUseCase.js +21 -0
  175. package/lib/private/domain/use-cases/virtual-presence/subscribeToVirtualPresenceUseCase.js +33 -0
  176. package/lib/private/domain/use-cases/virtual-presence/unsubscribeFromVirtualPresenceUseCase.js +23 -0
  177. package/lib/public/defaultSudoPrivacyInteractionClient.js +169 -0
  178. package/lib/public/errors.js +24 -0
  179. package/lib/public/index.js +10 -0
  180. package/lib/public/inputs/analysisResult.js +6 -0
  181. package/lib/public/inputs/common.js +6 -0
  182. package/lib/public/inputs/dataHolder.js +6 -0
  183. package/lib/public/inputs/index.js +9 -0
  184. package/lib/public/inputs/virtualPresence.js +6 -0
  185. package/lib/public/sudoPrivacyInteractionClient.js +6 -0
  186. package/lib/public/typings/analysisResult.js +132 -0
  187. package/lib/public/typings/dataHolder.js +21 -0
  188. package/lib/public/typings/index.js +9 -0
  189. package/lib/public/typings/subscription.js +18 -0
  190. package/lib/public/typings/virtualPresence.js +35 -0
  191. package/package.json +117 -8
  192. package/types/gen/graphqlTypes.d.ts +750 -0
  193. package/types/index.d.ts +6 -0
  194. package/types/private/data/analysis-result/analysisResultSubscriptionManager.d.ts +19 -0
  195. package/types/private/data/analysis-result/defaultAnalysisResultService.d.ts +20 -0
  196. package/types/private/data/analysis-result/transformer/analysisResultDataTransformer.d.ts +18 -0
  197. package/types/private/data/analysis-result/transformer/analysisResultStatusTransformer.d.ts +12 -0
  198. package/types/private/data/analysis-result/transformer/analysisResultTransformer.d.ts +14 -0
  199. package/types/private/data/analysis-result/transformer/capabilitySignalsTransformer.d.ts +13 -0
  200. package/types/private/data/analysis-result/transformer/categorySignalsTransformer.d.ts +16 -0
  201. package/types/private/data/analysis-result/transformer/dataCategoryTransformer.d.ts +12 -0
  202. package/types/private/data/analysis-result/transformer/organizationCategoryTransformer.d.ts +12 -0
  203. package/types/private/data/analysis-result/transformer/organizationIdentityTransformer.d.ts +13 -0
  204. package/types/private/data/analysis-result/transformer/privacyScoreTransformer.d.ts +12 -0
  205. package/types/private/data/analysis-result/transformer/privacySummaryTransformer.d.ts +12 -0
  206. package/types/private/data/analysis-result/transformer/retentionInfoTransformer.d.ts +13 -0
  207. package/types/private/data/analysis-result/transformer/retentionStyleTransformer.d.ts +12 -0
  208. package/types/private/data/analysis-result/transformer/riskIndicatorsTransformer.d.ts +13 -0
  209. package/types/private/data/analysis-result/transformer/shareStyleTransformer.d.ts +12 -0
  210. package/types/private/data/analysis-result/transformer/signalValueTransformer.d.ts +12 -0
  211. package/types/private/data/common/apiClient.d.ts +38 -0
  212. package/types/private/data/common/baseSubscriptionManager.d.ts +46 -0
  213. package/types/private/data/common/config.d.ts +13 -0
  214. package/types/private/data/common/privateSudoPrivacyInteractionClientOptions.d.ts +18 -0
  215. package/types/private/data/common/transformer/errorTransformer.d.ts +15 -0
  216. package/types/private/data/data-holder/dataHolderSubscriptionManager.d.ts +19 -0
  217. package/types/private/data/data-holder/defaultDataHolderService.d.ts +19 -0
  218. package/types/private/data/data-holder/transformer/dataHolderProtectionStateTransformer.d.ts +12 -0
  219. package/types/private/data/data-holder/transformer/dataHolderTransformer.d.ts +12 -0
  220. package/types/private/data/virtual-presence/defaultVirtualPresenceService.d.ts +21 -0
  221. package/types/private/data/virtual-presence/transformer/providerTypeTransformer.d.ts +12 -0
  222. package/types/private/data/virtual-presence/transformer/virtualPresenceStateTransformer.d.ts +12 -0
  223. package/types/private/data/virtual-presence/transformer/virtualPresenceTransformer.d.ts +12 -0
  224. package/types/private/data/virtual-presence/virtualPresenceSubscriptionManager.d.ts +18 -0
  225. package/types/private/domain/entities/analysis-result/analysisResultEntity.d.ts +310 -0
  226. package/types/private/domain/entities/analysis-result/analysisResultService.d.ts +81 -0
  227. package/types/private/domain/entities/data-holder/dataHolderEntity.d.ts +51 -0
  228. package/types/private/domain/entities/data-holder/dataHolderService.d.ts +81 -0
  229. package/types/private/domain/entities/inputs/scanOptionsEntity.d.ts +22 -0
  230. package/types/private/domain/entities/virtual-presence/virtualPresenceEntity.d.ts +60 -0
  231. package/types/private/domain/entities/virtual-presence/virtualPresenceService.d.ts +131 -0
  232. package/types/private/domain/use-cases/analysis-result/getAnalysisResultUseCase.d.ts +16 -0
  233. package/types/private/domain/use-cases/analysis-result/listAnalysisResultsUseCase.d.ts +36 -0
  234. package/types/private/domain/use-cases/analysis-result/subscribeToAnalysisResultUseCase.d.ts +27 -0
  235. package/types/private/domain/use-cases/analysis-result/unsubscribeFromAnalysisResultUseCase.d.ts +15 -0
  236. package/types/private/domain/use-cases/data-holder/getDataHolderUseCase.d.ts +16 -0
  237. package/types/private/domain/use-cases/data-holder/listDataHoldersUseCase.d.ts +36 -0
  238. package/types/private/domain/use-cases/data-holder/subscribeToDataHoldersUseCase.d.ts +27 -0
  239. package/types/private/domain/use-cases/data-holder/unsubscribeFromDataHoldersUseCase.d.ts +15 -0
  240. package/types/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithAuthCodeUseCase.d.ts +16 -0
  241. package/types/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.d.ts +28 -0
  242. package/types/private/domain/use-cases/virtual-presence/disconnectVirtualPresenceUseCase.d.ts +16 -0
  243. package/types/private/domain/use-cases/virtual-presence/listVirtualPresencesUseCase.d.ts +35 -0
  244. package/types/private/domain/use-cases/virtual-presence/rescanVirtualPresenceUseCase.d.ts +27 -0
  245. package/types/private/domain/use-cases/virtual-presence/subscribeToVirtualPresenceUseCase.d.ts +27 -0
  246. package/types/private/domain/use-cases/virtual-presence/unsubscribeFromVirtualPresenceUseCase.d.ts +15 -0
  247. package/types/public/defaultSudoPrivacyInteractionClient.d.ts +36 -0
  248. package/types/public/errors.d.ts +15 -0
  249. package/types/public/index.d.ts +10 -0
  250. package/types/public/inputs/analysisResult.d.ts +17 -0
  251. package/types/public/inputs/common.d.ts +16 -0
  252. package/types/public/inputs/dataHolder.d.ts +17 -0
  253. package/types/public/inputs/index.d.ts +9 -0
  254. package/types/public/inputs/virtualPresence.d.ts +58 -0
  255. package/types/public/sudoPrivacyInteractionClient.d.ts +123 -0
  256. package/types/public/typings/analysisResult.d.ts +335 -0
  257. package/types/public/typings/dataHolder.d.ts +51 -0
  258. package/types/public/typings/index.d.ts +9 -0
  259. package/types/public/typings/subscription.d.ts +86 -0
  260. package/types/public/typings/virtualPresence.d.ts +60 -0
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { DefaultLogger } from '@sudoplatform/sudo-common';
7
+ /**
8
+ * Application business logic for connecting a virtual presence with a pre-obtained refresh token.
9
+ */
10
+ export class ConnectVirtualPresenceWithRefreshTokenUseCase {
11
+ virtualPresenceService;
12
+ log;
13
+ constructor(virtualPresenceService) {
14
+ this.virtualPresenceService = virtualPresenceService;
15
+ this.log = new DefaultLogger(this.constructor.name);
16
+ }
17
+ async execute(input) {
18
+ this.log.debug(this.constructor.name);
19
+ return await this.virtualPresenceService.connect({
20
+ refreshToken: input,
21
+ });
22
+ }
23
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { DefaultLogger } from '@sudoplatform/sudo-common';
7
+ /**
8
+ * Application business logic for disconnecting a virtual presence.
9
+ */
10
+ export class DisconnectVirtualPresenceUseCase {
11
+ virtualPresenceService;
12
+ log;
13
+ constructor(virtualPresenceService) {
14
+ this.virtualPresenceService = virtualPresenceService;
15
+ this.log = new DefaultLogger(this.constructor.name);
16
+ }
17
+ async execute(id) {
18
+ this.log.debug(this.constructor.name, { id });
19
+ return await this.virtualPresenceService.disconnect(id);
20
+ }
21
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { DefaultLogger } from '@sudoplatform/sudo-common';
7
+ /**
8
+ * Application business logic for listing all virtual presences for this client.
9
+ */
10
+ export class ListVirtualPresencesUseCase {
11
+ virtualPresenceService;
12
+ log;
13
+ constructor(virtualPresenceService) {
14
+ this.virtualPresenceService = virtualPresenceService;
15
+ this.log = new DefaultLogger(this.constructor.name);
16
+ }
17
+ async execute(input) {
18
+ this.log.debug(this.constructor.name, {
19
+ input,
20
+ });
21
+ return await this.virtualPresenceService.list({
22
+ limit: input.limit,
23
+ nextToken: input.nextToken,
24
+ });
25
+ }
26
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { DefaultLogger } from '@sudoplatform/sudo-common';
7
+ /**
8
+ * Application business logic for rescanning a virtual presence.
9
+ */
10
+ export class RescanVirtualPresenceUseCase {
11
+ virtualPresenceService;
12
+ log;
13
+ constructor(virtualPresenceService) {
14
+ this.virtualPresenceService = virtualPresenceService;
15
+ this.log = new DefaultLogger(this.constructor.name);
16
+ }
17
+ async execute(input) {
18
+ this.log.debug(this.constructor.name, { input });
19
+ return await this.virtualPresenceService.rescan(input);
20
+ }
21
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { DefaultLogger, NotSignedInError, } from '@sudoplatform/sudo-common';
7
+ /**
8
+ * Application business logic for subscribing to virtual presence events.
9
+ */
10
+ export class SubscribeToVirtualPresenceUseCase {
11
+ virtualPresenceService;
12
+ sudoUserClient;
13
+ log;
14
+ constructor(virtualPresenceService, sudoUserClient) {
15
+ this.virtualPresenceService = virtualPresenceService;
16
+ this.sudoUserClient = sudoUserClient;
17
+ this.log = new DefaultLogger(this.constructor.name);
18
+ }
19
+ async execute(input) {
20
+ this.log.debug(this.constructor.name, {
21
+ subscriptionId: input.subscriptionId,
22
+ });
23
+ const owner = await this.sudoUserClient.getSubject();
24
+ if (!owner) {
25
+ throw new NotSignedInError();
26
+ }
27
+ await this.virtualPresenceService.subscribe({
28
+ subscriptionId: input.subscriptionId,
29
+ owner,
30
+ subscriber: input.subscriber,
31
+ });
32
+ }
33
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { DefaultLogger } from '@sudoplatform/sudo-common';
7
+ /**
8
+ * Application business logic for unsubscribing from virtual presence events.
9
+ */
10
+ export class UnsubscribeFromVirtualPresenceUseCase {
11
+ virtualPresenceService;
12
+ log;
13
+ constructor(virtualPresenceService) {
14
+ this.virtualPresenceService = virtualPresenceService;
15
+ this.log = new DefaultLogger(this.constructor.name);
16
+ }
17
+ execute(subscriptionId) {
18
+ this.log.debug(this.constructor.name, {
19
+ subscriptionId,
20
+ });
21
+ this.virtualPresenceService.unsubscribe(subscriptionId);
22
+ }
23
+ }
@@ -0,0 +1,169 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { DefaultLogger } from '@sudoplatform/sudo-common';
7
+ import { DefaultAnalysisResultService } from '../private/data/analysis-result/defaultAnalysisResultService';
8
+ import { AnalysisResultTransformer } from '../private/data/analysis-result/transformer/analysisResultTransformer';
9
+ import { ApiClient } from '../private/data/common/apiClient';
10
+ import { DefaultDataHolderService } from '../private/data/data-holder/defaultDataHolderService';
11
+ import { DataHolderTransformer } from '../private/data/data-holder/transformer/dataHolderTransformer';
12
+ import { DefaultVirtualPresenceService } from '../private/data/virtual-presence/defaultVirtualPresenceService';
13
+ import { VirtualPresenceTransformer } from '../private/data/virtual-presence/transformer/virtualPresenceTransformer';
14
+ import { GetAnalysisResultUseCase } from '../private/domain/use-cases/analysis-result/getAnalysisResultUseCase';
15
+ import { ListAnalysisResultsUseCase } from '../private/domain/use-cases/analysis-result/listAnalysisResultsUseCase';
16
+ import { SubscribeToAnalysisResultUseCase } from '../private/domain/use-cases/analysis-result/subscribeToAnalysisResultUseCase';
17
+ import { UnsubscribeFromAnalysisResultUseCase } from '../private/domain/use-cases/analysis-result/unsubscribeFromAnalysisResultUseCase';
18
+ import { GetDataHolderUseCase } from '../private/domain/use-cases/data-holder/getDataHolderUseCase';
19
+ import { ListDataHoldersUseCase } from '../private/domain/use-cases/data-holder/listDataHoldersUseCase';
20
+ import { SubscribeToDataHoldersUseCase } from '../private/domain/use-cases/data-holder/subscribeToDataHoldersUseCase';
21
+ import { UnsubscribeFromDataHoldersUseCase } from '../private/domain/use-cases/data-holder/unsubscribeFromDataHoldersUseCase';
22
+ import { ConnectVirtualPresenceWithAuthCodeUseCase } from '../private/domain/use-cases/virtual-presence/connectVirtualPresenceWithAuthCodeUseCase';
23
+ import { ConnectVirtualPresenceWithRefreshTokenUseCase } from '../private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase';
24
+ import { DisconnectVirtualPresenceUseCase } from '../private/domain/use-cases/virtual-presence/disconnectVirtualPresenceUseCase';
25
+ import { ListVirtualPresencesUseCase } from '../private/domain/use-cases/virtual-presence/listVirtualPresencesUseCase';
26
+ import { RescanVirtualPresenceUseCase } from '../private/domain/use-cases/virtual-presence/rescanVirtualPresenceUseCase';
27
+ import { SubscribeToVirtualPresenceUseCase } from '../private/domain/use-cases/virtual-presence/subscribeToVirtualPresenceUseCase';
28
+ import { UnsubscribeFromVirtualPresenceUseCase } from '../private/domain/use-cases/virtual-presence/unsubscribeFromVirtualPresenceUseCase';
29
+ export class DefaultSudoPrivacyInteractionClient {
30
+ apiClient;
31
+ userClient;
32
+ virtualPresenceService;
33
+ dataHolderService;
34
+ analysisResultService;
35
+ virtualPresenceTransformer;
36
+ dataHolderTransformer;
37
+ analysisResultTransformer;
38
+ log;
39
+ constructor(opts) {
40
+ this.log = new DefaultLogger(this.constructor.name);
41
+ const privateOptions = opts;
42
+ this.apiClient = privateOptions.apiClient ?? new ApiClient();
43
+ this.userClient = opts.sudoUserClient;
44
+ this.virtualPresenceService = new DefaultVirtualPresenceService(this.apiClient);
45
+ this.dataHolderService = new DefaultDataHolderService(this.apiClient);
46
+ this.analysisResultService = new DefaultAnalysisResultService(this.apiClient);
47
+ this.virtualPresenceTransformer = new VirtualPresenceTransformer();
48
+ this.dataHolderTransformer = new DataHolderTransformer();
49
+ this.analysisResultTransformer = new AnalysisResultTransformer();
50
+ }
51
+ async connectVirtualPresenceWithAuthCode(authCode) {
52
+ this.log.debug(this.connectVirtualPresenceWithAuthCode.name);
53
+ const useCase = new ConnectVirtualPresenceWithAuthCodeUseCase(this.virtualPresenceService);
54
+ const result = await useCase.execute(authCode);
55
+ return this.virtualPresenceTransformer.fromEntityToAPI(result);
56
+ }
57
+ async connectVirtualPresenceWithRefreshToken(input) {
58
+ this.log.debug(this.connectVirtualPresenceWithRefreshToken.name);
59
+ const useCase = new ConnectVirtualPresenceWithRefreshTokenUseCase(this.virtualPresenceService);
60
+ const result = await useCase.execute(input);
61
+ return this.virtualPresenceTransformer.fromEntityToAPI(result);
62
+ }
63
+ async disconnectVirtualPresence(id) {
64
+ this.log.debug(this.disconnectVirtualPresence.name, { id });
65
+ const useCase = new DisconnectVirtualPresenceUseCase(this.virtualPresenceService);
66
+ const result = await useCase.execute(id);
67
+ return this.virtualPresenceTransformer.fromEntityToAPI(result);
68
+ }
69
+ async rescanVirtualPresence(input) {
70
+ this.log.debug(this.rescanVirtualPresence.name, { input });
71
+ const useCase = new RescanVirtualPresenceUseCase(this.virtualPresenceService);
72
+ const result = await useCase.execute(input);
73
+ return this.virtualPresenceTransformer.fromEntityToAPI(result);
74
+ }
75
+ async listVirtualPresences(input) {
76
+ this.log.debug(this.listVirtualPresences.name, {
77
+ input,
78
+ });
79
+ const useCase = new ListVirtualPresencesUseCase(this.virtualPresenceService);
80
+ const { virtualPresences, nextToken: resultNextToken } = await useCase.execute({
81
+ limit: input.limit,
82
+ nextToken: input.nextToken,
83
+ });
84
+ const transformedVirtualPresences = virtualPresences.map((virtualPresence) => this.virtualPresenceTransformer.fromEntityToAPI(virtualPresence));
85
+ return { items: transformedVirtualPresences, nextToken: resultNextToken };
86
+ }
87
+ async subscribeToVirtualPresence(subscriptionId, subscriber) {
88
+ this.log.debug(this.subscribeToVirtualPresence.name, {
89
+ subscriptionId,
90
+ });
91
+ const useCase = new SubscribeToVirtualPresenceUseCase(this.virtualPresenceService, this.userClient);
92
+ await useCase.execute({ subscriptionId, subscriber });
93
+ }
94
+ unsubscribeFromVirtualPresence(subscriptionId) {
95
+ this.log.debug(this.unsubscribeFromVirtualPresence.name, {
96
+ subscriptionId,
97
+ });
98
+ const useCase = new UnsubscribeFromVirtualPresenceUseCase(this.virtualPresenceService);
99
+ useCase.execute(subscriptionId);
100
+ }
101
+ async getDataHolder(id) {
102
+ this.log.debug(this.getDataHolder.name, { id });
103
+ const useCase = new GetDataHolderUseCase(this.dataHolderService);
104
+ const result = await useCase.execute(id);
105
+ if (!result) {
106
+ return undefined;
107
+ }
108
+ return this.dataHolderTransformer.fromEntityToAPI(result);
109
+ }
110
+ async listDataHolders(input) {
111
+ this.log.debug(this.listDataHolders.name, { input });
112
+ const useCase = new ListDataHoldersUseCase(this.dataHolderService);
113
+ const { dataHolders, nextToken: resultNextToken } = await useCase.execute({
114
+ virtualPresenceId: input.virtualPresenceId,
115
+ limit: input.limit,
116
+ nextToken: input.nextToken,
117
+ });
118
+ const transformedDataHolders = dataHolders.map((dataHolder) => this.dataHolderTransformer.fromEntityToAPI(dataHolder));
119
+ return { items: transformedDataHolders, nextToken: resultNextToken };
120
+ }
121
+ async subscribeToDataHolders(subscriptionId, subscriber) {
122
+ this.log.debug(this.subscribeToDataHolders.name, {
123
+ subscriptionId,
124
+ });
125
+ const useCase = new SubscribeToDataHoldersUseCase(this.dataHolderService, this.userClient);
126
+ await useCase.execute({ subscriptionId, subscriber });
127
+ }
128
+ unsubscribeFromDataHolders(subscriptionId) {
129
+ this.log.debug(this.unsubscribeFromDataHolders.name, {
130
+ subscriptionId,
131
+ });
132
+ const useCase = new UnsubscribeFromDataHoldersUseCase(this.dataHolderService);
133
+ useCase.execute(subscriptionId);
134
+ }
135
+ async getAnalysisResult(id) {
136
+ this.log.debug(this.getAnalysisResult.name, { id });
137
+ const useCase = new GetAnalysisResultUseCase(this.analysisResultService);
138
+ const result = await useCase.execute(id);
139
+ if (!result) {
140
+ return undefined;
141
+ }
142
+ return this.analysisResultTransformer.fromEntityToAPI(result);
143
+ }
144
+ async listAnalysisResults(input) {
145
+ this.log.debug(this.listAnalysisResults.name, { input });
146
+ const useCase = new ListAnalysisResultsUseCase(this.analysisResultService);
147
+ const { analysisResults, nextToken: resultNextToken } = await useCase.execute({
148
+ virtualPresenceId: input.virtualPresenceId,
149
+ limit: input.limit,
150
+ nextToken: input.nextToken,
151
+ });
152
+ const transformedAnalysisResults = analysisResults.map((analysisResult) => this.analysisResultTransformer.fromEntityToAPI(analysisResult));
153
+ return { items: transformedAnalysisResults, nextToken: resultNextToken };
154
+ }
155
+ async subscribeToAnalysisResult(subscriptionId, subscriber) {
156
+ this.log.debug(this.subscribeToAnalysisResult.name, {
157
+ subscriptionId,
158
+ });
159
+ const useCase = new SubscribeToAnalysisResultUseCase(this.analysisResultService, this.userClient);
160
+ await useCase.execute({ subscriptionId, subscriber });
161
+ }
162
+ unsubscribeFromAnalysisResult(subscriptionId) {
163
+ this.log.debug(this.unsubscribeFromAnalysisResult.name, {
164
+ subscriptionId,
165
+ });
166
+ const useCase = new UnsubscribeFromAnalysisResultUseCase(this.analysisResultService);
167
+ useCase.execute(subscriptionId);
168
+ }
169
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ class PrivacyInteractionError extends Error {
7
+ constructor(msg) {
8
+ super(msg);
9
+ this.name = this.constructor.name;
10
+ if (Error.captureStackTrace) {
11
+ Error.captureStackTrace(this, this.constructor);
12
+ }
13
+ }
14
+ }
15
+ export class InvalidArgumentError extends PrivacyInteractionError {
16
+ constructor(msg) {
17
+ super(msg);
18
+ }
19
+ }
20
+ export class PrivacyInteractionServiceConfigNotFoundError extends PrivacyInteractionError {
21
+ constructor(msg) {
22
+ super(msg);
23
+ }
24
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export * from './errors';
7
+ export * from './sudoPrivacyInteractionClient';
8
+ export * from './defaultSudoPrivacyInteractionClient';
9
+ export * from './inputs';
10
+ export * from './typings';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export * from './analysisResult';
7
+ export * from './common';
8
+ export * from './dataHolder';
9
+ export * from './virtualPresence';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
@@ -0,0 +1,132 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * The status of an analysis result.
8
+ *
9
+ * @property PENDING The analysis is queued but has not yet started.
10
+ * @property COMPLETE The analysis has completed successfully with full data.
11
+ * @property PARTIAL The analysis has completed with partial data available.
12
+ * @property FAILED The analysis encountered an error and could not complete.
13
+ * @property UNAVAILABLE The analysis data is not available for this data holder.
14
+ *
15
+ * @enum
16
+ */
17
+ export var AnalysisResultStatus;
18
+ (function (AnalysisResultStatus) {
19
+ AnalysisResultStatus["Pending"] = "PENDING";
20
+ AnalysisResultStatus["Complete"] = "COMPLETE";
21
+ AnalysisResultStatus["Partial"] = "PARTIAL";
22
+ AnalysisResultStatus["Failed"] = "FAILED";
23
+ AnalysisResultStatus["Unavailable"] = "UNAVAILABLE";
24
+ })(AnalysisResultStatus || (AnalysisResultStatus = {}));
25
+ /**
26
+ * Tri-state signal value representing confidence in a determination.
27
+ *
28
+ * @enum
29
+ */
30
+ export var SignalValue;
31
+ (function (SignalValue) {
32
+ SignalValue["Yes"] = "YES";
33
+ SignalValue["No"] = "NO";
34
+ SignalValue["Unknown"] = "UNKNOWN";
35
+ })(SignalValue || (SignalValue = {}));
36
+ /**
37
+ * Describes how data in a category is shared with third parties.
38
+ *
39
+ * @property SHARED Data is shared with third parties.
40
+ * @property SHARED_WITH_CONSENT Data is shared with third parties only with user consent.
41
+ * @property INFERENCE_SHARED Inferred data is shared with third parties.
42
+ * @property NONE Data is not shared with third parties.
43
+ *
44
+ * @enum
45
+ */
46
+ export var ShareStyle;
47
+ (function (ShareStyle) {
48
+ ShareStyle["Shared"] = "SHARED";
49
+ ShareStyle["SharedWithConsent"] = "SHARED_WITH_CONSENT";
50
+ ShareStyle["InferenceShared"] = "INFERENCE_SHARED";
51
+ ShareStyle["None"] = "NONE";
52
+ ShareStyle["Unknown"] = "UNKNOWN";
53
+ })(ShareStyle || (ShareStyle = {}));
54
+ /**
55
+ * Categories of personal data as identified in a privacy policy.
56
+ *
57
+ * @enum
58
+ */
59
+ export var DataCategory;
60
+ (function (DataCategory) {
61
+ DataCategory["AccountProfile"] = "ACCOUNT_PROFILE";
62
+ DataCategory["Authentication"] = "AUTHENTICATION";
63
+ DataCategory["Background"] = "BACKGROUND";
64
+ DataCategory["Biometric"] = "BIOMETRIC";
65
+ DataCategory["Communication"] = "COMMUNICATION";
66
+ DataCategory["Contacts"] = "CONTACTS";
67
+ DataCategory["Demographic"] = "DEMOGRAPHIC";
68
+ DataCategory["DeviceIdentifier"] = "DEVICE_IDENTIFIER";
69
+ DataCategory["Financial"] = "FINANCIAL";
70
+ DataCategory["GovernmentIssued"] = "GOVERNMENT_ISSUED";
71
+ DataCategory["Health"] = "HEALTH";
72
+ DataCategory["Inferences"] = "INFERENCES";
73
+ DataCategory["Location"] = "LOCATION";
74
+ DataCategory["Other"] = "OTHER";
75
+ DataCategory["Pii"] = "PII";
76
+ DataCategory["ThirdPartyData"] = "THIRD_PARTY_DATA";
77
+ DataCategory["Usage"] = "USAGE";
78
+ })(DataCategory || (DataCategory = {}));
79
+ /**
80
+ * Enumeration depicting how the data retention period is measured.
81
+ *
82
+ * @property INDEFINITE Data is retained indefinitely with no defined end date.
83
+ * @property RELATIVE_TO_ACCOUNT_CLOSURE_TIME Retention period starts when the account is closed.
84
+ * @property RELATIVE_TO_DATA_STORAGE_TIME Retention period starts when the data is stored.
85
+ * @property OTHER Retention policy does not fit standard categories.
86
+ *
87
+ * @enum
88
+ */
89
+ export var RetentionStyle;
90
+ (function (RetentionStyle) {
91
+ RetentionStyle["Indefinite"] = "INDEFINITE";
92
+ RetentionStyle["RelativeToAccountClosureTime"] = "RELATIVE_TO_ACCOUNT_CLOSURE_TIME";
93
+ RetentionStyle["RelativeToDataStorageTime"] = "RELATIVE_TO_DATA_STORAGE_TIME";
94
+ RetentionStyle["Other"] = "OTHER";
95
+ })(RetentionStyle || (RetentionStyle = {}));
96
+ /**
97
+ * The business category of an organization as classified by the analysis.
98
+ *
99
+ * @enum
100
+ */
101
+ export var OrganizationCategory;
102
+ (function (OrganizationCategory) {
103
+ OrganizationCategory["Automotive"] = "Automotive";
104
+ OrganizationCategory["Communications"] = "Communications";
105
+ OrganizationCategory["CommunityAndCharity"] = "CommunityAndCharity";
106
+ OrganizationCategory["Cryptocurrency"] = "Cryptocurrency";
107
+ OrganizationCategory["Dating"] = "Dating";
108
+ OrganizationCategory["Education"] = "Education";
109
+ OrganizationCategory["Employment"] = "Employment";
110
+ OrganizationCategory["EnergyAndUtilities"] = "EnergyAndUtilities";
111
+ OrganizationCategory["Entertainment"] = "Entertainment";
112
+ OrganizationCategory["Finance"] = "Finance";
113
+ OrganizationCategory["FoodAndDining"] = "FoodAndDining";
114
+ OrganizationCategory["Gambling"] = "Gambling";
115
+ OrganizationCategory["Government"] = "Government";
116
+ OrganizationCategory["Health"] = "Health";
117
+ OrganizationCategory["Insurance"] = "Insurance";
118
+ OrganizationCategory["Military"] = "Military";
119
+ OrganizationCategory["News"] = "News";
120
+ OrganizationCategory["Other"] = "Other";
121
+ OrganizationCategory["PersonalEmail"] = "PersonalEmail";
122
+ OrganizationCategory["PrivacyAndSecurity"] = "PrivacyAndSecurity";
123
+ OrganizationCategory["RealEstate"] = "RealEstate";
124
+ OrganizationCategory["ShippingAndDelivery"] = "ShippingAndDelivery";
125
+ OrganizationCategory["Shopping"] = "Shopping";
126
+ OrganizationCategory["SocialMedia"] = "SocialMedia";
127
+ OrganizationCategory["SportsAndFitness"] = "SportsAndFitness";
128
+ OrganizationCategory["Technology"] = "Technology";
129
+ OrganizationCategory["Transportation"] = "Transportation";
130
+ OrganizationCategory["Travel"] = "Travel";
131
+ OrganizationCategory["VideoGames"] = "VideoGames";
132
+ })(OrganizationCategory || (OrganizationCategory = {}));
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * The protection state of a data holder.
8
+ *
9
+ * @property MONITORED The data holder is being monitored.
10
+ * @property ACTION_REQUESTED An action has been requested against this data holder.
11
+ * @property RESOLVED The data holder has been resolved.
12
+ *
13
+ * @enum
14
+ */
15
+ export var DataHolderProtectionState;
16
+ (function (DataHolderProtectionState) {
17
+ DataHolderProtectionState["Monitored"] = "MONITORED";
18
+ DataHolderProtectionState["ActionRequested"] = "ACTION_REQUESTED";
19
+ DataHolderProtectionState["Resolved"] = "RESOLVED";
20
+ DataHolderProtectionState["Unknown"] = "UNKNOWN";
21
+ })(DataHolderProtectionState || (DataHolderProtectionState = {}));
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export * from './analysisResult';
7
+ export * from './dataHolder';
8
+ export * from './subscription';
9
+ export * from './virtualPresence';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * The connection state of a subscription.
8
+ *
9
+ * @property Connected The subscription is actively connected and receiving updates.
10
+ * @property Disconnected The subscription is not connected.
11
+ *
12
+ * @enum
13
+ */
14
+ export var ConnectionState;
15
+ (function (ConnectionState) {
16
+ ConnectionState["Connected"] = "CONNECTED";
17
+ ConnectionState["Disconnected"] = "DISCONNECTED";
18
+ })(ConnectionState || (ConnectionState = {}));
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * Enumeration that defines the provider type of the virtual presence.
8
+ *
9
+ * @enum
10
+ */
11
+ export var ProviderType;
12
+ (function (ProviderType) {
13
+ ProviderType["Email"] = "EMAIL";
14
+ ProviderType["Unknown"] = "UNKNOWN";
15
+ })(ProviderType || (ProviderType = {}));
16
+ /**
17
+ * Enumeration that defines the possible states of a virtual presence.
18
+ *
19
+ * @property CONNECTED: The virtual presence is active and connected to the provider.
20
+ * @property SCANNING: The virtual presence is currently being scanned.
21
+ * @property NEEDS_REAUTH: The virtual presence requires re-authentication with the provider.
22
+ * @property ERROR: The virtual presence encountered an error and is in a failed state.
23
+ * @property INACTIVE: The virtual presence is no longer active.
24
+ *
25
+ * @enum
26
+ */
27
+ export var VirtualPresenceState;
28
+ (function (VirtualPresenceState) {
29
+ VirtualPresenceState["Connected"] = "CONNECTED";
30
+ VirtualPresenceState["Scanning"] = "SCANNING";
31
+ VirtualPresenceState["NeedsReauth"] = "NEEDS_REAUTH";
32
+ VirtualPresenceState["Error"] = "ERROR";
33
+ VirtualPresenceState["Inactive"] = "INACTIVE";
34
+ VirtualPresenceState["Unknown"] = "UNKNOWN";
35
+ })(VirtualPresenceState || (VirtualPresenceState = {}));