mezon-js-protobuf 1.7.41 → 1.7.43

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
@@ -2924,6 +2924,8 @@ export interface App {
2924
2924
  role: number;
2925
2925
  /** about */
2926
2926
  about: string;
2927
+ /** app url */
2928
+ app_url: string;
2927
2929
  }
2928
2930
 
2929
2931
  /** Delete a app. */
@@ -2956,6 +2958,12 @@ export interface AddAppRequest {
2956
2958
  role: number;
2957
2959
  /** Is shadow. */
2958
2960
  is_shadow: boolean;
2961
+ /** App url. */
2962
+ app_url: string;
2963
+ /** app logo */
2964
+ app_logo: string;
2965
+ /** about me */
2966
+ about_me: string;
2959
2967
  }
2960
2968
 
2961
2969
  /** List (and optionally filter) users. */
@@ -2990,18 +2998,6 @@ export interface UpdateAppRequest {
2990
2998
  | undefined;
2991
2999
  /** about the app. */
2992
3000
  about: string;
2993
- }
2994
-
2995
- /** Add a new app */
2996
- export interface AddChannelAppRequest {
2997
- /** The appname. */
2998
- appname: string;
2999
- /** The password. */
3000
- token: string;
3001
- /** Creator of the app. */
3002
- creator_id: string;
3003
- /** Role of this app. */
3004
- role: number;
3005
3001
  /** App url. */
3006
3002
  app_url: string;
3007
3003
  }
@@ -28028,6 +28024,7 @@ function createBaseApp(): App {
28028
28024
  token: "",
28029
28025
  role: 0,
28030
28026
  about: "",
28027
+ app_url: "",
28031
28028
  };
28032
28029
  }
28033
28030
 
@@ -28060,6 +28057,9 @@ export const App = {
28060
28057
  if (message.about !== "") {
28061
28058
  writer.uint32(74).string(message.about);
28062
28059
  }
28060
+ if (message.app_url !== "") {
28061
+ writer.uint32(82).string(message.app_url);
28062
+ }
28063
28063
  return writer;
28064
28064
  },
28065
28065
 
@@ -28133,6 +28133,13 @@ export const App = {
28133
28133
 
28134
28134
  message.about = reader.string();
28135
28135
  continue;
28136
+ case 10:
28137
+ if (tag !== 82) {
28138
+ break;
28139
+ }
28140
+
28141
+ message.app_url = reader.string();
28142
+ continue;
28136
28143
  }
28137
28144
  if ((tag & 7) === 4 || tag === 0) {
28138
28145
  break;
@@ -28153,6 +28160,7 @@ export const App = {
28153
28160
  token: isSet(object.token) ? globalThis.String(object.token) : "",
28154
28161
  role: isSet(object.role) ? globalThis.Number(object.role) : 0,
28155
28162
  about: isSet(object.about) ? globalThis.String(object.about) : "",
28163
+ app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
28156
28164
  };
28157
28165
  },
28158
28166
 
@@ -28185,6 +28193,9 @@ export const App = {
28185
28193
  if (message.about !== "") {
28186
28194
  obj.about = message.about;
28187
28195
  }
28196
+ if (message.app_url !== "") {
28197
+ obj.app_url = message.app_url;
28198
+ }
28188
28199
  return obj;
28189
28200
  },
28190
28201
 
@@ -28202,6 +28213,7 @@ export const App = {
28202
28213
  message.token = object.token ?? "";
28203
28214
  message.role = object.role ?? 0;
28204
28215
  message.about = object.about ?? "";
28216
+ message.app_url = object.app_url ?? "";
28205
28217
  return message;
28206
28218
  },
28207
28219
  };
@@ -28370,7 +28382,7 @@ export const AppList = {
28370
28382
  };
28371
28383
 
28372
28384
  function createBaseAddAppRequest(): AddAppRequest {
28373
- return { appname: "", token: "", creator_id: "", role: 0, is_shadow: false };
28385
+ return { appname: "", token: "", creator_id: "", role: 0, is_shadow: false, app_url: "", app_logo: "", about_me: "" };
28374
28386
  }
28375
28387
 
28376
28388
  export const AddAppRequest = {
@@ -28390,6 +28402,15 @@ export const AddAppRequest = {
28390
28402
  if (message.is_shadow !== false) {
28391
28403
  writer.uint32(40).bool(message.is_shadow);
28392
28404
  }
28405
+ if (message.app_url !== "") {
28406
+ writer.uint32(50).string(message.app_url);
28407
+ }
28408
+ if (message.app_logo !== "") {
28409
+ writer.uint32(58).string(message.app_logo);
28410
+ }
28411
+ if (message.about_me !== "") {
28412
+ writer.uint32(66).string(message.about_me);
28413
+ }
28393
28414
  return writer;
28394
28415
  },
28395
28416
 
@@ -28435,6 +28456,27 @@ export const AddAppRequest = {
28435
28456
 
28436
28457
  message.is_shadow = reader.bool();
28437
28458
  continue;
28459
+ case 6:
28460
+ if (tag !== 50) {
28461
+ break;
28462
+ }
28463
+
28464
+ message.app_url = reader.string();
28465
+ continue;
28466
+ case 7:
28467
+ if (tag !== 58) {
28468
+ break;
28469
+ }
28470
+
28471
+ message.app_logo = reader.string();
28472
+ continue;
28473
+ case 8:
28474
+ if (tag !== 66) {
28475
+ break;
28476
+ }
28477
+
28478
+ message.about_me = reader.string();
28479
+ continue;
28438
28480
  }
28439
28481
  if ((tag & 7) === 4 || tag === 0) {
28440
28482
  break;
@@ -28451,6 +28493,9 @@ export const AddAppRequest = {
28451
28493
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
28452
28494
  role: isSet(object.role) ? globalThis.Number(object.role) : 0,
28453
28495
  is_shadow: isSet(object.is_shadow) ? globalThis.Boolean(object.is_shadow) : false,
28496
+ app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
28497
+ app_logo: isSet(object.app_logo) ? globalThis.String(object.app_logo) : "",
28498
+ about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
28454
28499
  };
28455
28500
  },
28456
28501
 
@@ -28471,6 +28516,15 @@ export const AddAppRequest = {
28471
28516
  if (message.is_shadow !== false) {
28472
28517
  obj.is_shadow = message.is_shadow;
28473
28518
  }
28519
+ if (message.app_url !== "") {
28520
+ obj.app_url = message.app_url;
28521
+ }
28522
+ if (message.app_logo !== "") {
28523
+ obj.app_logo = message.app_logo;
28524
+ }
28525
+ if (message.about_me !== "") {
28526
+ obj.about_me = message.about_me;
28527
+ }
28474
28528
  return obj;
28475
28529
  },
28476
28530
 
@@ -28484,6 +28538,9 @@ export const AddAppRequest = {
28484
28538
  message.creator_id = object.creator_id ?? "";
28485
28539
  message.role = object.role ?? 0;
28486
28540
  message.is_shadow = object.is_shadow ?? false;
28541
+ message.app_url = object.app_url ?? "";
28542
+ message.app_logo = object.app_logo ?? "";
28543
+ message.about_me = object.about_me ?? "";
28487
28544
  return message;
28488
28545
  },
28489
28546
  };
@@ -28578,7 +28635,15 @@ export const ListAppsRequest = {
28578
28635
  };
28579
28636
 
28580
28637
  function createBaseUpdateAppRequest(): UpdateAppRequest {
28581
- return { id: "", appname: undefined, metadata: undefined, applogo: undefined, token: undefined, about: "" };
28638
+ return {
28639
+ id: "",
28640
+ appname: undefined,
28641
+ metadata: undefined,
28642
+ applogo: undefined,
28643
+ token: undefined,
28644
+ about: "",
28645
+ app_url: "",
28646
+ };
28582
28647
  }
28583
28648
 
28584
28649
  export const UpdateAppRequest = {
@@ -28601,6 +28666,9 @@ export const UpdateAppRequest = {
28601
28666
  if (message.about !== "") {
28602
28667
  writer.uint32(50).string(message.about);
28603
28668
  }
28669
+ if (message.app_url !== "") {
28670
+ writer.uint32(58).string(message.app_url);
28671
+ }
28604
28672
  return writer;
28605
28673
  },
28606
28674
 
@@ -28653,6 +28721,13 @@ export const UpdateAppRequest = {
28653
28721
 
28654
28722
  message.about = reader.string();
28655
28723
  continue;
28724
+ case 7:
28725
+ if (tag !== 58) {
28726
+ break;
28727
+ }
28728
+
28729
+ message.app_url = reader.string();
28730
+ continue;
28656
28731
  }
28657
28732
  if ((tag & 7) === 4 || tag === 0) {
28658
28733
  break;
@@ -28670,6 +28745,7 @@ export const UpdateAppRequest = {
28670
28745
  applogo: isSet(object.applogo) ? String(object.applogo) : undefined,
28671
28746
  token: isSet(object.token) ? String(object.token) : undefined,
28672
28747
  about: isSet(object.about) ? globalThis.String(object.about) : "",
28748
+ app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
28673
28749
  };
28674
28750
  },
28675
28751
 
@@ -28693,6 +28769,9 @@ export const UpdateAppRequest = {
28693
28769
  if (message.about !== "") {
28694
28770
  obj.about = message.about;
28695
28771
  }
28772
+ if (message.app_url !== "") {
28773
+ obj.app_url = message.app_url;
28774
+ }
28696
28775
  return obj;
28697
28776
  },
28698
28777
 
@@ -28707,124 +28786,6 @@ export const UpdateAppRequest = {
28707
28786
  message.applogo = object.applogo ?? undefined;
28708
28787
  message.token = object.token ?? undefined;
28709
28788
  message.about = object.about ?? "";
28710
- return message;
28711
- },
28712
- };
28713
-
28714
- function createBaseAddChannelAppRequest(): AddChannelAppRequest {
28715
- return { appname: "", token: "", creator_id: "", role: 0, app_url: "" };
28716
- }
28717
-
28718
- export const AddChannelAppRequest = {
28719
- encode(message: AddChannelAppRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28720
- if (message.appname !== "") {
28721
- writer.uint32(10).string(message.appname);
28722
- }
28723
- if (message.token !== "") {
28724
- writer.uint32(18).string(message.token);
28725
- }
28726
- if (message.creator_id !== "") {
28727
- writer.uint32(26).string(message.creator_id);
28728
- }
28729
- if (message.role !== 0) {
28730
- writer.uint32(32).int32(message.role);
28731
- }
28732
- if (message.app_url !== "") {
28733
- writer.uint32(42).string(message.app_url);
28734
- }
28735
- return writer;
28736
- },
28737
-
28738
- decode(input: _m0.Reader | Uint8Array, length?: number): AddChannelAppRequest {
28739
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
28740
- let end = length === undefined ? reader.len : reader.pos + length;
28741
- const message = createBaseAddChannelAppRequest();
28742
- while (reader.pos < end) {
28743
- const tag = reader.uint32();
28744
- switch (tag >>> 3) {
28745
- case 1:
28746
- if (tag !== 10) {
28747
- break;
28748
- }
28749
-
28750
- message.appname = reader.string();
28751
- continue;
28752
- case 2:
28753
- if (tag !== 18) {
28754
- break;
28755
- }
28756
-
28757
- message.token = reader.string();
28758
- continue;
28759
- case 3:
28760
- if (tag !== 26) {
28761
- break;
28762
- }
28763
-
28764
- message.creator_id = reader.string();
28765
- continue;
28766
- case 4:
28767
- if (tag !== 32) {
28768
- break;
28769
- }
28770
-
28771
- message.role = reader.int32();
28772
- continue;
28773
- case 5:
28774
- if (tag !== 42) {
28775
- break;
28776
- }
28777
-
28778
- message.app_url = reader.string();
28779
- continue;
28780
- }
28781
- if ((tag & 7) === 4 || tag === 0) {
28782
- break;
28783
- }
28784
- reader.skipType(tag & 7);
28785
- }
28786
- return message;
28787
- },
28788
-
28789
- fromJSON(object: any): AddChannelAppRequest {
28790
- return {
28791
- appname: isSet(object.appname) ? globalThis.String(object.appname) : "",
28792
- token: isSet(object.token) ? globalThis.String(object.token) : "",
28793
- creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
28794
- role: isSet(object.role) ? globalThis.Number(object.role) : 0,
28795
- app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
28796
- };
28797
- },
28798
-
28799
- toJSON(message: AddChannelAppRequest): unknown {
28800
- const obj: any = {};
28801
- if (message.appname !== "") {
28802
- obj.appname = message.appname;
28803
- }
28804
- if (message.token !== "") {
28805
- obj.token = message.token;
28806
- }
28807
- if (message.creator_id !== "") {
28808
- obj.creator_id = message.creator_id;
28809
- }
28810
- if (message.role !== 0) {
28811
- obj.role = Math.round(message.role);
28812
- }
28813
- if (message.app_url !== "") {
28814
- obj.app_url = message.app_url;
28815
- }
28816
- return obj;
28817
- },
28818
-
28819
- create<I extends Exact<DeepPartial<AddChannelAppRequest>, I>>(base?: I): AddChannelAppRequest {
28820
- return AddChannelAppRequest.fromPartial(base ?? ({} as any));
28821
- },
28822
- fromPartial<I extends Exact<DeepPartial<AddChannelAppRequest>, I>>(object: I): AddChannelAppRequest {
28823
- const message = createBaseAddChannelAppRequest();
28824
- message.appname = object.appname ?? "";
28825
- message.token = object.token ?? "";
28826
- message.creator_id = object.creator_id ?? "";
28827
- message.role = object.role ?? 0;
28828
28789
  message.app_url = object.app_url ?? "";
28829
28790
  return message;
28830
28791
  },
@@ -2311,6 +2311,8 @@ export interface App {
2311
2311
  role: number;
2312
2312
  /** about */
2313
2313
  about: string;
2314
+ /** app url */
2315
+ app_url: string;
2314
2316
  }
2315
2317
  /** Delete a app. */
2316
2318
  export interface AppDeleteRequest {
@@ -2340,6 +2342,12 @@ export interface AddAppRequest {
2340
2342
  role: number;
2341
2343
  /** Is shadow. */
2342
2344
  is_shadow: boolean;
2345
+ /** App url. */
2346
+ app_url: string;
2347
+ /** app logo */
2348
+ app_logo: string;
2349
+ /** about me */
2350
+ about_me: string;
2343
2351
  }
2344
2352
  /** List (and optionally filter) users. */
2345
2353
  export interface ListAppsRequest {
@@ -2364,17 +2372,6 @@ export interface UpdateAppRequest {
2364
2372
  token: string | undefined;
2365
2373
  /** about the app. */
2366
2374
  about: string;
2367
- }
2368
- /** Add a new app */
2369
- export interface AddChannelAppRequest {
2370
- /** The appname. */
2371
- appname: string;
2372
- /** The password. */
2373
- token: string;
2374
- /** Creator of the app. */
2375
- creator_id: string;
2376
- /** Role of this app. */
2377
- role: number;
2378
2375
  /** App url. */
2379
2376
  app_url: string;
2380
2377
  }
@@ -18178,6 +18175,7 @@ export declare const App: {
18178
18175
  token?: string | undefined;
18179
18176
  role?: number | undefined;
18180
18177
  about?: string | undefined;
18178
+ app_url?: string | undefined;
18181
18179
  } & {
18182
18180
  id?: string | undefined;
18183
18181
  appname?: string | undefined;
@@ -18188,6 +18186,7 @@ export declare const App: {
18188
18186
  token?: string | undefined;
18189
18187
  role?: number | undefined;
18190
18188
  about?: string | undefined;
18189
+ app_url?: string | undefined;
18191
18190
  } & { [K in Exclude<keyof I, keyof App>]: never; }>(base?: I | undefined): App;
18192
18191
  fromPartial<I_1 extends {
18193
18192
  id?: string | undefined;
@@ -18199,6 +18198,7 @@ export declare const App: {
18199
18198
  token?: string | undefined;
18200
18199
  role?: number | undefined;
18201
18200
  about?: string | undefined;
18201
+ app_url?: string | undefined;
18202
18202
  } & {
18203
18203
  id?: string | undefined;
18204
18204
  appname?: string | undefined;
@@ -18209,6 +18209,7 @@ export declare const App: {
18209
18209
  token?: string | undefined;
18210
18210
  role?: number | undefined;
18211
18211
  about?: string | undefined;
18212
+ app_url?: string | undefined;
18212
18213
  } & { [K_1 in Exclude<keyof I_1, keyof App>]: never; }>(object: I_1): App;
18213
18214
  };
18214
18215
  export declare const AppDeleteRequest: {
@@ -18247,6 +18248,7 @@ export declare const AppList: {
18247
18248
  token?: string | undefined;
18248
18249
  role?: number | undefined;
18249
18250
  about?: string | undefined;
18251
+ app_url?: string | undefined;
18250
18252
  }[] | undefined;
18251
18253
  total_count?: number | undefined;
18252
18254
  next_cursor?: string | undefined;
@@ -18261,6 +18263,7 @@ export declare const AppList: {
18261
18263
  token?: string | undefined;
18262
18264
  role?: number | undefined;
18263
18265
  about?: string | undefined;
18266
+ app_url?: string | undefined;
18264
18267
  }[] & ({
18265
18268
  id?: string | undefined;
18266
18269
  appname?: string | undefined;
@@ -18271,6 +18274,7 @@ export declare const AppList: {
18271
18274
  token?: string | undefined;
18272
18275
  role?: number | undefined;
18273
18276
  about?: string | undefined;
18277
+ app_url?: string | undefined;
18274
18278
  } & {
18275
18279
  id?: string | undefined;
18276
18280
  appname?: string | undefined;
@@ -18281,6 +18285,7 @@ export declare const AppList: {
18281
18285
  token?: string | undefined;
18282
18286
  role?: number | undefined;
18283
18287
  about?: string | undefined;
18288
+ app_url?: string | undefined;
18284
18289
  } & { [K in Exclude<keyof I["apps"][number], keyof App>]: never; })[] & { [K_1 in Exclude<keyof I["apps"], keyof {
18285
18290
  id?: string | undefined;
18286
18291
  appname?: string | undefined;
@@ -18291,6 +18296,7 @@ export declare const AppList: {
18291
18296
  token?: string | undefined;
18292
18297
  role?: number | undefined;
18293
18298
  about?: string | undefined;
18299
+ app_url?: string | undefined;
18294
18300
  }[]>]: never; }) | undefined;
18295
18301
  total_count?: number | undefined;
18296
18302
  next_cursor?: string | undefined;
@@ -18306,6 +18312,7 @@ export declare const AppList: {
18306
18312
  token?: string | undefined;
18307
18313
  role?: number | undefined;
18308
18314
  about?: string | undefined;
18315
+ app_url?: string | undefined;
18309
18316
  }[] | undefined;
18310
18317
  total_count?: number | undefined;
18311
18318
  next_cursor?: string | undefined;
@@ -18320,6 +18327,7 @@ export declare const AppList: {
18320
18327
  token?: string | undefined;
18321
18328
  role?: number | undefined;
18322
18329
  about?: string | undefined;
18330
+ app_url?: string | undefined;
18323
18331
  }[] & ({
18324
18332
  id?: string | undefined;
18325
18333
  appname?: string | undefined;
@@ -18330,6 +18338,7 @@ export declare const AppList: {
18330
18338
  token?: string | undefined;
18331
18339
  role?: number | undefined;
18332
18340
  about?: string | undefined;
18341
+ app_url?: string | undefined;
18333
18342
  } & {
18334
18343
  id?: string | undefined;
18335
18344
  appname?: string | undefined;
@@ -18340,6 +18349,7 @@ export declare const AppList: {
18340
18349
  token?: string | undefined;
18341
18350
  role?: number | undefined;
18342
18351
  about?: string | undefined;
18352
+ app_url?: string | undefined;
18343
18353
  } & { [K_3 in Exclude<keyof I_1["apps"][number], keyof App>]: never; })[] & { [K_4 in Exclude<keyof I_1["apps"], keyof {
18344
18354
  id?: string | undefined;
18345
18355
  appname?: string | undefined;
@@ -18350,6 +18360,7 @@ export declare const AppList: {
18350
18360
  token?: string | undefined;
18351
18361
  role?: number | undefined;
18352
18362
  about?: string | undefined;
18363
+ app_url?: string | undefined;
18353
18364
  }[]>]: never; }) | undefined;
18354
18365
  total_count?: number | undefined;
18355
18366
  next_cursor?: string | undefined;
@@ -18366,12 +18377,18 @@ export declare const AddAppRequest: {
18366
18377
  creator_id?: string | undefined;
18367
18378
  role?: number | undefined;
18368
18379
  is_shadow?: boolean | undefined;
18380
+ app_url?: string | undefined;
18381
+ app_logo?: string | undefined;
18382
+ about_me?: string | undefined;
18369
18383
  } & {
18370
18384
  appname?: string | undefined;
18371
18385
  token?: string | undefined;
18372
18386
  creator_id?: string | undefined;
18373
18387
  role?: number | undefined;
18374
18388
  is_shadow?: boolean | undefined;
18389
+ app_url?: string | undefined;
18390
+ app_logo?: string | undefined;
18391
+ about_me?: string | undefined;
18375
18392
  } & { [K in Exclude<keyof I, keyof AddAppRequest>]: never; }>(base?: I | undefined): AddAppRequest;
18376
18393
  fromPartial<I_1 extends {
18377
18394
  appname?: string | undefined;
@@ -18379,12 +18396,18 @@ export declare const AddAppRequest: {
18379
18396
  creator_id?: string | undefined;
18380
18397
  role?: number | undefined;
18381
18398
  is_shadow?: boolean | undefined;
18399
+ app_url?: string | undefined;
18400
+ app_logo?: string | undefined;
18401
+ about_me?: string | undefined;
18382
18402
  } & {
18383
18403
  appname?: string | undefined;
18384
18404
  token?: string | undefined;
18385
18405
  creator_id?: string | undefined;
18386
18406
  role?: number | undefined;
18387
18407
  is_shadow?: boolean | undefined;
18408
+ app_url?: string | undefined;
18409
+ app_logo?: string | undefined;
18410
+ about_me?: string | undefined;
18388
18411
  } & { [K_1 in Exclude<keyof I_1, keyof AddAppRequest>]: never; }>(object: I_1): AddAppRequest;
18389
18412
  };
18390
18413
  export declare const ListAppsRequest: {
@@ -18423,6 +18446,7 @@ export declare const UpdateAppRequest: {
18423
18446
  applogo?: string | undefined;
18424
18447
  token?: string | undefined;
18425
18448
  about?: string | undefined;
18449
+ app_url?: string | undefined;
18426
18450
  } & {
18427
18451
  id?: string | undefined;
18428
18452
  appname?: string | undefined;
@@ -18430,6 +18454,7 @@ export declare const UpdateAppRequest: {
18430
18454
  applogo?: string | undefined;
18431
18455
  token?: string | undefined;
18432
18456
  about?: string | undefined;
18457
+ app_url?: string | undefined;
18433
18458
  } & { [K in Exclude<keyof I, keyof UpdateAppRequest>]: never; }>(base?: I | undefined): UpdateAppRequest;
18434
18459
  fromPartial<I_1 extends {
18435
18460
  id?: string | undefined;
@@ -18438,6 +18463,7 @@ export declare const UpdateAppRequest: {
18438
18463
  applogo?: string | undefined;
18439
18464
  token?: string | undefined;
18440
18465
  about?: string | undefined;
18466
+ app_url?: string | undefined;
18441
18467
  } & {
18442
18468
  id?: string | undefined;
18443
18469
  appname?: string | undefined;
@@ -18445,39 +18471,8 @@ export declare const UpdateAppRequest: {
18445
18471
  applogo?: string | undefined;
18446
18472
  token?: string | undefined;
18447
18473
  about?: string | undefined;
18448
- } & { [K_1 in Exclude<keyof I_1, keyof UpdateAppRequest>]: never; }>(object: I_1): UpdateAppRequest;
18449
- };
18450
- export declare const AddChannelAppRequest: {
18451
- encode(message: AddChannelAppRequest, writer?: _m0.Writer): _m0.Writer;
18452
- decode(input: _m0.Reader | Uint8Array, length?: number): AddChannelAppRequest;
18453
- fromJSON(object: any): AddChannelAppRequest;
18454
- toJSON(message: AddChannelAppRequest): unknown;
18455
- create<I extends {
18456
- appname?: string | undefined;
18457
- token?: string | undefined;
18458
- creator_id?: string | undefined;
18459
- role?: number | undefined;
18460
18474
  app_url?: string | undefined;
18461
- } & {
18462
- appname?: string | undefined;
18463
- token?: string | undefined;
18464
- creator_id?: string | undefined;
18465
- role?: number | undefined;
18466
- app_url?: string | undefined;
18467
- } & { [K in Exclude<keyof I, keyof AddChannelAppRequest>]: never; }>(base?: I | undefined): AddChannelAppRequest;
18468
- fromPartial<I_1 extends {
18469
- appname?: string | undefined;
18470
- token?: string | undefined;
18471
- creator_id?: string | undefined;
18472
- role?: number | undefined;
18473
- app_url?: string | undefined;
18474
- } & {
18475
- appname?: string | undefined;
18476
- token?: string | undefined;
18477
- creator_id?: string | undefined;
18478
- role?: number | undefined;
18479
- app_url?: string | undefined;
18480
- } & { [K_1 in Exclude<keyof I_1, keyof AddChannelAppRequest>]: never; }>(object: I_1): AddChannelAppRequest;
18475
+ } & { [K_1 in Exclude<keyof I_1, keyof UpdateAppRequest>]: never; }>(object: I_1): UpdateAppRequest;
18481
18476
  };
18482
18477
  export declare const AppId: {
18483
18478
  encode(message: AppId, writer?: _m0.Writer): _m0.Writer;
@@ -545,6 +545,10 @@ export interface MessageTypingEvent {
545
545
  mode: number;
546
546
  /** is public */
547
547
  is_public: boolean;
548
+ /** sender username */
549
+ sender_username: string;
550
+ /** sender display name */
551
+ sender_display_name: string;
548
552
  }
549
553
  /** Voice Joined event */
550
554
  export interface VoiceLeavedEvent {
@@ -1455,6 +1459,8 @@ export declare const Envelope: {
1455
1459
  sender_id?: string | undefined;
1456
1460
  mode?: number | undefined;
1457
1461
  is_public?: boolean | undefined;
1462
+ sender_username?: string | undefined;
1463
+ sender_display_name?: string | undefined;
1458
1464
  } | undefined;
1459
1465
  last_seen_message_event?: {
1460
1466
  clan_id?: string | undefined;
@@ -3407,12 +3413,16 @@ export declare const Envelope: {
3407
3413
  sender_id?: string | undefined;
3408
3414
  mode?: number | undefined;
3409
3415
  is_public?: boolean | undefined;
3416
+ sender_username?: string | undefined;
3417
+ sender_display_name?: string | undefined;
3410
3418
  } & {
3411
3419
  clan_id?: string | undefined;
3412
3420
  channel_id?: string | undefined;
3413
3421
  sender_id?: string | undefined;
3414
3422
  mode?: number | undefined;
3415
3423
  is_public?: boolean | undefined;
3424
+ sender_username?: string | undefined;
3425
+ sender_display_name?: string | undefined;
3416
3426
  } & { [K_70 in Exclude<keyof I["message_typing_event"], keyof MessageTypingEvent>]: never; }) | undefined;
3417
3427
  last_seen_message_event?: ({
3418
3428
  clan_id?: string | undefined;
@@ -5420,6 +5430,8 @@ export declare const Envelope: {
5420
5430
  sender_id?: string | undefined;
5421
5431
  mode?: number | undefined;
5422
5432
  is_public?: boolean | undefined;
5433
+ sender_username?: string | undefined;
5434
+ sender_display_name?: string | undefined;
5423
5435
  } | undefined;
5424
5436
  last_seen_message_event?: {
5425
5437
  clan_id?: string | undefined;
@@ -7372,12 +7384,16 @@ export declare const Envelope: {
7372
7384
  sender_id?: string | undefined;
7373
7385
  mode?: number | undefined;
7374
7386
  is_public?: boolean | undefined;
7387
+ sender_username?: string | undefined;
7388
+ sender_display_name?: string | undefined;
7375
7389
  } & {
7376
7390
  clan_id?: string | undefined;
7377
7391
  channel_id?: string | undefined;
7378
7392
  sender_id?: string | undefined;
7379
7393
  mode?: number | undefined;
7380
7394
  is_public?: boolean | undefined;
7395
+ sender_username?: string | undefined;
7396
+ sender_display_name?: string | undefined;
7381
7397
  } & { [K_252 in Exclude<keyof I_1["message_typing_event"], keyof MessageTypingEvent>]: never; }) | undefined;
7382
7398
  last_seen_message_event?: ({
7383
7399
  clan_id?: string | undefined;
@@ -11976,12 +11992,16 @@ export declare const MessageTypingEvent: {
11976
11992
  sender_id?: string | undefined;
11977
11993
  mode?: number | undefined;
11978
11994
  is_public?: boolean | undefined;
11995
+ sender_username?: string | undefined;
11996
+ sender_display_name?: string | undefined;
11979
11997
  } & {
11980
11998
  clan_id?: string | undefined;
11981
11999
  channel_id?: string | undefined;
11982
12000
  sender_id?: string | undefined;
11983
12001
  mode?: number | undefined;
11984
12002
  is_public?: boolean | undefined;
12003
+ sender_username?: string | undefined;
12004
+ sender_display_name?: string | undefined;
11985
12005
  } & { [K in Exclude<keyof I, keyof MessageTypingEvent>]: never; }>(base?: I | undefined): MessageTypingEvent;
11986
12006
  fromPartial<I_1 extends {
11987
12007
  clan_id?: string | undefined;
@@ -11989,12 +12009,16 @@ export declare const MessageTypingEvent: {
11989
12009
  sender_id?: string | undefined;
11990
12010
  mode?: number | undefined;
11991
12011
  is_public?: boolean | undefined;
12012
+ sender_username?: string | undefined;
12013
+ sender_display_name?: string | undefined;
11992
12014
  } & {
11993
12015
  clan_id?: string | undefined;
11994
12016
  channel_id?: string | undefined;
11995
12017
  sender_id?: string | undefined;
11996
12018
  mode?: number | undefined;
11997
12019
  is_public?: boolean | undefined;
12020
+ sender_username?: string | undefined;
12021
+ sender_display_name?: string | undefined;
11998
12022
  } & { [K_1 in Exclude<keyof I_1, keyof MessageTypingEvent>]: never; }>(object: I_1): MessageTypingEvent;
11999
12023
  };
12000
12024
  export declare const VoiceLeavedEvent: {
@@ -10555,7 +10555,15 @@ var LastSeenMessageEvent = {
10555
10555
  }
10556
10556
  };
10557
10557
  function createBaseMessageTypingEvent() {
10558
- return { clan_id: "", channel_id: "", sender_id: "", mode: 0, is_public: false };
10558
+ return {
10559
+ clan_id: "",
10560
+ channel_id: "",
10561
+ sender_id: "",
10562
+ mode: 0,
10563
+ is_public: false,
10564
+ sender_username: "",
10565
+ sender_display_name: ""
10566
+ };
10559
10567
  }
10560
10568
  var MessageTypingEvent = {
10561
10569
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -10574,6 +10582,12 @@ var MessageTypingEvent = {
10574
10582
  if (message.is_public !== false) {
10575
10583
  writer.uint32(40).bool(message.is_public);
10576
10584
  }
10585
+ if (message.sender_username !== "") {
10586
+ writer.uint32(50).string(message.sender_username);
10587
+ }
10588
+ if (message.sender_display_name !== "") {
10589
+ writer.uint32(58).string(message.sender_display_name);
10590
+ }
10577
10591
  return writer;
10578
10592
  },
10579
10593
  decode(input, length) {
@@ -10613,6 +10627,18 @@ var MessageTypingEvent = {
10613
10627
  }
10614
10628
  message.is_public = reader.bool();
10615
10629
  continue;
10630
+ case 6:
10631
+ if (tag !== 50) {
10632
+ break;
10633
+ }
10634
+ message.sender_username = reader.string();
10635
+ continue;
10636
+ case 7:
10637
+ if (tag !== 58) {
10638
+ break;
10639
+ }
10640
+ message.sender_display_name = reader.string();
10641
+ continue;
10616
10642
  }
10617
10643
  if ((tag & 7) === 4 || tag === 0) {
10618
10644
  break;
@@ -10627,7 +10653,9 @@ var MessageTypingEvent = {
10627
10653
  channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
10628
10654
  sender_id: isSet4(object.sender_id) ? globalThis.String(object.sender_id) : "",
10629
10655
  mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
10630
- is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false
10656
+ is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
10657
+ sender_username: isSet4(object.sender_username) ? globalThis.String(object.sender_username) : "",
10658
+ sender_display_name: isSet4(object.sender_display_name) ? globalThis.String(object.sender_display_name) : ""
10631
10659
  };
10632
10660
  },
10633
10661
  toJSON(message) {
@@ -10647,19 +10675,27 @@ var MessageTypingEvent = {
10647
10675
  if (message.is_public !== false) {
10648
10676
  obj.is_public = message.is_public;
10649
10677
  }
10678
+ if (message.sender_username !== "") {
10679
+ obj.sender_username = message.sender_username;
10680
+ }
10681
+ if (message.sender_display_name !== "") {
10682
+ obj.sender_display_name = message.sender_display_name;
10683
+ }
10650
10684
  return obj;
10651
10685
  },
10652
10686
  create(base) {
10653
10687
  return MessageTypingEvent.fromPartial(base != null ? base : {});
10654
10688
  },
10655
10689
  fromPartial(object) {
10656
- var _a, _b, _c, _d, _e;
10690
+ var _a, _b, _c, _d, _e, _f, _g;
10657
10691
  const message = createBaseMessageTypingEvent();
10658
10692
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
10659
10693
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
10660
10694
  message.sender_id = (_c = object.sender_id) != null ? _c : "";
10661
10695
  message.mode = (_d = object.mode) != null ? _d : 0;
10662
10696
  message.is_public = (_e = object.is_public) != null ? _e : false;
10697
+ message.sender_username = (_f = object.sender_username) != null ? _f : "";
10698
+ message.sender_display_name = (_g = object.sender_display_name) != null ? _g : "";
10663
10699
  return message;
10664
10700
  }
10665
10701
  };
@@ -10542,7 +10542,15 @@ var LastSeenMessageEvent = {
10542
10542
  }
10543
10543
  };
10544
10544
  function createBaseMessageTypingEvent() {
10545
- return { clan_id: "", channel_id: "", sender_id: "", mode: 0, is_public: false };
10545
+ return {
10546
+ clan_id: "",
10547
+ channel_id: "",
10548
+ sender_id: "",
10549
+ mode: 0,
10550
+ is_public: false,
10551
+ sender_username: "",
10552
+ sender_display_name: ""
10553
+ };
10546
10554
  }
10547
10555
  var MessageTypingEvent = {
10548
10556
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -10561,6 +10569,12 @@ var MessageTypingEvent = {
10561
10569
  if (message.is_public !== false) {
10562
10570
  writer.uint32(40).bool(message.is_public);
10563
10571
  }
10572
+ if (message.sender_username !== "") {
10573
+ writer.uint32(50).string(message.sender_username);
10574
+ }
10575
+ if (message.sender_display_name !== "") {
10576
+ writer.uint32(58).string(message.sender_display_name);
10577
+ }
10564
10578
  return writer;
10565
10579
  },
10566
10580
  decode(input, length) {
@@ -10600,6 +10614,18 @@ var MessageTypingEvent = {
10600
10614
  }
10601
10615
  message.is_public = reader.bool();
10602
10616
  continue;
10617
+ case 6:
10618
+ if (tag !== 50) {
10619
+ break;
10620
+ }
10621
+ message.sender_username = reader.string();
10622
+ continue;
10623
+ case 7:
10624
+ if (tag !== 58) {
10625
+ break;
10626
+ }
10627
+ message.sender_display_name = reader.string();
10628
+ continue;
10603
10629
  }
10604
10630
  if ((tag & 7) === 4 || tag === 0) {
10605
10631
  break;
@@ -10614,7 +10640,9 @@ var MessageTypingEvent = {
10614
10640
  channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
10615
10641
  sender_id: isSet4(object.sender_id) ? globalThis.String(object.sender_id) : "",
10616
10642
  mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
10617
- is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false
10643
+ is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
10644
+ sender_username: isSet4(object.sender_username) ? globalThis.String(object.sender_username) : "",
10645
+ sender_display_name: isSet4(object.sender_display_name) ? globalThis.String(object.sender_display_name) : ""
10618
10646
  };
10619
10647
  },
10620
10648
  toJSON(message) {
@@ -10634,19 +10662,27 @@ var MessageTypingEvent = {
10634
10662
  if (message.is_public !== false) {
10635
10663
  obj.is_public = message.is_public;
10636
10664
  }
10665
+ if (message.sender_username !== "") {
10666
+ obj.sender_username = message.sender_username;
10667
+ }
10668
+ if (message.sender_display_name !== "") {
10669
+ obj.sender_display_name = message.sender_display_name;
10670
+ }
10637
10671
  return obj;
10638
10672
  },
10639
10673
  create(base) {
10640
10674
  return MessageTypingEvent.fromPartial(base != null ? base : {});
10641
10675
  },
10642
10676
  fromPartial(object) {
10643
- var _a, _b, _c, _d, _e;
10677
+ var _a, _b, _c, _d, _e, _f, _g;
10644
10678
  const message = createBaseMessageTypingEvent();
10645
10679
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
10646
10680
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
10647
10681
  message.sender_id = (_c = object.sender_id) != null ? _c : "";
10648
10682
  message.mode = (_d = object.mode) != null ? _d : 0;
10649
10683
  message.is_public = (_e = object.is_public) != null ? _e : false;
10684
+ message.sender_username = (_f = object.sender_username) != null ? _f : "";
10685
+ message.sender_display_name = (_g = object.sender_display_name) != null ? _g : "";
10650
10686
  return message;
10651
10687
  }
10652
10688
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.7.41",
3
+ "version": "1.7.43",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",
package/rtapi/realtime.ts CHANGED
@@ -821,6 +821,10 @@ export interface MessageTypingEvent {
821
821
  mode: number;
822
822
  /** is public */
823
823
  is_public: boolean;
824
+ /** sender username */
825
+ sender_username: string;
826
+ /** sender display name */
827
+ sender_display_name: string;
824
828
  }
825
829
 
826
830
  /** Voice Joined event */
@@ -6616,7 +6620,15 @@ export const LastSeenMessageEvent = {
6616
6620
  };
6617
6621
 
6618
6622
  function createBaseMessageTypingEvent(): MessageTypingEvent {
6619
- return { clan_id: "", channel_id: "", sender_id: "", mode: 0, is_public: false };
6623
+ return {
6624
+ clan_id: "",
6625
+ channel_id: "",
6626
+ sender_id: "",
6627
+ mode: 0,
6628
+ is_public: false,
6629
+ sender_username: "",
6630
+ sender_display_name: "",
6631
+ };
6620
6632
  }
6621
6633
 
6622
6634
  export const MessageTypingEvent = {
@@ -6636,6 +6648,12 @@ export const MessageTypingEvent = {
6636
6648
  if (message.is_public !== false) {
6637
6649
  writer.uint32(40).bool(message.is_public);
6638
6650
  }
6651
+ if (message.sender_username !== "") {
6652
+ writer.uint32(50).string(message.sender_username);
6653
+ }
6654
+ if (message.sender_display_name !== "") {
6655
+ writer.uint32(58).string(message.sender_display_name);
6656
+ }
6639
6657
  return writer;
6640
6658
  },
6641
6659
 
@@ -6681,6 +6699,20 @@ export const MessageTypingEvent = {
6681
6699
 
6682
6700
  message.is_public = reader.bool();
6683
6701
  continue;
6702
+ case 6:
6703
+ if (tag !== 50) {
6704
+ break;
6705
+ }
6706
+
6707
+ message.sender_username = reader.string();
6708
+ continue;
6709
+ case 7:
6710
+ if (tag !== 58) {
6711
+ break;
6712
+ }
6713
+
6714
+ message.sender_display_name = reader.string();
6715
+ continue;
6684
6716
  }
6685
6717
  if ((tag & 7) === 4 || tag === 0) {
6686
6718
  break;
@@ -6697,6 +6729,8 @@ export const MessageTypingEvent = {
6697
6729
  sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
6698
6730
  mode: isSet(object.mode) ? globalThis.Number(object.mode) : 0,
6699
6731
  is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
6732
+ sender_username: isSet(object.sender_username) ? globalThis.String(object.sender_username) : "",
6733
+ sender_display_name: isSet(object.sender_display_name) ? globalThis.String(object.sender_display_name) : "",
6700
6734
  };
6701
6735
  },
6702
6736
 
@@ -6717,6 +6751,12 @@ export const MessageTypingEvent = {
6717
6751
  if (message.is_public !== false) {
6718
6752
  obj.is_public = message.is_public;
6719
6753
  }
6754
+ if (message.sender_username !== "") {
6755
+ obj.sender_username = message.sender_username;
6756
+ }
6757
+ if (message.sender_display_name !== "") {
6758
+ obj.sender_display_name = message.sender_display_name;
6759
+ }
6720
6760
  return obj;
6721
6761
  },
6722
6762
 
@@ -6730,6 +6770,8 @@ export const MessageTypingEvent = {
6730
6770
  message.sender_id = object.sender_id ?? "";
6731
6771
  message.mode = object.mode ?? 0;
6732
6772
  message.is_public = object.is_public ?? false;
6773
+ message.sender_username = object.sender_username ?? "";
6774
+ message.sender_display_name = object.sender_display_name ?? "";
6733
6775
  return message;
6734
6776
  },
6735
6777
  };