@oceanprotocol/lib 5.0.2 → 5.0.4

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;
@@ -73,6 +73,10 @@ export interface ComputeJob {
73
73
  agreementId?: string;
74
74
  expireTimestamp: number;
75
75
  metadata?: ComputeJobMetadata;
76
+ terminationDetails?: {
77
+ exitCode?: number;
78
+ OOMKilled?: boolean;
79
+ };
76
80
  }
77
81
  export interface ComputeOutput {
78
82
  publishAlgorithmLog?: boolean;
@@ -123,11 +127,24 @@ export interface ComputeAsset {
123
127
  [key: string]: any;
124
128
  };
125
129
  }
130
+ export interface ExtendedMetadataAlgorithm extends MetadataAlgorithm {
131
+ container: {
132
+ entrypoint: string;
133
+ image: string;
134
+ tag: string;
135
+ checksum: string;
136
+ dockerfile?: string;
137
+ additionalDockerFiles?: {
138
+ [key: string]: any;
139
+ };
140
+ consumerParameters?: ConsumerParameter[];
141
+ };
142
+ }
126
143
  export interface ComputeAlgorithm {
127
144
  fileObject?: BaseFileObject;
128
145
  documentId?: string;
129
146
  serviceId?: string;
130
- meta?: MetadataAlgorithm;
147
+ meta?: ExtendedMetadataAlgorithm;
131
148
  transferTxId?: string;
132
149
  algocustomdata?: {
133
150
  [key: string]: any;
@@ -135,6 +152,9 @@ export interface ComputeAlgorithm {
135
152
  userdata?: {
136
153
  [key: string]: any;
137
154
  };
155
+ envs?: {
156
+ [key: string]: string;
157
+ };
138
158
  }
139
159
  export interface ComputePayment {
140
160
  chainId: number;
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.2",
4
+ "version": "5.0.4",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.cjs",
7
7
  "umd:main": "dist/lib.umd.js",
@@ -58,7 +58,7 @@
58
58
  "dependencies": {
59
59
  "@oasisprotocol/sapphire-paratime": "^1.3.2",
60
60
  "@oceanprotocol/contracts": "^2.4.0",
61
- "@oceanprotocol/ddo-js": "^0.1.3",
61
+ "@oceanprotocol/ddo-js": "^0.1.4",
62
62
  "@rdfjs/dataset": "^2.0.2",
63
63
  "@rdfjs/formats-common": "^3.1.0",
64
64
  "@zazuko/env-node": "^2.1.4",
@@ -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",