@riocrypto/common 1.0.1163 → 1.0.1164
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.
|
@@ -49,6 +49,11 @@ export declare class RioClient {
|
|
|
49
49
|
}): Promise<void>;
|
|
50
50
|
updateRioSettings(update: RioSettingsUpdate): Promise<void>;
|
|
51
51
|
confirmBankPayment(orderId: string, amountFiat?: number): Promise<any>;
|
|
52
|
+
createAPIKey(label: string): Promise<{
|
|
53
|
+
value: string;
|
|
54
|
+
label: string;
|
|
55
|
+
}>;
|
|
56
|
+
deleteAPIKey(id: string): Promise<void>;
|
|
52
57
|
confirmBankPayout(orderId: string): Promise<any>;
|
|
53
58
|
getUser(userId?: string): Promise<User>;
|
|
54
59
|
createUser(user: UserInput): Promise<User>;
|
|
@@ -110,6 +110,19 @@ class RioClient {
|
|
|
110
110
|
return data;
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
+
createAPIKey(label) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
const { data } = yield this.axios.post(`/api/auth/api-key`, {
|
|
116
|
+
label,
|
|
117
|
+
});
|
|
118
|
+
return data;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
deleteAPIKey(id) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
yield this.axios.delete(`/api/auth/api-key/${id}`);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
113
126
|
confirmBankPayout(orderId) {
|
|
114
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
128
|
const { data } = yield this.axios.post(`/api/payouts/bank/confirm`, {
|