@geodedb/client 1.0.2 → 1.1.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/README.md +5 -0
- package/dist/index.d.ts +670 -130
- package/dist/index.js +7882 -129
- package/dist/index.js.map +1 -1
- package/package.json +6 -1
- package/proto/geode.proto +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geodedb/client",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Node.js client library for Geode graph database (QUIC/gRPC + TLS 1.3)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"test:watch": "vitest",
|
|
26
26
|
"test:coverage": "vitest run --coverage",
|
|
27
27
|
"test:integration": "vitest run --config vitest.integration.config.ts",
|
|
28
|
+
"test:property": "vitest run --config vitest.property.config.ts",
|
|
28
29
|
"lint": "eslint src tests",
|
|
29
30
|
"lint:fix": "eslint src tests --fix",
|
|
30
31
|
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
@@ -32,6 +33,8 @@
|
|
|
32
33
|
"typecheck": "tsc --noEmit",
|
|
33
34
|
"prepublishOnly": "npm run build",
|
|
34
35
|
"bench": "vitest bench",
|
|
36
|
+
"proto": "bash scripts/generate-proto.sh",
|
|
37
|
+
"proto:check": "bash scripts/check-proto.sh",
|
|
35
38
|
"clean": "rm -rf dist coverage"
|
|
36
39
|
},
|
|
37
40
|
"keywords": [
|
|
@@ -61,6 +64,7 @@
|
|
|
61
64
|
"registry": "https://registry.npmjs.org/"
|
|
62
65
|
},
|
|
63
66
|
"dependencies": {
|
|
67
|
+
"@bufbuild/protobuf": "^2.12.0",
|
|
64
68
|
"@grpc/grpc-js": "^1.12.0",
|
|
65
69
|
"@grpc/proto-loader": "^0.7.15",
|
|
66
70
|
"@matrixai/quic": "^2.0.9",
|
|
@@ -77,6 +81,7 @@
|
|
|
77
81
|
"fast-check": "^4.5.3",
|
|
78
82
|
"prettier": "^3.2.0",
|
|
79
83
|
"testcontainers": "^11.11.0",
|
|
84
|
+
"ts-proto": "^2.11.8",
|
|
80
85
|
"tsup": "^8.0.0",
|
|
81
86
|
"typescript": "^5.3.0",
|
|
82
87
|
"typescript-eslint": "^8.54.0",
|
package/proto/geode.proto
CHANGED
|
@@ -82,6 +82,7 @@ message HelloRequest {
|
|
|
82
82
|
string client_version = 5;
|
|
83
83
|
string wanted_conformance = 6;
|
|
84
84
|
optional string graph = 7;
|
|
85
|
+
optional string role = 8; // FLE role for field-level access control
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
message HelloResponse {
|
|
@@ -547,6 +548,7 @@ message CdcControlResponse {
|
|
|
547
548
|
// ============================================================================
|
|
548
549
|
message BackupRequest {
|
|
549
550
|
string backup_type = 1; // "full"
|
|
551
|
+
string session_id = 2;
|
|
550
552
|
bool compress = 3;
|
|
551
553
|
}
|
|
552
554
|
message BackupResponse {
|
|
@@ -561,6 +563,7 @@ message BackupResponse {
|
|
|
561
563
|
message RestoreRequest {
|
|
562
564
|
string target_time = 1;
|
|
563
565
|
bool confirm = 2;
|
|
566
|
+
string session_id = 3;
|
|
564
567
|
}
|
|
565
568
|
message RestoreResponse {
|
|
566
569
|
bool success = 1;
|
|
@@ -572,6 +575,10 @@ message RestoreResponse {
|
|
|
572
575
|
message UploadBackupRequest {
|
|
573
576
|
uint64 size_bytes = 1;
|
|
574
577
|
string checksum = 2;
|
|
578
|
+
string session_id = 3;
|
|
579
|
+
// GAP-0880: full backup artifact bytes (GEOB header + payload). Required;
|
|
580
|
+
// metadata-only uploads are rejected by the server.
|
|
581
|
+
bytes payload = 4;
|
|
575
582
|
}
|
|
576
583
|
message UploadBackupResponse {
|
|
577
584
|
bool success = 1;
|