@tdxvolt/volt-client-grpc 0.20.19 → 0.20.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.
- package/lib/index.cjs +44 -32
- package/package.json +2 -2
- package/src/volt-client.js +26 -26
- package/src/volt-proto-literals.js +18 -6
package/lib/index.cjs
CHANGED
|
@@ -1018,12 +1018,6 @@ message SaveDriveInstanceRequest {
|
|
|
1018
1018
|
// The local path of the folder to sync.
|
|
1019
1019
|
string target_folder = 6;
|
|
1020
1020
|
|
|
1021
|
-
// The comma-separated include patterns.
|
|
1022
|
-
string include = 7;
|
|
1023
|
-
|
|
1024
|
-
// The comma-separated exclude patterns.
|
|
1025
|
-
string exclude = 8;
|
|
1026
|
-
|
|
1027
1021
|
// The DID of the identity that should be used to authenticate with the remote Volt. If omitted, the authenticated identity will be used.
|
|
1028
1022
|
// The identity must have a private key stored in the Volt key store.
|
|
1029
1023
|
string identity_did = 9;
|
|
@@ -1048,6 +1042,7 @@ message SaveDriveInstanceRequest {
|
|
|
1048
1042
|
|
|
1049
1043
|
// Optional challenge of the relay.
|
|
1050
1044
|
string relay_challenge = 16;
|
|
1045
|
+
|
|
1051
1046
|
}
|
|
1052
1047
|
|
|
1053
1048
|
message SaveDriveInstanceResponse {
|
|
@@ -1469,6 +1464,9 @@ message CreateEmailCredentialRequest {
|
|
|
1469
1464
|
|
|
1470
1465
|
// The passphrase for the identity key, if required (i.e. the key is encrypted).
|
|
1471
1466
|
string key_passphrase = 4;
|
|
1467
|
+
|
|
1468
|
+
// Optional description rendered in the verification email body.
|
|
1469
|
+
string description = 5;
|
|
1472
1470
|
}
|
|
1473
1471
|
|
|
1474
1472
|
message CreateEmailCredentialResponse {
|
|
@@ -1759,6 +1757,9 @@ message CreateSynapseConnectionRequest {
|
|
|
1759
1757
|
|
|
1760
1758
|
// Optional challenge of the relay.
|
|
1761
1759
|
string relay_challenge = 14;
|
|
1760
|
+
|
|
1761
|
+
// Optional http address of the relay. If given, the relay_address and relay_ca will be ignored and the relay will be discovered at the given address.
|
|
1762
|
+
string relay_http_address = 15;
|
|
1762
1763
|
}
|
|
1763
1764
|
|
|
1764
1765
|
message CreateSynapseConnectionResponse {
|
|
@@ -1822,6 +1823,9 @@ message SaveSyncDatabaseRequest {
|
|
|
1822
1823
|
|
|
1823
1824
|
// By default, yjs updates are periodically compressed and stored as snapshots. Set this flag to disable snapshots. This will reduce the size of the database and improve performance, but will also reduce the ability to rollback to a previous state.
|
|
1824
1825
|
bool no_snapshots = 8;
|
|
1826
|
+
|
|
1827
|
+
// The number of updates to batch before flushing to the database. Defaults to 100.
|
|
1828
|
+
uint32 batch_size = 9;
|
|
1825
1829
|
}
|
|
1826
1830
|
|
|
1827
1831
|
message SaveSyncDatabaseResponse {
|
|
@@ -2400,6 +2404,14 @@ message VoltParameters {
|
|
|
2400
2404
|
|
|
2401
2405
|
// If set, exposes a resource that gives the Volt owner read-only access the file system.
|
|
2402
2406
|
bool enable_owner_file_system_access = 54;
|
|
2407
|
+
|
|
2408
|
+
// Maximum number of pending gRPC events per event thread queue.
|
|
2409
|
+
// If unset or zero, the server default queue size is used.
|
|
2410
|
+
uint32 grpc_event_queue_size = 55;
|
|
2411
|
+
|
|
2412
|
+
// Number of gRPC event processing threads.
|
|
2413
|
+
// If unset or zero, the server default thread count is used.
|
|
2414
|
+
uint32 grpc_num_event_threads = 56;
|
|
2403
2415
|
}
|
|
2404
2416
|
|
|
2405
2417
|
message VoltEndpoint {
|
|
@@ -6268,22 +6280,6 @@ class VoltClient extends EventEmitter__default["default"] {
|
|
|
6268
6280
|
return unaryCallInternal.call(this, "SaveMirroredLink", request);
|
|
6269
6281
|
}
|
|
6270
6282
|
|
|
6271
|
-
SaveSyncDatabase(request) {
|
|
6272
|
-
return unaryCallInternal.call(this, "SaveSyncDatabase", request);
|
|
6273
|
-
}
|
|
6274
|
-
|
|
6275
|
-
SaveSynapse(request) {
|
|
6276
|
-
return unaryCallInternal.call(this, "SaveSynapse", request);
|
|
6277
|
-
}
|
|
6278
|
-
|
|
6279
|
-
CreateSynapseConnection(request) {
|
|
6280
|
-
return unaryCallInternal.call(this, "CreateSynapseConnection", request);
|
|
6281
|
-
}
|
|
6282
|
-
|
|
6283
|
-
DeleteSynapseConnection(request) {
|
|
6284
|
-
return unaryCallInternal.call(this, "DeleteSynapseConnection", request);
|
|
6285
|
-
}
|
|
6286
|
-
|
|
6287
6283
|
SaveSymbolicLink(request) {
|
|
6288
6284
|
return unaryCallInternal.call(this, "SaveSymbolicLink", request);
|
|
6289
6285
|
}
|
|
@@ -6595,22 +6591,19 @@ class VoltClient extends EventEmitter__default["default"] {
|
|
|
6595
6591
|
/**
|
|
6596
6592
|
* DriveAPI
|
|
6597
6593
|
*/
|
|
6598
|
-
|
|
6599
|
-
return unaryCallInternal.call(this, "
|
|
6594
|
+
SaveDriveInstance(request) {
|
|
6595
|
+
return unaryCallInternal.call(this, "SaveDriveInstance", request);
|
|
6600
6596
|
}
|
|
6601
6597
|
|
|
6602
6598
|
/**
|
|
6603
6599
|
* SyncAPI
|
|
6604
6600
|
*/
|
|
6605
|
-
|
|
6606
|
-
|
|
6601
|
+
CreateSynapseConnection(request) {
|
|
6602
|
+
return unaryCallInternal.call(this, "CreateSynapseConnection", request);
|
|
6603
|
+
}
|
|
6607
6604
|
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
"SyncDocument",
|
|
6611
|
-
"METHOD_TYPE_BIDI"
|
|
6612
|
-
);
|
|
6613
|
-
return syncDocumentCall.start(grpcClient, request);
|
|
6605
|
+
DeleteSynapseConnection(request) {
|
|
6606
|
+
return unaryCallInternal.call(this, "DeleteSynapseConnection", request);
|
|
6614
6607
|
}
|
|
6615
6608
|
|
|
6616
6609
|
DeleteSynapseDocumentMetadata(request) {
|
|
@@ -6621,10 +6614,29 @@ class VoltClient extends EventEmitter__default["default"] {
|
|
|
6621
6614
|
);
|
|
6622
6615
|
}
|
|
6623
6616
|
|
|
6617
|
+
SaveSynapse(request) {
|
|
6618
|
+
return unaryCallInternal.call(this, "SaveSynapse", request);
|
|
6619
|
+
}
|
|
6620
|
+
|
|
6621
|
+
SaveSyncDatabase(request) {
|
|
6622
|
+
return unaryCallInternal.call(this, "SaveSyncDatabase", request);
|
|
6623
|
+
}
|
|
6624
|
+
|
|
6624
6625
|
SetSynapseDocumentMetadata(request) {
|
|
6625
6626
|
return unaryCallInternal.call(this, "SetSynapseDocumentMetadata", request);
|
|
6626
6627
|
}
|
|
6627
6628
|
|
|
6629
|
+
SyncDocument(request) {
|
|
6630
|
+
const grpcClient = this.getVoltAPIClient();
|
|
6631
|
+
|
|
6632
|
+
const syncDocumentCall = new GRPCCall(
|
|
6633
|
+
this,
|
|
6634
|
+
"SyncDocument",
|
|
6635
|
+
"METHOD_TYPE_BIDI"
|
|
6636
|
+
);
|
|
6637
|
+
return syncDocumentCall.start(grpcClient, request);
|
|
6638
|
+
}
|
|
6639
|
+
|
|
6628
6640
|
WatchSynapsePath(request) {
|
|
6629
6641
|
const grpcClient = this.getVoltAPIClient();
|
|
6630
6642
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.20.
|
|
6
|
+
"version": "0.20.20",
|
|
7
7
|
"description": "tdx Volt library for nodejs clients",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"author": "toby.ealden@gmail.com",
|
|
34
34
|
"license": "ISC",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@tdxvolt/volt-client-web": "^0.20.
|
|
36
|
+
"@tdxvolt/volt-client-web": "^0.20.20",
|
|
37
37
|
"@tdxvolt/volt-utility": "^0.20.18",
|
|
38
38
|
"debug": "^4.1.1",
|
|
39
39
|
"ip": "^1.1.5",
|
package/src/volt-client.js
CHANGED
|
@@ -403,22 +403,6 @@ export class VoltClient extends EventEmitter {
|
|
|
403
403
|
return unaryCallInternal.call(this, "SaveMirroredLink", request);
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
SaveSyncDatabase(request) {
|
|
407
|
-
return unaryCallInternal.call(this, "SaveSyncDatabase", request);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
SaveSynapse(request) {
|
|
411
|
-
return unaryCallInternal.call(this, "SaveSynapse", request);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
CreateSynapseConnection(request) {
|
|
415
|
-
return unaryCallInternal.call(this, "CreateSynapseConnection", request);
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
DeleteSynapseConnection(request) {
|
|
419
|
-
return unaryCallInternal.call(this, "DeleteSynapseConnection", request);
|
|
420
|
-
}
|
|
421
|
-
|
|
422
406
|
SaveSymbolicLink(request) {
|
|
423
407
|
return unaryCallInternal.call(this, "SaveSymbolicLink", request);
|
|
424
408
|
}
|
|
@@ -732,22 +716,19 @@ export class VoltClient extends EventEmitter {
|
|
|
732
716
|
/**
|
|
733
717
|
* DriveAPI
|
|
734
718
|
*/
|
|
735
|
-
|
|
736
|
-
return unaryCallInternal.call(this, "
|
|
719
|
+
SaveDriveInstance(request) {
|
|
720
|
+
return unaryCallInternal.call(this, "SaveDriveInstance", request);
|
|
737
721
|
}
|
|
738
722
|
|
|
739
723
|
/**
|
|
740
724
|
* SyncAPI
|
|
741
725
|
*/
|
|
742
|
-
|
|
743
|
-
|
|
726
|
+
CreateSynapseConnection(request) {
|
|
727
|
+
return unaryCallInternal.call(this, "CreateSynapseConnection", request);
|
|
728
|
+
}
|
|
744
729
|
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
"SyncDocument",
|
|
748
|
-
"METHOD_TYPE_BIDI"
|
|
749
|
-
);
|
|
750
|
-
return syncDocumentCall.start(grpcClient, request);
|
|
730
|
+
DeleteSynapseConnection(request) {
|
|
731
|
+
return unaryCallInternal.call(this, "DeleteSynapseConnection", request);
|
|
751
732
|
}
|
|
752
733
|
|
|
753
734
|
DeleteSynapseDocumentMetadata(request) {
|
|
@@ -758,10 +739,29 @@ export class VoltClient extends EventEmitter {
|
|
|
758
739
|
);
|
|
759
740
|
}
|
|
760
741
|
|
|
742
|
+
SaveSynapse(request) {
|
|
743
|
+
return unaryCallInternal.call(this, "SaveSynapse", request);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
SaveSyncDatabase(request) {
|
|
747
|
+
return unaryCallInternal.call(this, "SaveSyncDatabase", request);
|
|
748
|
+
}
|
|
749
|
+
|
|
761
750
|
SetSynapseDocumentMetadata(request) {
|
|
762
751
|
return unaryCallInternal.call(this, "SetSynapseDocumentMetadata", request);
|
|
763
752
|
}
|
|
764
753
|
|
|
754
|
+
SyncDocument(request) {
|
|
755
|
+
const grpcClient = this.getVoltAPIClient();
|
|
756
|
+
|
|
757
|
+
const syncDocumentCall = new GRPCCall(
|
|
758
|
+
this,
|
|
759
|
+
"SyncDocument",
|
|
760
|
+
"METHOD_TYPE_BIDI"
|
|
761
|
+
);
|
|
762
|
+
return syncDocumentCall.start(grpcClient, request);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
765
|
WatchSynapsePath(request) {
|
|
766
766
|
const grpcClient = this.getVoltAPIClient();
|
|
767
767
|
|
|
@@ -470,12 +470,6 @@ message SaveDriveInstanceRequest {
|
|
|
470
470
|
// The local path of the folder to sync.
|
|
471
471
|
string target_folder = 6;
|
|
472
472
|
|
|
473
|
-
// The comma-separated include patterns.
|
|
474
|
-
string include = 7;
|
|
475
|
-
|
|
476
|
-
// The comma-separated exclude patterns.
|
|
477
|
-
string exclude = 8;
|
|
478
|
-
|
|
479
473
|
// The DID of the identity that should be used to authenticate with the remote Volt. If omitted, the authenticated identity will be used.
|
|
480
474
|
// The identity must have a private key stored in the Volt key store.
|
|
481
475
|
string identity_did = 9;
|
|
@@ -500,6 +494,7 @@ message SaveDriveInstanceRequest {
|
|
|
500
494
|
|
|
501
495
|
// Optional challenge of the relay.
|
|
502
496
|
string relay_challenge = 16;
|
|
497
|
+
|
|
503
498
|
}
|
|
504
499
|
|
|
505
500
|
message SaveDriveInstanceResponse {
|
|
@@ -921,6 +916,9 @@ message CreateEmailCredentialRequest {
|
|
|
921
916
|
|
|
922
917
|
// The passphrase for the identity key, if required (i.e. the key is encrypted).
|
|
923
918
|
string key_passphrase = 4;
|
|
919
|
+
|
|
920
|
+
// Optional description rendered in the verification email body.
|
|
921
|
+
string description = 5;
|
|
924
922
|
}
|
|
925
923
|
|
|
926
924
|
message CreateEmailCredentialResponse {
|
|
@@ -1211,6 +1209,9 @@ message CreateSynapseConnectionRequest {
|
|
|
1211
1209
|
|
|
1212
1210
|
// Optional challenge of the relay.
|
|
1213
1211
|
string relay_challenge = 14;
|
|
1212
|
+
|
|
1213
|
+
// Optional http address of the relay. If given, the relay_address and relay_ca will be ignored and the relay will be discovered at the given address.
|
|
1214
|
+
string relay_http_address = 15;
|
|
1214
1215
|
}
|
|
1215
1216
|
|
|
1216
1217
|
message CreateSynapseConnectionResponse {
|
|
@@ -1274,6 +1275,9 @@ message SaveSyncDatabaseRequest {
|
|
|
1274
1275
|
|
|
1275
1276
|
// By default, yjs updates are periodically compressed and stored as snapshots. Set this flag to disable snapshots. This will reduce the size of the database and improve performance, but will also reduce the ability to rollback to a previous state.
|
|
1276
1277
|
bool no_snapshots = 8;
|
|
1278
|
+
|
|
1279
|
+
// The number of updates to batch before flushing to the database. Defaults to 100.
|
|
1280
|
+
uint32 batch_size = 9;
|
|
1277
1281
|
}
|
|
1278
1282
|
|
|
1279
1283
|
message SaveSyncDatabaseResponse {
|
|
@@ -1852,6 +1856,14 @@ message VoltParameters {
|
|
|
1852
1856
|
|
|
1853
1857
|
// If set, exposes a resource that gives the Volt owner read-only access the file system.
|
|
1854
1858
|
bool enable_owner_file_system_access = 54;
|
|
1859
|
+
|
|
1860
|
+
// Maximum number of pending gRPC events per event thread queue.
|
|
1861
|
+
// If unset or zero, the server default queue size is used.
|
|
1862
|
+
uint32 grpc_event_queue_size = 55;
|
|
1863
|
+
|
|
1864
|
+
// Number of gRPC event processing threads.
|
|
1865
|
+
// If unset or zero, the server default thread count is used.
|
|
1866
|
+
uint32 grpc_num_event_threads = 56;
|
|
1855
1867
|
}
|
|
1856
1868
|
|
|
1857
1869
|
message VoltEndpoint {
|