@tdxvolt/volt-client-grpc 0.20.12 → 0.20.16
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 +34 -4
- package/package.json +2 -2
- package/src/volt-client.js +4 -0
- package/src/volt-proto-literals.js +30 -4
package/lib/index.cjs
CHANGED
|
@@ -1603,11 +1603,14 @@ import "tdx/volt_api/volt/v1/volt_api.proto";
|
|
|
1603
1603
|
// The Sync API allows clients to collaboratively read and write JSON data to a shared resource.
|
|
1604
1604
|
service SyncAPI {
|
|
1605
1605
|
// Create a synapse connection resource.
|
|
1606
|
-
// A synapse connection defines a bi-directional syncronisation between two Volt
|
|
1606
|
+
// A synapse connection defines a bi-directional syncronisation between two Volt synapses. The connection is created as a child of the local synapse resource, and a symbolic link is also placed in the system-wide 'connection' folder.
|
|
1607
1607
|
// The remote Volt is identified by its DID or address. If a relay address is provided, the connection will be established via the relay.
|
|
1608
1608
|
// The authenticated account must have \`volt:resource-create\` access to the local synapse resource.
|
|
1609
1609
|
rpc CreateSynapseConnection(SaveResourceRequest) returns (SaveResourceResponse);
|
|
1610
1610
|
|
|
1611
|
+
// Delete a document from the synapse.
|
|
1612
|
+
rpc DeleteSynapseDocumentMetadata(DeleteSynapseDocumentMetadataRequest) returns (DeleteSynapseDocumentMetadataResponse);
|
|
1613
|
+
|
|
1611
1614
|
// Set the metadata for a synapse document.
|
|
1612
1615
|
rpc SetSynapseDocumentMetadata(SetSynapseDocumentMetadataRequest) returns (SetSynapseDocumentMetadataResponse);
|
|
1613
1616
|
|
|
@@ -1621,6 +1624,20 @@ service SyncAPI {
|
|
|
1621
1624
|
rpc WriteSynapsePath(WriteSynapsePathRequest) returns (WriteSynapsePathResponse);
|
|
1622
1625
|
}
|
|
1623
1626
|
|
|
1627
|
+
message DeleteSynapseDocumentMetadataRequest {
|
|
1628
|
+
// DEPRECATED: Use synapse_id instead.
|
|
1629
|
+
string database_id = 1;
|
|
1630
|
+
|
|
1631
|
+
// The id of the synapse that contains the document.
|
|
1632
|
+
string synapse_id = 3;
|
|
1633
|
+
|
|
1634
|
+
// The id of the document to delete.
|
|
1635
|
+
string document_id = 2;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
message DeleteSynapseDocumentMetadataResponse {
|
|
1639
|
+
tdx.volt_api.volt.v1.Status status = 1;
|
|
1640
|
+
}
|
|
1624
1641
|
|
|
1625
1642
|
message SynapseDocumentMetadata {
|
|
1626
1643
|
// The name of the top-level shared type in the document.
|
|
@@ -1634,9 +1651,12 @@ message SynapseDocumentMetadata {
|
|
|
1634
1651
|
}
|
|
1635
1652
|
|
|
1636
1653
|
message SetSynapseDocumentMetadataRequest {
|
|
1637
|
-
//
|
|
1654
|
+
// DEPRECATED: Use synapse_id instead.
|
|
1638
1655
|
string database_id = 1;
|
|
1639
1656
|
|
|
1657
|
+
// The id of the synapse that contains the document.
|
|
1658
|
+
string synapse_id = 5;
|
|
1659
|
+
|
|
1640
1660
|
// The id of the document to set the metadata for.
|
|
1641
1661
|
string document_id = 2;
|
|
1642
1662
|
|
|
@@ -1714,9 +1734,12 @@ message SyncDocumentResponse {
|
|
|
1714
1734
|
|
|
1715
1735
|
// Parameters to start watching synapse paths. Sent as the first message.
|
|
1716
1736
|
message WatchSynapsePathStart {
|
|
1717
|
-
//
|
|
1737
|
+
// DEPRECATED: Use synapse_id instead.
|
|
1718
1738
|
string database_id = 1;
|
|
1719
1739
|
|
|
1740
|
+
// The id of the synapse that contains the document.
|
|
1741
|
+
string synapse_id = 4;
|
|
1742
|
+
|
|
1720
1743
|
// The id of the document to watch.
|
|
1721
1744
|
string document_id = 2;
|
|
1722
1745
|
|
|
@@ -1776,9 +1799,12 @@ message WatchSynapsePathResponse {
|
|
|
1776
1799
|
}
|
|
1777
1800
|
|
|
1778
1801
|
message WriteSynapsePathRequest {
|
|
1779
|
-
//
|
|
1802
|
+
// DEPRECATED: Use synapse_id instead.
|
|
1780
1803
|
string database_id = 1;
|
|
1781
1804
|
|
|
1805
|
+
// The id of the synapse that contains the document.
|
|
1806
|
+
string synapse_id = 5;
|
|
1807
|
+
|
|
1782
1808
|
// The id of the document to write to.
|
|
1783
1809
|
string document_id = 2;
|
|
1784
1810
|
|
|
@@ -6379,6 +6405,10 @@ class VoltClient extends EventEmitter__default["default"] {
|
|
|
6379
6405
|
return syncDocumentCall.start(grpcClient, request);
|
|
6380
6406
|
}
|
|
6381
6407
|
|
|
6408
|
+
DeleteSynapseDocumentMetadata(request) {
|
|
6409
|
+
return unaryCallInternal.call(this, "DeleteSynapseDocumentMetadata", request);
|
|
6410
|
+
}
|
|
6411
|
+
|
|
6382
6412
|
SetSynapseDocumentMetadata(request) {
|
|
6383
6413
|
return unaryCallInternal.call(this, "SetSynapseDocumentMetadata", request);
|
|
6384
6414
|
}
|
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.16",
|
|
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.16",
|
|
37
37
|
"@tdxvolt/volt-utility": "^0.20.10",
|
|
38
38
|
"debug": "^4.1.1",
|
|
39
39
|
"ip": "^1.1.5",
|
package/src/volt-client.js
CHANGED
|
@@ -739,6 +739,10 @@ export class VoltClient extends EventEmitter {
|
|
|
739
739
|
return syncDocumentCall.start(grpcClient, request);
|
|
740
740
|
}
|
|
741
741
|
|
|
742
|
+
DeleteSynapseDocumentMetadata(request) {
|
|
743
|
+
return unaryCallInternal.call(this, "DeleteSynapseDocumentMetadata", request);
|
|
744
|
+
}
|
|
745
|
+
|
|
742
746
|
SetSynapseDocumentMetadata(request) {
|
|
743
747
|
return unaryCallInternal.call(this, "SetSynapseDocumentMetadata", request);
|
|
744
748
|
}
|
|
@@ -1055,11 +1055,14 @@ import "tdx/volt_api/volt/v1/volt_api.proto";
|
|
|
1055
1055
|
// The Sync API allows clients to collaboratively read and write JSON data to a shared resource.
|
|
1056
1056
|
service SyncAPI {
|
|
1057
1057
|
// Create a synapse connection resource.
|
|
1058
|
-
// A synapse connection defines a bi-directional syncronisation between two Volt
|
|
1058
|
+
// A synapse connection defines a bi-directional syncronisation between two Volt synapses. The connection is created as a child of the local synapse resource, and a symbolic link is also placed in the system-wide 'connection' folder.
|
|
1059
1059
|
// The remote Volt is identified by its DID or address. If a relay address is provided, the connection will be established via the relay.
|
|
1060
1060
|
// The authenticated account must have \`volt:resource-create\` access to the local synapse resource.
|
|
1061
1061
|
rpc CreateSynapseConnection(SaveResourceRequest) returns (SaveResourceResponse);
|
|
1062
1062
|
|
|
1063
|
+
// Delete a document from the synapse.
|
|
1064
|
+
rpc DeleteSynapseDocumentMetadata(DeleteSynapseDocumentMetadataRequest) returns (DeleteSynapseDocumentMetadataResponse);
|
|
1065
|
+
|
|
1063
1066
|
// Set the metadata for a synapse document.
|
|
1064
1067
|
rpc SetSynapseDocumentMetadata(SetSynapseDocumentMetadataRequest) returns (SetSynapseDocumentMetadataResponse);
|
|
1065
1068
|
|
|
@@ -1073,6 +1076,20 @@ service SyncAPI {
|
|
|
1073
1076
|
rpc WriteSynapsePath(WriteSynapsePathRequest) returns (WriteSynapsePathResponse);
|
|
1074
1077
|
}
|
|
1075
1078
|
|
|
1079
|
+
message DeleteSynapseDocumentMetadataRequest {
|
|
1080
|
+
// DEPRECATED: Use synapse_id instead.
|
|
1081
|
+
string database_id = 1;
|
|
1082
|
+
|
|
1083
|
+
// The id of the synapse that contains the document.
|
|
1084
|
+
string synapse_id = 3;
|
|
1085
|
+
|
|
1086
|
+
// The id of the document to delete.
|
|
1087
|
+
string document_id = 2;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
message DeleteSynapseDocumentMetadataResponse {
|
|
1091
|
+
tdx.volt_api.volt.v1.Status status = 1;
|
|
1092
|
+
}
|
|
1076
1093
|
|
|
1077
1094
|
message SynapseDocumentMetadata {
|
|
1078
1095
|
// The name of the top-level shared type in the document.
|
|
@@ -1086,9 +1103,12 @@ message SynapseDocumentMetadata {
|
|
|
1086
1103
|
}
|
|
1087
1104
|
|
|
1088
1105
|
message SetSynapseDocumentMetadataRequest {
|
|
1089
|
-
//
|
|
1106
|
+
// DEPRECATED: Use synapse_id instead.
|
|
1090
1107
|
string database_id = 1;
|
|
1091
1108
|
|
|
1109
|
+
// The id of the synapse that contains the document.
|
|
1110
|
+
string synapse_id = 5;
|
|
1111
|
+
|
|
1092
1112
|
// The id of the document to set the metadata for.
|
|
1093
1113
|
string document_id = 2;
|
|
1094
1114
|
|
|
@@ -1166,9 +1186,12 @@ message SyncDocumentResponse {
|
|
|
1166
1186
|
|
|
1167
1187
|
// Parameters to start watching synapse paths. Sent as the first message.
|
|
1168
1188
|
message WatchSynapsePathStart {
|
|
1169
|
-
//
|
|
1189
|
+
// DEPRECATED: Use synapse_id instead.
|
|
1170
1190
|
string database_id = 1;
|
|
1171
1191
|
|
|
1192
|
+
// The id of the synapse that contains the document.
|
|
1193
|
+
string synapse_id = 4;
|
|
1194
|
+
|
|
1172
1195
|
// The id of the document to watch.
|
|
1173
1196
|
string document_id = 2;
|
|
1174
1197
|
|
|
@@ -1228,9 +1251,12 @@ message WatchSynapsePathResponse {
|
|
|
1228
1251
|
}
|
|
1229
1252
|
|
|
1230
1253
|
message WriteSynapsePathRequest {
|
|
1231
|
-
//
|
|
1254
|
+
// DEPRECATED: Use synapse_id instead.
|
|
1232
1255
|
string database_id = 1;
|
|
1233
1256
|
|
|
1257
|
+
// The id of the synapse that contains the document.
|
|
1258
|
+
string synapse_id = 5;
|
|
1259
|
+
|
|
1234
1260
|
// The id of the document to write to.
|
|
1235
1261
|
string document_id = 2;
|
|
1236
1262
|
|