@tdxvolt/volt-client-grpc 0.11.0 → 0.11.3

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.11.0",
6
+ "version": "0.11.3",
7
7
  "description": "tdx Volt library for nodejs clients",
8
8
  "type": "module",
9
9
  "exports": {
@@ -47,4 +47,4 @@
47
47
  "node-forge": "^0.9.0",
48
48
  "uuid": "^8.1.0"
49
49
  }
50
- }
50
+ }
package/src/constants.js CHANGED
@@ -1,75 +1,75 @@
1
1
  // eslint-disable-next-line import/prefer-default-export
2
2
  export const constants = {
3
- authTokenName: "tdx-token",
4
- collectionOperation: {
5
- add: "ADD",
6
- remove: "REMOVE",
7
- update: "UPDATE",
8
- },
9
- crypto: {
10
- subjectDefaults: [
11
- {
12
- name: "countryName",
13
- value: "GB",
14
- },
15
- {
16
- name: "localityName",
17
- value: "Southampton",
18
- },
19
- {
20
- name: "organizationName",
21
- value: "nquiringminds Ltd",
22
- },
23
- ],
24
- userIdOID: "0.9.2342.19200300.100.1.1",
25
- },
26
- defaultDIDHostName: "cloud.tdxvolt.com",
27
- didServiceType: {
28
- voltConfig: "tdx-volt-config",
29
- },
30
- identityType: {
31
- did: "did",
32
- volt: "volt",
33
- },
34
- onlineStatus: {
35
- offline: "offline",
36
- online: "online",
37
- unknown: "unknown",
38
- },
39
- publicKeyPrefix: "-----BEGIN PUBLIC KEY-----",
40
- privateKeyPrefix: "-----BEGIN RSA PRIVATE KEY-----",
41
- privateEncryptedKeyPrefix: "-----BEGIN ENCRYPTED PRIVATE KEY-----",
42
- resource: {
43
- identity: "ident",
44
- identityView: "ident-view",
45
- proxy: "proxy",
46
- proxyView: "proxy-view",
47
- vc: "vc",
48
- vcView: "vc-view",
49
- },
50
- voltStatus: {
51
- pending: "",
52
- online: "online",
53
- offline: "offline",
54
- deleted: "deleted",
55
- revoked: "revoked",
56
- },
57
- /**
58
- * These top-level service types should map to a protobuf definition
59
- * in @tdxvolt/volt-proto.
60
- */
61
- serviceType: {
62
- fileAPI: "tdx.volt_api.volt.v1.FileAPI",
63
- sqliteServerAPI: "tdx.volt_api.data.v1.SqliteServerAPI",
64
- sqliteDatabaseAPI: "tdx.volt_api.data.v1.SqliteDatabaseAPI",
65
- ssiAPI: "tdx.volt_api.ssi.v1.SsiAPI",
66
- relayAPI: "tdx.volt_api.relay.v1.RelayAPI",
67
- voltAPI: "tdx.volt_api.volt.v1.VoltAPI",
68
- wireAPI: "tdx.volt_api.volt.v1.WireAPI",
69
- },
70
- tunnelInvokeMethod: "/tdx.volt_api.volt.v1.VoltAPI/Invoke",
71
- tunnelPingInterval: 10000,
72
- tunnelPingTimeout: 2500,
73
- tunnelReconnectAfter: 30000,
74
- tunnelTimeoutInterval: 10000 * 2, // This must always be greater than `tunnelPingInterval`.
3
+ authTokenName: "tdx-token",
4
+ collectionOperation: {
5
+ add: "ADD",
6
+ remove: "REMOVE",
7
+ update: "UPDATE",
8
+ },
9
+ crypto: {
10
+ subjectDefaults: [
11
+ {
12
+ name: "countryName",
13
+ value: "GB",
14
+ },
15
+ {
16
+ name: "localityName",
17
+ value: "Southampton",
18
+ },
19
+ {
20
+ name: "organizationName",
21
+ value: "nquiringminds Ltd",
22
+ },
23
+ ],
24
+ userIdOID: "0.9.2342.19200300.100.1.1",
25
+ },
26
+ defaultDIDHostName: "cloud.tdxvolt.com",
27
+ didServiceType: {
28
+ voltConfig: "tdx-volt-config",
29
+ },
30
+ identityType: {
31
+ did: "did",
32
+ volt: "volt",
33
+ },
34
+ onlineStatus: {
35
+ offline: "offline",
36
+ online: "online",
37
+ unknown: "unknown",
38
+ },
39
+ publicKeyPrefix: "-----BEGIN PUBLIC KEY-----",
40
+ privateKeyPrefix: "-----BEGIN RSA PRIVATE KEY-----",
41
+ privateEncryptedKeyPrefix: "-----BEGIN ENCRYPTED PRIVATE KEY-----",
42
+ resource: {
43
+ identity: "ident",
44
+ identityView: "ident-view",
45
+ proxy: "proxy",
46
+ proxyView: "proxy-view",
47
+ vc: "vc",
48
+ vcView: "vc-view",
49
+ },
50
+ voltStatus: {
51
+ pending: "",
52
+ online: "online",
53
+ offline: "offline",
54
+ deleted: "deleted",
55
+ revoked: "revoked",
56
+ },
57
+ /**
58
+ * These top-level service types should map to a protobuf definition
59
+ * in @tdxvolt/volt-proto.
60
+ */
61
+ serviceType: {
62
+ fileAPI: "tdx.volt_api.volt.v1.FileAPI",
63
+ sqliteServerAPI: "tdx.volt_api.data.v1.SqliteServerAPI",
64
+ sqliteDatabaseAPI: "tdx.volt_api.data.v1.SqliteDatabaseAPI",
65
+ ssiAPI: "tdx.volt_api.ssi.v1.SsiAPI",
66
+ relayAPI: "tdx.volt_api.relay.v1.RelayAPI",
67
+ voltAPI: "tdx.volt_api.volt.v1.VoltAPI",
68
+ wireAPI: "tdx.volt_api.volt.v1.WireAPI",
69
+ },
70
+ tunnelInvokeMethod: "/tdx.volt_api.volt.v1.VoltAPI/Invoke",
71
+ tunnelPingInterval: 10000,
72
+ tunnelPingTimeout: 2500,
73
+ tunnelReconnectAfter: 30000,
74
+ tunnelTimeoutInterval: 10000 * 2, // This must always be greater than `tunnelPingInterval`.
75
75
  };