@arbiwallet/contracts 1.0.68 → 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/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.68",
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/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;