UNPKG

@iexec/dataprotector

Version:

This product enables users to confidentially store data–such as mail address, documents, personal information ...

37 lines (36 loc) 4.2 kB
import { IExecDataProtectorModule } from '../IExecDataProtectorModule.js'; import { AddAppToAppWhitelistParams, AddToCollectionParams, BuyProtectedDataParams, ConsumeProtectedDataParams, ConsumeProtectedDataResponse, CreateAppWhitelistResponse, CreateCollectionResponse, GetCollectionOwnersParams, GetCollectionOwnersResponse, GetCollectionsByOwnerParams, GetCollectionsByOwnerResponse, GetCollectionSubscriptionsParams, GetCollectionSubscriptionsResponse, GetProtectedDataInCollectionsParams, GetProtectedDataInCollectionsResponse, GetProtectedDataPricingParams, GetProtectedDataPricingParamsResponse, GetRentalsParams, GetRentalsResponse, GetUserAppWhitelistParams, GetUserAppWhitelistResponse, RemoveCollectionParams, RemoveFromCollectionParams, RemoveProtectedDataForSaleParams, RemoveProtectedDataFromRentingParams, RemoveProtectedDataFromSubscriptionParams, RentProtectedDataParams, SetProtectedDataForSaleParams, SetProtectedDataRentingParams, SetProtectedDataToRentingParams, SetProtectedDataToSubscriptionParams, SetSubscriptionParams, SubscribeToCollectionParams, SuccessWithTransactionHash } from '../types/index.js'; declare class IExecDataProtectorSharing extends IExecDataProtectorModule { /******************************************************************* * Read / write functions * ******************************************************************/ createCollection(): Promise<CreateCollectionResponse>; removeCollection(args: RemoveCollectionParams): Promise<SuccessWithTransactionHash>; addToCollection(args: AddToCollectionParams): Promise<SuccessWithTransactionHash>; removeProtectedDataFromCollection(args: RemoveFromCollectionParams): Promise<SuccessWithTransactionHash>; setProtectedDataToRenting(args: SetProtectedDataToRentingParams): Promise<SuccessWithTransactionHash>; setProtectedDataRentingParams(args: SetProtectedDataRentingParams): Promise<SuccessWithTransactionHash>; rentProtectedData(args: RentProtectedDataParams): Promise<SuccessWithTransactionHash>; removeProtectedDataFromRenting(args: RemoveProtectedDataFromRentingParams): Promise<SuccessWithTransactionHash>; setProtectedDataForSale(args: SetProtectedDataForSaleParams): Promise<SuccessWithTransactionHash>; buyProtectedData(args: BuyProtectedDataParams): Promise<SuccessWithTransactionHash>; removeProtectedDataForSale(args: RemoveProtectedDataForSaleParams): Promise<SuccessWithTransactionHash>; setSubscriptionParams(args: SetSubscriptionParams): Promise<SuccessWithTransactionHash>; setProtectedDataToSubscription(args: SetProtectedDataToSubscriptionParams): Promise<SuccessWithTransactionHash>; subscribeToCollection(args: SubscribeToCollectionParams): Promise<SuccessWithTransactionHash>; removeProtectedDataFromSubscription(args: RemoveProtectedDataFromSubscriptionParams): Promise<SuccessWithTransactionHash>; consumeProtectedData(args: ConsumeProtectedDataParams): Promise<ConsumeProtectedDataResponse>; createAddOnlyAppWhitelist(): Promise<CreateAppWhitelistResponse>; addAppToAddOnlyAppWhitelist(args: AddAppToAppWhitelistParams): Promise<SuccessWithTransactionHash>; /******************************************************************* * Read-only functions * ******************************************************************/ getProtectedDataInCollections(args?: GetProtectedDataInCollectionsParams): Promise<GetProtectedDataInCollectionsResponse>; getProtectedDataPricingParams(args: GetProtectedDataPricingParams): Promise<GetProtectedDataPricingParamsResponse>; getCollectionOwners(args?: GetCollectionOwnersParams): Promise<GetCollectionOwnersResponse>; getCollectionsByOwner(args: GetCollectionsByOwnerParams): Promise<GetCollectionsByOwnerResponse>; getCollectionSubscriptions(args?: GetCollectionSubscriptionsParams): Promise<GetCollectionSubscriptionsResponse>; getRentals(args?: GetRentalsParams): Promise<GetRentalsResponse>; getUserAddOnlyAppWhitelist(args?: GetUserAppWhitelistParams): Promise<GetUserAppWhitelistResponse>; } export { IExecDataProtectorSharing };