mezon-js 2.13.70 → 2.13.71

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/api/api.ts CHANGED
@@ -3772,6 +3772,13 @@ export interface ReportMessageAbuseReqest {
3772
3772
  abuse_type: string;
3773
3773
  }
3774
3774
 
3775
+ export interface LogedDeviceList {
3776
+ device_name: string;
3777
+ loged_time: Date | undefined;
3778
+ status: number;
3779
+ platform: string;
3780
+ }
3781
+
3775
3782
  function createBaseAccount(): Account {
3776
3783
  return {
3777
3784
  user: undefined,
@@ -38790,6 +38797,110 @@ export const ReportMessageAbuseReqest = {
38790
38797
  },
38791
38798
  };
38792
38799
 
38800
+ function createBaseLogedDeviceList(): LogedDeviceList {
38801
+ return { device_name: "", loged_time: undefined, status: 0, platform: "" };
38802
+ }
38803
+
38804
+ export const LogedDeviceList = {
38805
+ encode(message: LogedDeviceList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38806
+ if (message.device_name !== "") {
38807
+ writer.uint32(10).string(message.device_name);
38808
+ }
38809
+ if (message.loged_time !== undefined) {
38810
+ Timestamp.encode(toTimestamp(message.loged_time), writer.uint32(18).fork()).ldelim();
38811
+ }
38812
+ if (message.status !== 0) {
38813
+ writer.uint32(24).int32(message.status);
38814
+ }
38815
+ if (message.platform !== "") {
38816
+ writer.uint32(34).string(message.platform);
38817
+ }
38818
+ return writer;
38819
+ },
38820
+
38821
+ decode(input: _m0.Reader | Uint8Array, length?: number): LogedDeviceList {
38822
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38823
+ let end = length === undefined ? reader.len : reader.pos + length;
38824
+ const message = createBaseLogedDeviceList();
38825
+ while (reader.pos < end) {
38826
+ const tag = reader.uint32();
38827
+ switch (tag >>> 3) {
38828
+ case 1:
38829
+ if (tag !== 10) {
38830
+ break;
38831
+ }
38832
+
38833
+ message.device_name = reader.string();
38834
+ continue;
38835
+ case 2:
38836
+ if (tag !== 18) {
38837
+ break;
38838
+ }
38839
+
38840
+ message.loged_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
38841
+ continue;
38842
+ case 3:
38843
+ if (tag !== 24) {
38844
+ break;
38845
+ }
38846
+
38847
+ message.status = reader.int32();
38848
+ continue;
38849
+ case 4:
38850
+ if (tag !== 34) {
38851
+ break;
38852
+ }
38853
+
38854
+ message.platform = reader.string();
38855
+ continue;
38856
+ }
38857
+ if ((tag & 7) === 4 || tag === 0) {
38858
+ break;
38859
+ }
38860
+ reader.skipType(tag & 7);
38861
+ }
38862
+ return message;
38863
+ },
38864
+
38865
+ fromJSON(object: any): LogedDeviceList {
38866
+ return {
38867
+ device_name: isSet(object.device_name) ? globalThis.String(object.device_name) : "",
38868
+ loged_time: isSet(object.loged_time) ? fromJsonTimestamp(object.loged_time) : undefined,
38869
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
38870
+ platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
38871
+ };
38872
+ },
38873
+
38874
+ toJSON(message: LogedDeviceList): unknown {
38875
+ const obj: any = {};
38876
+ if (message.device_name !== "") {
38877
+ obj.device_name = message.device_name;
38878
+ }
38879
+ if (message.loged_time !== undefined) {
38880
+ obj.loged_time = message.loged_time.toISOString();
38881
+ }
38882
+ if (message.status !== 0) {
38883
+ obj.status = Math.round(message.status);
38884
+ }
38885
+ if (message.platform !== "") {
38886
+ obj.platform = message.platform;
38887
+ }
38888
+ return obj;
38889
+ },
38890
+
38891
+ create<I extends Exact<DeepPartial<LogedDeviceList>, I>>(base?: I): LogedDeviceList {
38892
+ return LogedDeviceList.fromPartial(base ?? ({} as any));
38893
+ },
38894
+ fromPartial<I extends Exact<DeepPartial<LogedDeviceList>, I>>(object: I): LogedDeviceList {
38895
+ const message = createBaseLogedDeviceList();
38896
+ message.device_name = object.device_name ?? "";
38897
+ message.loged_time = object.loged_time ?? undefined;
38898
+ message.status = object.status ?? 0;
38899
+ message.platform = object.platform ?? "";
38900
+ return message;
38901
+ },
38902
+ };
38903
+
38793
38904
  function bytesFromBase64(b64: string): Uint8Array {
38794
38905
  if ((globalThis as any).Buffer) {
38795
38906
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));