samyama-sdk 0.6.0 → 1.8.0
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/dist/src/client.d.ts +46 -4
- package/dist/src/client.js +66 -13
- package/dist/src/http-client.d.ts +13 -2
- package/dist/src/http-client.js +66 -7
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.js +2 -7
- package/dist/src/types.d.ts +84 -0
- package/dist/src/types.js +1 -2
- package/package.json +3 -1
package/dist/src/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { QueryResult, ServerStatus, ClientOptions } from "./types";
|
|
1
|
+
import type { QueryResult, ServerStatus, ClientOptions, GraphSchema, SampleRequest, SampleResult, CsvImportResult, JsonImportResult } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Client for the Samyama Graph Database.
|
|
4
4
|
*
|
|
@@ -12,6 +12,14 @@ import type { QueryResult, ServerStatus, ClientOptions } from "./types";
|
|
|
12
12
|
* // Query data
|
|
13
13
|
* const result = await client.queryReadonly("MATCH (n:Person) RETURN n.name");
|
|
14
14
|
* console.log(result.records);
|
|
15
|
+
*
|
|
16
|
+
* // Schema introspection
|
|
17
|
+
* const schema = await client.schema();
|
|
18
|
+
* console.log(schema.node_types);
|
|
19
|
+
*
|
|
20
|
+
* // EXPLAIN / PROFILE
|
|
21
|
+
* const plan = await client.explain("MATCH (n:Person) RETURN n");
|
|
22
|
+
* const profile = await client.profile("MATCH (n:Person) RETURN n");
|
|
15
23
|
* ```
|
|
16
24
|
*/
|
|
17
25
|
export declare class SamyamaClient {
|
|
@@ -23,15 +31,49 @@ export declare class SamyamaClient {
|
|
|
23
31
|
*/
|
|
24
32
|
static connectHttp(url?: string): SamyamaClient;
|
|
25
33
|
/** Execute a read-write Cypher query */
|
|
26
|
-
query(cypher: string,
|
|
34
|
+
query(cypher: string, graph?: string): Promise<QueryResult>;
|
|
27
35
|
/** Execute a read-only Cypher query */
|
|
28
|
-
queryReadonly(cypher: string,
|
|
36
|
+
queryReadonly(cypher: string, graph?: string): Promise<QueryResult>;
|
|
37
|
+
/**
|
|
38
|
+
* Return the EXPLAIN plan for a Cypher query without executing it.
|
|
39
|
+
* Returns the plan as text rows in the QueryResult records.
|
|
40
|
+
*/
|
|
41
|
+
explain(cypher: string, graph?: string): Promise<QueryResult>;
|
|
42
|
+
/**
|
|
43
|
+
* Execute a Cypher query with PROFILE instrumentation.
|
|
44
|
+
* Returns plan text with actual row counts and timing per operator.
|
|
45
|
+
*/
|
|
46
|
+
profile(cypher: string, graph?: string): Promise<QueryResult>;
|
|
29
47
|
/** Delete a graph (executes MATCH (n) DELETE n) */
|
|
30
|
-
deleteGraph(
|
|
48
|
+
deleteGraph(graph?: string): Promise<void>;
|
|
31
49
|
/** List graphs (OSS: always returns ["default"]) */
|
|
32
50
|
listGraphs(): Promise<string[]>;
|
|
33
51
|
/** Get server status */
|
|
34
52
|
status(): Promise<ServerStatus>;
|
|
53
|
+
/** Get graph schema (node types, edge types, indexes, constraints, statistics) */
|
|
54
|
+
schema(): Promise<GraphSchema>;
|
|
55
|
+
/**
|
|
56
|
+
* Sample a subgraph for visualization.
|
|
57
|
+
* Returns a proportionally sampled set of nodes and edges.
|
|
58
|
+
* @param options - max_nodes (default 200), labels filter, graph/tenant name
|
|
59
|
+
*/
|
|
60
|
+
sample(options?: SampleRequest): Promise<SampleResult>;
|
|
61
|
+
/**
|
|
62
|
+
* Import nodes from CSV content.
|
|
63
|
+
* @param csvContent - Raw CSV string (first row = headers)
|
|
64
|
+
* @param label - Node label to assign
|
|
65
|
+
* @param options - Optional: idColumn, delimiter
|
|
66
|
+
*/
|
|
67
|
+
importCsv(csvContent: string, label: string, options?: {
|
|
68
|
+
idColumn?: string;
|
|
69
|
+
delimiter?: string;
|
|
70
|
+
}): Promise<CsvImportResult>;
|
|
71
|
+
/**
|
|
72
|
+
* Import nodes from JSON objects.
|
|
73
|
+
* @param label - Node label to assign
|
|
74
|
+
* @param nodes - Array of objects, each becoming a node
|
|
75
|
+
*/
|
|
76
|
+
importJson(label: string, nodes: Record<string, unknown>[]): Promise<JsonImportResult>;
|
|
35
77
|
/** Ping the server */
|
|
36
78
|
ping(): Promise<string>;
|
|
37
79
|
}
|
package/dist/src/client.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SamyamaClient = void 0;
|
|
4
|
-
const http_client_1 = require("./http-client");
|
|
1
|
+
import { HttpTransport } from "./http-client.js";
|
|
5
2
|
const DEFAULT_URL = "http://localhost:8080";
|
|
6
3
|
/**
|
|
7
4
|
* Client for the Samyama Graph Database.
|
|
@@ -16,12 +13,20 @@ const DEFAULT_URL = "http://localhost:8080";
|
|
|
16
13
|
* // Query data
|
|
17
14
|
* const result = await client.queryReadonly("MATCH (n:Person) RETURN n.name");
|
|
18
15
|
* console.log(result.records);
|
|
16
|
+
*
|
|
17
|
+
* // Schema introspection
|
|
18
|
+
* const schema = await client.schema();
|
|
19
|
+
* console.log(schema.node_types);
|
|
20
|
+
*
|
|
21
|
+
* // EXPLAIN / PROFILE
|
|
22
|
+
* const plan = await client.explain("MATCH (n:Person) RETURN n");
|
|
23
|
+
* const profile = await client.profile("MATCH (n:Person) RETURN n");
|
|
19
24
|
* ```
|
|
20
25
|
*/
|
|
21
|
-
class SamyamaClient {
|
|
26
|
+
export class SamyamaClient {
|
|
22
27
|
constructor(options) {
|
|
23
28
|
const url = options?.url ?? DEFAULT_URL;
|
|
24
|
-
this.http = new
|
|
29
|
+
this.http = new HttpTransport(url);
|
|
25
30
|
}
|
|
26
31
|
/**
|
|
27
32
|
* Connect to a Samyama server via HTTP.
|
|
@@ -31,16 +36,36 @@ class SamyamaClient {
|
|
|
31
36
|
return new SamyamaClient({ url });
|
|
32
37
|
}
|
|
33
38
|
/** Execute a read-write Cypher query */
|
|
34
|
-
async query(cypher,
|
|
35
|
-
return this.http.query(cypher);
|
|
39
|
+
async query(cypher, graph = "default") {
|
|
40
|
+
return this.http.query(cypher, graph);
|
|
36
41
|
}
|
|
37
42
|
/** Execute a read-only Cypher query */
|
|
38
|
-
async queryReadonly(cypher,
|
|
39
|
-
return this.http.query(cypher);
|
|
43
|
+
async queryReadonly(cypher, graph = "default") {
|
|
44
|
+
return this.http.query(cypher, graph);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Return the EXPLAIN plan for a Cypher query without executing it.
|
|
48
|
+
* Returns the plan as text rows in the QueryResult records.
|
|
49
|
+
*/
|
|
50
|
+
async explain(cypher, graph = "default") {
|
|
51
|
+
const prefixed = cypher.trimStart().toUpperCase().startsWith("EXPLAIN")
|
|
52
|
+
? cypher
|
|
53
|
+
: `EXPLAIN ${cypher}`;
|
|
54
|
+
return this.http.query(prefixed, graph);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Execute a Cypher query with PROFILE instrumentation.
|
|
58
|
+
* Returns plan text with actual row counts and timing per operator.
|
|
59
|
+
*/
|
|
60
|
+
async profile(cypher, graph = "default") {
|
|
61
|
+
const prefixed = cypher.trimStart().toUpperCase().startsWith("PROFILE")
|
|
62
|
+
? cypher
|
|
63
|
+
: `PROFILE ${cypher}`;
|
|
64
|
+
return this.http.query(prefixed, graph);
|
|
40
65
|
}
|
|
41
66
|
/** Delete a graph (executes MATCH (n) DELETE n) */
|
|
42
|
-
async deleteGraph(
|
|
43
|
-
await this.http.query("MATCH (n) DELETE n");
|
|
67
|
+
async deleteGraph(graph = "default") {
|
|
68
|
+
await this.http.query("MATCH (n) DELETE n", graph);
|
|
44
69
|
}
|
|
45
70
|
/** List graphs (OSS: always returns ["default"]) */
|
|
46
71
|
async listGraphs() {
|
|
@@ -50,6 +75,35 @@ class SamyamaClient {
|
|
|
50
75
|
async status() {
|
|
51
76
|
return this.http.status();
|
|
52
77
|
}
|
|
78
|
+
/** Get graph schema (node types, edge types, indexes, constraints, statistics) */
|
|
79
|
+
async schema() {
|
|
80
|
+
return this.http.schema();
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Sample a subgraph for visualization.
|
|
84
|
+
* Returns a proportionally sampled set of nodes and edges.
|
|
85
|
+
* @param options - max_nodes (default 200), labels filter, graph/tenant name
|
|
86
|
+
*/
|
|
87
|
+
async sample(options = {}) {
|
|
88
|
+
return this.http.post("/api/sample", options);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Import nodes from CSV content.
|
|
92
|
+
* @param csvContent - Raw CSV string (first row = headers)
|
|
93
|
+
* @param label - Node label to assign
|
|
94
|
+
* @param options - Optional: idColumn, delimiter
|
|
95
|
+
*/
|
|
96
|
+
async importCsv(csvContent, label, options) {
|
|
97
|
+
return this.http.importCsv(csvContent, label, options);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Import nodes from JSON objects.
|
|
101
|
+
* @param label - Node label to assign
|
|
102
|
+
* @param nodes - Array of objects, each becoming a node
|
|
103
|
+
*/
|
|
104
|
+
async importJson(label, nodes) {
|
|
105
|
+
return this.http.importJson(label, nodes);
|
|
106
|
+
}
|
|
53
107
|
/** Ping the server */
|
|
54
108
|
async ping() {
|
|
55
109
|
const s = await this.status();
|
|
@@ -59,4 +113,3 @@ class SamyamaClient {
|
|
|
59
113
|
throw new Error(`Server unhealthy: ${s.status}`);
|
|
60
114
|
}
|
|
61
115
|
}
|
|
62
|
-
exports.SamyamaClient = SamyamaClient;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { QueryResult, ServerStatus } from "./types";
|
|
1
|
+
import type { QueryResult, ServerStatus, GraphSchema, CsvImportResult, JsonImportResult } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* HTTP transport for the Samyama SDK.
|
|
4
4
|
* Uses the native `fetch` API (works in Node.js 18+ and browsers).
|
|
@@ -7,7 +7,18 @@ export declare class HttpTransport {
|
|
|
7
7
|
private baseUrl;
|
|
8
8
|
constructor(baseUrl: string);
|
|
9
9
|
/** Execute a Cypher query via POST /api/query */
|
|
10
|
-
query(cypher: string): Promise<QueryResult>;
|
|
10
|
+
query(cypher: string, graph?: string): Promise<QueryResult>;
|
|
11
11
|
/** Get server status via GET /api/status */
|
|
12
12
|
status(): Promise<ServerStatus>;
|
|
13
|
+
/** Get graph schema via GET /api/schema */
|
|
14
|
+
schema(): Promise<GraphSchema>;
|
|
15
|
+
/** Generic POST request returning typed JSON response */
|
|
16
|
+
post<T>(path: string, body: unknown): Promise<T>;
|
|
17
|
+
/** Import nodes from CSV via POST /api/import/csv (multipart) */
|
|
18
|
+
importCsv(csvContent: string, label: string, options?: {
|
|
19
|
+
idColumn?: string;
|
|
20
|
+
delimiter?: string;
|
|
21
|
+
}): Promise<CsvImportResult>;
|
|
22
|
+
/** Import nodes from JSON via POST /api/import/json */
|
|
23
|
+
importJson(label: string, nodes: Record<string, unknown>[]): Promise<JsonImportResult>;
|
|
13
24
|
}
|
package/dist/src/http-client.js
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HttpTransport = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* HTTP transport for the Samyama SDK.
|
|
6
3
|
* Uses the native `fetch` API (works in Node.js 18+ and browsers).
|
|
7
4
|
*/
|
|
8
|
-
class HttpTransport {
|
|
5
|
+
export class HttpTransport {
|
|
9
6
|
constructor(baseUrl) {
|
|
10
7
|
this.baseUrl = baseUrl.replace(/\/+$/, "");
|
|
11
8
|
}
|
|
12
9
|
/** Execute a Cypher query via POST /api/query */
|
|
13
|
-
async query(cypher) {
|
|
10
|
+
async query(cypher, graph = "default") {
|
|
14
11
|
const response = await fetch(`${this.baseUrl}/api/query`, {
|
|
15
12
|
method: "POST",
|
|
16
13
|
headers: { "Content-Type": "application/json" },
|
|
17
|
-
body: JSON.stringify({ query: cypher }),
|
|
14
|
+
body: JSON.stringify({ query: cypher, graph }),
|
|
18
15
|
});
|
|
19
16
|
if (!response.ok) {
|
|
20
17
|
const body = (await response.json().catch(() => ({
|
|
@@ -32,5 +29,67 @@ class HttpTransport {
|
|
|
32
29
|
}
|
|
33
30
|
return (await response.json());
|
|
34
31
|
}
|
|
32
|
+
/** Get graph schema via GET /api/schema */
|
|
33
|
+
async schema() {
|
|
34
|
+
const response = await fetch(`${this.baseUrl}/api/schema`);
|
|
35
|
+
if (!response.ok) {
|
|
36
|
+
const body = (await response.json().catch(() => ({
|
|
37
|
+
error: `HTTP ${response.status}`,
|
|
38
|
+
})));
|
|
39
|
+
throw new Error(body.error || `HTTP ${response.status}`);
|
|
40
|
+
}
|
|
41
|
+
return (await response.json());
|
|
42
|
+
}
|
|
43
|
+
/** Generic POST request returning typed JSON response */
|
|
44
|
+
async post(path, body) {
|
|
45
|
+
const response = await fetch(`${this.baseUrl}${path}`, {
|
|
46
|
+
method: "POST",
|
|
47
|
+
headers: { "Content-Type": "application/json" },
|
|
48
|
+
body: JSON.stringify(body),
|
|
49
|
+
});
|
|
50
|
+
if (!response.ok) {
|
|
51
|
+
const err = (await response.json().catch(() => ({
|
|
52
|
+
error: `HTTP ${response.status}`,
|
|
53
|
+
})));
|
|
54
|
+
throw new Error(err.error || `HTTP ${response.status}`);
|
|
55
|
+
}
|
|
56
|
+
return (await response.json());
|
|
57
|
+
}
|
|
58
|
+
/** Import nodes from CSV via POST /api/import/csv (multipart) */
|
|
59
|
+
async importCsv(csvContent, label, options) {
|
|
60
|
+
const formData = new FormData();
|
|
61
|
+
const blob = new Blob([csvContent], { type: "text/csv" });
|
|
62
|
+
formData.append("file", blob, "import.csv");
|
|
63
|
+
formData.append("label", label);
|
|
64
|
+
if (options?.idColumn)
|
|
65
|
+
formData.append("id_column", options.idColumn);
|
|
66
|
+
if (options?.delimiter)
|
|
67
|
+
formData.append("delimiter", options.delimiter);
|
|
68
|
+
const response = await fetch(`${this.baseUrl}/api/import/csv`, {
|
|
69
|
+
method: "POST",
|
|
70
|
+
body: formData,
|
|
71
|
+
});
|
|
72
|
+
if (!response.ok) {
|
|
73
|
+
const body = (await response.json().catch(() => ({
|
|
74
|
+
error: `HTTP ${response.status}`,
|
|
75
|
+
})));
|
|
76
|
+
throw new Error(body.error || `HTTP ${response.status}`);
|
|
77
|
+
}
|
|
78
|
+
return (await response.json());
|
|
79
|
+
}
|
|
80
|
+
/** Import nodes from JSON via POST /api/import/json */
|
|
81
|
+
async importJson(label, nodes) {
|
|
82
|
+
const response = await fetch(`${this.baseUrl}/api/import/json`, {
|
|
83
|
+
method: "POST",
|
|
84
|
+
headers: { "Content-Type": "application/json" },
|
|
85
|
+
body: JSON.stringify({ label, nodes }),
|
|
86
|
+
});
|
|
87
|
+
if (!response.ok) {
|
|
88
|
+
const body = (await response.json().catch(() => ({
|
|
89
|
+
error: `HTTP ${response.status}`,
|
|
90
|
+
})));
|
|
91
|
+
throw new Error(body.error || `HTTP ${response.status}`);
|
|
92
|
+
}
|
|
93
|
+
return (await response.json());
|
|
94
|
+
}
|
|
35
95
|
}
|
|
36
|
-
exports.HttpTransport = HttpTransport;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SamyamaClient } from "./client";
|
|
2
|
-
export { HttpTransport } from "./http-client";
|
|
3
|
-
export type { SdkNode, SdkEdge, QueryResult, ServerStatus, ErrorResponse, ClientOptions, } from "./types";
|
|
1
|
+
export { SamyamaClient } from "./client.js";
|
|
2
|
+
export { HttpTransport } from "./http-client.js";
|
|
3
|
+
export type { SdkNode, SdkEdge, QueryResult, ServerStatus, ErrorResponse, ClientOptions, GraphSchema, NodeType, EdgeType, IndexInfo, ConstraintInfo, CsvImportResult, JsonImportResult, } from "./types.js";
|
package/dist/src/index.js
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.HttpTransport = exports.SamyamaClient = void 0;
|
|
4
|
-
var client_1 = require("./client");
|
|
5
|
-
Object.defineProperty(exports, "SamyamaClient", { enumerable: true, get: function () { return client_1.SamyamaClient; } });
|
|
6
|
-
var http_client_1 = require("./http-client");
|
|
7
|
-
Object.defineProperty(exports, "HttpTransport", { enumerable: true, get: function () { return http_client_1.HttpTransport; } });
|
|
1
|
+
export { SamyamaClient } from "./client.js";
|
|
2
|
+
export { HttpTransport } from "./http-client.js";
|
package/dist/src/types.d.ts
CHANGED
|
@@ -32,6 +32,90 @@ export interface ServerStatus {
|
|
|
32
32
|
export interface ErrorResponse {
|
|
33
33
|
error: string;
|
|
34
34
|
}
|
|
35
|
+
/** Node type descriptor from schema introspection */
|
|
36
|
+
export interface NodeType {
|
|
37
|
+
label: string;
|
|
38
|
+
count: number;
|
|
39
|
+
properties: Record<string, string>;
|
|
40
|
+
}
|
|
41
|
+
/** Edge type descriptor from schema introspection */
|
|
42
|
+
export interface EdgeType {
|
|
43
|
+
type: string;
|
|
44
|
+
count: number;
|
|
45
|
+
source_labels: string[];
|
|
46
|
+
target_labels: string[];
|
|
47
|
+
properties: Record<string, string>;
|
|
48
|
+
}
|
|
49
|
+
/** Index descriptor from schema introspection */
|
|
50
|
+
export interface IndexInfo {
|
|
51
|
+
label: string;
|
|
52
|
+
property: string;
|
|
53
|
+
type: string;
|
|
54
|
+
}
|
|
55
|
+
/** Constraint descriptor from schema introspection */
|
|
56
|
+
export interface ConstraintInfo {
|
|
57
|
+
label: string;
|
|
58
|
+
property: string;
|
|
59
|
+
type: string;
|
|
60
|
+
}
|
|
61
|
+
/** Graph schema returned by GET /api/schema */
|
|
62
|
+
export interface GraphSchema {
|
|
63
|
+
node_types: NodeType[];
|
|
64
|
+
edge_types: EdgeType[];
|
|
65
|
+
indexes: IndexInfo[];
|
|
66
|
+
constraints: ConstraintInfo[];
|
|
67
|
+
statistics: {
|
|
68
|
+
total_nodes: number;
|
|
69
|
+
total_edges: number;
|
|
70
|
+
avg_out_degree: number;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/** Request for subgraph sampling (POST /api/sample) */
|
|
74
|
+
export interface SampleRequest {
|
|
75
|
+
/** Maximum nodes to return (default: 200, max: 1000) */
|
|
76
|
+
max_nodes?: number;
|
|
77
|
+
/** Only include these node labels (empty = all) */
|
|
78
|
+
labels?: string[];
|
|
79
|
+
/** Tenant/graph name */
|
|
80
|
+
graph?: string;
|
|
81
|
+
}
|
|
82
|
+
/** A sampled node for visualization */
|
|
83
|
+
export interface SampleNode {
|
|
84
|
+
id: number;
|
|
85
|
+
label: string;
|
|
86
|
+
name: string;
|
|
87
|
+
properties: Record<string, unknown>;
|
|
88
|
+
}
|
|
89
|
+
/** A sampled edge for visualization */
|
|
90
|
+
export interface SampleEdge {
|
|
91
|
+
id: number;
|
|
92
|
+
source: number;
|
|
93
|
+
target: number;
|
|
94
|
+
type: string;
|
|
95
|
+
properties: Record<string, unknown>;
|
|
96
|
+
}
|
|
97
|
+
/** Result of subgraph sampling */
|
|
98
|
+
export interface SampleResult {
|
|
99
|
+
nodes: SampleNode[];
|
|
100
|
+
edges: SampleEdge[];
|
|
101
|
+
total_nodes: number;
|
|
102
|
+
total_edges: number;
|
|
103
|
+
sampled_nodes: number;
|
|
104
|
+
sampled_edges: number;
|
|
105
|
+
}
|
|
106
|
+
/** Result of CSV import */
|
|
107
|
+
export interface CsvImportResult {
|
|
108
|
+
status: string;
|
|
109
|
+
nodes_created: number;
|
|
110
|
+
label: string;
|
|
111
|
+
columns: string[];
|
|
112
|
+
}
|
|
113
|
+
/** Result of JSON import */
|
|
114
|
+
export interface JsonImportResult {
|
|
115
|
+
status: string;
|
|
116
|
+
nodes_created: number;
|
|
117
|
+
label: string;
|
|
118
|
+
}
|
|
35
119
|
/** Options for creating a client */
|
|
36
120
|
export interface ClientOptions {
|
|
37
121
|
/** Base URL for HTTP transport (default: http://localhost:8080) */
|
package/dist/src/types.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samyama-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "TypeScript SDK for the Samyama Graph Database",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/src/index.js",
|
|
7
|
+
"module": "dist/src/index.js",
|
|
6
8
|
"types": "dist/src/index.d.ts",
|
|
7
9
|
"files": [
|
|
8
10
|
"dist/src/**/*.js",
|