jr-common-micro 1.1.134 → 1.1.136

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.
@@ -252,11 +252,17 @@ export interface MessageHistoryRequest {
252
252
  group_slug: string;
253
253
  cursor: string;
254
254
  limit: number;
255
+ after: string;
256
+ from_last_read: boolean;
257
+ context: number;
255
258
  }
256
259
  export interface MessageHistoryResponse {
257
260
  status: ResponseStatus | undefined;
258
261
  data: ChatMessageDto[];
259
262
  next_cursor: string;
263
+ newer_cursor: string;
264
+ anchored: boolean;
265
+ anchor_id: string;
260
266
  }
261
267
  export interface PinnedMessagesRequest {
262
268
  group_slug: string;
@@ -493,6 +493,9 @@ export declare class MessageHistoryRequest extends Message<MessageHistoryRequest
493
493
  groupSlug: string;
494
494
  cursor: string;
495
495
  limit: number;
496
+ after: string;
497
+ fromLastRead: boolean;
498
+ context: number;
496
499
  constructor(data?: PartialMessage<MessageHistoryRequest>);
497
500
  static readonly runtime: typeof proto3;
498
501
  static readonly typeName = "micro.v1.chat.MessageHistoryRequest";
@@ -506,6 +509,9 @@ export declare class MessageHistoryResponse extends Message<MessageHistoryRespon
506
509
  status?: ResponseStatus;
507
510
  data: ChatMessageDto[];
508
511
  nextCursor: string;
512
+ newerCursor: string;
513
+ anchored: boolean;
514
+ anchorId: string;
509
515
  constructor(data?: PartialMessage<MessageHistoryResponse>);
510
516
  static readonly runtime: typeof proto3;
511
517
  static readonly typeName = "micro.v1.chat.MessageHistoryResponse";
@@ -1074,6 +1074,9 @@ class MessageHistoryRequest extends protobuf_1.Message {
1074
1074
  groupSlug = "";
1075
1075
  cursor = "";
1076
1076
  limit = 0;
1077
+ after = "";
1078
+ fromLastRead = false;
1079
+ context = 0;
1077
1080
  constructor(data) {
1078
1081
  super();
1079
1082
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1084,6 +1087,9 @@ class MessageHistoryRequest extends protobuf_1.Message {
1084
1087
  { no: 1, name: "group_slug", kind: "scalar", T: 9 },
1085
1088
  { no: 2, name: "cursor", kind: "scalar", T: 9 },
1086
1089
  { no: 3, name: "limit", kind: "scalar", T: 5 },
1090
+ { no: 4, name: "after", kind: "scalar", T: 9 },
1091
+ { no: 5, name: "from_last_read", kind: "scalar", T: 8 },
1092
+ { no: 6, name: "context", kind: "scalar", T: 5 },
1087
1093
  ]);
1088
1094
  static fromBinary(bytes, options) {
1089
1095
  return new MessageHistoryRequest().fromBinary(bytes, options);
@@ -1103,6 +1109,9 @@ class MessageHistoryResponse extends protobuf_1.Message {
1103
1109
  status;
1104
1110
  data = [];
1105
1111
  nextCursor = "";
1112
+ newerCursor = "";
1113
+ anchored = false;
1114
+ anchorId = "";
1106
1115
  constructor(data) {
1107
1116
  super();
1108
1117
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1113,6 +1122,9 @@ class MessageHistoryResponse extends protobuf_1.Message {
1113
1122
  { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
1114
1123
  { no: 2, name: "data", kind: "message", T: ChatMessageDto, repeated: true },
1115
1124
  { no: 3, name: "next_cursor", kind: "scalar", T: 9 },
1125
+ { no: 4, name: "newer_cursor", kind: "scalar", T: 9 },
1126
+ { no: 5, name: "anchored", kind: "scalar", T: 8 },
1127
+ { no: 6, name: "anchor_id", kind: "scalar", T: 9 },
1116
1128
  ]);
1117
1129
  static fromBinary(bytes, options) {
1118
1130
  return new MessageHistoryResponse().fromBinary(bytes, options);
@@ -493,6 +493,8 @@ export interface UserRefAdminDto {
493
493
  status: string;
494
494
  created_at: string;
495
495
  updated_at?: string | undefined;
496
+ api_refusals: number;
497
+ next_api_check_at: string;
496
498
  }
497
499
  export interface UserRefAdminListRequest {
498
500
  page?: number | undefined;
@@ -878,6 +878,8 @@ export declare class UserRefAdminDto extends Message<UserRefAdminDto> {
878
878
  status: string;
879
879
  createdAt: string;
880
880
  updatedAt?: string;
881
+ apiRefusals: number;
882
+ nextApiCheckAt: string;
881
883
  constructor(data?: PartialMessage<UserRefAdminDto>);
882
884
  static readonly runtime: typeof proto3;
883
885
  static readonly typeName = "micro.v1.education.UserRefAdminDto";
@@ -1849,6 +1849,8 @@ class UserRefAdminDto extends protobuf_1.Message {
1849
1849
  status = "";
1850
1850
  createdAt = "";
1851
1851
  updatedAt;
1852
+ apiRefusals = 0;
1853
+ nextApiCheckAt = "";
1852
1854
  constructor(data) {
1853
1855
  super();
1854
1856
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1863,6 +1865,8 @@ class UserRefAdminDto extends protobuf_1.Message {
1863
1865
  { no: 5, name: "status", kind: "scalar", T: 9 },
1864
1866
  { no: 6, name: "created_at", kind: "scalar", T: 9 },
1865
1867
  { no: 7, name: "updated_at", kind: "scalar", T: 9, opt: true },
1868
+ { no: 8, name: "api_refusals", kind: "scalar", T: 5 },
1869
+ { no: 9, name: "next_api_check_at", kind: "scalar", T: 9 },
1866
1870
  ]);
1867
1871
  static fromBinary(bytes, options) {
1868
1872
  return new UserRefAdminDto().fromBinary(bytes, options);
@@ -589,6 +589,19 @@ export interface AdminUserResponse {
589
589
  tasks: TaskInfo[];
590
590
  sessions: SessionInfo[];
591
591
  team_seats: AdminTeamSeat[];
592
+ exchanges: AdminExchangeFacts[];
593
+ }
594
+ export interface AdminExchangeFacts {
595
+ exchange: string;
596
+ uid: string;
597
+ found: boolean;
598
+ kyc_level: number;
599
+ deposit_usd: string;
600
+ trade_usd: string;
601
+ fetched_at: string;
602
+ kyc_required: number;
603
+ deposit_required: string;
604
+ trade_required: string;
592
605
  }
593
606
  export interface AdminTeamSeat {
594
607
  owner_id: string;
@@ -1058,6 +1058,7 @@ export declare class AdminUserResponse extends Message<AdminUserResponse> {
1058
1058
  tasks: TaskInfo[];
1059
1059
  sessions: SessionInfo[];
1060
1060
  teamSeats: AdminTeamSeat[];
1061
+ exchanges: AdminExchangeFacts[];
1061
1062
  constructor(data?: PartialMessage<AdminUserResponse>);
1062
1063
  static readonly runtime: typeof proto3;
1063
1064
  static readonly typeName = "micro.v1.mining.AdminUserResponse";
@@ -1067,6 +1068,26 @@ export declare class AdminUserResponse extends Message<AdminUserResponse> {
1067
1068
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminUserResponse;
1068
1069
  static equals(a: AdminUserResponse | PlainMessage<AdminUserResponse> | undefined, b: AdminUserResponse | PlainMessage<AdminUserResponse> | undefined): boolean;
1069
1070
  }
1071
+ export declare class AdminExchangeFacts extends Message<AdminExchangeFacts> {
1072
+ exchange: string;
1073
+ uid: string;
1074
+ found: boolean;
1075
+ kycLevel: number;
1076
+ depositUsd: string;
1077
+ tradeUsd: string;
1078
+ fetchedAt: string;
1079
+ kycRequired: number;
1080
+ depositRequired: string;
1081
+ tradeRequired: string;
1082
+ constructor(data?: PartialMessage<AdminExchangeFacts>);
1083
+ static readonly runtime: typeof proto3;
1084
+ static readonly typeName = "micro.v1.mining.AdminExchangeFacts";
1085
+ static readonly fields: FieldList;
1086
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminExchangeFacts;
1087
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminExchangeFacts;
1088
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminExchangeFacts;
1089
+ static equals(a: AdminExchangeFacts | PlainMessage<AdminExchangeFacts> | undefined, b: AdminExchangeFacts | PlainMessage<AdminExchangeFacts> | undefined): boolean;
1090
+ }
1070
1091
  export declare class AdminTeamSeat extends Message<AdminTeamSeat> {
1071
1092
  ownerId: string;
1072
1093
  ownerUsername: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdminTaskBlock = exports.LocalizedText = exports.AdminTaskItem = exports.SetParameterRequest = exports.ParametersResponse = exports.ParameterItem = exports.AdminSendReportResponse = exports.AdminOverviewResponse = exports.AdminTopEarnersResponse = exports.AdminTopEarner = exports.AdminTopReferrersResponse = exports.AdminTopReferrersRequest = exports.AdminTopReferrer = exports.AdminTaskStat = exports.AdminSeries = exports.AdminSeriesPoint = exports.AdminMetric = exports.AdminOverviewRequest = exports.ConfigResponse = exports.ResolveCodeResponse = exports.ResolveCodeRequest = exports.EnrollResponse = exports.EnrollRequest = exports.UpdateSettingsRequest = exports.HistoryResponse = exports.HistoryDay = exports.HistoryItem = exports.HistoryRequest = exports.TeamResponse = exports.SetTeamRequest = exports.ClaimResponse = exports.ReferralListResponse = exports.ReferralListRequest = exports.ReferralItem = exports.TaskEventResponse = exports.TaskEventRequest = exports.TasksResponse = exports.MiningMeResponse = exports.MiningState = exports.MiningSettings = exports.TasksSummary = exports.TaskBlock = exports.TaskInfo = exports.TeamInfo = exports.TeamWeek = exports.TeamMember = exports.ReferralInfo = exports.HalvingInfo = exports.RateInfo = exports.SessionInfo = void 0;
4
- exports.AdminGiftsResponse = exports.AdminGiftsRequest = exports.AdminGiftResponse = exports.AdminGift = exports.AdminGiftConfirmRequest = exports.AdminGiftPreviewResponse = exports.AdminGiftRecipient = exports.AdminGiftPreviewRequest = exports.AdminSetTaskRequest = exports.AdminDeviceClustersResponse = exports.AdminDeviceCluster = exports.AdminDeviceClustersRequest = exports.AdminModerateRequest = exports.AdminCreditSource = exports.AdminRiskQueueResponse = exports.AdminRiskQueueRequest = exports.AdminInviteTreeResponse = exports.AdminInviteTreeNode = exports.AdminRiskFlag = exports.AdminRiskSignalStat = exports.AdminRiskSignal = exports.AdminTeamSeat = exports.AdminUserResponse = exports.AdminActionItem = exports.AdminUsersResponse = exports.AdminUserItem = exports.AdminUsersRequest = exports.TaskIconResponse = exports.AdminUploadTaskIconResponse = exports.AdminUploadTaskIconRequest = exports.AdminTranslateResponse = exports.AdminTranslatedItem = exports.AdminTranslateRequest = exports.AdminTranslateItem = exports.AdminTaskActionRequest = exports.AdminSaveTaskRequest = exports.AdminTasksResponse = void 0;
4
+ exports.AdminGiftsResponse = exports.AdminGiftsRequest = exports.AdminGiftResponse = exports.AdminGift = exports.AdminGiftConfirmRequest = exports.AdminGiftPreviewResponse = exports.AdminGiftRecipient = exports.AdminGiftPreviewRequest = exports.AdminSetTaskRequest = exports.AdminDeviceClustersResponse = exports.AdminDeviceCluster = exports.AdminDeviceClustersRequest = exports.AdminModerateRequest = exports.AdminCreditSource = exports.AdminRiskQueueResponse = exports.AdminRiskQueueRequest = exports.AdminInviteTreeResponse = exports.AdminInviteTreeNode = exports.AdminRiskFlag = exports.AdminRiskSignalStat = exports.AdminRiskSignal = exports.AdminTeamSeat = exports.AdminExchangeFacts = exports.AdminUserResponse = exports.AdminActionItem = exports.AdminUsersResponse = exports.AdminUserItem = exports.AdminUsersRequest = exports.TaskIconResponse = exports.AdminUploadTaskIconResponse = exports.AdminUploadTaskIconRequest = exports.AdminTranslateResponse = exports.AdminTranslatedItem = exports.AdminTranslateRequest = exports.AdminTranslateItem = exports.AdminTaskActionRequest = exports.AdminSaveTaskRequest = exports.AdminTasksResponse = void 0;
5
5
  const protobuf_1 = require("@bufbuild/protobuf");
6
6
  const general_pb_js_1 = require("../general_pb.js");
7
7
  class SessionInfo extends protobuf_1.Message {
@@ -2251,6 +2251,7 @@ class AdminUserResponse extends protobuf_1.Message {
2251
2251
  tasks = [];
2252
2252
  sessions = [];
2253
2253
  teamSeats = [];
2254
+ exchanges = [];
2254
2255
  constructor(data) {
2255
2256
  super();
2256
2257
  protobuf_1.proto3.util.initPartial(data, this);
@@ -2272,6 +2273,7 @@ class AdminUserResponse extends protobuf_1.Message {
2272
2273
  { no: 12, name: "tasks", kind: "message", T: TaskInfo, repeated: true },
2273
2274
  { no: 13, name: "sessions", kind: "message", T: SessionInfo, repeated: true },
2274
2275
  { no: 14, name: "team_seats", kind: "message", T: AdminTeamSeat, repeated: true },
2276
+ { no: 15, name: "exchanges", kind: "message", T: AdminExchangeFacts, repeated: true },
2275
2277
  ]);
2276
2278
  static fromBinary(bytes, options) {
2277
2279
  return new AdminUserResponse().fromBinary(bytes, options);
@@ -2287,6 +2289,49 @@ class AdminUserResponse extends protobuf_1.Message {
2287
2289
  }
2288
2290
  }
2289
2291
  exports.AdminUserResponse = AdminUserResponse;
2292
+ class AdminExchangeFacts extends protobuf_1.Message {
2293
+ exchange = "";
2294
+ uid = "";
2295
+ found = false;
2296
+ kycLevel = 0;
2297
+ depositUsd = "";
2298
+ tradeUsd = "";
2299
+ fetchedAt = "";
2300
+ kycRequired = 0;
2301
+ depositRequired = "";
2302
+ tradeRequired = "";
2303
+ constructor(data) {
2304
+ super();
2305
+ protobuf_1.proto3.util.initPartial(data, this);
2306
+ }
2307
+ static runtime = protobuf_1.proto3;
2308
+ static typeName = "micro.v1.mining.AdminExchangeFacts";
2309
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2310
+ { no: 1, name: "exchange", kind: "scalar", T: 9 },
2311
+ { no: 2, name: "uid", kind: "scalar", T: 9 },
2312
+ { no: 3, name: "found", kind: "scalar", T: 8 },
2313
+ { no: 4, name: "kyc_level", kind: "scalar", T: 5 },
2314
+ { no: 5, name: "deposit_usd", kind: "scalar", T: 9 },
2315
+ { no: 6, name: "trade_usd", kind: "scalar", T: 9 },
2316
+ { no: 7, name: "fetched_at", kind: "scalar", T: 9 },
2317
+ { no: 8, name: "kyc_required", kind: "scalar", T: 5 },
2318
+ { no: 9, name: "deposit_required", kind: "scalar", T: 9 },
2319
+ { no: 10, name: "trade_required", kind: "scalar", T: 9 },
2320
+ ]);
2321
+ static fromBinary(bytes, options) {
2322
+ return new AdminExchangeFacts().fromBinary(bytes, options);
2323
+ }
2324
+ static fromJson(jsonValue, options) {
2325
+ return new AdminExchangeFacts().fromJson(jsonValue, options);
2326
+ }
2327
+ static fromJsonString(jsonString, options) {
2328
+ return new AdminExchangeFacts().fromJsonString(jsonString, options);
2329
+ }
2330
+ static equals(a, b) {
2331
+ return protobuf_1.proto3.util.equals(AdminExchangeFacts, a, b);
2332
+ }
2333
+ }
2334
+ exports.AdminExchangeFacts = AdminExchangeFacts;
2290
2335
  class AdminTeamSeat extends protobuf_1.Message {
2291
2336
  ownerId = "";
2292
2337
  ownerUsername = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.134",
3
+ "version": "1.1.136",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -395,6 +395,19 @@ message MessageHistoryRequest {
395
395
  // Return messages with id < cursor (0 or empty = newest page).
396
396
  string cursor = 2;
397
397
  int32 limit = 3;
398
+ // Anchored read (a window in the middle of the history, Telegram style):
399
+ // up to `limit` messages with id > after, plus `context` messages at or
400
+ // before it. cursor is ignored. Pages are still returned newest first.
401
+ // Empty = the plain newest/older read above.
402
+ string after = 4;
403
+ // Anchor at the reader's own read cursor, resolved on the server, so a room
404
+ // opens at its first unread message in one request. Ignored when after is
405
+ // set. A reader with no read cursor gets the newest page.
406
+ bool from_last_read = 5;
407
+ // Messages at or before the anchor to include above the window (0-50), for
408
+ // the read that opens the room: the server tops it up to `limit` when there
409
+ // is little or nothing newer. 0 = the window only (reads further down).
410
+ int32 context = 6;
398
411
  }
399
412
 
400
413
  message MessageHistoryResponse {
@@ -402,6 +415,16 @@ message MessageHistoryResponse {
402
415
  repeated ChatMessageDto data = 2;
403
416
  // Cursor for the next (older) page; empty = no more.
404
417
  string next_cursor = 3;
418
+ // Anchored reads only: the `after` for the next page further down; empty =
419
+ // this page reaches the newest message.
420
+ string newer_cursor = 4;
421
+ // True when the server honoured after/from_last_read. A server without
422
+ // anchored reads leaves it false and returns the plain newest page, so a
423
+ // client can tell the two apart.
424
+ bool anchored = 5;
425
+ // The anchor actually used (the reader's read cursor for from_last_read);
426
+ // empty = none (never read: the newest page was returned).
427
+ string anchor_id = 6;
405
428
  }
406
429
 
407
430
  message PinnedMessagesRequest { string group_slug = 1; }
@@ -457,6 +457,11 @@ message UserRefAdminDto {
457
457
  string status = 5;
458
458
  string created_at = 6;
459
459
  optional string updated_at = 7;
460
+ // The affiliate API's re-check of a pending UID: how many times the
461
+ // exchange said "not one of ours", and when it is asked again ('' when
462
+ // it is no longer asked, or the UID is not pending).
463
+ int32 api_refusals = 8;
464
+ string next_api_check_at = 9;
460
465
  }
461
466
 
462
467
  message UserRefAdminListRequest {
@@ -785,6 +785,23 @@ message AdminUserResponse {
785
785
  repeated SessionInfo sessions = 13;
786
786
  // Teams this person sits or sat in (by owner), newest first.
787
787
  repeated AdminTeamSeat team_seats = 14;
788
+ // What each exchange last reported for the person's verified UID, next to
789
+ // today's requirement of each step (one row per exchange read so far).
790
+ repeated AdminExchangeFacts exchanges = 15;
791
+ }
792
+
793
+ message AdminExchangeFacts {
794
+ string exchange = 1;
795
+ string uid = 2;
796
+ // false: the exchange did not find the UID under our referral link.
797
+ bool found = 3;
798
+ int32 kyc_level = 4;
799
+ string deposit_usd = 5;
800
+ string trade_usd = 6;
801
+ string fetched_at = 7;
802
+ int32 kyc_required = 8;
803
+ string deposit_required = 9;
804
+ string trade_required = 10;
788
805
  }
789
806
 
790
807
  message AdminTeamSeat {