@arbiwallet/contracts 1.0.66 → 1.0.68
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/gen/card.ts +14 -0
- package/gen/user.ts +25 -0
- package/package.json +1 -1
- package/proto/card.proto +14 -0
- package/proto/user.proto +13 -0
package/gen/card.ts
CHANGED
|
@@ -137,6 +137,13 @@ export interface GetTopupDepositAddressResponse {
|
|
|
137
137
|
address: string;
|
|
138
138
|
invoiceCurrency: string;
|
|
139
139
|
status: string;
|
|
140
|
+
amount: string;
|
|
141
|
+
paidAmount: string;
|
|
142
|
+
network: string;
|
|
143
|
+
expiresAt: string;
|
|
144
|
+
currency: string;
|
|
145
|
+
subaccountUsdtBalance: string;
|
|
146
|
+
subaccountBalanceCurrency: string;
|
|
140
147
|
}
|
|
141
148
|
|
|
142
149
|
export interface GetTopupInvoiceRequest {
|
|
@@ -151,6 +158,13 @@ export interface GetTopupInvoiceResponse {
|
|
|
151
158
|
invoiceCurrency: string;
|
|
152
159
|
amount: string;
|
|
153
160
|
txHash: string;
|
|
161
|
+
paidAmount: string;
|
|
162
|
+
network: string;
|
|
163
|
+
expiresAt: string;
|
|
164
|
+
currency: string;
|
|
165
|
+
processingStatus: string;
|
|
166
|
+
subaccountUsdtBalance: string;
|
|
167
|
+
subaccountBalanceCurrency: string;
|
|
154
168
|
}
|
|
155
169
|
|
|
156
170
|
export interface UpdateAutoTopupRequest {
|
package/gen/user.ts
CHANGED
|
@@ -181,6 +181,17 @@ export interface ForwardManagerChatMessageResponse {
|
|
|
181
181
|
ok: boolean;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
export interface PostArbiWalletChatMessageRequest {
|
|
185
|
+
walletUserId: number;
|
|
186
|
+
/** Частичное тело от клиента: text, content, reply_to, datetime (ISO UTC). */
|
|
187
|
+
jsonBody: string;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface PostArbiWalletChatMessageResponse {
|
|
191
|
+
httpStatus: number;
|
|
192
|
+
bodyJson: string;
|
|
193
|
+
}
|
|
194
|
+
|
|
184
195
|
export interface UserBalance {
|
|
185
196
|
asset: string;
|
|
186
197
|
network: string;
|
|
@@ -238,6 +249,10 @@ export interface UserServiceClient {
|
|
|
238
249
|
/** Сообщение менеджера клиенту: публикация в Rabbit app.notification → gateway → Socket.IO `notification`. */
|
|
239
250
|
|
|
240
251
|
forwardManagerChatMessage(request: ForwardManagerChatMessageRequest): Observable<ForwardManagerChatMessageResponse>;
|
|
252
|
+
|
|
253
|
+
/** Чат AlexAI (chat-analytics): POST /api/v1/arbi-wallet/messages; CRM session только на user-service. */
|
|
254
|
+
|
|
255
|
+
postArbiWalletChatMessage(request: PostArbiWalletChatMessageRequest): Observable<PostArbiWalletChatMessageResponse>;
|
|
241
256
|
}
|
|
242
257
|
|
|
243
258
|
export interface UserServiceController {
|
|
@@ -296,6 +311,15 @@ export interface UserServiceController {
|
|
|
296
311
|
| Promise<ForwardManagerChatMessageResponse>
|
|
297
312
|
| Observable<ForwardManagerChatMessageResponse>
|
|
298
313
|
| ForwardManagerChatMessageResponse;
|
|
314
|
+
|
|
315
|
+
/** Чат AlexAI (chat-analytics): POST /api/v1/arbi-wallet/messages; CRM session только на user-service. */
|
|
316
|
+
|
|
317
|
+
postArbiWalletChatMessage(
|
|
318
|
+
request: PostArbiWalletChatMessageRequest,
|
|
319
|
+
):
|
|
320
|
+
| Promise<PostArbiWalletChatMessageResponse>
|
|
321
|
+
| Observable<PostArbiWalletChatMessageResponse>
|
|
322
|
+
| PostArbiWalletChatMessageResponse;
|
|
299
323
|
}
|
|
300
324
|
|
|
301
325
|
export function UserServiceControllerMethods() {
|
|
@@ -311,6 +335,7 @@ export function UserServiceControllerMethods() {
|
|
|
311
335
|
"submitWalletCrmExchangeOrder",
|
|
312
336
|
"listWalletExchangeRecentPairs",
|
|
313
337
|
"forwardManagerChatMessage",
|
|
338
|
+
"postArbiWalletChatMessage",
|
|
314
339
|
];
|
|
315
340
|
for (const method of grpcMethods) {
|
|
316
341
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbiwallet/contracts",
|
|
3
3
|
"descriptions": "Generate and manage smart contracts for ArbiWallet",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.68",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
package/proto/card.proto
CHANGED
|
@@ -164,6 +164,13 @@ message GetTopupDepositAddressResponse {
|
|
|
164
164
|
string address = 3;
|
|
165
165
|
string invoice_currency = 4;
|
|
166
166
|
string status = 5;
|
|
167
|
+
string amount = 6;
|
|
168
|
+
string paid_amount = 7;
|
|
169
|
+
string network = 8;
|
|
170
|
+
string expires_at = 9;
|
|
171
|
+
string currency = 10;
|
|
172
|
+
string subaccount_usdt_balance = 11;
|
|
173
|
+
string subaccount_balance_currency = 12;
|
|
167
174
|
}
|
|
168
175
|
|
|
169
176
|
message GetTopupInvoiceRequest {
|
|
@@ -178,6 +185,13 @@ message GetTopupInvoiceResponse {
|
|
|
178
185
|
string invoice_currency = 4;
|
|
179
186
|
string amount = 5;
|
|
180
187
|
string tx_hash = 6;
|
|
188
|
+
string paid_amount = 7;
|
|
189
|
+
string network = 8;
|
|
190
|
+
string expires_at = 9;
|
|
191
|
+
string currency = 10;
|
|
192
|
+
string processing_status = 11;
|
|
193
|
+
string subaccount_usdt_balance = 12;
|
|
194
|
+
string subaccount_balance_currency = 13;
|
|
181
195
|
}
|
|
182
196
|
|
|
183
197
|
message UpdateAutoTopupRequest {
|
package/proto/user.proto
CHANGED
|
@@ -18,6 +18,8 @@ service UserService {
|
|
|
18
18
|
rpc ListWalletExchangeRecentPairs (ListWalletExchangeRecentPairsRequest) returns (ListWalletExchangeRecentPairsResponse);
|
|
19
19
|
// Сообщение менеджера клиенту: публикация в Rabbit app.notification → gateway → Socket.IO `notification`.
|
|
20
20
|
rpc ForwardManagerChatMessage (ForwardManagerChatMessageRequest) returns (ForwardManagerChatMessageResponse);
|
|
21
|
+
// Чат AlexAI (chat-analytics): POST /api/v1/arbi-wallet/messages; CRM session только на user-service.
|
|
22
|
+
rpc PostArbiWalletChatMessage (PostArbiWalletChatMessageRequest) returns (PostArbiWalletChatMessageResponse);
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
enum UserStatus {
|
|
@@ -185,6 +187,17 @@ message ForwardManagerChatMessageResponse {
|
|
|
185
187
|
bool ok = 1;
|
|
186
188
|
}
|
|
187
189
|
|
|
190
|
+
message PostArbiWalletChatMessageRequest {
|
|
191
|
+
int32 wallet_user_id = 1;
|
|
192
|
+
// Частичное тело от клиента: text, content, reply_to, datetime (ISO UTC).
|
|
193
|
+
string json_body = 2;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
message PostArbiWalletChatMessageResponse {
|
|
197
|
+
int32 http_status = 1;
|
|
198
|
+
string body_json = 2;
|
|
199
|
+
}
|
|
200
|
+
|
|
188
201
|
message UserBalance {
|
|
189
202
|
string asset = 1;
|
|
190
203
|
string network = 2;
|