@robosystems/client 0.2.17 → 0.2.20

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.
@@ -205,7 +205,15 @@ class FileClient {
205
205
  return fileOrBuffer.arrayBuffer();
206
206
  }
207
207
  if (Buffer.isBuffer(fileOrBuffer)) {
208
- return fileOrBuffer.buffer.slice(fileOrBuffer.byteOffset, fileOrBuffer.byteOffset + fileOrBuffer.byteLength);
208
+ const buffer = fileOrBuffer.buffer.slice(fileOrBuffer.byteOffset, fileOrBuffer.byteOffset + fileOrBuffer.byteLength);
209
+ // Convert SharedArrayBuffer to ArrayBuffer if needed
210
+ if (buffer instanceof ArrayBuffer) {
211
+ return buffer;
212
+ }
213
+ // Handle SharedArrayBuffer by copying to ArrayBuffer
214
+ const arrayBuffer = new ArrayBuffer(buffer.byteLength);
215
+ new Uint8Array(arrayBuffer).set(new Uint8Array(buffer));
216
+ return arrayBuffer;
209
217
  }
210
218
  if ('getReader' in fileOrBuffer) {
211
219
  const reader = fileOrBuffer.getReader();
@@ -284,10 +284,18 @@ export class FileClient {
284
284
  }
285
285
 
286
286
  if (Buffer.isBuffer(fileOrBuffer)) {
287
- return fileOrBuffer.buffer.slice(
287
+ const buffer = fileOrBuffer.buffer.slice(
288
288
  fileOrBuffer.byteOffset,
289
289
  fileOrBuffer.byteOffset + fileOrBuffer.byteLength
290
290
  )
291
+ // Convert SharedArrayBuffer to ArrayBuffer if needed
292
+ if (buffer instanceof ArrayBuffer) {
293
+ return buffer
294
+ }
295
+ // Handle SharedArrayBuffer by copying to ArrayBuffer
296
+ const arrayBuffer = new ArrayBuffer(buffer.byteLength)
297
+ new Uint8Array(arrayBuffer).set(new Uint8Array(buffer))
298
+ return arrayBuffer
291
299
  }
292
300
 
293
301
  if ('getReader' in fileOrBuffer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "0.2.17",
3
+ "version": "0.2.20",
4
4
  "description": "TypeScript client library for RoboSystems Financial Knowledge Graph API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -109,8 +109,8 @@
109
109
  "@testing-library/react": "^16.3.0",
110
110
  "@types/node": "^22.0.0",
111
111
  "@types/react": "^19.1.9",
112
- "@typescript-eslint/eslint-plugin": "^7.0.0",
113
- "@typescript-eslint/parser": "^7.0.0",
112
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
113
+ "@typescript-eslint/parser": "^8.0.0",
114
114
  "eslint": "^8.0.0",
115
115
  "eslint-config-prettier": "^10.0.0",
116
116
  "eslint-plugin-prettier": "^5.0.0",
@@ -119,7 +119,7 @@
119
119
  "prettier-plugin-organize-imports": "^4.0.0",
120
120
  "react": "^19.2.0",
121
121
  "react-dom": "^19.2.0",
122
- "typescript": "5.5.4",
122
+ "typescript": "^5.7.2",
123
123
  "vitest": "^4.0.3"
124
124
  },
125
125
  "publishConfig": {
@@ -2049,6 +2049,26 @@ export type GraphInfo = {
2049
2049
  * Repository type if isRepository=true
2050
2050
  */
2051
2051
  repositoryType?: string | null;
2052
+ /**
2053
+ * Schemaextensions
2054
+ * List of schema extensions installed on this graph
2055
+ */
2056
+ schemaExtensions?: Array<string>;
2057
+ /**
2058
+ * Issubgraph
2059
+ * Whether this is a subgraph (vs a main graph)
2060
+ */
2061
+ isSubgraph?: boolean;
2062
+ /**
2063
+ * Parentgraphid
2064
+ * Parent graph ID if this is a subgraph
2065
+ */
2066
+ parentGraphId?: string | null;
2067
+ /**
2068
+ * Graphtype
2069
+ * Type of graph: generic, entity, or repository
2070
+ */
2071
+ graphType?: string;
2052
2072
  };
2053
2073
  /**
2054
2074
  * GraphLimitsResponse
package/sdk/types.gen.ts CHANGED
@@ -2116,6 +2116,26 @@ export type GraphInfo = {
2116
2116
  * Repository type if isRepository=true
2117
2117
  */
2118
2118
  repositoryType?: string | null;
2119
+ /**
2120
+ * Schemaextensions
2121
+ * List of schema extensions installed on this graph
2122
+ */
2123
+ schemaExtensions?: Array<string>;
2124
+ /**
2125
+ * Issubgraph
2126
+ * Whether this is a subgraph (vs a main graph)
2127
+ */
2128
+ isSubgraph?: boolean;
2129
+ /**
2130
+ * Parentgraphid
2131
+ * Parent graph ID if this is a subgraph
2132
+ */
2133
+ parentGraphId?: string | null;
2134
+ /**
2135
+ * Graphtype
2136
+ * Type of graph: generic, entity, or repository
2137
+ */
2138
+ graphType?: string;
2119
2139
  };
2120
2140
 
2121
2141
  /**
@@ -205,7 +205,15 @@ class FileClient {
205
205
  return fileOrBuffer.arrayBuffer();
206
206
  }
207
207
  if (Buffer.isBuffer(fileOrBuffer)) {
208
- return fileOrBuffer.buffer.slice(fileOrBuffer.byteOffset, fileOrBuffer.byteOffset + fileOrBuffer.byteLength);
208
+ const buffer = fileOrBuffer.buffer.slice(fileOrBuffer.byteOffset, fileOrBuffer.byteOffset + fileOrBuffer.byteLength);
209
+ // Convert SharedArrayBuffer to ArrayBuffer if needed
210
+ if (buffer instanceof ArrayBuffer) {
211
+ return buffer;
212
+ }
213
+ // Handle SharedArrayBuffer by copying to ArrayBuffer
214
+ const arrayBuffer = new ArrayBuffer(buffer.byteLength);
215
+ new Uint8Array(arrayBuffer).set(new Uint8Array(buffer));
216
+ return arrayBuffer;
209
217
  }
210
218
  if ('getReader' in fileOrBuffer) {
211
219
  const reader = fileOrBuffer.getReader();
@@ -284,10 +284,18 @@ export class FileClient {
284
284
  }
285
285
 
286
286
  if (Buffer.isBuffer(fileOrBuffer)) {
287
- return fileOrBuffer.buffer.slice(
287
+ const buffer = fileOrBuffer.buffer.slice(
288
288
  fileOrBuffer.byteOffset,
289
289
  fileOrBuffer.byteOffset + fileOrBuffer.byteLength
290
290
  )
291
+ // Convert SharedArrayBuffer to ArrayBuffer if needed
292
+ if (buffer instanceof ArrayBuffer) {
293
+ return buffer
294
+ }
295
+ // Handle SharedArrayBuffer by copying to ArrayBuffer
296
+ const arrayBuffer = new ArrayBuffer(buffer.byteLength)
297
+ new Uint8Array(arrayBuffer).set(new Uint8Array(buffer))
298
+ return arrayBuffer
291
299
  }
292
300
 
293
301
  if ('getReader' in fileOrBuffer) {
package/types.gen.d.ts CHANGED
@@ -2049,6 +2049,26 @@ export type GraphInfo = {
2049
2049
  * Repository type if isRepository=true
2050
2050
  */
2051
2051
  repositoryType?: string | null;
2052
+ /**
2053
+ * Schemaextensions
2054
+ * List of schema extensions installed on this graph
2055
+ */
2056
+ schemaExtensions?: Array<string>;
2057
+ /**
2058
+ * Issubgraph
2059
+ * Whether this is a subgraph (vs a main graph)
2060
+ */
2061
+ isSubgraph?: boolean;
2062
+ /**
2063
+ * Parentgraphid
2064
+ * Parent graph ID if this is a subgraph
2065
+ */
2066
+ parentGraphId?: string | null;
2067
+ /**
2068
+ * Graphtype
2069
+ * Type of graph: generic, entity, or repository
2070
+ */
2071
+ graphType?: string;
2052
2072
  };
2053
2073
  /**
2054
2074
  * GraphLimitsResponse
package/types.gen.ts CHANGED
@@ -2116,6 +2116,26 @@ export type GraphInfo = {
2116
2116
  * Repository type if isRepository=true
2117
2117
  */
2118
2118
  repositoryType?: string | null;
2119
+ /**
2120
+ * Schemaextensions
2121
+ * List of schema extensions installed on this graph
2122
+ */
2123
+ schemaExtensions?: Array<string>;
2124
+ /**
2125
+ * Issubgraph
2126
+ * Whether this is a subgraph (vs a main graph)
2127
+ */
2128
+ isSubgraph?: boolean;
2129
+ /**
2130
+ * Parentgraphid
2131
+ * Parent graph ID if this is a subgraph
2132
+ */
2133
+ parentGraphId?: string | null;
2134
+ /**
2135
+ * Graphtype
2136
+ * Type of graph: generic, entity, or repository
2137
+ */
2138
+ graphType?: string;
2119
2139
  };
2120
2140
 
2121
2141
  /**