mezon-js 2.13.72 → 2.13.74

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
@@ -2589,6 +2589,10 @@ export interface App {
2589
2589
  disable_time:
2590
2590
  | Date
2591
2591
  | undefined;
2592
+ /** The UNIX time when the app was created */
2593
+ create_time:
2594
+ | Date
2595
+ | undefined;
2592
2596
  /** string token */
2593
2597
  token: string;
2594
2598
  /** role */
@@ -3784,6 +3788,8 @@ export interface LogedDevice {
3784
3788
  platform: string;
3785
3789
  ip: string;
3786
3790
  last_active: Date | undefined;
3791
+ location: string;
3792
+ is_current: boolean;
3787
3793
  }
3788
3794
 
3789
3795
  function createBaseAccount(): Account {
@@ -25769,6 +25775,7 @@ function createBaseApp(): App {
25769
25775
  applogo: "",
25770
25776
  is_shadow: false,
25771
25777
  disable_time: undefined,
25778
+ create_time: undefined,
25772
25779
  token: "",
25773
25780
  role: 0,
25774
25781
  about: "",
@@ -25796,17 +25803,20 @@ export const App = {
25796
25803
  if (message.disable_time !== undefined) {
25797
25804
  Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(50).fork()).ldelim();
25798
25805
  }
25806
+ if (message.create_time !== undefined) {
25807
+ Timestamp.encode(toTimestamp(message.create_time), writer.uint32(58).fork()).ldelim();
25808
+ }
25799
25809
  if (message.token !== "") {
25800
- writer.uint32(58).string(message.token);
25810
+ writer.uint32(66).string(message.token);
25801
25811
  }
25802
25812
  if (message.role !== 0) {
25803
- writer.uint32(64).int32(message.role);
25813
+ writer.uint32(72).int32(message.role);
25804
25814
  }
25805
25815
  if (message.about !== "") {
25806
- writer.uint32(74).string(message.about);
25816
+ writer.uint32(82).string(message.about);
25807
25817
  }
25808
25818
  if (message.app_url !== "") {
25809
- writer.uint32(82).string(message.app_url);
25819
+ writer.uint32(90).string(message.app_url);
25810
25820
  }
25811
25821
  return writer;
25812
25822
  },
@@ -25865,27 +25875,34 @@ export const App = {
25865
25875
  break;
25866
25876
  }
25867
25877
 
25868
- message.token = reader.string();
25878
+ message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
25869
25879
  continue;
25870
25880
  case 8:
25871
- if (tag !== 64) {
25881
+ if (tag !== 66) {
25872
25882
  break;
25873
25883
  }
25874
25884
 
25875
- message.role = reader.int32();
25885
+ message.token = reader.string();
25876
25886
  continue;
25877
25887
  case 9:
25878
- if (tag !== 74) {
25888
+ if (tag !== 72) {
25879
25889
  break;
25880
25890
  }
25881
25891
 
25882
- message.about = reader.string();
25892
+ message.role = reader.int32();
25883
25893
  continue;
25884
25894
  case 10:
25885
25895
  if (tag !== 82) {
25886
25896
  break;
25887
25897
  }
25888
25898
 
25899
+ message.about = reader.string();
25900
+ continue;
25901
+ case 11:
25902
+ if (tag !== 90) {
25903
+ break;
25904
+ }
25905
+
25889
25906
  message.app_url = reader.string();
25890
25907
  continue;
25891
25908
  }
@@ -25905,6 +25922,7 @@ export const App = {
25905
25922
  applogo: isSet(object.applogo) ? globalThis.String(object.applogo) : "",
25906
25923
  is_shadow: isSet(object.is_shadow) ? globalThis.Boolean(object.is_shadow) : false,
25907
25924
  disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
25925
+ create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
25908
25926
  token: isSet(object.token) ? globalThis.String(object.token) : "",
25909
25927
  role: isSet(object.role) ? globalThis.Number(object.role) : 0,
25910
25928
  about: isSet(object.about) ? globalThis.String(object.about) : "",
@@ -25932,6 +25950,9 @@ export const App = {
25932
25950
  if (message.disable_time !== undefined) {
25933
25951
  obj.disable_time = message.disable_time.toISOString();
25934
25952
  }
25953
+ if (message.create_time !== undefined) {
25954
+ obj.create_time = message.create_time.toISOString();
25955
+ }
25935
25956
  if (message.token !== "") {
25936
25957
  obj.token = message.token;
25937
25958
  }
@@ -25958,6 +25979,7 @@ export const App = {
25958
25979
  message.applogo = object.applogo ?? "";
25959
25980
  message.is_shadow = object.is_shadow ?? false;
25960
25981
  message.disable_time = object.disable_time ?? undefined;
25982
+ message.create_time = object.create_time ?? undefined;
25961
25983
  message.token = object.token ?? "";
25962
25984
  message.role = object.role ?? 0;
25963
25985
  message.about = object.about ?? "";
@@ -38872,6 +38894,8 @@ function createBaseLogedDevice(): LogedDevice {
38872
38894
  platform: "",
38873
38895
  ip: "",
38874
38896
  last_active: undefined,
38897
+ location: "",
38898
+ is_current: false,
38875
38899
  };
38876
38900
  }
38877
38901
 
@@ -38898,6 +38922,12 @@ export const LogedDevice = {
38898
38922
  if (message.last_active !== undefined) {
38899
38923
  Timestamp.encode(toTimestamp(message.last_active), writer.uint32(58).fork()).ldelim();
38900
38924
  }
38925
+ if (message.location !== "") {
38926
+ writer.uint32(66).string(message.location);
38927
+ }
38928
+ if (message.is_current !== false) {
38929
+ writer.uint32(72).bool(message.is_current);
38930
+ }
38901
38931
  return writer;
38902
38932
  },
38903
38933
 
@@ -38957,6 +38987,20 @@ export const LogedDevice = {
38957
38987
 
38958
38988
  message.last_active = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
38959
38989
  continue;
38990
+ case 8:
38991
+ if (tag !== 66) {
38992
+ break;
38993
+ }
38994
+
38995
+ message.location = reader.string();
38996
+ continue;
38997
+ case 9:
38998
+ if (tag !== 72) {
38999
+ break;
39000
+ }
39001
+
39002
+ message.is_current = reader.bool();
39003
+ continue;
38960
39004
  }
38961
39005
  if ((tag & 7) === 4 || tag === 0) {
38962
39006
  break;
@@ -38975,6 +39019,8 @@ export const LogedDevice = {
38975
39019
  platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
38976
39020
  ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
38977
39021
  last_active: isSet(object.last_active) ? fromJsonTimestamp(object.last_active) : undefined,
39022
+ location: isSet(object.location) ? globalThis.String(object.location) : "",
39023
+ is_current: isSet(object.is_current) ? globalThis.Boolean(object.is_current) : false,
38978
39024
  };
38979
39025
  },
38980
39026
 
@@ -39001,6 +39047,12 @@ export const LogedDevice = {
39001
39047
  if (message.last_active !== undefined) {
39002
39048
  obj.last_active = message.last_active.toISOString();
39003
39049
  }
39050
+ if (message.location !== "") {
39051
+ obj.location = message.location;
39052
+ }
39053
+ if (message.is_current !== false) {
39054
+ obj.is_current = message.is_current;
39055
+ }
39004
39056
  return obj;
39005
39057
  },
39006
39058
 
@@ -39016,6 +39068,8 @@ export const LogedDevice = {
39016
39068
  message.platform = object.platform ?? "";
39017
39069
  message.ip = object.ip ?? "";
39018
39070
  message.last_active = object.last_active ?? undefined;
39071
+ message.location = object.location ?? "";
39072
+ message.is_current = object.is_current ?? false;
39019
39073
  return message;
39020
39074
  },
39021
39075
  };
package/api.gen.ts CHANGED
@@ -196,6 +196,10 @@ export interface ApiLogedDevice {
196
196
  platform?: string;
197
197
  //
198
198
  status?: number;
199
+ //
200
+ location?: string;
201
+ //
202
+ is_current?: boolean;
199
203
  }
200
204
 
201
205
  /** */
@@ -537,6 +541,8 @@ export interface ApiApp {
537
541
  creator_id?: string;
538
542
  //The UNIX time when the app was disabled.
539
543
  disable_time?: string;
544
+ //The UNIX time when the app was created.
545
+ create_time?: string;
540
546
  //
541
547
  id?: string;
542
548
  //
@@ -2918,36 +2924,6 @@ export interface ApiVoiceChannelUserList {
2918
2924
  voice_channel_users?: Array<ApiVoiceChannelUser>;
2919
2925
  }
2920
2926
 
2921
- /** */
2922
- export interface ApiStoreWalletKeyRequest {
2923
- //
2924
- address?: string;
2925
- //
2926
- enc_privkey?: string;
2927
- }
2928
-
2929
- /** */
2930
- export interface ApiWalletLedger {
2931
- //
2932
- create_time?: string;
2933
- //
2934
- id?: string;
2935
- //
2936
- transaction_id?: string;
2937
- //
2938
- user_id?: string;
2939
- //
2940
- value?: number;
2941
- }
2942
-
2943
- /** */
2944
- export interface ApiWalletLedgerList {
2945
- //
2946
- count?: number;
2947
- //
2948
- wallet_ledger?: Array<ApiWalletLedger>;
2949
- }
2950
-
2951
2927
  /** */
2952
2928
  export interface ApiWebhook {
2953
2929
  //
@@ -4105,28 +4081,33 @@ export class MezonApi {
4105
4081
  const urlPath = "/v2/account/session/refresh";
4106
4082
  const queryParams = new Map<string, any>();
4107
4083
 
4108
- let bodyJson: string = "";
4109
- bodyJson = JSON.stringify(body || {});
4110
-
4084
+ const bodyWriter = tsproto.SessionRefreshRequest.encode(
4085
+ tsproto.SessionRefreshRequest.fromPartial(body)
4086
+ );
4087
+ const encodedBody = bodyWriter.finish();
4111
4088
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
4112
- const fetchOptions = buildFetchOptions("POST", options, bodyJson);
4089
+ const fetchOptions = buildFetchOptions("POST", options, '');
4090
+ fetchOptions.body = encodedBody;
4113
4091
  if (basicAuthUsername) {
4114
4092
  fetchOptions.headers["Authorization"] =
4115
4093
  "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
4116
4094
  }
4095
+ fetchOptions.headers["Content-Type"] = "application/x-protobuf";
4096
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
4117
4097
 
4118
4098
  return Promise.race([
4119
- fetch(fullUrl, fetchOptions).then((response) => {
4099
+ fetch(fullUrl, fetchOptions).then(async (response) => {
4120
4100
  if (response.status == 204) {
4121
- return response;
4101
+ return {} as ApiSession;
4122
4102
  } else if (response.status >= 200 && response.status < 300) {
4123
- return response.json();
4103
+ const buffer = await response.arrayBuffer();
4104
+ return tsproto.Session.decode(new Uint8Array(buffer)) as unknown as ApiSession;
4124
4105
  } else {
4125
4106
  throw response;
4126
4107
  }
4127
4108
  }),
4128
- new Promise((_, reject) =>
4129
- setTimeout(reject, this.timeoutMs, "Request timed out.")
4109
+ new Promise<never>((_, reject) =>
4110
+ setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
4130
4111
  ),
4131
4112
  ]);
4132
4113
  }
@@ -6215,19 +6196,21 @@ export class MezonApi {
6215
6196
  if (bearerToken) {
6216
6197
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
6217
6198
  }
6199
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
6218
6200
 
6219
6201
  return Promise.race([
6220
- fetch(fullUrl, fetchOptions).then((response) => {
6202
+ fetch(fullUrl, fetchOptions).then(async (response) => {
6221
6203
  if (response.status == 204) {
6222
- return response;
6204
+ return {} as ApiRegistFcmDeviceTokenResponse;
6223
6205
  } else if (response.status >= 200 && response.status < 300) {
6224
- return response.json();
6206
+ const buffer = await response.arrayBuffer();
6207
+ return tsproto.RegistFcmDeviceTokenResponse.decode(new Uint8Array(buffer)) as unknown as ApiRegistFcmDeviceTokenResponse;
6225
6208
  } else {
6226
6209
  throw response;
6227
6210
  }
6228
6211
  }),
6229
- new Promise((_, reject) =>
6230
- setTimeout(reject, this.timeoutMs, "Request timed out.")
6212
+ new Promise<never>((_, reject) =>
6213
+ setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
6231
6214
  ),
6232
6215
  ]);
6233
6216
  }
@@ -9967,42 +9950,6 @@ export class MezonApi {
9967
9950
  ]);
9968
9951
  }
9969
9952
 
9970
- /** Store wallet key */
9971
- storeWalletKey(bearerToken: string,
9972
- body:ApiStoreWalletKeyRequest,
9973
- options: any = {}): Promise<any> {
9974
-
9975
- if (body === null || body === undefined) {
9976
- throw new Error("'body' is a required parameter but is null or undefined.");
9977
- }
9978
- const urlPath = "/v2/wallet/key";
9979
- const queryParams = new Map<string, any>();
9980
-
9981
- let bodyJson : string = "";
9982
- bodyJson = JSON.stringify(body || {});
9983
-
9984
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
9985
- const fetchOptions = buildFetchOptions("POST", options, bodyJson);
9986
- if (bearerToken) {
9987
- fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
9988
- }
9989
-
9990
- return Promise.race([
9991
- fetch(fullUrl, fetchOptions).then((response) => {
9992
- if (response.status == 204) {
9993
- return response;
9994
- } else if (response.status >= 200 && response.status < 300) {
9995
- return response.json();
9996
- } else {
9997
- throw response;
9998
- }
9999
- }),
10000
- new Promise((_, reject) =>
10001
- setTimeout(reject, this.timeoutMs, "Request timed out.")
10002
- ),
10003
- ]);
10004
- }
10005
-
10006
9953
  /** create webhook */
10007
9954
  generateWebhook(
10008
9955
  bearerToken: string,
package/dist/api/api.d.ts CHANGED
@@ -2086,6 +2086,8 @@ export interface App {
2086
2086
  is_shadow: boolean;
2087
2087
  /** The UNIX time when the app was disabled. */
2088
2088
  disable_time: Date | undefined;
2089
+ /** The UNIX time when the app was created */
2090
+ create_time: Date | undefined;
2089
2091
  /** string token */
2090
2092
  token: string;
2091
2093
  /** role */
@@ -3117,6 +3119,8 @@ export interface LogedDevice {
3117
3119
  platform: string;
3118
3120
  ip: string;
3119
3121
  last_active: Date | undefined;
3122
+ location: string;
3123
+ is_current: boolean;
3120
3124
  }
3121
3125
  export declare const Account: {
3122
3126
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
@@ -16082,6 +16086,7 @@ export declare const App: {
16082
16086
  applogo?: string | undefined;
16083
16087
  is_shadow?: boolean | undefined;
16084
16088
  disable_time?: Date | undefined;
16089
+ create_time?: Date | undefined;
16085
16090
  token?: string | undefined;
16086
16091
  role?: number | undefined;
16087
16092
  about?: string | undefined;
@@ -16093,6 +16098,7 @@ export declare const App: {
16093
16098
  applogo?: string | undefined;
16094
16099
  is_shadow?: boolean | undefined;
16095
16100
  disable_time?: Date | undefined;
16101
+ create_time?: Date | undefined;
16096
16102
  token?: string | undefined;
16097
16103
  role?: number | undefined;
16098
16104
  about?: string | undefined;
@@ -16105,6 +16111,7 @@ export declare const App: {
16105
16111
  applogo?: string | undefined;
16106
16112
  is_shadow?: boolean | undefined;
16107
16113
  disable_time?: Date | undefined;
16114
+ create_time?: Date | undefined;
16108
16115
  token?: string | undefined;
16109
16116
  role?: number | undefined;
16110
16117
  about?: string | undefined;
@@ -16116,6 +16123,7 @@ export declare const App: {
16116
16123
  applogo?: string | undefined;
16117
16124
  is_shadow?: boolean | undefined;
16118
16125
  disable_time?: Date | undefined;
16126
+ create_time?: Date | undefined;
16119
16127
  token?: string | undefined;
16120
16128
  role?: number | undefined;
16121
16129
  about?: string | undefined;
@@ -16155,6 +16163,7 @@ export declare const AppList: {
16155
16163
  applogo?: string | undefined;
16156
16164
  is_shadow?: boolean | undefined;
16157
16165
  disable_time?: Date | undefined;
16166
+ create_time?: Date | undefined;
16158
16167
  token?: string | undefined;
16159
16168
  role?: number | undefined;
16160
16169
  about?: string | undefined;
@@ -16170,6 +16179,7 @@ export declare const AppList: {
16170
16179
  applogo?: string | undefined;
16171
16180
  is_shadow?: boolean | undefined;
16172
16181
  disable_time?: Date | undefined;
16182
+ create_time?: Date | undefined;
16173
16183
  token?: string | undefined;
16174
16184
  role?: number | undefined;
16175
16185
  about?: string | undefined;
@@ -16181,6 +16191,7 @@ export declare const AppList: {
16181
16191
  applogo?: string | undefined;
16182
16192
  is_shadow?: boolean | undefined;
16183
16193
  disable_time?: Date | undefined;
16194
+ create_time?: Date | undefined;
16184
16195
  token?: string | undefined;
16185
16196
  role?: number | undefined;
16186
16197
  about?: string | undefined;
@@ -16192,6 +16203,7 @@ export declare const AppList: {
16192
16203
  applogo?: string | undefined;
16193
16204
  is_shadow?: boolean | undefined;
16194
16205
  disable_time?: Date | undefined;
16206
+ create_time?: Date | undefined;
16195
16207
  token?: string | undefined;
16196
16208
  role?: number | undefined;
16197
16209
  about?: string | undefined;
@@ -16203,6 +16215,7 @@ export declare const AppList: {
16203
16215
  applogo?: string | undefined;
16204
16216
  is_shadow?: boolean | undefined;
16205
16217
  disable_time?: Date | undefined;
16218
+ create_time?: Date | undefined;
16206
16219
  token?: string | undefined;
16207
16220
  role?: number | undefined;
16208
16221
  about?: string | undefined;
@@ -16219,6 +16232,7 @@ export declare const AppList: {
16219
16232
  applogo?: string | undefined;
16220
16233
  is_shadow?: boolean | undefined;
16221
16234
  disable_time?: Date | undefined;
16235
+ create_time?: Date | undefined;
16222
16236
  token?: string | undefined;
16223
16237
  role?: number | undefined;
16224
16238
  about?: string | undefined;
@@ -16234,6 +16248,7 @@ export declare const AppList: {
16234
16248
  applogo?: string | undefined;
16235
16249
  is_shadow?: boolean | undefined;
16236
16250
  disable_time?: Date | undefined;
16251
+ create_time?: Date | undefined;
16237
16252
  token?: string | undefined;
16238
16253
  role?: number | undefined;
16239
16254
  about?: string | undefined;
@@ -16245,6 +16260,7 @@ export declare const AppList: {
16245
16260
  applogo?: string | undefined;
16246
16261
  is_shadow?: boolean | undefined;
16247
16262
  disable_time?: Date | undefined;
16263
+ create_time?: Date | undefined;
16248
16264
  token?: string | undefined;
16249
16265
  role?: number | undefined;
16250
16266
  about?: string | undefined;
@@ -16256,6 +16272,7 @@ export declare const AppList: {
16256
16272
  applogo?: string | undefined;
16257
16273
  is_shadow?: boolean | undefined;
16258
16274
  disable_time?: Date | undefined;
16275
+ create_time?: Date | undefined;
16259
16276
  token?: string | undefined;
16260
16277
  role?: number | undefined;
16261
16278
  about?: string | undefined;
@@ -16267,6 +16284,7 @@ export declare const AppList: {
16267
16284
  applogo?: string | undefined;
16268
16285
  is_shadow?: boolean | undefined;
16269
16286
  disable_time?: Date | undefined;
16287
+ create_time?: Date | undefined;
16270
16288
  token?: string | undefined;
16271
16289
  role?: number | undefined;
16272
16290
  about?: string | undefined;
@@ -23772,6 +23790,8 @@ export declare const LogedDeviceList: {
23772
23790
  platform?: string | undefined;
23773
23791
  ip?: string | undefined;
23774
23792
  last_active?: Date | undefined;
23793
+ location?: string | undefined;
23794
+ is_current?: boolean | undefined;
23775
23795
  }[] | undefined;
23776
23796
  } & {
23777
23797
  devices?: ({
@@ -23782,6 +23802,8 @@ export declare const LogedDeviceList: {
23782
23802
  platform?: string | undefined;
23783
23803
  ip?: string | undefined;
23784
23804
  last_active?: Date | undefined;
23805
+ location?: string | undefined;
23806
+ is_current?: boolean | undefined;
23785
23807
  }[] & ({
23786
23808
  device_id?: string | undefined;
23787
23809
  device_name?: string | undefined;
@@ -23790,6 +23812,8 @@ export declare const LogedDeviceList: {
23790
23812
  platform?: string | undefined;
23791
23813
  ip?: string | undefined;
23792
23814
  last_active?: Date | undefined;
23815
+ location?: string | undefined;
23816
+ is_current?: boolean | undefined;
23793
23817
  } & {
23794
23818
  device_id?: string | undefined;
23795
23819
  device_name?: string | undefined;
@@ -23798,6 +23822,8 @@ export declare const LogedDeviceList: {
23798
23822
  platform?: string | undefined;
23799
23823
  ip?: string | undefined;
23800
23824
  last_active?: Date | undefined;
23825
+ location?: string | undefined;
23826
+ is_current?: boolean | undefined;
23801
23827
  } & { [K in Exclude<keyof I["devices"][number], keyof LogedDevice>]: never; })[] & { [K_1 in Exclude<keyof I["devices"], keyof {
23802
23828
  device_id?: string | undefined;
23803
23829
  device_name?: string | undefined;
@@ -23806,6 +23832,8 @@ export declare const LogedDeviceList: {
23806
23832
  platform?: string | undefined;
23807
23833
  ip?: string | undefined;
23808
23834
  last_active?: Date | undefined;
23835
+ location?: string | undefined;
23836
+ is_current?: boolean | undefined;
23809
23837
  }[]>]: never; }) | undefined;
23810
23838
  } & { [K_2 in Exclude<keyof I, "devices">]: never; }>(base?: I | undefined): LogedDeviceList;
23811
23839
  fromPartial<I_1 extends {
@@ -23817,6 +23845,8 @@ export declare const LogedDeviceList: {
23817
23845
  platform?: string | undefined;
23818
23846
  ip?: string | undefined;
23819
23847
  last_active?: Date | undefined;
23848
+ location?: string | undefined;
23849
+ is_current?: boolean | undefined;
23820
23850
  }[] | undefined;
23821
23851
  } & {
23822
23852
  devices?: ({
@@ -23827,6 +23857,8 @@ export declare const LogedDeviceList: {
23827
23857
  platform?: string | undefined;
23828
23858
  ip?: string | undefined;
23829
23859
  last_active?: Date | undefined;
23860
+ location?: string | undefined;
23861
+ is_current?: boolean | undefined;
23830
23862
  }[] & ({
23831
23863
  device_id?: string | undefined;
23832
23864
  device_name?: string | undefined;
@@ -23835,6 +23867,8 @@ export declare const LogedDeviceList: {
23835
23867
  platform?: string | undefined;
23836
23868
  ip?: string | undefined;
23837
23869
  last_active?: Date | undefined;
23870
+ location?: string | undefined;
23871
+ is_current?: boolean | undefined;
23838
23872
  } & {
23839
23873
  device_id?: string | undefined;
23840
23874
  device_name?: string | undefined;
@@ -23843,6 +23877,8 @@ export declare const LogedDeviceList: {
23843
23877
  platform?: string | undefined;
23844
23878
  ip?: string | undefined;
23845
23879
  last_active?: Date | undefined;
23880
+ location?: string | undefined;
23881
+ is_current?: boolean | undefined;
23846
23882
  } & { [K_3 in Exclude<keyof I_1["devices"][number], keyof LogedDevice>]: never; })[] & { [K_4 in Exclude<keyof I_1["devices"], keyof {
23847
23883
  device_id?: string | undefined;
23848
23884
  device_name?: string | undefined;
@@ -23851,6 +23887,8 @@ export declare const LogedDeviceList: {
23851
23887
  platform?: string | undefined;
23852
23888
  ip?: string | undefined;
23853
23889
  last_active?: Date | undefined;
23890
+ location?: string | undefined;
23891
+ is_current?: boolean | undefined;
23854
23892
  }[]>]: never; }) | undefined;
23855
23893
  } & { [K_5 in Exclude<keyof I_1, "devices">]: never; }>(object: I_1): LogedDeviceList;
23856
23894
  };
@@ -23867,6 +23905,8 @@ export declare const LogedDevice: {
23867
23905
  platform?: string | undefined;
23868
23906
  ip?: string | undefined;
23869
23907
  last_active?: Date | undefined;
23908
+ location?: string | undefined;
23909
+ is_current?: boolean | undefined;
23870
23910
  } & {
23871
23911
  device_id?: string | undefined;
23872
23912
  device_name?: string | undefined;
@@ -23875,6 +23915,8 @@ export declare const LogedDevice: {
23875
23915
  platform?: string | undefined;
23876
23916
  ip?: string | undefined;
23877
23917
  last_active?: Date | undefined;
23918
+ location?: string | undefined;
23919
+ is_current?: boolean | undefined;
23878
23920
  } & { [K in Exclude<keyof I, keyof LogedDevice>]: never; }>(base?: I | undefined): LogedDevice;
23879
23921
  fromPartial<I_1 extends {
23880
23922
  device_id?: string | undefined;
@@ -23884,6 +23926,8 @@ export declare const LogedDevice: {
23884
23926
  platform?: string | undefined;
23885
23927
  ip?: string | undefined;
23886
23928
  last_active?: Date | undefined;
23929
+ location?: string | undefined;
23930
+ is_current?: boolean | undefined;
23887
23931
  } & {
23888
23932
  device_id?: string | undefined;
23889
23933
  device_name?: string | undefined;
@@ -23892,6 +23936,8 @@ export declare const LogedDevice: {
23892
23936
  platform?: string | undefined;
23893
23937
  ip?: string | undefined;
23894
23938
  last_active?: Date | undefined;
23939
+ location?: string | undefined;
23940
+ is_current?: boolean | undefined;
23895
23941
  } & { [K_1 in Exclude<keyof I_1, keyof LogedDevice>]: never; }>(object: I_1): LogedDevice;
23896
23942
  };
23897
23943
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
package/dist/api.gen.d.ts CHANGED
@@ -112,6 +112,8 @@ export interface ApiLogedDevice {
112
112
  login_at?: string;
113
113
  platform?: string;
114
114
  status?: number;
115
+ location?: string;
116
+ is_current?: boolean;
115
117
  }
116
118
  /** */
117
119
  export interface ApiLogedDeviceList {
@@ -308,6 +310,7 @@ export interface ApiApp {
308
310
  appname?: string;
309
311
  creator_id?: string;
310
312
  disable_time?: string;
313
+ create_time?: string;
311
314
  id?: string;
312
315
  is_shadow?: boolean;
313
316
  role?: number;
@@ -1668,24 +1671,6 @@ export interface ApiVoiceChannelUserList {
1668
1671
  voice_channel_users?: Array<ApiVoiceChannelUser>;
1669
1672
  }
1670
1673
  /** */
1671
- export interface ApiStoreWalletKeyRequest {
1672
- address?: string;
1673
- enc_privkey?: string;
1674
- }
1675
- /** */
1676
- export interface ApiWalletLedger {
1677
- create_time?: string;
1678
- id?: string;
1679
- transaction_id?: string;
1680
- user_id?: string;
1681
- value?: number;
1682
- }
1683
- /** */
1684
- export interface ApiWalletLedgerList {
1685
- count?: number;
1686
- wallet_ledger?: Array<ApiWalletLedger>;
1687
- }
1688
- /** */
1689
1674
  export interface ApiWebhook {
1690
1675
  active?: number;
1691
1676
  avatar?: string;
@@ -2320,8 +2305,6 @@ export declare class MezonApi {
2320
2305
  getUserStatus(bearerToken: string, options?: any): Promise<ApiUserStatus>;
2321
2306
  /** Update user status */
2322
2307
  updateUserStatus(bearerToken: string, body: ApiUserStatusUpdate, options?: any): Promise<any>;
2323
- /** Store wallet key */
2324
- storeWalletKey(bearerToken: string, body: ApiStoreWalletKeyRequest, options?: any): Promise<any>;
2325
2308
  /** create webhook */
2326
2309
  generateWebhook(bearerToken: string, body: ApiWebhookCreateRequest, options?: any): Promise<any>;
2327
2310
  /** update webhook name by id */