@oceanprotocol/lib 5.0.1 → 5.0.3

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,4 +1,4 @@
1
- import { Metadata, MetadataAlgorithm } from '@oceanprotocol/ddo-js';
1
+ import { Metadata, MetadataAlgorithm, ConsumerParameter } from '@oceanprotocol/ddo-js';
2
2
  export type ComputeResultType = 'algorithmLog' | 'output' | 'configrationLog' | 'publishLog';
3
3
  export interface RunningPlatform {
4
4
  architecture: string;
@@ -123,11 +123,24 @@ export interface ComputeAsset {
123
123
  [key: string]: any;
124
124
  };
125
125
  }
126
+ export interface ExtendedMetadataAlgorithm extends MetadataAlgorithm {
127
+ container: {
128
+ entrypoint: string;
129
+ image: string;
130
+ tag: string;
131
+ checksum: string;
132
+ dockerfile?: string;
133
+ additionalDockerFiles?: {
134
+ [key: string]: any;
135
+ };
136
+ consumerParameters?: ConsumerParameter[];
137
+ };
138
+ }
126
139
  export interface ComputeAlgorithm {
127
140
  fileObject?: BaseFileObject;
128
141
  documentId?: string;
129
142
  serviceId?: string;
130
- meta?: MetadataAlgorithm;
143
+ meta?: ExtendedMetadataAlgorithm;
131
144
  transferTxId?: string;
132
145
  algocustomdata?: {
133
146
  [key: string]: any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "5.0.1",
4
+ "version": "5.0.3",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.cjs",
7
7
  "umd:main": "dist/lib.umd.js",
@@ -78,7 +78,7 @@
78
78
  "@types/crypto-js": "^4.1.1",
79
79
  "@types/jsonwebtoken": "^9.0.10",
80
80
  "@types/mocha": "^10.0.10",
81
- "@types/node": "^22.15.29",
81
+ "@types/node": "^24.3.0",
82
82
  "@types/node-fetch": "^3.0.3",
83
83
  "@typescript-eslint/eslint-plugin": "^6.4.1",
84
84
  "@typescript-eslint/parser": "^6.4.1",