@oceanprotocol/lib 10.1.0 → 11.0.0-next.2

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.
@@ -1,57 +0,0 @@
1
- import { Signer } from 'ethers';
2
- import { type Asset, type DDO, type ValidateMetadata } from '@oceanprotocol/ddo-js';
3
- export interface SearchQuery {
4
- from?: number;
5
- size?: number;
6
- query: any;
7
- sort?: {
8
- [jsonPath: string]: string;
9
- };
10
- aggs?: any;
11
- }
12
- export declare class Aquarius {
13
- aquariusURL: string;
14
- /**
15
- * Instantiate Aquarius
16
- * @param {String} aquariusURL
17
- */
18
- constructor(aquariusURL: string);
19
- /** Resolves a DID
20
- * @param {string} did DID of the asset.
21
- * @param {AbortSignal} signal abort signal
22
- * @return {Promise<Asset>} Asset
23
- */
24
- resolve(did: string, signal?: AbortSignal, authorization?: string): Promise<Asset>;
25
- /**
26
- * Blocks until Indexer will cache the did (or the update for that did) or timeouts
27
- * @param {string} did DID of the asset.
28
- * @param {string} txid used when the did exists and we expect an update with that txid.
29
- * @param {AbortSignal} signal abort signal
30
- * @return {Promise<Asset>} DDO of the asset.
31
- */
32
- waitForIndexer(did: string, txid?: string, signal?: AbortSignal, interval?: number, maxRetries?: number, authorization?: string): Promise<Asset>;
33
- /**
34
- * Validate DDO content
35
- * @param {DDO} ddo DID Descriptor Object content.
36
- * @param {Signer} signer ddo publisher account.
37
- * @param {String} providerUrl url used to get the nonce.
38
- * @param {AbortSignal} signal abort signal
39
- * @param {String} authorization header to pass to request
40
- * @return {Promise<ValidateMetadata>}.
41
- */
42
- validate(ddo: DDO, signer: Signer, providerUrl: string, signal?: AbortSignal, authorization?: string): Promise<ValidateMetadata>;
43
- /**
44
- * Search over the DDOs using a query.
45
- * @param {string} did DID of the asset
46
- * @param {AbortSignal} signal abort signal
47
- * @return {Promise<QueryResult>}
48
- */
49
- getAssetMetadata(did: string, signal?: AbortSignal, authorization?: string): Promise<any>;
50
- /**
51
- * Search over the DDOs using a query.
52
- * @param {SearchQuery} query Query to filter the DDOs.
53
- * @param {AbortSignal} signal abort signal
54
- * @return {Promise<QueryResult>}
55
- */
56
- querySearch(query: SearchQuery, signal?: AbortSignal, authorization?: string): Promise<any>;
57
- }