@tdxvolt/volt-client-grpc 0.18.3 → 0.18.4
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 +3214 -186
- package/package.json +5 -2
- package/scripts/generate-proto-assets.js +71 -0
- package/src/constants.js +2 -1
- package/src/grpc-call.js +7 -3
- package/src/proto-package-definition.js +183 -0
- package/src/proto-utils.js +41 -111
- package/src/volt-client-internal.js +5 -30
- package/src/volt-client.js +0 -57
- package/src/volt-proto-literals.js +2985 -0
- package/protobuf/README.md +0 -4
- package/protobuf/tdx/volt_api/data/v1/sqlite.proto +0 -43
- package/protobuf/tdx/volt_api/data/v1/sqlite_database_api.proto +0 -153
- package/protobuf/tdx/volt_api/data/v1/sqlite_server_api.proto +0 -50
- package/protobuf/tdx/volt_api/relay/v1/proxy_api.proto +0 -9
- package/protobuf/tdx/volt_api/relay/v1/relay_api.proto +0 -78
- package/protobuf/tdx/volt_api/sync/v1/sync.proto +0 -57
- package/protobuf/tdx/volt_api/volt/v1/discovery_api.proto +0 -35
- package/protobuf/tdx/volt_api/volt/v1/file.proto +0 -17
- package/protobuf/tdx/volt_api/volt/v1/file_api.proto +0 -165
- package/protobuf/tdx/volt_api/volt/v1/remote.proto +0 -93
- package/protobuf/tdx/volt_api/volt/v1/spark_api.proto +0 -121
- package/protobuf/tdx/volt_api/volt/v1/ssi.proto +0 -66
- package/protobuf/tdx/volt_api/volt/v1/ssi_api.proto +0 -214
- package/protobuf/tdx/volt_api/volt/v1/status.proto +0 -15
- package/protobuf/tdx/volt_api/volt/v1/terminal_api.proto +0 -42
- package/protobuf/tdx/volt_api/volt/v1/volt.proto +0 -666
- package/protobuf/tdx/volt_api/volt/v1/volt_api.proto +0 -1082
- package/protobuf/tdx/volt_api/volt/v1/wire_api.proto +0 -56
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package tdx.volt_api.volt.v1;
|
|
4
|
-
|
|
5
|
-
message HttpInvoke {
|
|
6
|
-
string host = 1;
|
|
7
|
-
int32 port = 2;
|
|
8
|
-
string method = 3;
|
|
9
|
-
string url = 4;
|
|
10
|
-
string version = 5;
|
|
11
|
-
map <string, string> headers = 6;
|
|
12
|
-
bytes body = 7;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
message HttpPayload {
|
|
16
|
-
bytes chunk = 1;
|
|
17
|
-
oneof end_ {
|
|
18
|
-
bool end = 2;
|
|
19
|
-
}
|
|
20
|
-
oneof error_ {
|
|
21
|
-
int32 error = 3;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
message HttpRequest {
|
|
26
|
-
uint64 id = 1;
|
|
27
|
-
oneof payload {
|
|
28
|
-
HttpInvoke http_invoke = 2;
|
|
29
|
-
HttpPayload http_payload = 3;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
message HttpResponse {
|
|
34
|
-
uint64 id = 1;
|
|
35
|
-
HttpPayload http_payload = 7;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
enum MethodType {
|
|
39
|
-
METHOD_TYPE_UNKNOWN = 0;
|
|
40
|
-
METHOD_TYPE_UNARY = 1;
|
|
41
|
-
METHOD_TYPE_CLIENT_STREAM = 2;
|
|
42
|
-
METHOD_TYPE_SERVER_STREAM = 3;
|
|
43
|
-
METHOD_TYPE_BIDI = 4;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
message MethodInvoke {
|
|
47
|
-
uint64 id = 1;
|
|
48
|
-
string service_id = 2;
|
|
49
|
-
string method_name = 3;
|
|
50
|
-
MethodType method_type = 4;
|
|
51
|
-
oneof invoke_request {
|
|
52
|
-
bytes request = 6;
|
|
53
|
-
string json_request = 7;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message MethodPayload {
|
|
58
|
-
uint64 id = 1;
|
|
59
|
-
oneof method_payload {
|
|
60
|
-
bytes payload = 2;
|
|
61
|
-
string json_payload = 3;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
message MethodEnd {
|
|
66
|
-
uint64 id = 1;
|
|
67
|
-
bool ended = 4;
|
|
68
|
-
string error = 5;
|
|
69
|
-
int32 error_code = 6;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
message RemotePing {
|
|
73
|
-
uint64 timestamp = 1;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message RemoteRequest {
|
|
77
|
-
oneof payload {
|
|
78
|
-
RemotePing ping = 1;
|
|
79
|
-
MethodPayload method_payload = 3;
|
|
80
|
-
MethodEnd method_end = 4;
|
|
81
|
-
HttpResponse http_response = 5;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
message RemoteResponse {
|
|
86
|
-
oneof payload {
|
|
87
|
-
RemotePing ping = 1;
|
|
88
|
-
MethodInvoke method_invoke = 2;
|
|
89
|
-
MethodPayload method_payload = 3;
|
|
90
|
-
MethodEnd method_end = 4;
|
|
91
|
-
HttpRequest http_request = 5;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1,121 +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 Spark API allows clients to start and communicate with Spark VMs.
|
|
8
|
-
service SparkAPI {
|
|
9
|
-
// Start or connect to a spark VM and establish a long-lived communication channel.
|
|
10
|
-
rpc Spark(stream SparkRequest) returns (stream SparkResponse);
|
|
11
|
-
|
|
12
|
-
// Get details of running spark VMs.
|
|
13
|
-
rpc GetSpark(GetSparkRequest) returns (GetSparkResponse);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// Start a resource-hosted spark.
|
|
17
|
-
// Provenance is determined from the resource owner.
|
|
18
|
-
message StartSparkResource {
|
|
19
|
-
// The id of the resource containing the VM byte code.
|
|
20
|
-
string resource_id = 1;
|
|
21
|
-
|
|
22
|
-
// JSON-encoded payload to parameterise the spark.
|
|
23
|
-
string payload = 2;
|
|
24
|
-
|
|
25
|
-
// Envelope signature.
|
|
26
|
-
string signature = 3;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// Start a spark from byte code included in the payload, along with issuer/developer claims and signature.
|
|
30
|
-
message StartSparkAdhoc {
|
|
31
|
-
// Ad-hoc byte code of VM to run.
|
|
32
|
-
bytes byte_code = 1;
|
|
33
|
-
|
|
34
|
-
// Verifiable credentials associated with this spark.
|
|
35
|
-
repeated string credential = 2;
|
|
36
|
-
|
|
37
|
-
// Envelope signature.
|
|
38
|
-
string signature = 3;
|
|
39
|
-
|
|
40
|
-
// JSON-encoded payload to parameterise the spark.
|
|
41
|
-
string payload = 4;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Send commands and payloads to communicate with a running spark.
|
|
45
|
-
message SparkCommand {
|
|
46
|
-
// Optional id to associate with this command.
|
|
47
|
-
// If this is omitted, an id will be assigned and returned in the command acknowledgement.
|
|
48
|
-
string command_id = 1;
|
|
49
|
-
|
|
50
|
-
// The command to send to the spark.
|
|
51
|
-
string command = 2;
|
|
52
|
-
|
|
53
|
-
// The command payload.
|
|
54
|
-
string payload = 3;
|
|
55
|
-
|
|
56
|
-
// Command verifiable credential.
|
|
57
|
-
string credential = 4;
|
|
58
|
-
|
|
59
|
-
// Command signature.
|
|
60
|
-
string signature = 5;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// The request must contain one of the messages indicated below.
|
|
64
|
-
message SparkRequest {
|
|
65
|
-
oneof payload {
|
|
66
|
-
StartSparkResource start_resource = 1;
|
|
67
|
-
StartSparkAdhoc start_adhoc = 2;
|
|
68
|
-
SparkCommand command = 3;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Receive events and payload from a running spark.
|
|
73
|
-
message SparkData {
|
|
74
|
-
// The command id to which this data corresponds.
|
|
75
|
-
string command_id = 1;
|
|
76
|
-
|
|
77
|
-
oneof payload {
|
|
78
|
-
// Acknowledges receipt of a spark command.
|
|
79
|
-
bool acknowledge = 2;
|
|
80
|
-
|
|
81
|
-
// Indicates the command has completed.
|
|
82
|
-
bool ended = 3;
|
|
83
|
-
|
|
84
|
-
// Will contain error details on command failure.
|
|
85
|
-
string error = 4;
|
|
86
|
-
|
|
87
|
-
// Data emitted by a command, usually in stringified JSON format.
|
|
88
|
-
string data = 5;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Details of a spark instance.
|
|
93
|
-
message SparkInstance {
|
|
94
|
-
// The UUID assigned to the spark instance.
|
|
95
|
-
string spark_id = 1;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// The response will contain one of the messages indicated below.
|
|
99
|
-
message SparkResponse {
|
|
100
|
-
oneof payload {
|
|
101
|
-
// Details of any error that occurred on the call.
|
|
102
|
-
tdx.volt_api.volt.v1.Status status = 1;
|
|
103
|
-
|
|
104
|
-
// Details of the spark instance, sent in response to a start command.
|
|
105
|
-
SparkInstance spark_instance = 2;
|
|
106
|
-
|
|
107
|
-
// Payload data emitted by the spark.
|
|
108
|
-
SparkData spark_data = 3;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
message GetSparkRequest {
|
|
113
|
-
string spark_id = 1;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// One of the following fields will be present in the response.
|
|
117
|
-
message GetSparkResponse {
|
|
118
|
-
// Details of any error that occurred on the call.
|
|
119
|
-
tdx.volt_api.volt.v1.Status status = 1;
|
|
120
|
-
}
|
|
121
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package tdx.volt_api.volt.v1;
|
|
4
|
-
|
|
5
|
-
message DIDRegistryUpdate {
|
|
6
|
-
// The id of the update.
|
|
7
|
-
// Reserved for internal use.
|
|
8
|
-
uint64 id = 1;
|
|
9
|
-
|
|
10
|
-
// The id of the identity.
|
|
11
|
-
string did = 2;
|
|
12
|
-
|
|
13
|
-
// The type of update, either "add", "update" or "delete".
|
|
14
|
-
string operation = 3;
|
|
15
|
-
|
|
16
|
-
// The DID document contained in the update.
|
|
17
|
-
string document = 4;
|
|
18
|
-
|
|
19
|
-
// The hash of DID document.
|
|
20
|
-
// This is for internal use in comparisons.
|
|
21
|
-
string hash = 5;
|
|
22
|
-
|
|
23
|
-
// The signature of the update.
|
|
24
|
-
string update_signature = 6;
|
|
25
|
-
|
|
26
|
-
// The timestamp of this update.
|
|
27
|
-
uint64 timestamp = 7;
|
|
28
|
-
|
|
29
|
-
// The vector clocks for this DID.
|
|
30
|
-
// The vector clocks are a map of the peer ID to the id of the last update received for this DID.
|
|
31
|
-
map<string, uint64> vector_clock = 8;
|
|
32
|
-
|
|
33
|
-
// The id of the Volt that first created this DID.
|
|
34
|
-
string origin_volt = 9;
|
|
35
|
-
|
|
36
|
-
// Optional description of this document, this is not part of the DID document or signature.
|
|
37
|
-
string description = 10;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
message VerifiablePresentation {
|
|
41
|
-
// The credential JSON.
|
|
42
|
-
string credential_json = 1;
|
|
43
|
-
|
|
44
|
-
// A signature of the credential JSON. The signature should usually be that of the credential subject.
|
|
45
|
-
string signature = 2;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
message VerifiableCredential {
|
|
49
|
-
// The credential id. Leave empty when creating a new credential.
|
|
50
|
-
string id = 1;
|
|
51
|
-
|
|
52
|
-
// The credential status, either "pending", "verified", or "revoked".
|
|
53
|
-
string status = 2;
|
|
54
|
-
|
|
55
|
-
// The credential types.
|
|
56
|
-
repeated string type = 3;
|
|
57
|
-
|
|
58
|
-
// The DID of the issuer.
|
|
59
|
-
string issuer_id = 4;
|
|
60
|
-
|
|
61
|
-
// The JSON of the credential subject.
|
|
62
|
-
string subject_json = 5;
|
|
63
|
-
|
|
64
|
-
// The full JSON of the credential.
|
|
65
|
-
string json = 6;
|
|
66
|
-
}
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package tdx.volt_api.volt.v1;
|
|
4
|
-
|
|
5
|
-
import "tdx/volt_api/volt/v1/status.proto";
|
|
6
|
-
import "tdx/volt_api/volt/v1/ssi.proto";
|
|
7
|
-
|
|
8
|
-
service SsiAPI {
|
|
9
|
-
// Delete a DID document or all DID documents originating from a given Volt.
|
|
10
|
-
// Requires `volt:delete-did` API privilege.
|
|
11
|
-
rpc DeleteDID(DeleteDIDRequest) returns (DeleteDIDResponse);
|
|
12
|
-
|
|
13
|
-
// Get all updates to the DID registry since the specified timestamp.
|
|
14
|
-
// Internal use only.
|
|
15
|
-
rpc GetDIDRegistryUpdates(GetDIDRegistryUpdatesRequest) returns (GetDIDRegistryUpdatesResponse);
|
|
16
|
-
|
|
17
|
-
// Import a verifiable credential.
|
|
18
|
-
rpc ImportCredential(ImportCredentialRequest) returns (ImportCredentialResponse);
|
|
19
|
-
|
|
20
|
-
// Parse a verifiable credential from a URL or a verifiable presentation.
|
|
21
|
-
rpc ParseCredential(ParseCredentialRequest) returns (ParseCredentialResponse);
|
|
22
|
-
|
|
23
|
-
// Resolve a DID to a DID document.
|
|
24
|
-
rpc ResolveDID(ResolveDIDRequest) returns (ResolveDIDResponse);
|
|
25
|
-
|
|
26
|
-
// Register a DID document.
|
|
27
|
-
// This is intended for use by the DID registry when synchronising with other registries.
|
|
28
|
-
// To register a new DID document, it is recommended to use the VoltAPI Authenticate method.
|
|
29
|
-
rpc RegisterDIDDocument(RegisterDIDDocumentRequest) returns (RegisterDIDDocumentResponse);
|
|
30
|
-
|
|
31
|
-
// Save a verifiable credential.
|
|
32
|
-
rpc SaveCredential(SaveCredentialRequest) returns (SaveCredentialResponse);
|
|
33
|
-
|
|
34
|
-
// Search the DID registry.
|
|
35
|
-
rpc SearchDIDRegistry(SearchDIDRegistryRequest) returns (SearchDIDRegistryResponse);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
message DeleteDIDRequest {
|
|
39
|
-
// Specify an individual DID as the target of the delete operation, or a Volt to delete all DIDs owned by that Volt.
|
|
40
|
-
oneof target {
|
|
41
|
-
// The id of the identity to delete.
|
|
42
|
-
string did = 1;
|
|
43
|
-
|
|
44
|
-
// Force delete of all DIDs owned by the specified Volt.
|
|
45
|
-
string origin_volt = 2;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Optional passphrase of the DID controller key. Required if the key is encrypted.
|
|
49
|
-
string key_passphrase = 3;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
message DeleteDIDResponse {
|
|
53
|
-
// Details of any error that occurred on the call.
|
|
54
|
-
tdx.volt_api.volt.v1.Status status = 1;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message GetDIDRegistryUpdatesRequest {
|
|
58
|
-
// The id of the last update received.
|
|
59
|
-
// All updates since this id will be returned, limited to the maximum number of updates specified in the request.
|
|
60
|
-
// To fully synchronise, clients should continue calling this method until the response contains no updates.
|
|
61
|
-
// If this is the first call, then this should be set to 0.
|
|
62
|
-
uint64 since_id = 1;
|
|
63
|
-
|
|
64
|
-
// The maximum number of updates to return, defaults to 1000.
|
|
65
|
-
uint32 max_updates = 2;
|
|
66
|
-
|
|
67
|
-
// Filter by origin volt.
|
|
68
|
-
string origin_volt = 3;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
message GetDIDRegistryUpdatesResponse {
|
|
72
|
-
// Details of any error that occurred on the call.
|
|
73
|
-
tdx.volt_api.volt.v1.Status status = 1;
|
|
74
|
-
|
|
75
|
-
// The updates.
|
|
76
|
-
repeated DIDRegistryUpdate update = 2;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
message ImportCredentialRequest {
|
|
80
|
-
// Optional id of existing credential to import into. If not specified, a new credential will be created.
|
|
81
|
-
string id = 1;
|
|
82
|
-
|
|
83
|
-
// The JSON representation of the credential.
|
|
84
|
-
string json = 2;
|
|
85
|
-
|
|
86
|
-
// Optional id of the folder resource to save the credential in. This is ignored if the id field is specified.
|
|
87
|
-
string create_in_parent_id = 3;
|
|
88
|
-
|
|
89
|
-
// Optional description of the credential.
|
|
90
|
-
string description = 4;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
message ImportCredentialResponse {
|
|
94
|
-
// Details of any error that occurred on the call.
|
|
95
|
-
tdx.volt_api.volt.v1.Status status = 1;
|
|
96
|
-
|
|
97
|
-
// The id assigned to the credential.
|
|
98
|
-
string id = 2;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
message ParseCredentialRequest {
|
|
102
|
-
// Details of the credential to parse.
|
|
103
|
-
oneof credential {
|
|
104
|
-
// A presentation of the verifiable credential.
|
|
105
|
-
// The presentation doesn't need to be signed, but if it is, the signature will be verified using the public key provided in the request.
|
|
106
|
-
VerifiablePresentation verifiable_presentation = 1;
|
|
107
|
-
|
|
108
|
-
// A URL to a verifiable credential.
|
|
109
|
-
// Not yet implemented.
|
|
110
|
-
string url = 2;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// Optional public key to use to verify the presentation signature.
|
|
114
|
-
string presentation_public_key = 3;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
message ParseCredentialResponse {
|
|
118
|
-
// Details of any error that occurred on the call.
|
|
119
|
-
tdx.volt_api.volt.v1.Status status = 1;
|
|
120
|
-
|
|
121
|
-
// The parsed credential details.
|
|
122
|
-
VerifiableCredential verifiable_credential = 2;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
message ResolveDIDRequest {
|
|
126
|
-
// The DID to resolve.
|
|
127
|
-
string did = 1;
|
|
128
|
-
|
|
129
|
-
// Set to search all known registries rather than just the local registry.
|
|
130
|
-
bool include_registries = 2;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
message ResolveDIDResponse {
|
|
134
|
-
// Details of any error that occurred on the call.
|
|
135
|
-
tdx.volt_api.volt.v1.Status status = 1;
|
|
136
|
-
|
|
137
|
-
// The JSON representation of the DID document.
|
|
138
|
-
string did_document = 2;
|
|
139
|
-
|
|
140
|
-
// The signature used to save this version of the DID document.
|
|
141
|
-
string update_signature = 3;
|
|
142
|
-
|
|
143
|
-
// The DID of the Volt that saved this version of the DID document.
|
|
144
|
-
string origin_volt = 4;
|
|
145
|
-
|
|
146
|
-
// Optional description associated with the DID document.
|
|
147
|
-
string description = 5;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
message RegisterDIDDocumentRequest {
|
|
151
|
-
bool create = 1;
|
|
152
|
-
|
|
153
|
-
// The DID document to save.
|
|
154
|
-
DIDRegistryUpdate did_update = 2;
|
|
155
|
-
|
|
156
|
-
// When updating an existing DID document, it is necessary to include a signature of the document JSON, signed by the DID document's current owner.
|
|
157
|
-
string update_signature = 3;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
message RegisterDIDDocumentResponse {
|
|
161
|
-
// Details of any error that occurred on the call.
|
|
162
|
-
tdx.volt_api.volt.v1.Status status = 1;
|
|
163
|
-
|
|
164
|
-
DIDRegistryUpdate did_document = 2;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
message SaveCredentialRequest {
|
|
168
|
-
// A human-readable description of the credential.
|
|
169
|
-
string description = 1;
|
|
170
|
-
|
|
171
|
-
// Details of the credential to save.
|
|
172
|
-
VerifiableCredential verifiable_credential = 2;
|
|
173
|
-
|
|
174
|
-
// Optional id of the folder resource to save the credential in.
|
|
175
|
-
string create_in_parent_id = 3;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
message SaveCredentialResponse {
|
|
179
|
-
// Details of any error that occurred on the call.
|
|
180
|
-
tdx.volt_api.volt.v1.Status status = 1;
|
|
181
|
-
|
|
182
|
-
// The id assigned to the credential.
|
|
183
|
-
string id = 2;
|
|
184
|
-
|
|
185
|
-
// The JSON representation of the credential.
|
|
186
|
-
string json = 3;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
message SearchDIDRegistryRequest {
|
|
190
|
-
oneof filter {
|
|
191
|
-
// Filter by DID itself. This is a prefix match, so searching for 'did:volt:123' will match 'did:volt:1234'. You can also exclude the 'did:volt:' prefix.
|
|
192
|
-
string did_filter = 1;
|
|
193
|
-
|
|
194
|
-
// Filter by the (optional) description attached to the DID document. This will match any DID document whose description contains the specified string, for example 'John' will match 'John Smith', 'Elton John' and 'Jasper Johns-Frederick'.
|
|
195
|
-
string description_filter = 2;
|
|
196
|
-
|
|
197
|
-
// Filter by the origin Volt. This will match any DID document whose origin Volt matches exactly the given DID.
|
|
198
|
-
string origin_filter = 3;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// The page number to retrieve, defaults to 1.
|
|
202
|
-
uint32 page_number = 4;
|
|
203
|
-
|
|
204
|
-
// The number of results per page, defaults to 100.
|
|
205
|
-
uint32 page_size = 5;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
message SearchDIDRegistryResponse {
|
|
209
|
-
// Details of any error that occurred on the call.
|
|
210
|
-
tdx.volt_api.volt.v1.Status status = 1;
|
|
211
|
-
|
|
212
|
-
// The DID documents that matched the search criteria.
|
|
213
|
-
repeated DIDRegistryUpdate did_document = 2;
|
|
214
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package tdx.volt_api.volt.v1;
|
|
4
|
-
|
|
5
|
-
message Status {
|
|
6
|
-
// A simple error code that can be easily handled by the client.
|
|
7
|
-
// Mirrors the grpc StatusCode enum, 0 => OK
|
|
8
|
-
int32 code = 1;
|
|
9
|
-
|
|
10
|
-
// A developer-facing human-readable error message in English. It should both explain the error and offer an actionable resolution to it.
|
|
11
|
-
string message = 2;
|
|
12
|
-
|
|
13
|
-
// Long form error description.
|
|
14
|
-
string description = 3;
|
|
15
|
-
}
|
|
@@ -1,42 +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
|
-
service TerminalAPI {
|
|
8
|
-
rpc CommandStream(stream CommandStreamRequest) returns (stream CommandStreamResponse);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
message TerminalSize {
|
|
12
|
-
int32 rows = 1;
|
|
13
|
-
int32 cols = 2;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
message Control {
|
|
17
|
-
string command = 1;
|
|
18
|
-
repeated string arg = 2;
|
|
19
|
-
string stop = 3;
|
|
20
|
-
string pause = 4;
|
|
21
|
-
string resume = 5;
|
|
22
|
-
string reset = 6;
|
|
23
|
-
TerminalSize terminal_size = 7;
|
|
24
|
-
int32 interrupt = 8;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
message Input {
|
|
28
|
-
bytes data = 1;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
message CommandStreamRequest {
|
|
32
|
-
oneof payload {
|
|
33
|
-
Control control = 1;
|
|
34
|
-
Input input = 2;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
message CommandStreamResponse {
|
|
39
|
-
tdx.volt_api.volt.v1.Status status = 1;
|
|
40
|
-
bytes data = 2;
|
|
41
|
-
}
|
|
42
|
-
|