@internxt/sdk 1.6.3 → 1.6.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/dist/auth/index.js +17 -17
- package/dist/auth/types.d.ts +7 -9
- package/package.json +1 -1
package/dist/auth/index.js
CHANGED
|
@@ -85,12 +85,12 @@ var Auth = /** @class */ (function () {
|
|
|
85
85
|
revocationKey: registerDetails.keys.revocationCertificate,
|
|
86
86
|
keys: {
|
|
87
87
|
ecc: {
|
|
88
|
-
privateKey: registerDetails.keys.
|
|
89
|
-
publicKey: registerDetails.keys.
|
|
88
|
+
privateKey: registerDetails.keys.ecc.privateKeyEncrypted,
|
|
89
|
+
publicKey: registerDetails.keys.ecc.publicKey,
|
|
90
90
|
},
|
|
91
91
|
kyber: {
|
|
92
|
-
privateKey: registerDetails.keys.
|
|
93
|
-
publicKey: registerDetails.keys.
|
|
92
|
+
privateKey: registerDetails.keys.kyber.privateKeyEncrypted,
|
|
93
|
+
publicKey: registerDetails.keys.kyber.publicKey,
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
referral: registerDetails.referral,
|
|
@@ -119,13 +119,13 @@ var Auth = /** @class */ (function () {
|
|
|
119
119
|
revocationKey: registerDetails.keys.revocationCertificate,
|
|
120
120
|
keys: {
|
|
121
121
|
ecc: {
|
|
122
|
-
privateKey: registerDetails.keys.
|
|
123
|
-
publicKey: registerDetails.keys.
|
|
122
|
+
privateKey: registerDetails.keys.ecc.privateKeyEncrypted,
|
|
123
|
+
publicKey: registerDetails.keys.ecc.publicKey,
|
|
124
124
|
},
|
|
125
125
|
kyber: {
|
|
126
|
-
privateKey: registerDetails.keys.
|
|
127
|
-
publicKey: registerDetails.keys.
|
|
128
|
-
}
|
|
126
|
+
privateKey: registerDetails.keys.kyber.privateKeyEncrypted,
|
|
127
|
+
publicKey: registerDetails.keys.kyber.publicKey,
|
|
128
|
+
},
|
|
129
129
|
},
|
|
130
130
|
referral: registerDetails.referral,
|
|
131
131
|
referrer: registerDetails.referrer,
|
|
@@ -185,12 +185,12 @@ var Auth = /** @class */ (function () {
|
|
|
185
185
|
revocateKey: keys.revocationCertificate,
|
|
186
186
|
keys: {
|
|
187
187
|
ecc: {
|
|
188
|
-
privateKey: keys.
|
|
189
|
-
publicKey: keys.
|
|
188
|
+
privateKey: keys.ecc.privateKeyEncrypted,
|
|
189
|
+
publicKey: keys.ecc.publicKey,
|
|
190
190
|
},
|
|
191
191
|
kyber: {
|
|
192
|
-
privateKey: keys.
|
|
193
|
-
publicKey: keys.
|
|
192
|
+
privateKey: keys.kyber.privateKeyEncrypted,
|
|
193
|
+
publicKey: keys.kyber.publicKey,
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
196
|
}, this.basicHeaders())
|
|
@@ -219,12 +219,12 @@ var Auth = /** @class */ (function () {
|
|
|
219
219
|
revocationKey: keys.revocationCertificate,
|
|
220
220
|
keys: {
|
|
221
221
|
ecc: {
|
|
222
|
-
privateKey: keys.
|
|
223
|
-
publicKey: keys.
|
|
222
|
+
privateKey: keys.ecc.privateKeyEncrypted,
|
|
223
|
+
publicKey: keys.ecc.publicKey,
|
|
224
224
|
},
|
|
225
225
|
kyber: {
|
|
226
|
-
privateKey: keys.
|
|
227
|
-
publicKey: keys.
|
|
226
|
+
privateKey: keys.kyber.privateKeyEncrypted,
|
|
227
|
+
publicKey: keys.kyber.publicKey,
|
|
228
228
|
}
|
|
229
229
|
},
|
|
230
230
|
}, this.headersWithToken(token));
|
package/dist/auth/types.d.ts
CHANGED
|
@@ -36,15 +36,13 @@ export interface Keys {
|
|
|
36
36
|
privateKeyEncrypted: string;
|
|
37
37
|
publicKey: string;
|
|
38
38
|
revocationCertificate: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
privateKeyEncrypted: string;
|
|
47
|
-
};
|
|
39
|
+
ecc: {
|
|
40
|
+
privateKeyEncrypted: string;
|
|
41
|
+
publicKey: string;
|
|
42
|
+
};
|
|
43
|
+
kyber: {
|
|
44
|
+
publicKey: string | null;
|
|
45
|
+
privateKeyEncrypted: string | null;
|
|
48
46
|
};
|
|
49
47
|
}
|
|
50
48
|
export interface CryptoProvider {
|