@sudoplatform/sudo-privacy-interaction 0.0.0-placeholder → 1.0.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.
- package/LICENSE +13 -0
- package/README.md +30 -0
- package/cjs/gen/graphqlTypes.js +1785 -0
- package/cjs/index.js +10 -0
- package/cjs/private/data/analysis-result/analysisResultSubscriptionManager.js +25 -0
- package/cjs/private/data/analysis-result/defaultAnalysisResultService.js +83 -0
- package/cjs/private/data/analysis-result/transformer/analysisResultDataTransformer.js +57 -0
- package/cjs/private/data/analysis-result/transformer/analysisResultStatusTransformer.js +43 -0
- package/cjs/private/data/analysis-result/transformer/analysisResultTransformer.js +47 -0
- package/cjs/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +35 -0
- package/cjs/private/data/analysis-result/transformer/categorySignalsTransformer.js +51 -0
- package/cjs/private/data/analysis-result/transformer/dataCategoryTransformer.js +91 -0
- package/cjs/private/data/analysis-result/transformer/organizationCategoryTransformer.js +139 -0
- package/cjs/private/data/analysis-result/transformer/organizationIdentityTransformer.js +29 -0
- package/cjs/private/data/analysis-result/transformer/privacyScoreTransformer.js +29 -0
- package/cjs/private/data/analysis-result/transformer/privacySummaryTransformer.js +25 -0
- package/cjs/private/data/analysis-result/transformer/retentionInfoTransformer.js +27 -0
- package/cjs/private/data/analysis-result/transformer/retentionStyleTransformer.js +39 -0
- package/cjs/private/data/analysis-result/transformer/riskIndicatorsTransformer.js +35 -0
- package/cjs/private/data/analysis-result/transformer/shareStyleTransformer.js +41 -0
- package/cjs/private/data/analysis-result/transformer/signalValueTransformer.js +35 -0
- package/cjs/private/data/common/apiClient.js +209 -0
- package/cjs/private/data/common/baseSubscriptionManager.js +73 -0
- package/cjs/private/data/common/config.js +23 -0
- package/cjs/private/data/common/privateSudoPrivacyInteractionClientOptions.js +7 -0
- package/cjs/private/data/common/transformer/errorTransformer.js +30 -0
- package/cjs/private/data/data-holder/dataHolderSubscriptionManager.js +25 -0
- package/cjs/private/data/data-holder/defaultDataHolderService.js +72 -0
- package/cjs/private/data/data-holder/transformer/dataHolderProtectionStateTransformer.js +37 -0
- package/cjs/private/data/data-holder/transformer/dataHolderTransformer.js +44 -0
- package/cjs/private/data/virtual-presence/defaultVirtualPresenceService.js +74 -0
- package/cjs/private/data/virtual-presence/transformer/providerTypeTransformer.js +29 -0
- package/cjs/private/data/virtual-presence/transformer/virtualPresenceStateTransformer.js +45 -0
- package/cjs/private/data/virtual-presence/transformer/virtualPresenceTransformer.js +43 -0
- package/cjs/private/data/virtual-presence/virtualPresenceSubscriptionManager.js +25 -0
- package/cjs/private/domain/entities/analysis-result/analysisResultEntity.js +135 -0
- package/cjs/private/domain/entities/analysis-result/analysisResultService.js +7 -0
- package/cjs/private/domain/entities/data-holder/dataHolderEntity.js +24 -0
- package/cjs/private/domain/entities/data-holder/dataHolderService.js +7 -0
- package/cjs/private/domain/entities/inputs/scanOptionsEntity.js +7 -0
- package/cjs/private/domain/entities/virtual-presence/virtualPresenceEntity.js +38 -0
- package/cjs/private/domain/entities/virtual-presence/virtualPresenceService.js +7 -0
- package/cjs/private/domain/use-cases/analysis-result/getAnalysisResultUseCase.js +25 -0
- package/cjs/private/domain/use-cases/analysis-result/listAnalysisResultsUseCase.js +29 -0
- package/cjs/private/domain/use-cases/analysis-result/subscribeToAnalysisResultUseCase.js +37 -0
- package/cjs/private/domain/use-cases/analysis-result/unsubscribeFromAnalysisResultUseCase.js +27 -0
- package/cjs/private/domain/use-cases/data-holder/getDataHolderUseCase.js +25 -0
- package/cjs/private/domain/use-cases/data-holder/listDataHoldersUseCase.js +29 -0
- package/cjs/private/domain/use-cases/data-holder/subscribeToDataHoldersUseCase.js +37 -0
- package/cjs/private/domain/use-cases/data-holder/unsubscribeFromDataHoldersUseCase.js +27 -0
- package/cjs/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithAuthCodeUseCase.js +27 -0
- package/cjs/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.js +27 -0
- package/cjs/private/domain/use-cases/virtual-presence/disconnectVirtualPresenceUseCase.js +25 -0
- package/cjs/private/domain/use-cases/virtual-presence/listVirtualPresencesUseCase.js +30 -0
- package/cjs/private/domain/use-cases/virtual-presence/rescanVirtualPresenceUseCase.js +25 -0
- package/cjs/private/domain/use-cases/virtual-presence/subscribeToVirtualPresenceUseCase.js +37 -0
- package/cjs/private/domain/use-cases/virtual-presence/unsubscribeFromVirtualPresenceUseCase.js +27 -0
- package/cjs/public/defaultSudoPrivacyInteractionClient.js +173 -0
- package/cjs/public/errors.js +29 -0
- package/cjs/public/index.js +13 -0
- package/cjs/public/inputs/analysisResult.js +7 -0
- package/cjs/public/inputs/common.js +7 -0
- package/cjs/public/inputs/dataHolder.js +7 -0
- package/cjs/public/inputs/index.js +12 -0
- package/cjs/public/inputs/virtualPresence.js +7 -0
- package/cjs/public/sudoPrivacyInteractionClient.js +7 -0
- package/cjs/public/typings/analysisResult.js +135 -0
- package/cjs/public/typings/dataHolder.js +24 -0
- package/cjs/public/typings/index.js +12 -0
- package/cjs/public/typings/subscription.js +21 -0
- package/cjs/public/typings/virtualPresence.js +38 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +78 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1648 -0
- package/docs/classes/DefaultSudoPrivacyInteractionClient.html +383 -0
- package/docs/classes/InvalidArgumentError.html +181 -0
- package/docs/classes/PrivacyInteractionServiceConfigNotFoundError.html +181 -0
- package/docs/enums/AnalysisResultStatus.html +81 -0
- package/docs/enums/ConnectionState.html +67 -0
- package/docs/enums/DataCategory.html +153 -0
- package/docs/enums/DataHolderProtectionState.html +75 -0
- package/docs/enums/OrganizationCategory.html +225 -0
- package/docs/enums/ProviderType.html +63 -0
- package/docs/enums/RetentionStyle.html +75 -0
- package/docs/enums/ShareStyle.html +81 -0
- package/docs/enums/SignalValue.html +69 -0
- package/docs/enums/VirtualPresenceState.html +87 -0
- package/docs/hierarchy.html +39 -0
- package/docs/index.html +79 -0
- package/docs/interfaces/AnalysisResult.html +133 -0
- package/docs/interfaces/AnalysisResultData.html +102 -0
- package/docs/interfaces/AnalysisResultSubscriber.html +92 -0
- package/docs/interfaces/AnalysisResultUpdate.html +125 -0
- package/docs/interfaces/CapabilitySignals.html +109 -0
- package/docs/interfaces/CategorySignals.html +133 -0
- package/docs/interfaces/ConnectVirtualPresenceWithRefreshTokenInput.html +85 -0
- package/docs/interfaces/DataHolder.html +142 -0
- package/docs/interfaces/DataHolderSubscriber.html +92 -0
- package/docs/interfaces/ListAnalysisResultsInput.html +85 -0
- package/docs/interfaces/ListDataHoldersInput.html +85 -0
- package/docs/interfaces/ListVirtualPresencesInput.html +77 -0
- package/docs/interfaces/OrganizationIdentity.html +85 -0
- package/docs/interfaces/Pagination.html +77 -0
- package/docs/interfaces/PrivacyScore.html +69 -0
- package/docs/interfaces/PrivacySummary.html +77 -0
- package/docs/interfaces/RescanVirtualPresenceInput.html +69 -0
- package/docs/interfaces/RetentionInfo.html +77 -0
- package/docs/interfaces/RiskIndicators.html +110 -0
- package/docs/interfaces/ScanOptions.html +93 -0
- package/docs/interfaces/ScoreContribution.html +69 -0
- package/docs/interfaces/SudoPrivacyInteractionClient.html +347 -0
- package/docs/interfaces/VirtualPresence.html +126 -0
- package/docs/interfaces/VirtualPresenceSubscriber.html +92 -0
- package/docs/modules.html +48 -0
- package/docs/types/SudoPrivacyInteractionClientOptions.html +57 -0
- package/lib/gen/graphqlTypes.js +1782 -0
- package/lib/index.js +7 -0
- package/lib/private/data/analysis-result/analysisResultSubscriptionManager.js +21 -0
- package/lib/private/data/analysis-result/defaultAnalysisResultService.js +79 -0
- package/lib/private/data/analysis-result/transformer/analysisResultDataTransformer.js +53 -0
- package/lib/private/data/analysis-result/transformer/analysisResultStatusTransformer.js +39 -0
- package/lib/private/data/analysis-result/transformer/analysisResultTransformer.js +43 -0
- package/lib/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +31 -0
- package/lib/private/data/analysis-result/transformer/categorySignalsTransformer.js +47 -0
- package/lib/private/data/analysis-result/transformer/dataCategoryTransformer.js +87 -0
- package/lib/private/data/analysis-result/transformer/organizationCategoryTransformer.js +135 -0
- package/lib/private/data/analysis-result/transformer/organizationIdentityTransformer.js +25 -0
- package/lib/private/data/analysis-result/transformer/privacyScoreTransformer.js +25 -0
- package/lib/private/data/analysis-result/transformer/privacySummaryTransformer.js +21 -0
- package/lib/private/data/analysis-result/transformer/retentionInfoTransformer.js +23 -0
- package/lib/private/data/analysis-result/transformer/retentionStyleTransformer.js +35 -0
- package/lib/private/data/analysis-result/transformer/riskIndicatorsTransformer.js +31 -0
- package/lib/private/data/analysis-result/transformer/shareStyleTransformer.js +37 -0
- package/lib/private/data/analysis-result/transformer/signalValueTransformer.js +31 -0
- package/lib/private/data/common/apiClient.js +205 -0
- package/lib/private/data/common/baseSubscriptionManager.js +69 -0
- package/lib/private/data/common/config.js +18 -0
- package/lib/private/data/common/privateSudoPrivacyInteractionClientOptions.js +6 -0
- package/lib/private/data/common/transformer/errorTransformer.js +26 -0
- package/lib/private/data/data-holder/dataHolderSubscriptionManager.js +21 -0
- package/lib/private/data/data-holder/defaultDataHolderService.js +68 -0
- package/lib/private/data/data-holder/transformer/dataHolderProtectionStateTransformer.js +33 -0
- package/lib/private/data/data-holder/transformer/dataHolderTransformer.js +40 -0
- package/lib/private/data/virtual-presence/defaultVirtualPresenceService.js +70 -0
- package/lib/private/data/virtual-presence/transformer/providerTypeTransformer.js +25 -0
- package/lib/private/data/virtual-presence/transformer/virtualPresenceStateTransformer.js +41 -0
- package/lib/private/data/virtual-presence/transformer/virtualPresenceTransformer.js +39 -0
- package/lib/private/data/virtual-presence/virtualPresenceSubscriptionManager.js +21 -0
- package/lib/private/domain/entities/analysis-result/analysisResultEntity.js +132 -0
- package/lib/private/domain/entities/analysis-result/analysisResultService.js +6 -0
- package/lib/private/domain/entities/data-holder/dataHolderEntity.js +21 -0
- package/lib/private/domain/entities/data-holder/dataHolderService.js +6 -0
- package/lib/private/domain/entities/inputs/scanOptionsEntity.js +6 -0
- package/lib/private/domain/entities/virtual-presence/virtualPresenceEntity.js +35 -0
- package/lib/private/domain/entities/virtual-presence/virtualPresenceService.js +6 -0
- package/lib/private/domain/use-cases/analysis-result/getAnalysisResultUseCase.js +21 -0
- package/lib/private/domain/use-cases/analysis-result/listAnalysisResultsUseCase.js +25 -0
- package/lib/private/domain/use-cases/analysis-result/subscribeToAnalysisResultUseCase.js +33 -0
- package/lib/private/domain/use-cases/analysis-result/unsubscribeFromAnalysisResultUseCase.js +23 -0
- package/lib/private/domain/use-cases/data-holder/getDataHolderUseCase.js +21 -0
- package/lib/private/domain/use-cases/data-holder/listDataHoldersUseCase.js +25 -0
- package/lib/private/domain/use-cases/data-holder/subscribeToDataHoldersUseCase.js +33 -0
- package/lib/private/domain/use-cases/data-holder/unsubscribeFromDataHoldersUseCase.js +23 -0
- package/lib/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithAuthCodeUseCase.js +23 -0
- package/lib/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.js +23 -0
- package/lib/private/domain/use-cases/virtual-presence/disconnectVirtualPresenceUseCase.js +21 -0
- package/lib/private/domain/use-cases/virtual-presence/listVirtualPresencesUseCase.js +26 -0
- package/lib/private/domain/use-cases/virtual-presence/rescanVirtualPresenceUseCase.js +21 -0
- package/lib/private/domain/use-cases/virtual-presence/subscribeToVirtualPresenceUseCase.js +33 -0
- package/lib/private/domain/use-cases/virtual-presence/unsubscribeFromVirtualPresenceUseCase.js +23 -0
- package/lib/public/defaultSudoPrivacyInteractionClient.js +169 -0
- package/lib/public/errors.js +24 -0
- package/lib/public/index.js +10 -0
- package/lib/public/inputs/analysisResult.js +6 -0
- package/lib/public/inputs/common.js +6 -0
- package/lib/public/inputs/dataHolder.js +6 -0
- package/lib/public/inputs/index.js +9 -0
- package/lib/public/inputs/virtualPresence.js +6 -0
- package/lib/public/sudoPrivacyInteractionClient.js +6 -0
- package/lib/public/typings/analysisResult.js +132 -0
- package/lib/public/typings/dataHolder.js +21 -0
- package/lib/public/typings/index.js +9 -0
- package/lib/public/typings/subscription.js +18 -0
- package/lib/public/typings/virtualPresence.js +35 -0
- package/package.json +117 -8
- package/types/gen/graphqlTypes.d.ts +742 -0
- package/types/index.d.ts +6 -0
- package/types/private/data/analysis-result/analysisResultSubscriptionManager.d.ts +19 -0
- package/types/private/data/analysis-result/defaultAnalysisResultService.d.ts +20 -0
- package/types/private/data/analysis-result/transformer/analysisResultDataTransformer.d.ts +18 -0
- package/types/private/data/analysis-result/transformer/analysisResultStatusTransformer.d.ts +12 -0
- package/types/private/data/analysis-result/transformer/analysisResultTransformer.d.ts +14 -0
- package/types/private/data/analysis-result/transformer/capabilitySignalsTransformer.d.ts +13 -0
- package/types/private/data/analysis-result/transformer/categorySignalsTransformer.d.ts +16 -0
- package/types/private/data/analysis-result/transformer/dataCategoryTransformer.d.ts +12 -0
- package/types/private/data/analysis-result/transformer/organizationCategoryTransformer.d.ts +12 -0
- package/types/private/data/analysis-result/transformer/organizationIdentityTransformer.d.ts +13 -0
- package/types/private/data/analysis-result/transformer/privacyScoreTransformer.d.ts +12 -0
- package/types/private/data/analysis-result/transformer/privacySummaryTransformer.d.ts +12 -0
- package/types/private/data/analysis-result/transformer/retentionInfoTransformer.d.ts +13 -0
- package/types/private/data/analysis-result/transformer/retentionStyleTransformer.d.ts +12 -0
- package/types/private/data/analysis-result/transformer/riskIndicatorsTransformer.d.ts +13 -0
- package/types/private/data/analysis-result/transformer/shareStyleTransformer.d.ts +12 -0
- package/types/private/data/analysis-result/transformer/signalValueTransformer.d.ts +12 -0
- package/types/private/data/common/apiClient.d.ts +38 -0
- package/types/private/data/common/baseSubscriptionManager.d.ts +46 -0
- package/types/private/data/common/config.d.ts +13 -0
- package/types/private/data/common/privateSudoPrivacyInteractionClientOptions.d.ts +18 -0
- package/types/private/data/common/transformer/errorTransformer.d.ts +15 -0
- package/types/private/data/data-holder/dataHolderSubscriptionManager.d.ts +19 -0
- package/types/private/data/data-holder/defaultDataHolderService.d.ts +19 -0
- package/types/private/data/data-holder/transformer/dataHolderProtectionStateTransformer.d.ts +12 -0
- package/types/private/data/data-holder/transformer/dataHolderTransformer.d.ts +12 -0
- package/types/private/data/virtual-presence/defaultVirtualPresenceService.d.ts +21 -0
- package/types/private/data/virtual-presence/transformer/providerTypeTransformer.d.ts +12 -0
- package/types/private/data/virtual-presence/transformer/virtualPresenceStateTransformer.d.ts +12 -0
- package/types/private/data/virtual-presence/transformer/virtualPresenceTransformer.d.ts +12 -0
- package/types/private/data/virtual-presence/virtualPresenceSubscriptionManager.d.ts +18 -0
- package/types/private/domain/entities/analysis-result/analysisResultEntity.d.ts +306 -0
- package/types/private/domain/entities/analysis-result/analysisResultService.d.ts +81 -0
- package/types/private/domain/entities/data-holder/dataHolderEntity.d.ts +51 -0
- package/types/private/domain/entities/data-holder/dataHolderService.d.ts +81 -0
- package/types/private/domain/entities/inputs/scanOptionsEntity.d.ts +22 -0
- package/types/private/domain/entities/virtual-presence/virtualPresenceEntity.d.ts +60 -0
- package/types/private/domain/entities/virtual-presence/virtualPresenceService.d.ts +131 -0
- package/types/private/domain/use-cases/analysis-result/getAnalysisResultUseCase.d.ts +16 -0
- package/types/private/domain/use-cases/analysis-result/listAnalysisResultsUseCase.d.ts +36 -0
- package/types/private/domain/use-cases/analysis-result/subscribeToAnalysisResultUseCase.d.ts +27 -0
- package/types/private/domain/use-cases/analysis-result/unsubscribeFromAnalysisResultUseCase.d.ts +15 -0
- package/types/private/domain/use-cases/data-holder/getDataHolderUseCase.d.ts +16 -0
- package/types/private/domain/use-cases/data-holder/listDataHoldersUseCase.d.ts +36 -0
- package/types/private/domain/use-cases/data-holder/subscribeToDataHoldersUseCase.d.ts +27 -0
- package/types/private/domain/use-cases/data-holder/unsubscribeFromDataHoldersUseCase.d.ts +15 -0
- package/types/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithAuthCodeUseCase.d.ts +16 -0
- package/types/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.d.ts +28 -0
- package/types/private/domain/use-cases/virtual-presence/disconnectVirtualPresenceUseCase.d.ts +16 -0
- package/types/private/domain/use-cases/virtual-presence/listVirtualPresencesUseCase.d.ts +35 -0
- package/types/private/domain/use-cases/virtual-presence/rescanVirtualPresenceUseCase.d.ts +27 -0
- package/types/private/domain/use-cases/virtual-presence/subscribeToVirtualPresenceUseCase.d.ts +27 -0
- package/types/private/domain/use-cases/virtual-presence/unsubscribeFromVirtualPresenceUseCase.d.ts +15 -0
- package/types/public/defaultSudoPrivacyInteractionClient.d.ts +36 -0
- package/types/public/errors.d.ts +15 -0
- package/types/public/index.d.ts +10 -0
- package/types/public/inputs/analysisResult.d.ts +17 -0
- package/types/public/inputs/common.d.ts +16 -0
- package/types/public/inputs/dataHolder.d.ts +17 -0
- package/types/public/inputs/index.d.ts +9 -0
- package/types/public/inputs/virtualPresence.d.ts +58 -0
- package/types/public/sudoPrivacyInteractionClient.d.ts +123 -0
- package/types/public/typings/analysisResult.d.ts +331 -0
- package/types/public/typings/dataHolder.d.ts +51 -0
- package/types/public/typings/index.d.ts +9 -0
- package/types/public/typings/subscription.d.ts +86 -0
- package/types/public/typings/virtualPresence.d.ts +60 -0
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OnAnalysisResultUpdateSubscription } from '../../../gen/graphqlTypes';
|
|
7
|
+
import { AnalysisResultUpdate } from '../../../public/typings/analysisResult';
|
|
8
|
+
import { AnalysisResultSubscriber, ConnectionState } from '../../../public/typings/subscription';
|
|
9
|
+
import { BaseSubscriptionManager } from '../common/baseSubscriptionManager';
|
|
10
|
+
export type AnalysisResultSubscribable = OnAnalysisResultUpdateSubscription;
|
|
11
|
+
export declare class AnalysisResultSubscriptionManager<T extends AnalysisResultSubscribable, S extends AnalysisResultSubscriber> extends BaseSubscriptionManager<T, S> implements AnalysisResultSubscriber {
|
|
12
|
+
/**
|
|
13
|
+
* Notifies subscribers of an analysis result update.
|
|
14
|
+
*
|
|
15
|
+
* @param update The analysis result update.
|
|
16
|
+
*/
|
|
17
|
+
analysisResultUpdated(update: AnalysisResultUpdate): void;
|
|
18
|
+
connectionStatusChanged(state: ConnectionState): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { AnalysisResultEntity } from '../../domain/entities/analysis-result/analysisResultEntity';
|
|
7
|
+
import { AnalysisResultService, ListAnalysisResultsInput, ListAnalysisResultsOutput, SubscribeToAnalysisResultInput } from '../../domain/entities/analysis-result/analysisResultService';
|
|
8
|
+
import { ApiClient } from '../common/apiClient';
|
|
9
|
+
export declare class DefaultAnalysisResultService implements AnalysisResultService {
|
|
10
|
+
private readonly appSync;
|
|
11
|
+
private readonly analysisResultTransformer;
|
|
12
|
+
private readonly analysisResultStatusTransformer;
|
|
13
|
+
private readonly subscriptionManager;
|
|
14
|
+
constructor(appSync: ApiClient);
|
|
15
|
+
get(id: string): Promise<AnalysisResultEntity | undefined>;
|
|
16
|
+
list(input: ListAnalysisResultsInput): Promise<ListAnalysisResultsOutput>;
|
|
17
|
+
subscribe(input: SubscribeToAnalysisResultInput): Promise<void>;
|
|
18
|
+
unsubscribe(subscriptionId: string): void;
|
|
19
|
+
private setupUpdateSubscription;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { AnalysisResultData as AnalysisResultDataGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { AnalysisResultData } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { AnalysisResultDataEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class AnalysisResultDataTransformer {
|
|
10
|
+
private readonly privacyScoreTransformer;
|
|
11
|
+
private readonly privacySummaryTransformer;
|
|
12
|
+
private readonly categorySignalsTransformer;
|
|
13
|
+
private readonly capabilitySignalsTransformer;
|
|
14
|
+
private readonly riskIndicatorsTransformer;
|
|
15
|
+
private readonly organizationIdentityTransformer;
|
|
16
|
+
fromGraphQLToEntity(data: AnalysisResultDataGraphQL): AnalysisResultDataEntity;
|
|
17
|
+
fromEntityToAPI(entity: AnalysisResultDataEntity): AnalysisResultData;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { AnalysisResultStatus as AnalysisResultStatusGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { AnalysisResultStatus } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { AnalysisResultStatusEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class AnalysisResultStatusTransformer {
|
|
10
|
+
fromGraphQLToEntity(data: AnalysisResultStatusGraphQL): AnalysisResultStatusEntity;
|
|
11
|
+
fromEntityToAPI(entity: AnalysisResultStatusEntity): AnalysisResultStatus;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { AnalysisResult as AnalysisResultGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { AnalysisResult } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { AnalysisResultEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class AnalysisResultTransformer {
|
|
10
|
+
private readonly statusTransformer;
|
|
11
|
+
private readonly dataTransformer;
|
|
12
|
+
fromGraphQLToEntity(data: AnalysisResultGraphQL): AnalysisResultEntity;
|
|
13
|
+
fromEntityToAPI(entity: AnalysisResultEntity): AnalysisResult;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CapabilitySignals as CapabilitySignalsGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { CapabilitySignals } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { CapabilitySignalsEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class CapabilitySignalsTransformer {
|
|
10
|
+
private readonly signalValueTransformer;
|
|
11
|
+
fromGraphQLToEntity(data: CapabilitySignalsGraphQL): CapabilitySignalsEntity;
|
|
12
|
+
fromEntityToAPI(entity: CapabilitySignalsEntity): CapabilitySignals;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CategorySignals as CategorySignalsGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { CategorySignals } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { CategorySignalsEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class CategorySignalsTransformer {
|
|
10
|
+
private readonly dataCategoryTransformer;
|
|
11
|
+
private readonly signalValueTransformer;
|
|
12
|
+
private readonly shareStyleTransformer;
|
|
13
|
+
private readonly retentionInfoTransformer;
|
|
14
|
+
fromGraphQLToEntity(data: CategorySignalsGraphQL): CategorySignalsEntity;
|
|
15
|
+
fromEntityToAPI(entity: CategorySignalsEntity): CategorySignals;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { DataCategory as DataCategoryGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { DataCategory } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { DataCategoryEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class DataCategoryTransformer {
|
|
10
|
+
fromGraphQLToEntity(data: DataCategoryGraphQL): DataCategoryEntity;
|
|
11
|
+
fromEntityToAPI(entity: DataCategoryEntity): DataCategory;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OrganizationCategory as OrganizationCategoryGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { OrganizationCategory } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { OrganizationCategoryEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class OrganizationCategoryTransformer {
|
|
10
|
+
fromGraphQLToEntity(data: OrganizationCategoryGraphQL): OrganizationCategoryEntity;
|
|
11
|
+
fromEntityToAPI(entity: OrganizationCategoryEntity): OrganizationCategory;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OrganizationIdentity as OrganizationIdentityGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { OrganizationIdentity } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { OrganizationIdentityEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class OrganizationIdentityTransformer {
|
|
10
|
+
private readonly organizationCategoryTransformer;
|
|
11
|
+
fromGraphQLToEntity(data: OrganizationIdentityGraphQL): OrganizationIdentityEntity;
|
|
12
|
+
fromEntityToAPI(entity: OrganizationIdentityEntity): OrganizationIdentity;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { PrivacyScore as PrivacyScoreGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { PrivacyScore } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { PrivacyScoreEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class PrivacyScoreTransformer {
|
|
10
|
+
fromGraphQLToEntity(data: PrivacyScoreGraphQL): PrivacyScoreEntity;
|
|
11
|
+
fromEntityToAPI(entity: PrivacyScoreEntity): PrivacyScore;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { PrivacySummary as PrivacySummaryGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { PrivacySummary } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { PrivacySummaryEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class PrivacySummaryTransformer {
|
|
10
|
+
fromGraphQLToEntity(data: PrivacySummaryGraphQL): PrivacySummaryEntity;
|
|
11
|
+
fromEntityToAPI(entity: PrivacySummaryEntity): PrivacySummary;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { RetentionInfo as RetentionInfoGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { RetentionInfo } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { RetentionInfoEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class RetentionInfoTransformer {
|
|
10
|
+
private readonly retentionStyleTransformer;
|
|
11
|
+
fromGraphQLToEntity(data: RetentionInfoGraphQL): RetentionInfoEntity;
|
|
12
|
+
fromEntityToAPI(entity: RetentionInfoEntity): RetentionInfo;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { RetentionStyle as RetentionStyleGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { RetentionStyle } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { RetentionStyleEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class RetentionStyleTransformer {
|
|
10
|
+
fromGraphQLToEntity(data: RetentionStyleGraphQL): RetentionStyleEntity;
|
|
11
|
+
fromEntityToAPI(entity: RetentionStyleEntity): RetentionStyle;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { RiskIndicators as RiskIndicatorsGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { RiskIndicators } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { RiskIndicatorsEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class RiskIndicatorsTransformer {
|
|
10
|
+
private readonly signalValueTransformer;
|
|
11
|
+
fromGraphQLToEntity(data: RiskIndicatorsGraphQL): RiskIndicatorsEntity;
|
|
12
|
+
fromEntityToAPI(entity: RiskIndicatorsEntity): RiskIndicators;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { ShareStyle as ShareStyleGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { ShareStyle } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { ShareStyleEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class ShareStyleTransformer {
|
|
10
|
+
fromGraphQLToEntity(data: ShareStyleGraphQL): ShareStyleEntity;
|
|
11
|
+
fromEntityToAPI(entity: ShareStyleEntity): ShareStyle;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { SignalValue as SignalValueGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { SignalValue } from '../../../../public/typings/analysisResult';
|
|
8
|
+
import { SignalValueEntity } from '../../../domain/entities/analysis-result/analysisResultEntity';
|
|
9
|
+
export declare class SignalValueTransformer {
|
|
10
|
+
fromGraphQLToEntity(data: SignalValueGraphQL): SignalValueEntity;
|
|
11
|
+
fromEntityToAPI(entity: SignalValueEntity): SignalValue;
|
|
12
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { ApiClientManager } from '@sudoplatform/sudo-api-client';
|
|
7
|
+
import Observable from 'zen-observable';
|
|
8
|
+
import { AnalysisResult, AnalysisResultConnection, ConnectVirtualPresenceInput, DataHolder, DataHolderConnection, ListVirtualPresencesInput, OnAnalysisResultUpdateSubscription, OnDataHoldersUpdateSubscription, OnVirtualPresenceUpdateSubscription, ScanOptionsInput, VirtualPresence, VirtualPresenceConnection } from '../../../gen/graphqlTypes';
|
|
9
|
+
import { SubscriptionResult } from './baseSubscriptionManager';
|
|
10
|
+
export declare class ApiClient {
|
|
11
|
+
private readonly log;
|
|
12
|
+
private readonly client;
|
|
13
|
+
private readonly graphqlErrorTransformer;
|
|
14
|
+
constructor(apiClientManager?: ApiClientManager);
|
|
15
|
+
connectVirtualPresence(input: ConnectVirtualPresenceInput): Promise<VirtualPresence>;
|
|
16
|
+
disconnectVirtualPresence(id: string): Promise<VirtualPresence>;
|
|
17
|
+
rescanVirtualPresence(id: string, options?: ScanOptionsInput): Promise<VirtualPresence>;
|
|
18
|
+
listVirtualPresences(input: ListVirtualPresencesInput): Promise<VirtualPresenceConnection>;
|
|
19
|
+
getDataHolder(id: string): Promise<DataHolder | undefined>;
|
|
20
|
+
listDataHolders(input: {
|
|
21
|
+
virtualPresenceId: string;
|
|
22
|
+
limit?: number;
|
|
23
|
+
nextToken?: string;
|
|
24
|
+
}): Promise<DataHolderConnection>;
|
|
25
|
+
getAnalysisResult(id: string): Promise<AnalysisResult | undefined>;
|
|
26
|
+
listAnalysisResults(input: {
|
|
27
|
+
virtualPresenceId: string;
|
|
28
|
+
limit?: number;
|
|
29
|
+
nextToken?: string;
|
|
30
|
+
}): Promise<AnalysisResultConnection>;
|
|
31
|
+
onVirtualPresenceUpdated(owner: string): Promise<Observable<SubscriptionResult<OnVirtualPresenceUpdateSubscription>>>;
|
|
32
|
+
onDataHoldersUpdated(owner: string): Promise<Observable<SubscriptionResult<OnDataHoldersUpdateSubscription>>>;
|
|
33
|
+
onAnalysisResultUpdated(owner: string): Promise<Observable<SubscriptionResult<OnAnalysisResultUpdateSubscription>>>;
|
|
34
|
+
private performQuery;
|
|
35
|
+
private performMutation;
|
|
36
|
+
private performSubscription;
|
|
37
|
+
mapGraphQLCallError: (err: Error) => Error;
|
|
38
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Logger } from '@sudoplatform/sudo-common';
|
|
7
|
+
import Observable from 'zen-observable';
|
|
8
|
+
import { ConnectionState } from '../../../public/typings/subscription';
|
|
9
|
+
export type SubscriptionResult<T> = {
|
|
10
|
+
data: T;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Base interface that all subscription subscribers must implement.
|
|
14
|
+
*/
|
|
15
|
+
export interface BaseSubscriber {
|
|
16
|
+
connectionStatusChanged(state: ConnectionState): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Abstract base class for subscription managers. Handles the shared
|
|
20
|
+
* infrastructure of subscriber registration, watcher/subscription lifecycle,
|
|
21
|
+
* connection state broadcasting, and teardown on disconnect.
|
|
22
|
+
*/
|
|
23
|
+
export declare abstract class BaseSubscriptionManager<T, S extends BaseSubscriber> {
|
|
24
|
+
protected readonly log: Logger;
|
|
25
|
+
private subscribers;
|
|
26
|
+
private subscription;
|
|
27
|
+
private watcher;
|
|
28
|
+
constructor();
|
|
29
|
+
private reset;
|
|
30
|
+
subscribe(subscriptionId: string, subscriber: S): void;
|
|
31
|
+
unsubscribe(subscriptionId: string): void;
|
|
32
|
+
getWatcher(): Observable<SubscriptionResult<T>> | null;
|
|
33
|
+
setWatcher(value: Observable<SubscriptionResult<T>> | null): void;
|
|
34
|
+
setSubscription(value: ZenObservable.Subscription | undefined): this;
|
|
35
|
+
/**
|
|
36
|
+
* Processes AppSync subscription connection status change.
|
|
37
|
+
* Resets state on disconnect and notifies all subscribers.
|
|
38
|
+
*
|
|
39
|
+
* @param state The connection state.
|
|
40
|
+
*/
|
|
41
|
+
connectionStatusChanged(state: ConnectionState): void;
|
|
42
|
+
/**
|
|
43
|
+
* Get all currently registered subscribers.
|
|
44
|
+
*/
|
|
45
|
+
protected getSubscribers(): S[];
|
|
46
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import * as t from 'io-ts';
|
|
7
|
+
declare const PrivacyInteractionServiceConfigCodec: t.TypeC<{
|
|
8
|
+
apiUrl: t.StringC;
|
|
9
|
+
region: t.StringC;
|
|
10
|
+
}>;
|
|
11
|
+
export type PrivacyInteractionServiceConfig = t.TypeOf<typeof PrivacyInteractionServiceConfigCodec>;
|
|
12
|
+
export declare const getPrivacyInteractionServiceConfig: () => PrivacyInteractionServiceConfig;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { internal as SudoUserInternal } from '@sudoplatform/sudo-user';
|
|
7
|
+
import { SudoPrivacyInteractionClientOptions } from '../../../public/sudoPrivacyInteractionClient';
|
|
8
|
+
import { ApiClient } from './apiClient';
|
|
9
|
+
import { PrivacyInteractionServiceConfig } from './config';
|
|
10
|
+
/**
|
|
11
|
+
* Private DefaultSudoPrivacyInteractionClient for describing private options
|
|
12
|
+
* for supporting unit testing.
|
|
13
|
+
*/
|
|
14
|
+
export type PrivateSudoPrivacyInteractionClientOptions = {
|
|
15
|
+
apiClient?: ApiClient;
|
|
16
|
+
identityServiceConfig?: SudoUserInternal.IdentityServiceConfig;
|
|
17
|
+
privacyInteractionServiceConfig?: PrivacyInteractionServiceConfig;
|
|
18
|
+
} & SudoPrivacyInteractionClientOptions;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { GraphQLError } from 'graphql';
|
|
7
|
+
export declare class ErrorTransformer {
|
|
8
|
+
private readonly log;
|
|
9
|
+
constructor();
|
|
10
|
+
toClientError(error: {
|
|
11
|
+
errorType: string;
|
|
12
|
+
errorInfo?: string;
|
|
13
|
+
message: string;
|
|
14
|
+
} | GraphQLError): Error;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OnDataHoldersUpdateSubscription } from '../../../gen/graphqlTypes';
|
|
7
|
+
import { DataHolder } from '../../../public/typings/dataHolder';
|
|
8
|
+
import { ConnectionState, DataHolderSubscriber } from '../../../public/typings/subscription';
|
|
9
|
+
import { BaseSubscriptionManager } from '../common/baseSubscriptionManager';
|
|
10
|
+
export type DataHolderSubscribable = OnDataHoldersUpdateSubscription;
|
|
11
|
+
export declare class DataHolderSubscriptionManager<T extends DataHolderSubscribable, S extends DataHolderSubscriber> extends BaseSubscriptionManager<T, S> implements DataHolderSubscriber {
|
|
12
|
+
/**
|
|
13
|
+
* Notifies subscribers of data holder updates.
|
|
14
|
+
*
|
|
15
|
+
* @param dataHolders The updated data holders.
|
|
16
|
+
*/
|
|
17
|
+
dataHoldersUpdated(dataHolders: DataHolder[]): void;
|
|
18
|
+
connectionStatusChanged(state: ConnectionState): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { DataHolderEntity } from '../../domain/entities/data-holder/dataHolderEntity';
|
|
7
|
+
import { DataHolderService, ListDataHoldersInput, ListDataHoldersOutput, SubscribeToDataHoldersInput } from '../../domain/entities/data-holder/dataHolderService';
|
|
8
|
+
import { ApiClient } from '../common/apiClient';
|
|
9
|
+
export declare class DefaultDataHolderService implements DataHolderService {
|
|
10
|
+
private readonly appSync;
|
|
11
|
+
private readonly dataHolderTransformer;
|
|
12
|
+
private readonly subscriptionManager;
|
|
13
|
+
constructor(appSync: ApiClient);
|
|
14
|
+
get(id: string): Promise<DataHolderEntity | undefined>;
|
|
15
|
+
list(input: ListDataHoldersInput): Promise<ListDataHoldersOutput>;
|
|
16
|
+
subscribe(input: SubscribeToDataHoldersInput): Promise<void>;
|
|
17
|
+
unsubscribe(subscriptionId: string): void;
|
|
18
|
+
private setupUpdateSubscription;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { DataHolderProtectionState as DataHolderProtectionStateGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { DataHolderProtectionState } from '../../../../public';
|
|
8
|
+
import { DataHolderProtectionStateEntity } from '../../../domain/entities/data-holder/dataHolderEntity';
|
|
9
|
+
export declare class DataHolderProtectionStateTransformer {
|
|
10
|
+
fromEntityToAPI(entity: DataHolderProtectionStateEntity): DataHolderProtectionState;
|
|
11
|
+
fromGraphQLToEntity(data: DataHolderProtectionStateGraphQL): DataHolderProtectionStateEntity;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { DataHolder as DataHolderGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { DataHolder } from '../../../../public/typings/dataHolder';
|
|
8
|
+
import { DataHolderEntity } from '../../../domain/entities/data-holder/dataHolderEntity';
|
|
9
|
+
export declare class DataHolderTransformer {
|
|
10
|
+
fromGraphQLToEntity(data: DataHolderGraphQL): DataHolderEntity;
|
|
11
|
+
fromEntityToAPI(entity: DataHolderEntity): DataHolder;
|
|
12
|
+
}
|
|
@@ -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 { VirtualPresenceEntity } from '../../domain/entities/virtual-presence/virtualPresenceEntity';
|
|
7
|
+
import { ConnectVirtualPresenceInput, ListVirtualPresencesInput, ListVirtualPresencesOutput, SubscribeToVirtualPresenceInput, VirtualPresenceService, RescanVirtualPresenceInput } from '../../domain/entities/virtual-presence/virtualPresenceService';
|
|
8
|
+
import { ApiClient } from '../common/apiClient';
|
|
9
|
+
export declare class DefaultVirtualPresenceService implements VirtualPresenceService {
|
|
10
|
+
private readonly appSync;
|
|
11
|
+
private readonly virtualPresenceTransformer;
|
|
12
|
+
private readonly subscriptionManager;
|
|
13
|
+
constructor(appSync: ApiClient);
|
|
14
|
+
connect(input: ConnectVirtualPresenceInput): Promise<VirtualPresenceEntity>;
|
|
15
|
+
list(input: ListVirtualPresencesInput): Promise<ListVirtualPresencesOutput>;
|
|
16
|
+
rescan(input: RescanVirtualPresenceInput): Promise<VirtualPresenceEntity>;
|
|
17
|
+
disconnect(id: string): Promise<VirtualPresenceEntity>;
|
|
18
|
+
subscribe(input: SubscribeToVirtualPresenceInput): Promise<void>;
|
|
19
|
+
unsubscribe(subscriptionId: string): void;
|
|
20
|
+
private setupUpdateSubscription;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { ProviderType as ProviderTypeGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { ProviderType } from '../../../../public/typings/virtualPresence';
|
|
8
|
+
import { ProviderTypeEntity } from '../../../domain/entities/virtual-presence/virtualPresenceEntity';
|
|
9
|
+
export declare class ProviderTypeTransformer {
|
|
10
|
+
fromEntityToAPI(entity: ProviderTypeEntity): ProviderType;
|
|
11
|
+
fromGraphQLToEntity(data: ProviderTypeGraphQL): ProviderTypeEntity;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { VirtualPresenceState as VirtualPresenceStateGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { VirtualPresenceState } from '../../../../public/typings/virtualPresence';
|
|
8
|
+
import { VirtualPresenceStateEntity } from '../../../domain/entities/virtual-presence/virtualPresenceEntity';
|
|
9
|
+
export declare class VirtualPresenceStateTransformer {
|
|
10
|
+
fromEntityToAPI(entity: VirtualPresenceStateEntity): VirtualPresenceState;
|
|
11
|
+
fromGraphQLToEntity(data: VirtualPresenceStateGraphQL): VirtualPresenceStateEntity;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { VirtualPresence as VirtualPresenceGraphQL } from '../../../../gen/graphqlTypes';
|
|
7
|
+
import { VirtualPresence } from '../../../../public/typings/virtualPresence';
|
|
8
|
+
import { VirtualPresenceEntity } from '../../../domain/entities/virtual-presence/virtualPresenceEntity';
|
|
9
|
+
export declare class VirtualPresenceTransformer {
|
|
10
|
+
fromEntityToAPI(entity: VirtualPresenceEntity): VirtualPresence;
|
|
11
|
+
fromGraphQLToEntity(data: VirtualPresenceGraphQL): VirtualPresenceEntity;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright © 2026 Anonyome Labs, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { OnVirtualPresenceUpdateSubscription } from '../../../gen/graphqlTypes';
|
|
7
|
+
import { ConnectionState, VirtualPresence, VirtualPresenceSubscriber } from '../../../public';
|
|
8
|
+
import { BaseSubscriptionManager } from '../common/baseSubscriptionManager';
|
|
9
|
+
export type Subscribable = OnVirtualPresenceUpdateSubscription;
|
|
10
|
+
export declare class VirtualPresenceSubscriptionManager<T extends Subscribable, S extends VirtualPresenceSubscriber> extends BaseSubscriptionManager<T, S> implements VirtualPresenceSubscriber {
|
|
11
|
+
/**
|
|
12
|
+
* Notifies subscribers of a virtual presence update.
|
|
13
|
+
*
|
|
14
|
+
* @param virtualPresence An updated virtual presence.
|
|
15
|
+
*/
|
|
16
|
+
virtualPresenceUpdated(virtualPresence: VirtualPresence): void;
|
|
17
|
+
connectionStatusChanged(state: ConnectionState): void;
|
|
18
|
+
}
|