@arbiwallet/contracts 1.0.67 → 1.0.69

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 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
@@ -192,6 +192,17 @@ export interface PostArbiWalletChatMessageResponse {
192
192
  bodyJson: string;
193
193
  }
194
194
 
195
+ export interface ListArbiWalletChatMessagesRequest {
196
+ walletUserId: number;
197
+ limit?: number | undefined;
198
+ offset?: number | undefined;
199
+ }
200
+
201
+ export interface ListArbiWalletChatMessagesResponse {
202
+ httpStatus: number;
203
+ bodyJson: string;
204
+ }
205
+
195
206
  export interface UserBalance {
196
207
  asset: string;
197
208
  network: string;
@@ -253,6 +264,12 @@ export interface UserServiceClient {
253
264
  /** Чат AlexAI (chat-analytics): POST /api/v1/arbi-wallet/messages; CRM session только на user-service. */
254
265
 
255
266
  postArbiWalletChatMessage(request: PostArbiWalletChatMessageRequest): Observable<PostArbiWalletChatMessageResponse>;
267
+
268
+ /** Чат AlexAI (chat-analytics): GET /api/v1/arbi-wallet/messages?wallet_client_id=… — список сообщений пользователя. */
269
+
270
+ listArbiWalletChatMessages(
271
+ request: ListArbiWalletChatMessagesRequest,
272
+ ): Observable<ListArbiWalletChatMessagesResponse>;
256
273
  }
257
274
 
258
275
  export interface UserServiceController {
@@ -320,6 +337,15 @@ export interface UserServiceController {
320
337
  | Promise<PostArbiWalletChatMessageResponse>
321
338
  | Observable<PostArbiWalletChatMessageResponse>
322
339
  | PostArbiWalletChatMessageResponse;
340
+
341
+ /** Чат AlexAI (chat-analytics): GET /api/v1/arbi-wallet/messages?wallet_client_id=… — список сообщений пользователя. */
342
+
343
+ listArbiWalletChatMessages(
344
+ request: ListArbiWalletChatMessagesRequest,
345
+ ):
346
+ | Promise<ListArbiWalletChatMessagesResponse>
347
+ | Observable<ListArbiWalletChatMessagesResponse>
348
+ | ListArbiWalletChatMessagesResponse;
323
349
  }
324
350
 
325
351
  export function UserServiceControllerMethods() {
@@ -336,6 +362,7 @@ export function UserServiceControllerMethods() {
336
362
  "listWalletExchangeRecentPairs",
337
363
  "forwardManagerChatMessage",
338
364
  "postArbiWalletChatMessage",
365
+ "listArbiWalletChatMessages",
339
366
  ];
340
367
  for (const method of grpcMethods) {
341
368
  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.67",
4
+ "version": "1.0.69",
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
@@ -20,6 +20,8 @@ service UserService {
20
20
  rpc ForwardManagerChatMessage (ForwardManagerChatMessageRequest) returns (ForwardManagerChatMessageResponse);
21
21
  // Чат AlexAI (chat-analytics): POST /api/v1/arbi-wallet/messages; CRM session только на user-service.
22
22
  rpc PostArbiWalletChatMessage (PostArbiWalletChatMessageRequest) returns (PostArbiWalletChatMessageResponse);
23
+ // Чат AlexAI (chat-analytics): GET /api/v1/arbi-wallet/messages?wallet_client_id=… — список сообщений пользователя.
24
+ rpc ListArbiWalletChatMessages (ListArbiWalletChatMessagesRequest) returns (ListArbiWalletChatMessagesResponse);
23
25
  }
24
26
 
25
27
  enum UserStatus {
@@ -198,6 +200,17 @@ message PostArbiWalletChatMessageResponse {
198
200
  string body_json = 2;
199
201
  }
200
202
 
203
+ message ListArbiWalletChatMessagesRequest {
204
+ int32 wallet_user_id = 1;
205
+ optional int32 limit = 2;
206
+ optional int32 offset = 3;
207
+ }
208
+
209
+ message ListArbiWalletChatMessagesResponse {
210
+ int32 http_status = 1;
211
+ string body_json = 2;
212
+ }
213
+
201
214
  message UserBalance {
202
215
  string asset = 1;
203
216
  string network = 2;