@tdxvolt/volt-client-grpc 0.20.18 → 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 +69 -38
- package/package.json +2 -2
- package/src/volt-client.js +26 -22
- package/src/volt-proto-literals.js +43 -16
package/lib/index.cjs
CHANGED
|
@@ -991,11 +991,11 @@ import "tdx/volt_api/volt/v1/volt.proto";
|
|
|
991
991
|
// The Drive API allows clients to create and manage Volt Drive resources.
|
|
992
992
|
service DriveAPI {
|
|
993
993
|
// Create or update a drive connection resource.
|
|
994
|
-
// This is a privileged API call and requires volt:api-call / volt:save-drive permission.
|
|
995
|
-
rpc
|
|
994
|
+
// This is a privileged API call and requires volt:api-call / volt:save-drive-instance permission.
|
|
995
|
+
rpc SaveDriveInstance(SaveDriveInstanceRequest) returns (SaveDriveInstanceResponse);
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
-
message
|
|
998
|
+
message SaveDriveInstanceRequest {
|
|
999
999
|
// Details of the drive to save.
|
|
1000
1000
|
Resource resource = 1;
|
|
1001
1001
|
|
|
@@ -1013,23 +1013,17 @@ message SaveDriveRequest {
|
|
|
1013
1013
|
bool purge_attributes = 4;
|
|
1014
1014
|
|
|
1015
1015
|
// The id of the synapse resource that stores the drive data.
|
|
1016
|
-
string
|
|
1016
|
+
string synapse_id = 5;
|
|
1017
1017
|
|
|
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;
|
|
1030
1024
|
|
|
1031
1025
|
// The DID of the remote Volt.
|
|
1032
|
-
string
|
|
1026
|
+
string remote_volt_did = 10;
|
|
1033
1027
|
|
|
1034
1028
|
// Optional address of the remote Volt. Either this or the relay address must be provided.
|
|
1035
1029
|
string remote_volt_address = 11;
|
|
@@ -1048,9 +1042,10 @@ message SaveDriveRequest {
|
|
|
1048
1042
|
|
|
1049
1043
|
// Optional challenge of the relay.
|
|
1050
1044
|
string relay_challenge = 16;
|
|
1045
|
+
|
|
1051
1046
|
}
|
|
1052
1047
|
|
|
1053
|
-
message
|
|
1048
|
+
message SaveDriveInstanceResponse {
|
|
1054
1049
|
// Details of any error that occurred on the call.
|
|
1055
1050
|
tdx.volt_api.volt.v1.Status status = 1;
|
|
1056
1051
|
|
|
@@ -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 {
|
|
@@ -1662,14 +1660,13 @@ const status = `syntax = "proto3";
|
|
|
1662
1660
|
package tdx.volt_api.volt.v1;
|
|
1663
1661
|
|
|
1664
1662
|
message Status {
|
|
1665
|
-
//
|
|
1666
|
-
// Mirrors the grpc StatusCode enum, 0 => OK
|
|
1663
|
+
// Mirrors the grpc StatusCode enum, 0 => OK, see https://grpc.github.io/grpc/core/md_doc_statuscodes.html
|
|
1667
1664
|
int32 code = 1;
|
|
1668
1665
|
|
|
1669
|
-
// A developer-facing human-readable error message
|
|
1666
|
+
// A developer-facing human-readable error message, e.g. 'invalidArguments'.
|
|
1670
1667
|
string message = 2;
|
|
1671
1668
|
|
|
1672
|
-
//
|
|
1669
|
+
// A description of the error, e.g. 'The \`database_id\` is missing'.
|
|
1673
1670
|
string description = 3;
|
|
1674
1671
|
}
|
|
1675
1672
|
`;
|
|
@@ -1687,6 +1684,9 @@ service SyncAPI {
|
|
|
1687
1684
|
// The remote Volt is identified by its DID or address. If a relay address is provided, the connection will be established via the relay.
|
|
1688
1685
|
// The authenticated account must have \`volt:resource-create\` access to the local synapse resource.
|
|
1689
1686
|
rpc CreateSynapseConnection(CreateSynapseConnectionRequest) returns (CreateSynapseConnectionResponse);
|
|
1687
|
+
|
|
1688
|
+
// Delete a synapse connection. This will terminate any ongoing syncronisation between the two synapses and delete the connection resource.
|
|
1689
|
+
rpc DeleteSynapseConnection(DeleteSynapseConnectionRequest) returns (DeleteSynapseConnectionResponse);
|
|
1690
1690
|
|
|
1691
1691
|
// Delete a document from the synapse.
|
|
1692
1692
|
rpc DeleteSynapseDocumentMetadata(DeleteSynapseDocumentMetadataRequest) returns (DeleteSynapseDocumentMetadataResponse);
|
|
@@ -1757,13 +1757,29 @@ message CreateSynapseConnectionRequest {
|
|
|
1757
1757
|
|
|
1758
1758
|
// Optional challenge of the relay.
|
|
1759
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;
|
|
1760
1763
|
}
|
|
1761
1764
|
|
|
1762
1765
|
message CreateSynapseConnectionResponse {
|
|
1766
|
+
// Details of any error that occurred on the call.
|
|
1763
1767
|
tdx.volt_api.volt.v1.Status status = 1;
|
|
1768
|
+
|
|
1769
|
+
// The created synapse connection resource.
|
|
1764
1770
|
Resource resource = 2;
|
|
1765
1771
|
}
|
|
1766
1772
|
|
|
1773
|
+
message DeleteSynapseConnectionRequest {
|
|
1774
|
+
// The id of the synapse connection to delete.
|
|
1775
|
+
string synapse_connection_id = 1;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
message DeleteSynapseConnectionResponse {
|
|
1779
|
+
// Details of any error that occurred on the call.
|
|
1780
|
+
tdx.volt_api.volt.v1.Status status = 1;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1767
1783
|
message DeleteSynapseDocumentMetadataRequest {
|
|
1768
1784
|
// DEPRECATED: Use synapse_id instead.
|
|
1769
1785
|
string database_id = 1;
|
|
@@ -1807,6 +1823,9 @@ message SaveSyncDatabaseRequest {
|
|
|
1807
1823
|
|
|
1808
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.
|
|
1809
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;
|
|
1810
1829
|
}
|
|
1811
1830
|
|
|
1812
1831
|
message SaveSyncDatabaseResponse {
|
|
@@ -2385,6 +2404,14 @@ message VoltParameters {
|
|
|
2385
2404
|
|
|
2386
2405
|
// If set, exposes a resource that gives the Volt owner read-only access the file system.
|
|
2387
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;
|
|
2388
2415
|
}
|
|
2389
2416
|
|
|
2390
2417
|
message VoltEndpoint {
|
|
@@ -6253,18 +6280,6 @@ class VoltClient extends EventEmitter__default["default"] {
|
|
|
6253
6280
|
return unaryCallInternal.call(this, "SaveMirroredLink", request);
|
|
6254
6281
|
}
|
|
6255
6282
|
|
|
6256
|
-
SaveSyncDatabase(request) {
|
|
6257
|
-
return unaryCallInternal.call(this, "SaveSyncDatabase", request);
|
|
6258
|
-
}
|
|
6259
|
-
|
|
6260
|
-
SaveSynapse(request) {
|
|
6261
|
-
return unaryCallInternal.call(this, "SaveSynapse", request);
|
|
6262
|
-
}
|
|
6263
|
-
|
|
6264
|
-
CreateSynapseConnection(request) {
|
|
6265
|
-
return unaryCallInternal.call(this, "CreateSynapseConnection", request);
|
|
6266
|
-
}
|
|
6267
|
-
|
|
6268
6283
|
SaveSymbolicLink(request) {
|
|
6269
6284
|
return unaryCallInternal.call(this, "SaveSymbolicLink", request);
|
|
6270
6285
|
}
|
|
@@ -6576,22 +6591,19 @@ class VoltClient extends EventEmitter__default["default"] {
|
|
|
6576
6591
|
/**
|
|
6577
6592
|
* DriveAPI
|
|
6578
6593
|
*/
|
|
6579
|
-
|
|
6580
|
-
return unaryCallInternal.call(this, "
|
|
6594
|
+
SaveDriveInstance(request) {
|
|
6595
|
+
return unaryCallInternal.call(this, "SaveDriveInstance", request);
|
|
6581
6596
|
}
|
|
6582
6597
|
|
|
6583
6598
|
/**
|
|
6584
6599
|
* SyncAPI
|
|
6585
6600
|
*/
|
|
6586
|
-
|
|
6587
|
-
|
|
6601
|
+
CreateSynapseConnection(request) {
|
|
6602
|
+
return unaryCallInternal.call(this, "CreateSynapseConnection", request);
|
|
6603
|
+
}
|
|
6588
6604
|
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
"SyncDocument",
|
|
6592
|
-
"METHOD_TYPE_BIDI"
|
|
6593
|
-
);
|
|
6594
|
-
return syncDocumentCall.start(grpcClient, request);
|
|
6605
|
+
DeleteSynapseConnection(request) {
|
|
6606
|
+
return unaryCallInternal.call(this, "DeleteSynapseConnection", request);
|
|
6595
6607
|
}
|
|
6596
6608
|
|
|
6597
6609
|
DeleteSynapseDocumentMetadata(request) {
|
|
@@ -6602,10 +6614,29 @@ class VoltClient extends EventEmitter__default["default"] {
|
|
|
6602
6614
|
);
|
|
6603
6615
|
}
|
|
6604
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
|
+
|
|
6605
6625
|
SetSynapseDocumentMetadata(request) {
|
|
6606
6626
|
return unaryCallInternal.call(this, "SetSynapseDocumentMetadata", request);
|
|
6607
6627
|
}
|
|
6608
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
|
+
|
|
6609
6640
|
WatchSynapsePath(request) {
|
|
6610
6641
|
const grpcClient = this.getVoltAPIClient();
|
|
6611
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,18 +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
406
|
SaveSymbolicLink(request) {
|
|
419
407
|
return unaryCallInternal.call(this, "SaveSymbolicLink", request);
|
|
420
408
|
}
|
|
@@ -728,22 +716,19 @@ export class VoltClient extends EventEmitter {
|
|
|
728
716
|
/**
|
|
729
717
|
* DriveAPI
|
|
730
718
|
*/
|
|
731
|
-
|
|
732
|
-
return unaryCallInternal.call(this, "
|
|
719
|
+
SaveDriveInstance(request) {
|
|
720
|
+
return unaryCallInternal.call(this, "SaveDriveInstance", request);
|
|
733
721
|
}
|
|
734
722
|
|
|
735
723
|
/**
|
|
736
724
|
* SyncAPI
|
|
737
725
|
*/
|
|
738
|
-
|
|
739
|
-
|
|
726
|
+
CreateSynapseConnection(request) {
|
|
727
|
+
return unaryCallInternal.call(this, "CreateSynapseConnection", request);
|
|
728
|
+
}
|
|
740
729
|
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
"SyncDocument",
|
|
744
|
-
"METHOD_TYPE_BIDI"
|
|
745
|
-
);
|
|
746
|
-
return syncDocumentCall.start(grpcClient, request);
|
|
730
|
+
DeleteSynapseConnection(request) {
|
|
731
|
+
return unaryCallInternal.call(this, "DeleteSynapseConnection", request);
|
|
747
732
|
}
|
|
748
733
|
|
|
749
734
|
DeleteSynapseDocumentMetadata(request) {
|
|
@@ -754,10 +739,29 @@ export class VoltClient extends EventEmitter {
|
|
|
754
739
|
);
|
|
755
740
|
}
|
|
756
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
|
+
|
|
757
750
|
SetSynapseDocumentMetadata(request) {
|
|
758
751
|
return unaryCallInternal.call(this, "SetSynapseDocumentMetadata", request);
|
|
759
752
|
}
|
|
760
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
|
+
|
|
761
765
|
WatchSynapsePath(request) {
|
|
762
766
|
const grpcClient = this.getVoltAPIClient();
|
|
763
767
|
|
|
@@ -443,11 +443,11 @@ import "tdx/volt_api/volt/v1/volt.proto";
|
|
|
443
443
|
// The Drive API allows clients to create and manage Volt Drive resources.
|
|
444
444
|
service DriveAPI {
|
|
445
445
|
// Create or update a drive connection resource.
|
|
446
|
-
// This is a privileged API call and requires volt:api-call / volt:save-drive permission.
|
|
447
|
-
rpc
|
|
446
|
+
// This is a privileged API call and requires volt:api-call / volt:save-drive-instance permission.
|
|
447
|
+
rpc SaveDriveInstance(SaveDriveInstanceRequest) returns (SaveDriveInstanceResponse);
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
message
|
|
450
|
+
message SaveDriveInstanceRequest {
|
|
451
451
|
// Details of the drive to save.
|
|
452
452
|
Resource resource = 1;
|
|
453
453
|
|
|
@@ -465,23 +465,17 @@ message SaveDriveRequest {
|
|
|
465
465
|
bool purge_attributes = 4;
|
|
466
466
|
|
|
467
467
|
// The id of the synapse resource that stores the drive data.
|
|
468
|
-
string
|
|
468
|
+
string synapse_id = 5;
|
|
469
469
|
|
|
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;
|
|
482
476
|
|
|
483
477
|
// The DID of the remote Volt.
|
|
484
|
-
string
|
|
478
|
+
string remote_volt_did = 10;
|
|
485
479
|
|
|
486
480
|
// Optional address of the remote Volt. Either this or the relay address must be provided.
|
|
487
481
|
string remote_volt_address = 11;
|
|
@@ -500,9 +494,10 @@ message SaveDriveRequest {
|
|
|
500
494
|
|
|
501
495
|
// Optional challenge of the relay.
|
|
502
496
|
string relay_challenge = 16;
|
|
497
|
+
|
|
503
498
|
}
|
|
504
499
|
|
|
505
|
-
message
|
|
500
|
+
message SaveDriveInstanceResponse {
|
|
506
501
|
// Details of any error that occurred on the call.
|
|
507
502
|
tdx.volt_api.volt.v1.Status status = 1;
|
|
508
503
|
|
|
@@ -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 {
|
|
@@ -1114,14 +1112,13 @@ export const status = `syntax = "proto3";
|
|
|
1114
1112
|
package tdx.volt_api.volt.v1;
|
|
1115
1113
|
|
|
1116
1114
|
message Status {
|
|
1117
|
-
//
|
|
1118
|
-
// Mirrors the grpc StatusCode enum, 0 => OK
|
|
1115
|
+
// Mirrors the grpc StatusCode enum, 0 => OK, see https://grpc.github.io/grpc/core/md_doc_statuscodes.html
|
|
1119
1116
|
int32 code = 1;
|
|
1120
1117
|
|
|
1121
|
-
// A developer-facing human-readable error message
|
|
1118
|
+
// A developer-facing human-readable error message, e.g. 'invalidArguments'.
|
|
1122
1119
|
string message = 2;
|
|
1123
1120
|
|
|
1124
|
-
//
|
|
1121
|
+
// A description of the error, e.g. 'The \`database_id\` is missing'.
|
|
1125
1122
|
string description = 3;
|
|
1126
1123
|
}
|
|
1127
1124
|
`;
|
|
@@ -1139,6 +1136,9 @@ service SyncAPI {
|
|
|
1139
1136
|
// The remote Volt is identified by its DID or address. If a relay address is provided, the connection will be established via the relay.
|
|
1140
1137
|
// The authenticated account must have \`volt:resource-create\` access to the local synapse resource.
|
|
1141
1138
|
rpc CreateSynapseConnection(CreateSynapseConnectionRequest) returns (CreateSynapseConnectionResponse);
|
|
1139
|
+
|
|
1140
|
+
// Delete a synapse connection. This will terminate any ongoing syncronisation between the two synapses and delete the connection resource.
|
|
1141
|
+
rpc DeleteSynapseConnection(DeleteSynapseConnectionRequest) returns (DeleteSynapseConnectionResponse);
|
|
1142
1142
|
|
|
1143
1143
|
// Delete a document from the synapse.
|
|
1144
1144
|
rpc DeleteSynapseDocumentMetadata(DeleteSynapseDocumentMetadataRequest) returns (DeleteSynapseDocumentMetadataResponse);
|
|
@@ -1209,13 +1209,29 @@ message CreateSynapseConnectionRequest {
|
|
|
1209
1209
|
|
|
1210
1210
|
// Optional challenge of the relay.
|
|
1211
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;
|
|
1212
1215
|
}
|
|
1213
1216
|
|
|
1214
1217
|
message CreateSynapseConnectionResponse {
|
|
1218
|
+
// Details of any error that occurred on the call.
|
|
1215
1219
|
tdx.volt_api.volt.v1.Status status = 1;
|
|
1220
|
+
|
|
1221
|
+
// The created synapse connection resource.
|
|
1216
1222
|
Resource resource = 2;
|
|
1217
1223
|
}
|
|
1218
1224
|
|
|
1225
|
+
message DeleteSynapseConnectionRequest {
|
|
1226
|
+
// The id of the synapse connection to delete.
|
|
1227
|
+
string synapse_connection_id = 1;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
message DeleteSynapseConnectionResponse {
|
|
1231
|
+
// Details of any error that occurred on the call.
|
|
1232
|
+
tdx.volt_api.volt.v1.Status status = 1;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1219
1235
|
message DeleteSynapseDocumentMetadataRequest {
|
|
1220
1236
|
// DEPRECATED: Use synapse_id instead.
|
|
1221
1237
|
string database_id = 1;
|
|
@@ -1259,6 +1275,9 @@ message SaveSyncDatabaseRequest {
|
|
|
1259
1275
|
|
|
1260
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.
|
|
1261
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;
|
|
1262
1281
|
}
|
|
1263
1282
|
|
|
1264
1283
|
message SaveSyncDatabaseResponse {
|
|
@@ -1837,6 +1856,14 @@ message VoltParameters {
|
|
|
1837
1856
|
|
|
1838
1857
|
// If set, exposes a resource that gives the Volt owner read-only access the file system.
|
|
1839
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;
|
|
1840
1867
|
}
|
|
1841
1868
|
|
|
1842
1869
|
message VoltEndpoint {
|