@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.
- package/README.md +8 -7
- package/dist/lib.modern.mjs +2 -2
- package/dist/lib.module.mjs +2 -2
- package/dist/types/@types/Compute.d.ts +1 -0
- package/dist/types/@types/Jwt.d.ts +8 -0
- package/dist/types/@types/Provider.d.ts +85 -0
- package/dist/types/@types/Query.d.ts +59 -0
- package/dist/types/@types/Services.d.ts +3 -0
- package/dist/types/@types/index.d.ts +2 -0
- package/dist/types/contracts/NFT.d.ts +1 -1
- package/dist/types/services/index.d.ts +0 -1
- package/dist/types/services/providers/BaseProvider.d.ts +33 -5
- package/dist/types/services/providers/HttpProvider.d.ts +17 -13
- package/dist/types/services/providers/P2pProvider.d.ts +14 -4
- package/dist/types/utils/Assets.d.ts +1 -3
- package/dist/types/utils/AuthToken.d.ts +37 -0
- package/dist/types/utils/CommandCatalog.d.ts +5 -0
- package/dist/types/utils/Jwt.d.ts +1 -1
- package/dist/types/utils/NodeIdentity.d.ts +36 -0
- package/dist/types/utils/SignatureUtils.d.ts +24 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/package.json +3 -2
- package/dist/types/services/Aquarius.d.ts +0 -57
|
@@ -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
|
-
}
|