mezon-js-protobuf 1.8.79 → 1.8.80

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.
@@ -779,7 +779,7 @@ export interface ChannelCreatedEvent {
779
779
  /** channel private */
780
780
  channel_private: number;
781
781
  /** channel type */
782
- channel_type: number | undefined;
782
+ channel_type: number;
783
783
  /** status */
784
784
  status: number;
785
785
  /** app id */
@@ -3,5 +3,5 @@ export declare function decodeMentions(data: any): tsproto.MessageMentionList;
3
3
  export declare function decodeAttachments(data: any): tsproto.MessageAttachmentList;
4
4
  export declare function decodeRefs(data: any): tsproto.MessageRefList;
5
5
  export declare function decodeReactions(data: any): tsproto.MessageReactionList;
6
- export declare function decodeChannelMessageHeader(data: any): tsproto.ChannelMessageHeader;
7
- export declare function decodeNotificationFcm(data: any): tsproto.DirectFcmProto;
6
+ export declare function decodeNotificationFcm(data: any): tsproto.Notification;
7
+ export declare function decodeNotificationContent(data: any): string;
@@ -2266,8 +2266,8 @@ var mezon_js_protobuf_exports = {};
2266
2266
  __export(mezon_js_protobuf_exports, {
2267
2267
  WebSocketAdapterPb: () => WebSocketAdapterPb,
2268
2268
  decodeAttachments: () => decodeAttachments,
2269
- decodeChannelMessageHeader: () => decodeChannelMessageHeader,
2270
2269
  decodeMentions: () => decodeMentions,
2270
+ decodeNotificationContent: () => decodeNotificationContent,
2271
2271
  decodeNotificationFcm: () => decodeNotificationFcm,
2272
2272
  decodeReactions: () => decodeReactions,
2273
2273
  decodeRefs: () => decodeRefs
@@ -14162,241 +14162,6 @@ var SearchThreadRequest = {
14162
14162
  return message;
14163
14163
  }
14164
14164
  };
14165
- function createBaseDirectFcmProto() {
14166
- return {
14167
- title: "",
14168
- link: "",
14169
- content: "",
14170
- channel_id: "",
14171
- sender_id: "",
14172
- avatar: "",
14173
- clan_id: "",
14174
- attachments: new Uint8Array(0),
14175
- display_name: "",
14176
- create_time_seconds: 0,
14177
- update_time_seconds: 0,
14178
- username: "",
14179
- mentions: new Uint8Array(0)
14180
- };
14181
- }
14182
- var DirectFcmProto = {
14183
- encode(message, writer = import_minimal3.default.Writer.create()) {
14184
- if (message.title !== "") {
14185
- writer.uint32(10).string(message.title);
14186
- }
14187
- if (message.link !== "") {
14188
- writer.uint32(18).string(message.link);
14189
- }
14190
- if (message.content !== "") {
14191
- writer.uint32(26).string(message.content);
14192
- }
14193
- if (message.channel_id !== "") {
14194
- writer.uint32(34).string(message.channel_id);
14195
- }
14196
- if (message.sender_id !== "") {
14197
- writer.uint32(42).string(message.sender_id);
14198
- }
14199
- if (message.avatar !== "") {
14200
- writer.uint32(50).string(message.avatar);
14201
- }
14202
- if (message.clan_id !== "") {
14203
- writer.uint32(58).string(message.clan_id);
14204
- }
14205
- if (message.attachments.length !== 0) {
14206
- writer.uint32(66).bytes(message.attachments);
14207
- }
14208
- if (message.display_name !== "") {
14209
- writer.uint32(74).string(message.display_name);
14210
- }
14211
- if (message.create_time_seconds !== 0) {
14212
- writer.uint32(80).int32(message.create_time_seconds);
14213
- }
14214
- if (message.update_time_seconds !== 0) {
14215
- writer.uint32(88).int32(message.update_time_seconds);
14216
- }
14217
- if (message.username !== "") {
14218
- writer.uint32(98).string(message.username);
14219
- }
14220
- if (message.mentions.length !== 0) {
14221
- writer.uint32(106).bytes(message.mentions);
14222
- }
14223
- return writer;
14224
- },
14225
- decode(input, length) {
14226
- const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
14227
- let end = length === void 0 ? reader.len : reader.pos + length;
14228
- const message = createBaseDirectFcmProto();
14229
- while (reader.pos < end) {
14230
- const tag = reader.uint32();
14231
- switch (tag >>> 3) {
14232
- case 1:
14233
- if (tag !== 10) {
14234
- break;
14235
- }
14236
- message.title = reader.string();
14237
- continue;
14238
- case 2:
14239
- if (tag !== 18) {
14240
- break;
14241
- }
14242
- message.link = reader.string();
14243
- continue;
14244
- case 3:
14245
- if (tag !== 26) {
14246
- break;
14247
- }
14248
- message.content = reader.string();
14249
- continue;
14250
- case 4:
14251
- if (tag !== 34) {
14252
- break;
14253
- }
14254
- message.channel_id = reader.string();
14255
- continue;
14256
- case 5:
14257
- if (tag !== 42) {
14258
- break;
14259
- }
14260
- message.sender_id = reader.string();
14261
- continue;
14262
- case 6:
14263
- if (tag !== 50) {
14264
- break;
14265
- }
14266
- message.avatar = reader.string();
14267
- continue;
14268
- case 7:
14269
- if (tag !== 58) {
14270
- break;
14271
- }
14272
- message.clan_id = reader.string();
14273
- continue;
14274
- case 8:
14275
- if (tag !== 66) {
14276
- break;
14277
- }
14278
- message.attachments = reader.bytes();
14279
- continue;
14280
- case 9:
14281
- if (tag !== 74) {
14282
- break;
14283
- }
14284
- message.display_name = reader.string();
14285
- continue;
14286
- case 10:
14287
- if (tag !== 80) {
14288
- break;
14289
- }
14290
- message.create_time_seconds = reader.int32();
14291
- continue;
14292
- case 11:
14293
- if (tag !== 88) {
14294
- break;
14295
- }
14296
- message.update_time_seconds = reader.int32();
14297
- continue;
14298
- case 12:
14299
- if (tag !== 98) {
14300
- break;
14301
- }
14302
- message.username = reader.string();
14303
- continue;
14304
- case 13:
14305
- if (tag !== 106) {
14306
- break;
14307
- }
14308
- message.mentions = reader.bytes();
14309
- continue;
14310
- }
14311
- if ((tag & 7) === 4 || tag === 0) {
14312
- break;
14313
- }
14314
- reader.skipType(tag & 7);
14315
- }
14316
- return message;
14317
- },
14318
- fromJSON(object) {
14319
- return {
14320
- title: isSet2(object.title) ? globalThis.String(object.title) : "",
14321
- link: isSet2(object.link) ? globalThis.String(object.link) : "",
14322
- content: isSet2(object.content) ? globalThis.String(object.content) : "",
14323
- channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "",
14324
- sender_id: isSet2(object.sender_id) ? globalThis.String(object.sender_id) : "",
14325
- avatar: isSet2(object.avatar) ? globalThis.String(object.avatar) : "",
14326
- clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "",
14327
- attachments: isSet2(object.attachments) ? bytesFromBase64(object.attachments) : new Uint8Array(0),
14328
- display_name: isSet2(object.display_name) ? globalThis.String(object.display_name) : "",
14329
- create_time_seconds: isSet2(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
14330
- update_time_seconds: isSet2(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
14331
- username: isSet2(object.username) ? globalThis.String(object.username) : "",
14332
- mentions: isSet2(object.mentions) ? bytesFromBase64(object.mentions) : new Uint8Array(0)
14333
- };
14334
- },
14335
- toJSON(message) {
14336
- const obj = {};
14337
- if (message.title !== "") {
14338
- obj.title = message.title;
14339
- }
14340
- if (message.link !== "") {
14341
- obj.link = message.link;
14342
- }
14343
- if (message.content !== "") {
14344
- obj.content = message.content;
14345
- }
14346
- if (message.channel_id !== "") {
14347
- obj.channel_id = message.channel_id;
14348
- }
14349
- if (message.sender_id !== "") {
14350
- obj.sender_id = message.sender_id;
14351
- }
14352
- if (message.avatar !== "") {
14353
- obj.avatar = message.avatar;
14354
- }
14355
- if (message.clan_id !== "") {
14356
- obj.clan_id = message.clan_id;
14357
- }
14358
- if (message.attachments.length !== 0) {
14359
- obj.attachments = base64FromBytes(message.attachments);
14360
- }
14361
- if (message.display_name !== "") {
14362
- obj.display_name = message.display_name;
14363
- }
14364
- if (message.create_time_seconds !== 0) {
14365
- obj.create_time_seconds = Math.round(message.create_time_seconds);
14366
- }
14367
- if (message.update_time_seconds !== 0) {
14368
- obj.update_time_seconds = Math.round(message.update_time_seconds);
14369
- }
14370
- if (message.username !== "") {
14371
- obj.username = message.username;
14372
- }
14373
- if (message.mentions.length !== 0) {
14374
- obj.mentions = base64FromBytes(message.mentions);
14375
- }
14376
- return obj;
14377
- },
14378
- create(base) {
14379
- return DirectFcmProto.fromPartial(base != null ? base : {});
14380
- },
14381
- fromPartial(object) {
14382
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
14383
- const message = createBaseDirectFcmProto();
14384
- message.title = (_a = object.title) != null ? _a : "";
14385
- message.link = (_b = object.link) != null ? _b : "";
14386
- message.content = (_c = object.content) != null ? _c : "";
14387
- message.channel_id = (_d = object.channel_id) != null ? _d : "";
14388
- message.sender_id = (_e = object.sender_id) != null ? _e : "";
14389
- message.avatar = (_f = object.avatar) != null ? _f : "";
14390
- message.clan_id = (_g = object.clan_id) != null ? _g : "";
14391
- message.attachments = (_h = object.attachments) != null ? _h : new Uint8Array(0);
14392
- message.display_name = (_i = object.display_name) != null ? _i : "";
14393
- message.create_time_seconds = (_j = object.create_time_seconds) != null ? _j : 0;
14394
- message.update_time_seconds = (_k = object.update_time_seconds) != null ? _k : 0;
14395
- message.username = (_l = object.username) != null ? _l : "";
14396
- message.mentions = (_m = object.mentions) != null ? _m : new Uint8Array(0);
14397
- return message;
14398
- }
14399
- };
14400
14165
  function createBaseMessageMentionList() {
14401
14166
  return { mentions: [] };
14402
14167
  }
@@ -20732,7 +20497,7 @@ function createBaseChannelCreatedEvent() {
20732
20497
  channel_id: "",
20733
20498
  channel_label: "",
20734
20499
  channel_private: 0,
20735
- channel_type: void 0,
20500
+ channel_type: 0,
20736
20501
  status: 0,
20737
20502
  app_id: "",
20738
20503
  clan_name: "",
@@ -20762,8 +20527,8 @@ var ChannelCreatedEvent = {
20762
20527
  if (message.channel_private !== 0) {
20763
20528
  writer.uint32(56).int32(message.channel_private);
20764
20529
  }
20765
- if (message.channel_type !== void 0) {
20766
- Int32Value.encode({ value: message.channel_type }, writer.uint32(66).fork()).ldelim();
20530
+ if (message.channel_type !== 0) {
20531
+ writer.uint32(64).int32(message.channel_type);
20767
20532
  }
20768
20533
  if (message.status !== 0) {
20769
20534
  writer.uint32(72).int32(message.status);
@@ -20829,10 +20594,10 @@ var ChannelCreatedEvent = {
20829
20594
  message.channel_private = reader.int32();
20830
20595
  continue;
20831
20596
  case 8:
20832
- if (tag !== 66) {
20597
+ if (tag !== 64) {
20833
20598
  break;
20834
20599
  }
20835
- message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
20600
+ message.channel_type = reader.int32();
20836
20601
  continue;
20837
20602
  case 9:
20838
20603
  if (tag !== 72) {
@@ -20875,7 +20640,7 @@ var ChannelCreatedEvent = {
20875
20640
  channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
20876
20641
  channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
20877
20642
  channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
20878
- channel_type: isSet3(object.channel_type) ? Number(object.channel_type) : void 0,
20643
+ channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
20879
20644
  status: isSet3(object.status) ? globalThis.Number(object.status) : 0,
20880
20645
  app_id: isSet3(object.app_id) ? globalThis.String(object.app_id) : "",
20881
20646
  clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
@@ -20905,8 +20670,8 @@ var ChannelCreatedEvent = {
20905
20670
  if (message.channel_private !== 0) {
20906
20671
  obj.channel_private = Math.round(message.channel_private);
20907
20672
  }
20908
- if (message.channel_type !== void 0) {
20909
- obj.channel_type = message.channel_type;
20673
+ if (message.channel_type !== 0) {
20674
+ obj.channel_type = Math.round(message.channel_type);
20910
20675
  }
20911
20676
  if (message.status !== 0) {
20912
20677
  obj.status = Math.round(message.status);
@@ -20935,7 +20700,7 @@ var ChannelCreatedEvent = {
20935
20700
  message.channel_id = (_e = object.channel_id) != null ? _e : "";
20936
20701
  message.channel_label = (_f = object.channel_label) != null ? _f : "";
20937
20702
  message.channel_private = (_g = object.channel_private) != null ? _g : 0;
20938
- message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
20703
+ message.channel_type = (_h = object.channel_type) != null ? _h : 0;
20939
20704
  message.status = (_i = object.status) != null ? _i : 0;
20940
20705
  message.app_id = (_j = object.app_id) != null ? _j : "";
20941
20706
  message.clan_name = (_k = object.clan_name) != null ? _k : "";
@@ -26861,18 +26626,18 @@ function decodeRefs(data) {
26861
26626
  function decodeReactions(data) {
26862
26627
  const buffer = data;
26863
26628
  const uintBuffer = new Uint8Array(buffer);
26864
- const noti = MessageReactionList.decode(uintBuffer);
26865
- return noti;
26866
- }
26867
- function decodeChannelMessageHeader(data) {
26868
- const buffer = data;
26869
- const uintBuffer = new Uint8Array(buffer);
26870
- const noti = ChannelMessageHeader.decode(uintBuffer);
26871
- return noti;
26629
+ const reactions = MessageReactionList.decode(uintBuffer);
26630
+ return reactions;
26872
26631
  }
26873
26632
  function decodeNotificationFcm(data) {
26874
26633
  const buffer = data;
26875
26634
  const uintBuffer = new Uint8Array(buffer);
26876
- const noti = DirectFcmProto.decode(uintBuffer);
26635
+ const noti = Notification.decode(uintBuffer);
26877
26636
  return noti;
26878
26637
  }
26638
+ function decodeNotificationContent(data) {
26639
+ const uint8Array = new Uint8Array(data);
26640
+ const decoder = new TextDecoder("utf-8");
26641
+ const notiContent = decoder.decode(uint8Array);
26642
+ return notiContent;
26643
+ }
@@ -14143,241 +14143,6 @@ var SearchThreadRequest = {
14143
14143
  return message;
14144
14144
  }
14145
14145
  };
14146
- function createBaseDirectFcmProto() {
14147
- return {
14148
- title: "",
14149
- link: "",
14150
- content: "",
14151
- channel_id: "",
14152
- sender_id: "",
14153
- avatar: "",
14154
- clan_id: "",
14155
- attachments: new Uint8Array(0),
14156
- display_name: "",
14157
- create_time_seconds: 0,
14158
- update_time_seconds: 0,
14159
- username: "",
14160
- mentions: new Uint8Array(0)
14161
- };
14162
- }
14163
- var DirectFcmProto = {
14164
- encode(message, writer = import_minimal3.default.Writer.create()) {
14165
- if (message.title !== "") {
14166
- writer.uint32(10).string(message.title);
14167
- }
14168
- if (message.link !== "") {
14169
- writer.uint32(18).string(message.link);
14170
- }
14171
- if (message.content !== "") {
14172
- writer.uint32(26).string(message.content);
14173
- }
14174
- if (message.channel_id !== "") {
14175
- writer.uint32(34).string(message.channel_id);
14176
- }
14177
- if (message.sender_id !== "") {
14178
- writer.uint32(42).string(message.sender_id);
14179
- }
14180
- if (message.avatar !== "") {
14181
- writer.uint32(50).string(message.avatar);
14182
- }
14183
- if (message.clan_id !== "") {
14184
- writer.uint32(58).string(message.clan_id);
14185
- }
14186
- if (message.attachments.length !== 0) {
14187
- writer.uint32(66).bytes(message.attachments);
14188
- }
14189
- if (message.display_name !== "") {
14190
- writer.uint32(74).string(message.display_name);
14191
- }
14192
- if (message.create_time_seconds !== 0) {
14193
- writer.uint32(80).int32(message.create_time_seconds);
14194
- }
14195
- if (message.update_time_seconds !== 0) {
14196
- writer.uint32(88).int32(message.update_time_seconds);
14197
- }
14198
- if (message.username !== "") {
14199
- writer.uint32(98).string(message.username);
14200
- }
14201
- if (message.mentions.length !== 0) {
14202
- writer.uint32(106).bytes(message.mentions);
14203
- }
14204
- return writer;
14205
- },
14206
- decode(input, length) {
14207
- const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
14208
- let end = length === void 0 ? reader.len : reader.pos + length;
14209
- const message = createBaseDirectFcmProto();
14210
- while (reader.pos < end) {
14211
- const tag = reader.uint32();
14212
- switch (tag >>> 3) {
14213
- case 1:
14214
- if (tag !== 10) {
14215
- break;
14216
- }
14217
- message.title = reader.string();
14218
- continue;
14219
- case 2:
14220
- if (tag !== 18) {
14221
- break;
14222
- }
14223
- message.link = reader.string();
14224
- continue;
14225
- case 3:
14226
- if (tag !== 26) {
14227
- break;
14228
- }
14229
- message.content = reader.string();
14230
- continue;
14231
- case 4:
14232
- if (tag !== 34) {
14233
- break;
14234
- }
14235
- message.channel_id = reader.string();
14236
- continue;
14237
- case 5:
14238
- if (tag !== 42) {
14239
- break;
14240
- }
14241
- message.sender_id = reader.string();
14242
- continue;
14243
- case 6:
14244
- if (tag !== 50) {
14245
- break;
14246
- }
14247
- message.avatar = reader.string();
14248
- continue;
14249
- case 7:
14250
- if (tag !== 58) {
14251
- break;
14252
- }
14253
- message.clan_id = reader.string();
14254
- continue;
14255
- case 8:
14256
- if (tag !== 66) {
14257
- break;
14258
- }
14259
- message.attachments = reader.bytes();
14260
- continue;
14261
- case 9:
14262
- if (tag !== 74) {
14263
- break;
14264
- }
14265
- message.display_name = reader.string();
14266
- continue;
14267
- case 10:
14268
- if (tag !== 80) {
14269
- break;
14270
- }
14271
- message.create_time_seconds = reader.int32();
14272
- continue;
14273
- case 11:
14274
- if (tag !== 88) {
14275
- break;
14276
- }
14277
- message.update_time_seconds = reader.int32();
14278
- continue;
14279
- case 12:
14280
- if (tag !== 98) {
14281
- break;
14282
- }
14283
- message.username = reader.string();
14284
- continue;
14285
- case 13:
14286
- if (tag !== 106) {
14287
- break;
14288
- }
14289
- message.mentions = reader.bytes();
14290
- continue;
14291
- }
14292
- if ((tag & 7) === 4 || tag === 0) {
14293
- break;
14294
- }
14295
- reader.skipType(tag & 7);
14296
- }
14297
- return message;
14298
- },
14299
- fromJSON(object) {
14300
- return {
14301
- title: isSet2(object.title) ? globalThis.String(object.title) : "",
14302
- link: isSet2(object.link) ? globalThis.String(object.link) : "",
14303
- content: isSet2(object.content) ? globalThis.String(object.content) : "",
14304
- channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "",
14305
- sender_id: isSet2(object.sender_id) ? globalThis.String(object.sender_id) : "",
14306
- avatar: isSet2(object.avatar) ? globalThis.String(object.avatar) : "",
14307
- clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "",
14308
- attachments: isSet2(object.attachments) ? bytesFromBase64(object.attachments) : new Uint8Array(0),
14309
- display_name: isSet2(object.display_name) ? globalThis.String(object.display_name) : "",
14310
- create_time_seconds: isSet2(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
14311
- update_time_seconds: isSet2(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
14312
- username: isSet2(object.username) ? globalThis.String(object.username) : "",
14313
- mentions: isSet2(object.mentions) ? bytesFromBase64(object.mentions) : new Uint8Array(0)
14314
- };
14315
- },
14316
- toJSON(message) {
14317
- const obj = {};
14318
- if (message.title !== "") {
14319
- obj.title = message.title;
14320
- }
14321
- if (message.link !== "") {
14322
- obj.link = message.link;
14323
- }
14324
- if (message.content !== "") {
14325
- obj.content = message.content;
14326
- }
14327
- if (message.channel_id !== "") {
14328
- obj.channel_id = message.channel_id;
14329
- }
14330
- if (message.sender_id !== "") {
14331
- obj.sender_id = message.sender_id;
14332
- }
14333
- if (message.avatar !== "") {
14334
- obj.avatar = message.avatar;
14335
- }
14336
- if (message.clan_id !== "") {
14337
- obj.clan_id = message.clan_id;
14338
- }
14339
- if (message.attachments.length !== 0) {
14340
- obj.attachments = base64FromBytes(message.attachments);
14341
- }
14342
- if (message.display_name !== "") {
14343
- obj.display_name = message.display_name;
14344
- }
14345
- if (message.create_time_seconds !== 0) {
14346
- obj.create_time_seconds = Math.round(message.create_time_seconds);
14347
- }
14348
- if (message.update_time_seconds !== 0) {
14349
- obj.update_time_seconds = Math.round(message.update_time_seconds);
14350
- }
14351
- if (message.username !== "") {
14352
- obj.username = message.username;
14353
- }
14354
- if (message.mentions.length !== 0) {
14355
- obj.mentions = base64FromBytes(message.mentions);
14356
- }
14357
- return obj;
14358
- },
14359
- create(base) {
14360
- return DirectFcmProto.fromPartial(base != null ? base : {});
14361
- },
14362
- fromPartial(object) {
14363
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
14364
- const message = createBaseDirectFcmProto();
14365
- message.title = (_a = object.title) != null ? _a : "";
14366
- message.link = (_b = object.link) != null ? _b : "";
14367
- message.content = (_c = object.content) != null ? _c : "";
14368
- message.channel_id = (_d = object.channel_id) != null ? _d : "";
14369
- message.sender_id = (_e = object.sender_id) != null ? _e : "";
14370
- message.avatar = (_f = object.avatar) != null ? _f : "";
14371
- message.clan_id = (_g = object.clan_id) != null ? _g : "";
14372
- message.attachments = (_h = object.attachments) != null ? _h : new Uint8Array(0);
14373
- message.display_name = (_i = object.display_name) != null ? _i : "";
14374
- message.create_time_seconds = (_j = object.create_time_seconds) != null ? _j : 0;
14375
- message.update_time_seconds = (_k = object.update_time_seconds) != null ? _k : 0;
14376
- message.username = (_l = object.username) != null ? _l : "";
14377
- message.mentions = (_m = object.mentions) != null ? _m : new Uint8Array(0);
14378
- return message;
14379
- }
14380
- };
14381
14146
  function createBaseMessageMentionList() {
14382
14147
  return { mentions: [] };
14383
14148
  }
@@ -20713,7 +20478,7 @@ function createBaseChannelCreatedEvent() {
20713
20478
  channel_id: "",
20714
20479
  channel_label: "",
20715
20480
  channel_private: 0,
20716
- channel_type: void 0,
20481
+ channel_type: 0,
20717
20482
  status: 0,
20718
20483
  app_id: "",
20719
20484
  clan_name: "",
@@ -20743,8 +20508,8 @@ var ChannelCreatedEvent = {
20743
20508
  if (message.channel_private !== 0) {
20744
20509
  writer.uint32(56).int32(message.channel_private);
20745
20510
  }
20746
- if (message.channel_type !== void 0) {
20747
- Int32Value.encode({ value: message.channel_type }, writer.uint32(66).fork()).ldelim();
20511
+ if (message.channel_type !== 0) {
20512
+ writer.uint32(64).int32(message.channel_type);
20748
20513
  }
20749
20514
  if (message.status !== 0) {
20750
20515
  writer.uint32(72).int32(message.status);
@@ -20810,10 +20575,10 @@ var ChannelCreatedEvent = {
20810
20575
  message.channel_private = reader.int32();
20811
20576
  continue;
20812
20577
  case 8:
20813
- if (tag !== 66) {
20578
+ if (tag !== 64) {
20814
20579
  break;
20815
20580
  }
20816
- message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
20581
+ message.channel_type = reader.int32();
20817
20582
  continue;
20818
20583
  case 9:
20819
20584
  if (tag !== 72) {
@@ -20856,7 +20621,7 @@ var ChannelCreatedEvent = {
20856
20621
  channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
20857
20622
  channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
20858
20623
  channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
20859
- channel_type: isSet3(object.channel_type) ? Number(object.channel_type) : void 0,
20624
+ channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
20860
20625
  status: isSet3(object.status) ? globalThis.Number(object.status) : 0,
20861
20626
  app_id: isSet3(object.app_id) ? globalThis.String(object.app_id) : "",
20862
20627
  clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
@@ -20886,8 +20651,8 @@ var ChannelCreatedEvent = {
20886
20651
  if (message.channel_private !== 0) {
20887
20652
  obj.channel_private = Math.round(message.channel_private);
20888
20653
  }
20889
- if (message.channel_type !== void 0) {
20890
- obj.channel_type = message.channel_type;
20654
+ if (message.channel_type !== 0) {
20655
+ obj.channel_type = Math.round(message.channel_type);
20891
20656
  }
20892
20657
  if (message.status !== 0) {
20893
20658
  obj.status = Math.round(message.status);
@@ -20916,7 +20681,7 @@ var ChannelCreatedEvent = {
20916
20681
  message.channel_id = (_e = object.channel_id) != null ? _e : "";
20917
20682
  message.channel_label = (_f = object.channel_label) != null ? _f : "";
20918
20683
  message.channel_private = (_g = object.channel_private) != null ? _g : 0;
20919
- message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
20684
+ message.channel_type = (_h = object.channel_type) != null ? _h : 0;
20920
20685
  message.status = (_i = object.status) != null ? _i : 0;
20921
20686
  message.app_id = (_j = object.app_id) != null ? _j : "";
20922
20687
  message.clan_name = (_k = object.clan_name) != null ? _k : "";
@@ -26842,26 +26607,26 @@ function decodeRefs(data) {
26842
26607
  function decodeReactions(data) {
26843
26608
  const buffer = data;
26844
26609
  const uintBuffer = new Uint8Array(buffer);
26845
- const noti = MessageReactionList.decode(uintBuffer);
26846
- return noti;
26847
- }
26848
- function decodeChannelMessageHeader(data) {
26849
- const buffer = data;
26850
- const uintBuffer = new Uint8Array(buffer);
26851
- const noti = ChannelMessageHeader.decode(uintBuffer);
26852
- return noti;
26610
+ const reactions = MessageReactionList.decode(uintBuffer);
26611
+ return reactions;
26853
26612
  }
26854
26613
  function decodeNotificationFcm(data) {
26855
26614
  const buffer = data;
26856
26615
  const uintBuffer = new Uint8Array(buffer);
26857
- const noti = DirectFcmProto.decode(uintBuffer);
26616
+ const noti = Notification.decode(uintBuffer);
26858
26617
  return noti;
26859
26618
  }
26619
+ function decodeNotificationContent(data) {
26620
+ const uint8Array = new Uint8Array(data);
26621
+ const decoder = new TextDecoder("utf-8");
26622
+ const notiContent = decoder.decode(uint8Array);
26623
+ return notiContent;
26624
+ }
26860
26625
  export {
26861
26626
  WebSocketAdapterPb,
26862
26627
  decodeAttachments,
26863
- decodeChannelMessageHeader,
26864
26628
  decodeMentions,
26629
+ decodeNotificationContent,
26865
26630
  decodeNotificationFcm,
26866
26631
  decodeReactions,
26867
26632
  decodeRefs