@riocrypto/common 1.0.1162 → 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`, {
@@ -5,7 +5,7 @@ export declare enum KYCStatus {
5
5
  IndividualFailed = "individualFailed",
6
6
  LegalRepresentativePassed = "legalRepresentativeApproved",
7
7
  LegalRepresentativeFailed = "legalRepresentativeFailed",
8
- BridgeToSCompleted = "bridgeToSCompleted",
8
+ BridgeTosAndKYCCompleted = "bridgeToSAndKYCCompleted",
9
9
  BridgeKYCCompleted = "bridgeKYCCompleted",
10
10
  Failed = "failed",
11
11
  Review = "review",
@@ -9,7 +9,7 @@ var KYCStatus;
9
9
  KYCStatus["IndividualFailed"] = "individualFailed";
10
10
  KYCStatus["LegalRepresentativePassed"] = "legalRepresentativeApproved";
11
11
  KYCStatus["LegalRepresentativeFailed"] = "legalRepresentativeFailed";
12
- KYCStatus["BridgeToSCompleted"] = "bridgeToSCompleted";
12
+ KYCStatus["BridgeTosAndKYCCompleted"] = "bridgeToSAndKYCCompleted";
13
13
  KYCStatus["BridgeKYCCompleted"] = "bridgeKYCCompleted";
14
14
  KYCStatus["Failed"] = "failed";
15
15
  KYCStatus["Review"] = "review";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1162",
3
+ "version": "1.0.1164",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",