@tdxvolt/volt-client-grpc 0.18.3 → 0.18.5

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.
Files changed (29) hide show
  1. package/lib/index.cjs +3208 -181
  2. package/package.json +5 -3
  3. package/scripts/generate-proto-assets.js +71 -0
  4. package/src/constants.js +2 -1
  5. package/src/grpc-call.js +7 -3
  6. package/src/proto-package-definition.js +184 -0
  7. package/src/proto-utils.js +40 -111
  8. package/src/volt-client-internal.js +5 -30
  9. package/src/volt-client.js +0 -57
  10. package/src/volt-proto-literals.js +2985 -0
  11. package/protobuf/README.md +0 -4
  12. package/protobuf/tdx/volt_api/data/v1/sqlite.proto +0 -43
  13. package/protobuf/tdx/volt_api/data/v1/sqlite_database_api.proto +0 -153
  14. package/protobuf/tdx/volt_api/data/v1/sqlite_server_api.proto +0 -50
  15. package/protobuf/tdx/volt_api/relay/v1/proxy_api.proto +0 -9
  16. package/protobuf/tdx/volt_api/relay/v1/relay_api.proto +0 -78
  17. package/protobuf/tdx/volt_api/sync/v1/sync.proto +0 -57
  18. package/protobuf/tdx/volt_api/volt/v1/discovery_api.proto +0 -35
  19. package/protobuf/tdx/volt_api/volt/v1/file.proto +0 -17
  20. package/protobuf/tdx/volt_api/volt/v1/file_api.proto +0 -165
  21. package/protobuf/tdx/volt_api/volt/v1/remote.proto +0 -93
  22. package/protobuf/tdx/volt_api/volt/v1/spark_api.proto +0 -121
  23. package/protobuf/tdx/volt_api/volt/v1/ssi.proto +0 -66
  24. package/protobuf/tdx/volt_api/volt/v1/ssi_api.proto +0 -214
  25. package/protobuf/tdx/volt_api/volt/v1/status.proto +0 -15
  26. package/protobuf/tdx/volt_api/volt/v1/terminal_api.proto +0 -42
  27. package/protobuf/tdx/volt_api/volt/v1/volt.proto +0 -666
  28. package/protobuf/tdx/volt_api/volt/v1/volt_api.proto +0 -1082
  29. package/protobuf/tdx/volt_api/volt/v1/wire_api.proto +0 -56
@@ -1,56 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package tdx.volt_api.volt.v1;
4
-
5
- import "tdx/volt_api/volt/v1/status.proto";
6
-
7
- // The Wire API allows clients to subscribe and publish to Volt wire resources.
8
- service WireAPI {
9
- // Establishes a client-streaming call to the wire resource.
10
- rpc PublishWire(stream PublishWireRequest) returns (stream PublishWireResponse);
11
-
12
- // Establishes a bi-directional streaming call to the wire resource.
13
- // Although we're only really interested in receiving data from the wire, a bi-directional stream is required so that we can gracefully stop the subscription.
14
- rpc SubscribeWire(stream SubscribeWireRequest) returns (stream SubscribeWireResponse);
15
- }
16
-
17
- // Because the publish RPC is streaming, the policy will not be checked until the first message arrives. This can mean that the `PublishWire` call appears to succeed but then fails after the first attempt to publish a message.
18
- // To avoid this, clients can immediately send a message with the `wire_id` set and no `chunk` set. This will establish that the correct permissions are in place and fail fast if not.
19
- message PublishWireRequest {
20
- // Only necessary in the first payload.
21
- string wire_id = 1;
22
-
23
- // The chunk of data to publish.
24
- bytes chunk = 2;
25
-
26
- // Whether to persist the chunk.
27
- // This is only valid if the wire is configured to persist messages, i.e. the `volt:wire-persist` attribute is true.
28
- bool do_not_persist = 3;
29
- }
30
-
31
- message PublishWireResponse {
32
- // Details of any error that occurred on the call.
33
- tdx.volt_api.volt.v1.Status status = 1;
34
- }
35
-
36
- // The request must include one of the following fields.
37
- message SubscribeWireRequest {
38
- oneof payload {
39
- // The wire id, only required for the first message.
40
- string wire_id = 1;
41
- // Request to stop the subscription.
42
- bool stop = 2;
43
- }
44
- }
45
-
46
- // One of the following fields will be present in the response.
47
- message SubscribeWireResponse {
48
- oneof payload {
49
- // Details of any error that occured on the call.
50
- tdx.volt_api.volt.v1.Status status = 1;
51
-
52
- // Data received from the wire.
53
- bytes chunk = 2;
54
- }
55
- }
56
-