@tdxvolt/volt-client-grpc 0.20.3 → 0.20.7
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 +22 -1
- package/package.json +3 -3
- package/src/volt-client-internal.js +2 -1
- package/src/volt-proto-literals.js +20 -0
package/lib/index.cjs
CHANGED
|
@@ -1088,8 +1088,14 @@ message GetFileDescendantsRequest {
|
|
|
1088
1088
|
// Optional - only match descendants of the given kind.
|
|
1089
1089
|
string extension = 3;
|
|
1090
1090
|
|
|
1091
|
+
// Optional - restrict to folders only.bool
|
|
1092
|
+
bool folders_only = 4;
|
|
1093
|
+
|
|
1091
1094
|
// Optional - can be used to determine if a resource is a descendant.
|
|
1092
1095
|
string descendant_id = 5;
|
|
1096
|
+
|
|
1097
|
+
// Optional - include hidden files and directories.
|
|
1098
|
+
bool include_hidden = 6;
|
|
1093
1099
|
}
|
|
1094
1100
|
|
|
1095
1101
|
message GetFileDescendantsResponse {
|
|
@@ -2128,6 +2134,15 @@ message VoltParameters {
|
|
|
2128
2134
|
|
|
2129
2135
|
// If set, enables the agent event pool.
|
|
2130
2136
|
bool enable_agent_event_pool = 51;
|
|
2137
|
+
|
|
2138
|
+
// Optional owner email addresses.
|
|
2139
|
+
repeated string owner_email = 52;
|
|
2140
|
+
|
|
2141
|
+
// Optional owner email identity providers.
|
|
2142
|
+
repeated string identity_provider = 53;
|
|
2143
|
+
|
|
2144
|
+
// If set, exposes a resource that gives the Volt owner read-only access the file system.
|
|
2145
|
+
bool enable_owner_file_system_access = 54;
|
|
2131
2146
|
}
|
|
2132
2147
|
|
|
2133
2148
|
message VoltEndpoint {
|
|
@@ -3538,6 +3553,11 @@ message SaveSessionResponse {
|
|
|
3538
3553
|
}
|
|
3539
3554
|
|
|
3540
3555
|
message SetPolicyRequest {
|
|
3556
|
+
// The id of the policy to set.
|
|
3557
|
+
// Should be either 00000000-0000-0000-0000-000000000000 or 00000000-0000-0000-0000-000000000001 for the first or last custom policy respectively.
|
|
3558
|
+
string id = 2;
|
|
3559
|
+
|
|
3560
|
+
// The custom policy to set in JSON format.
|
|
3541
3561
|
string custom_policy = 1;
|
|
3542
3562
|
}
|
|
3543
3563
|
|
|
@@ -4844,7 +4864,8 @@ function issueAuthenticate(authenticateRequest, ttl) {
|
|
|
4844
4864
|
|
|
4845
4865
|
this._credential.cache.vc = this._credential.cache.vc || [];
|
|
4846
4866
|
for (const credential of authenticateResponse.credential) {
|
|
4847
|
-
|
|
4867
|
+
const vc = JSON.parse(credential);
|
|
4868
|
+
this._credential.cache.vc.push(vc);
|
|
4848
4869
|
}
|
|
4849
4870
|
|
|
4850
4871
|
this._credential.saveCache();
|
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.7",
|
|
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.7",
|
|
37
37
|
"debug": "^4.1.1",
|
|
38
38
|
"ip": "^1.1.5",
|
|
39
39
|
"jsonwebtoken": "^8.5.1",
|
|
@@ -42,4 +42,4 @@
|
|
|
42
42
|
"protobufjs": "^7.4.0",
|
|
43
43
|
"uuid": "^8.1.0"
|
|
44
44
|
}
|
|
45
|
-
}
|
|
45
|
+
}
|
|
@@ -54,7 +54,8 @@ function issueAuthenticate(authenticateRequest, ttl) {
|
|
|
54
54
|
|
|
55
55
|
this._credential.cache.vc = this._credential.cache.vc || [];
|
|
56
56
|
for (const credential of authenticateResponse.credential) {
|
|
57
|
-
|
|
57
|
+
const vc = JSON.parse(credential);
|
|
58
|
+
this._credential.cache.vc.push(vc);
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
this._credential.saveCache();
|
|
@@ -543,8 +543,14 @@ message GetFileDescendantsRequest {
|
|
|
543
543
|
// Optional - only match descendants of the given kind.
|
|
544
544
|
string extension = 3;
|
|
545
545
|
|
|
546
|
+
// Optional - restrict to folders only.bool
|
|
547
|
+
bool folders_only = 4;
|
|
548
|
+
|
|
546
549
|
// Optional - can be used to determine if a resource is a descendant.
|
|
547
550
|
string descendant_id = 5;
|
|
551
|
+
|
|
552
|
+
// Optional - include hidden files and directories.
|
|
553
|
+
bool include_hidden = 6;
|
|
548
554
|
}
|
|
549
555
|
|
|
550
556
|
message GetFileDescendantsResponse {
|
|
@@ -1583,6 +1589,15 @@ message VoltParameters {
|
|
|
1583
1589
|
|
|
1584
1590
|
// If set, enables the agent event pool.
|
|
1585
1591
|
bool enable_agent_event_pool = 51;
|
|
1592
|
+
|
|
1593
|
+
// Optional owner email addresses.
|
|
1594
|
+
repeated string owner_email = 52;
|
|
1595
|
+
|
|
1596
|
+
// Optional owner email identity providers.
|
|
1597
|
+
repeated string identity_provider = 53;
|
|
1598
|
+
|
|
1599
|
+
// If set, exposes a resource that gives the Volt owner read-only access the file system.
|
|
1600
|
+
bool enable_owner_file_system_access = 54;
|
|
1586
1601
|
}
|
|
1587
1602
|
|
|
1588
1603
|
message VoltEndpoint {
|
|
@@ -2993,6 +3008,11 @@ message SaveSessionResponse {
|
|
|
2993
3008
|
}
|
|
2994
3009
|
|
|
2995
3010
|
message SetPolicyRequest {
|
|
3011
|
+
// The id of the policy to set.
|
|
3012
|
+
// Should be either 00000000-0000-0000-0000-000000000000 or 00000000-0000-0000-0000-000000000001 for the first or last custom policy respectively.
|
|
3013
|
+
string id = 2;
|
|
3014
|
+
|
|
3015
|
+
// The custom policy to set in JSON format.
|
|
2996
3016
|
string custom_policy = 1;
|
|
2997
3017
|
}
|
|
2998
3018
|
|