@oceanprotocol/lib 6.1.0 → 6.1.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/CHANGELOG.md +14 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.modern.js +1 -1
- package/dist/lib.modern.js.map +1 -1
- package/dist/lib.module.mjs +1 -1
- package/dist/lib.module.mjs.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/types/services/Provider.d.ts +2 -14
- package/dist/types/utils/eciesencrypt.d.ts +4 -2
- package/package.json +1 -1
|
@@ -88,19 +88,6 @@ export declare class Provider {
|
|
|
88
88
|
* @returns {Promise<ProviderInitialize>} A promise that resolves with ProviderInitialize response.
|
|
89
89
|
*/
|
|
90
90
|
initialize(did: string, serviceId: string, fileIndex: number, consumerAddress: string, providerUri: string, signal?: AbortSignal, userCustomParameters?: UserCustomParameters, computeEnv?: string, validUntil?: number): Promise<ProviderInitialize>;
|
|
91
|
-
/** Initializes the provider for a compute request.
|
|
92
|
-
* @param {ComputeAsset[]} assets The datasets array to initialize compute request.
|
|
93
|
-
* @param {ComputeAlgorithmber} algorithm The algorithm to use.
|
|
94
|
-
* @param {string} computeEnv The compute environment.
|
|
95
|
-
* @param {string} providerUri The provider URI.
|
|
96
|
-
* @param {string} accountId caller address
|
|
97
|
-
* @param {string} chainId The chain Id to start compute on
|
|
98
|
-
* @param {string} token The token to use for the compute payment
|
|
99
|
-
* @param {number} maxJobDuration The maximum duration the job can take
|
|
100
|
-
* @param {AbortSignal} signal abort signal
|
|
101
|
-
* @return {Promise<ProviderComputeInitialize>} ProviderComputeInitialize data
|
|
102
|
-
*/
|
|
103
|
-
initializeComputeV1(assets: ComputeAsset[], algorithm: ComputeAlgorithm, computeEnv: string, providerUri: string, accountId: string, chainId: number, token: string, maxJobDuration: number, signal?: AbortSignal): Promise<ProviderComputeInitializeResults>;
|
|
104
91
|
/** Initializes the provider for a compute request.
|
|
105
92
|
* @param {ComputeAsset[]} assets The datasets array to initialize compute request.
|
|
106
93
|
* @param {ComputeAlgorithmber} algorithm The algorithm to use.
|
|
@@ -113,10 +100,11 @@ export declare class Provider {
|
|
|
113
100
|
* @param {number} chainId The chain used to do payments
|
|
114
101
|
* @param {any} policyServer Policy server data.
|
|
115
102
|
* @param {AbortSignal} signal abort signal
|
|
103
|
+
* @param {ComputeOutput} output The compute job output settings.
|
|
116
104
|
* @param {dockerRegistryAuth} dockerRegistryAuth Docker registry authentication data.
|
|
117
105
|
* @return {Promise<ProviderComputeInitialize>} ProviderComputeInitialize data
|
|
118
106
|
*/
|
|
119
|
-
initializeCompute(assets: ComputeAsset[], algorithm: ComputeAlgorithm, computeEnv: string, token: string, validUntil: number, providerUri: string, signerOrAuthToken: Signer | string, resources: ComputeResourceRequest[], chainId: number, policyServer?: any, signal?: AbortSignal, dockerRegistryAuth?: dockerRegistryAuth): Promise<ProviderComputeInitializeResults>;
|
|
107
|
+
initializeCompute(assets: ComputeAsset[], algorithm: ComputeAlgorithm, computeEnv: string, token: string, validUntil: number, providerUri: string, signerOrAuthToken: Signer | string, resources: ComputeResourceRequest[], chainId: number, policyServer?: any, signal?: AbortSignal, output?: ComputeOutput, dockerRegistryAuth?: dockerRegistryAuth): Promise<ProviderComputeInitializeResults>;
|
|
120
108
|
/**
|
|
121
109
|
* Gets the download URL.
|
|
122
110
|
* @param {string} did - The DID.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
type PublicKeyInput = string | Uint8Array | number[] | Record<number, number>;
|
|
1
2
|
/**
|
|
2
3
|
* @dev eciesencrypt
|
|
3
4
|
* Encrypt content using ECIES and return the encrypted content as a hex string
|
|
4
5
|
*
|
|
5
|
-
* @param publicKey public key string
|
|
6
|
+
* @param publicKey public key as hex string, byte array, or numeric-key object
|
|
6
7
|
* @param content content to encrypt
|
|
7
8
|
*/
|
|
8
|
-
export declare function eciesencrypt(publicKey:
|
|
9
|
+
export declare function eciesencrypt(publicKey: PublicKeyInput, content: string): string;
|
|
10
|
+
export {};
|