@oceanprotocol/lib 6.1.1 → 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.
@@ -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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "6.1.1",
4
+ "version": "6.1.2",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.cjs",
7
7
  "umd:main": "dist/lib.umd.js",