@geodedb/client 1.0.0-alpha.25 → 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 +729 -127
- package/dist/index.js +8105 -176
- package/dist/index.js.map +1 -1
- package/package.json +6 -1
- package/proto/geode.proto +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geodedb/client",
|
|
3
|
-
"version": "1.
|
|
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
|
@@ -81,6 +81,8 @@ message HelloRequest {
|
|
|
81
81
|
string client_name = 4;
|
|
82
82
|
string client_version = 5;
|
|
83
83
|
string wanted_conformance = 6;
|
|
84
|
+
optional string graph = 7;
|
|
85
|
+
optional string role = 8; // FLE role for field-level access control
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
message HelloResponse {
|
|
@@ -88,6 +90,8 @@ message HelloResponse {
|
|
|
88
90
|
string session_id = 2;
|
|
89
91
|
string error_message = 3;
|
|
90
92
|
repeated string capabilities = 4;
|
|
93
|
+
bool password_reset_required = 5;
|
|
94
|
+
optional string graph = 6;
|
|
91
95
|
}
|
|
92
96
|
|
|
93
97
|
// ============================================================================
|
|
@@ -544,6 +548,7 @@ message CdcControlResponse {
|
|
|
544
548
|
// ============================================================================
|
|
545
549
|
message BackupRequest {
|
|
546
550
|
string backup_type = 1; // "full"
|
|
551
|
+
string session_id = 2;
|
|
547
552
|
bool compress = 3;
|
|
548
553
|
}
|
|
549
554
|
message BackupResponse {
|
|
@@ -558,6 +563,7 @@ message BackupResponse {
|
|
|
558
563
|
message RestoreRequest {
|
|
559
564
|
string target_time = 1;
|
|
560
565
|
bool confirm = 2;
|
|
566
|
+
string session_id = 3;
|
|
561
567
|
}
|
|
562
568
|
message RestoreResponse {
|
|
563
569
|
bool success = 1;
|
|
@@ -569,6 +575,10 @@ message RestoreResponse {
|
|
|
569
575
|
message UploadBackupRequest {
|
|
570
576
|
uint64 size_bytes = 1;
|
|
571
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;
|
|
572
582
|
}
|
|
573
583
|
message UploadBackupResponse {
|
|
574
584
|
bool success = 1;
|