@arbiwallet/contracts 1.0.65 → 1.0.67

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/payout.ts CHANGED
@@ -39,6 +39,7 @@ export interface ConfirmPayoutPaymentResponse {
39
39
 
40
40
  export interface HandlePayoutWebhookRequest {
41
41
  rawBody: Uint8Array;
42
+ xSignature: string;
42
43
  }
43
44
 
44
45
  export interface HandlePayoutWebhookResponse {
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.65",
4
+ "version": "1.0.67",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -42,6 +42,7 @@ message ConfirmPayoutPaymentResponse {
42
42
 
43
43
  message HandlePayoutWebhookRequest {
44
44
  bytes rawBody = 1;
45
+ string x_signature = 2;
45
46
  }
46
47
 
47
48
  message HandlePayoutWebhookResponse {
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;