mezon-js-protobuf 1.4.33 → 1.4.35

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
@@ -1835,6 +1835,8 @@ export interface ChannelDescription {
1835
1835
  status: number;
1836
1836
  /** meeting code */
1837
1837
  meeting_code: string;
1838
+ /** count message unread */
1839
+ count_mess_unread: number;
1838
1840
  }
1839
1841
 
1840
1842
  /** A list of channel description, usually a result of a list operation. */
@@ -2405,6 +2407,24 @@ export interface SearchMessageResponse {
2405
2407
  total: number;
2406
2408
  }
2407
2409
 
2410
+ export interface CreateWebhookRequest {
2411
+ /** Hook name */
2412
+ hook_name: string;
2413
+ /** Channel ID */
2414
+ channel_id: string;
2415
+ /** Clan ID */
2416
+ clan_id: string;
2417
+ }
2418
+
2419
+ export interface WebhookResponse {
2420
+ /** Hook name */
2421
+ hook_name: string;
2422
+ /** Channel ID */
2423
+ channel_id: string;
2424
+ /** hook url */
2425
+ hook_url: string;
2426
+ }
2427
+
2408
2428
  function createBaseAccount(): Account {
2409
2429
  return {
2410
2430
  user: undefined,
@@ -12554,6 +12574,7 @@ function createBaseChannelDescription(): ChannelDescription {
12554
12574
  last_seen_message: undefined,
12555
12575
  status: 0,
12556
12576
  meeting_code: "",
12577
+ count_mess_unread: 0,
12557
12578
  };
12558
12579
  }
12559
12580
 
@@ -12604,6 +12625,9 @@ export const ChannelDescription = {
12604
12625
  if (message.meeting_code !== "") {
12605
12626
  writer.uint32(122).string(message.meeting_code);
12606
12627
  }
12628
+ if (message.count_mess_unread !== 0) {
12629
+ writer.uint32(128).int32(message.count_mess_unread);
12630
+ }
12607
12631
  return writer;
12608
12632
  },
12609
12633
 
@@ -12659,6 +12683,9 @@ export const ChannelDescription = {
12659
12683
  case 15:
12660
12684
  message.meeting_code = reader.string();
12661
12685
  break;
12686
+ case 16:
12687
+ message.count_mess_unread = reader.int32();
12688
+ break;
12662
12689
  default:
12663
12690
  reader.skipType(tag & 7);
12664
12691
  break;
@@ -12688,6 +12715,7 @@ export const ChannelDescription = {
12688
12715
  : undefined,
12689
12716
  status: isSet(object.status) ? Number(object.status) : 0,
12690
12717
  meeting_code: isSet(object.meeting_code) ? String(object.meeting_code) : "",
12718
+ count_mess_unread: isSet(object.count_mess_unread) ? Number(object.count_mess_unread) : 0,
12691
12719
  };
12692
12720
  },
12693
12721
 
@@ -12720,6 +12748,7 @@ export const ChannelDescription = {
12720
12748
  : undefined);
12721
12749
  message.status !== undefined && (obj.status = Math.round(message.status));
12722
12750
  message.meeting_code !== undefined && (obj.meeting_code = message.meeting_code);
12751
+ message.count_mess_unread !== undefined && (obj.count_mess_unread = Math.round(message.count_mess_unread));
12723
12752
  return obj;
12724
12753
  },
12725
12754
 
@@ -12748,6 +12777,7 @@ export const ChannelDescription = {
12748
12777
  : undefined;
12749
12778
  message.status = object.status ?? 0;
12750
12779
  message.meeting_code = object.meeting_code ?? "";
12780
+ message.count_mess_unread = object.count_mess_unread ?? 0;
12751
12781
  return message;
12752
12782
  },
12753
12783
  };
@@ -17268,6 +17298,148 @@ export const SearchMessageResponse = {
17268
17298
  },
17269
17299
  };
17270
17300
 
17301
+ function createBaseCreateWebhookRequest(): CreateWebhookRequest {
17302
+ return { hook_name: "", channel_id: "", clan_id: "" };
17303
+ }
17304
+
17305
+ export const CreateWebhookRequest = {
17306
+ encode(message: CreateWebhookRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
17307
+ if (message.hook_name !== "") {
17308
+ writer.uint32(10).string(message.hook_name);
17309
+ }
17310
+ if (message.channel_id !== "") {
17311
+ writer.uint32(18).string(message.channel_id);
17312
+ }
17313
+ if (message.clan_id !== "") {
17314
+ writer.uint32(26).string(message.clan_id);
17315
+ }
17316
+ return writer;
17317
+ },
17318
+
17319
+ decode(input: _m0.Reader | Uint8Array, length?: number): CreateWebhookRequest {
17320
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
17321
+ let end = length === undefined ? reader.len : reader.pos + length;
17322
+ const message = createBaseCreateWebhookRequest();
17323
+ while (reader.pos < end) {
17324
+ const tag = reader.uint32();
17325
+ switch (tag >>> 3) {
17326
+ case 1:
17327
+ message.hook_name = reader.string();
17328
+ break;
17329
+ case 2:
17330
+ message.channel_id = reader.string();
17331
+ break;
17332
+ case 3:
17333
+ message.clan_id = reader.string();
17334
+ break;
17335
+ default:
17336
+ reader.skipType(tag & 7);
17337
+ break;
17338
+ }
17339
+ }
17340
+ return message;
17341
+ },
17342
+
17343
+ fromJSON(object: any): CreateWebhookRequest {
17344
+ return {
17345
+ hook_name: isSet(object.hook_name) ? String(object.hook_name) : "",
17346
+ channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
17347
+ clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
17348
+ };
17349
+ },
17350
+
17351
+ toJSON(message: CreateWebhookRequest): unknown {
17352
+ const obj: any = {};
17353
+ message.hook_name !== undefined && (obj.hook_name = message.hook_name);
17354
+ message.channel_id !== undefined && (obj.channel_id = message.channel_id);
17355
+ message.clan_id !== undefined && (obj.clan_id = message.clan_id);
17356
+ return obj;
17357
+ },
17358
+
17359
+ create<I extends Exact<DeepPartial<CreateWebhookRequest>, I>>(base?: I): CreateWebhookRequest {
17360
+ return CreateWebhookRequest.fromPartial(base ?? {});
17361
+ },
17362
+
17363
+ fromPartial<I extends Exact<DeepPartial<CreateWebhookRequest>, I>>(object: I): CreateWebhookRequest {
17364
+ const message = createBaseCreateWebhookRequest();
17365
+ message.hook_name = object.hook_name ?? "";
17366
+ message.channel_id = object.channel_id ?? "";
17367
+ message.clan_id = object.clan_id ?? "";
17368
+ return message;
17369
+ },
17370
+ };
17371
+
17372
+ function createBaseWebhookResponse(): WebhookResponse {
17373
+ return { hook_name: "", channel_id: "", hook_url: "" };
17374
+ }
17375
+
17376
+ export const WebhookResponse = {
17377
+ encode(message: WebhookResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
17378
+ if (message.hook_name !== "") {
17379
+ writer.uint32(10).string(message.hook_name);
17380
+ }
17381
+ if (message.channel_id !== "") {
17382
+ writer.uint32(18).string(message.channel_id);
17383
+ }
17384
+ if (message.hook_url !== "") {
17385
+ writer.uint32(26).string(message.hook_url);
17386
+ }
17387
+ return writer;
17388
+ },
17389
+
17390
+ decode(input: _m0.Reader | Uint8Array, length?: number): WebhookResponse {
17391
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
17392
+ let end = length === undefined ? reader.len : reader.pos + length;
17393
+ const message = createBaseWebhookResponse();
17394
+ while (reader.pos < end) {
17395
+ const tag = reader.uint32();
17396
+ switch (tag >>> 3) {
17397
+ case 1:
17398
+ message.hook_name = reader.string();
17399
+ break;
17400
+ case 2:
17401
+ message.channel_id = reader.string();
17402
+ break;
17403
+ case 3:
17404
+ message.hook_url = reader.string();
17405
+ break;
17406
+ default:
17407
+ reader.skipType(tag & 7);
17408
+ break;
17409
+ }
17410
+ }
17411
+ return message;
17412
+ },
17413
+
17414
+ fromJSON(object: any): WebhookResponse {
17415
+ return {
17416
+ hook_name: isSet(object.hook_name) ? String(object.hook_name) : "",
17417
+ channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
17418
+ hook_url: isSet(object.hook_url) ? String(object.hook_url) : "",
17419
+ };
17420
+ },
17421
+
17422
+ toJSON(message: WebhookResponse): unknown {
17423
+ const obj: any = {};
17424
+ message.hook_name !== undefined && (obj.hook_name = message.hook_name);
17425
+ message.channel_id !== undefined && (obj.channel_id = message.channel_id);
17426
+ message.hook_url !== undefined && (obj.hook_url = message.hook_url);
17427
+ return obj;
17428
+ },
17429
+
17430
+ create<I extends Exact<DeepPartial<WebhookResponse>, I>>(base?: I): WebhookResponse {
17431
+ return WebhookResponse.fromPartial(base ?? {});
17432
+ },
17433
+
17434
+ fromPartial<I extends Exact<DeepPartial<WebhookResponse>, I>>(object: I): WebhookResponse {
17435
+ const message = createBaseWebhookResponse();
17436
+ message.hook_name = object.hook_name ?? "";
17437
+ message.channel_id = object.channel_id ?? "";
17438
+ message.hook_url = object.hook_url ?? "";
17439
+ return message;
17440
+ },
17441
+ };
17442
+
17271
17443
  declare var self: any | undefined;
17272
17444
  declare var window: any | undefined;
17273
17445
  declare var global: any | undefined;
@@ -1356,6 +1356,8 @@ export interface ChannelDescription {
1356
1356
  status: number;
1357
1357
  /** meeting code */
1358
1358
  meeting_code: string;
1359
+ /** count message unread */
1360
+ count_mess_unread: number;
1359
1361
  }
1360
1362
  /** A list of channel description, usually a result of a list operation. */
1361
1363
  export interface ChannelDescList {
@@ -1844,6 +1846,22 @@ export interface SearchMessageResponse {
1844
1846
  /** The total number of messages. */
1845
1847
  total: number;
1846
1848
  }
1849
+ export interface CreateWebhookRequest {
1850
+ /** Hook name */
1851
+ hook_name: string;
1852
+ /** Channel ID */
1853
+ channel_id: string;
1854
+ /** Clan ID */
1855
+ clan_id: string;
1856
+ }
1857
+ export interface WebhookResponse {
1858
+ /** Hook name */
1859
+ hook_name: string;
1860
+ /** Channel ID */
1861
+ channel_id: string;
1862
+ /** hook url */
1863
+ hook_url: string;
1864
+ }
1847
1865
  export declare const Account: {
1848
1866
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
1849
1867
  decode(input: _m0.Reader | Uint8Array, length?: number): Account;
@@ -9111,6 +9129,7 @@ export declare const ChannelDescription: {
9111
9129
  } | undefined;
9112
9130
  status?: number | undefined;
9113
9131
  meeting_code?: string | undefined;
9132
+ count_mess_unread?: number | undefined;
9114
9133
  } & {
9115
9134
  clan_id?: string | undefined;
9116
9135
  parrent_id?: string | undefined;
@@ -9147,6 +9166,7 @@ export declare const ChannelDescription: {
9147
9166
  } & { [K_3 in Exclude<keyof I["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
9148
9167
  status?: number | undefined;
9149
9168
  meeting_code?: string | undefined;
9169
+ count_mess_unread?: number | undefined;
9150
9170
  } & { [K_4 in Exclude<keyof I, keyof ChannelDescription>]: never; }>(base?: I | undefined): ChannelDescription;
9151
9171
  fromPartial<I_1 extends {
9152
9172
  clan_id?: string | undefined;
@@ -9174,6 +9194,7 @@ export declare const ChannelDescription: {
9174
9194
  } | undefined;
9175
9195
  status?: number | undefined;
9176
9196
  meeting_code?: string | undefined;
9197
+ count_mess_unread?: number | undefined;
9177
9198
  } & {
9178
9199
  clan_id?: string | undefined;
9179
9200
  parrent_id?: string | undefined;
@@ -9210,6 +9231,7 @@ export declare const ChannelDescription: {
9210
9231
  } & { [K_8 in Exclude<keyof I_1["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
9211
9232
  status?: number | undefined;
9212
9233
  meeting_code?: string | undefined;
9234
+ count_mess_unread?: number | undefined;
9213
9235
  } & { [K_9 in Exclude<keyof I_1, keyof ChannelDescription>]: never; }>(object: I_1): ChannelDescription;
9214
9236
  };
9215
9237
  export declare const ChannelDescList: {
@@ -9244,6 +9266,7 @@ export declare const ChannelDescList: {
9244
9266
  } | undefined;
9245
9267
  status?: number | undefined;
9246
9268
  meeting_code?: string | undefined;
9269
+ count_mess_unread?: number | undefined;
9247
9270
  }[] | undefined;
9248
9271
  next_cursor?: string | undefined;
9249
9272
  prev_cursor?: string | undefined;
@@ -9275,6 +9298,7 @@ export declare const ChannelDescList: {
9275
9298
  } | undefined;
9276
9299
  status?: number | undefined;
9277
9300
  meeting_code?: string | undefined;
9301
+ count_mess_unread?: number | undefined;
9278
9302
  }[] & ({
9279
9303
  clan_id?: string | undefined;
9280
9304
  parrent_id?: string | undefined;
@@ -9301,6 +9325,7 @@ export declare const ChannelDescList: {
9301
9325
  } | undefined;
9302
9326
  status?: number | undefined;
9303
9327
  meeting_code?: string | undefined;
9328
+ count_mess_unread?: number | undefined;
9304
9329
  } & {
9305
9330
  clan_id?: string | undefined;
9306
9331
  parrent_id?: string | undefined;
@@ -9337,6 +9362,7 @@ export declare const ChannelDescList: {
9337
9362
  } & { [K_3 in Exclude<keyof I["channeldesc"][number]["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
9338
9363
  status?: number | undefined;
9339
9364
  meeting_code?: string | undefined;
9365
+ count_mess_unread?: number | undefined;
9340
9366
  } & { [K_4 in Exclude<keyof I["channeldesc"][number], keyof ChannelDescription>]: never; })[] & { [K_5 in Exclude<keyof I["channeldesc"], keyof {
9341
9367
  clan_id?: string | undefined;
9342
9368
  parrent_id?: string | undefined;
@@ -9363,6 +9389,7 @@ export declare const ChannelDescList: {
9363
9389
  } | undefined;
9364
9390
  status?: number | undefined;
9365
9391
  meeting_code?: string | undefined;
9392
+ count_mess_unread?: number | undefined;
9366
9393
  }[]>]: never; }) | undefined;
9367
9394
  next_cursor?: string | undefined;
9368
9395
  prev_cursor?: string | undefined;
@@ -9395,6 +9422,7 @@ export declare const ChannelDescList: {
9395
9422
  } | undefined;
9396
9423
  status?: number | undefined;
9397
9424
  meeting_code?: string | undefined;
9425
+ count_mess_unread?: number | undefined;
9398
9426
  }[] | undefined;
9399
9427
  next_cursor?: string | undefined;
9400
9428
  prev_cursor?: string | undefined;
@@ -9426,6 +9454,7 @@ export declare const ChannelDescList: {
9426
9454
  } | undefined;
9427
9455
  status?: number | undefined;
9428
9456
  meeting_code?: string | undefined;
9457
+ count_mess_unread?: number | undefined;
9429
9458
  }[] & ({
9430
9459
  clan_id?: string | undefined;
9431
9460
  parrent_id?: string | undefined;
@@ -9452,6 +9481,7 @@ export declare const ChannelDescList: {
9452
9481
  } | undefined;
9453
9482
  status?: number | undefined;
9454
9483
  meeting_code?: string | undefined;
9484
+ count_mess_unread?: number | undefined;
9455
9485
  } & {
9456
9486
  clan_id?: string | undefined;
9457
9487
  parrent_id?: string | undefined;
@@ -9488,6 +9518,7 @@ export declare const ChannelDescList: {
9488
9518
  } & { [K_10 in Exclude<keyof I_1["channeldesc"][number]["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
9489
9519
  status?: number | undefined;
9490
9520
  meeting_code?: string | undefined;
9521
+ count_mess_unread?: number | undefined;
9491
9522
  } & { [K_11 in Exclude<keyof I_1["channeldesc"][number], keyof ChannelDescription>]: never; })[] & { [K_12 in Exclude<keyof I_1["channeldesc"], keyof {
9492
9523
  clan_id?: string | undefined;
9493
9524
  parrent_id?: string | undefined;
@@ -9514,6 +9545,7 @@ export declare const ChannelDescList: {
9514
9545
  } | undefined;
9515
9546
  status?: number | undefined;
9516
9547
  meeting_code?: string | undefined;
9548
+ count_mess_unread?: number | undefined;
9517
9549
  }[]>]: never; }) | undefined;
9518
9550
  next_cursor?: string | undefined;
9519
9551
  prev_cursor?: string | undefined;
@@ -12394,6 +12426,54 @@ export declare const SearchMessageResponse: {
12394
12426
  total?: number | undefined;
12395
12427
  } & { [K_5 in Exclude<keyof I_1, keyof SearchMessageResponse>]: never; }>(object: I_1): SearchMessageResponse;
12396
12428
  };
12429
+ export declare const CreateWebhookRequest: {
12430
+ encode(message: CreateWebhookRequest, writer?: _m0.Writer): _m0.Writer;
12431
+ decode(input: _m0.Reader | Uint8Array, length?: number): CreateWebhookRequest;
12432
+ fromJSON(object: any): CreateWebhookRequest;
12433
+ toJSON(message: CreateWebhookRequest): unknown;
12434
+ create<I extends {
12435
+ hook_name?: string | undefined;
12436
+ channel_id?: string | undefined;
12437
+ clan_id?: string | undefined;
12438
+ } & {
12439
+ hook_name?: string | undefined;
12440
+ channel_id?: string | undefined;
12441
+ clan_id?: string | undefined;
12442
+ } & { [K in Exclude<keyof I, keyof CreateWebhookRequest>]: never; }>(base?: I | undefined): CreateWebhookRequest;
12443
+ fromPartial<I_1 extends {
12444
+ hook_name?: string | undefined;
12445
+ channel_id?: string | undefined;
12446
+ clan_id?: string | undefined;
12447
+ } & {
12448
+ hook_name?: string | undefined;
12449
+ channel_id?: string | undefined;
12450
+ clan_id?: string | undefined;
12451
+ } & { [K_1 in Exclude<keyof I_1, keyof CreateWebhookRequest>]: never; }>(object: I_1): CreateWebhookRequest;
12452
+ };
12453
+ export declare const WebhookResponse: {
12454
+ encode(message: WebhookResponse, writer?: _m0.Writer): _m0.Writer;
12455
+ decode(input: _m0.Reader | Uint8Array, length?: number): WebhookResponse;
12456
+ fromJSON(object: any): WebhookResponse;
12457
+ toJSON(message: WebhookResponse): unknown;
12458
+ create<I extends {
12459
+ hook_name?: string | undefined;
12460
+ channel_id?: string | undefined;
12461
+ hook_url?: string | undefined;
12462
+ } & {
12463
+ hook_name?: string | undefined;
12464
+ channel_id?: string | undefined;
12465
+ hook_url?: string | undefined;
12466
+ } & { [K in Exclude<keyof I, keyof WebhookResponse>]: never; }>(base?: I | undefined): WebhookResponse;
12467
+ fromPartial<I_1 extends {
12468
+ hook_name?: string | undefined;
12469
+ channel_id?: string | undefined;
12470
+ hook_url?: string | undefined;
12471
+ } & {
12472
+ hook_name?: string | undefined;
12473
+ channel_id?: string | undefined;
12474
+ hook_url?: string | undefined;
12475
+ } & { [K_1 in Exclude<keyof I_1, keyof WebhookResponse>]: never; }>(object: I_1): WebhookResponse;
12476
+ };
12397
12477
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
12398
12478
  export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
12399
12479
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -679,9 +679,9 @@ export interface Stream {
679
679
  /** Mode identifies the type of stream. */
680
680
  mode: number;
681
681
  /** Subject is the primary identifier, if any. */
682
- subject: string;
682
+ channel_id: string;
683
683
  /** Subcontext is a secondary identifier, if any. */
684
- subcontext: string;
684
+ clan_id: string;
685
685
  /** The label is an arbitrary identifying string, if the stream has one. */
686
686
  label: string;
687
687
  }
@@ -918,8 +918,8 @@ export declare const Envelope: {
918
918
  stream_data?: {
919
919
  stream?: {
920
920
  mode?: number | undefined;
921
- subject?: string | undefined;
922
- subcontext?: string | undefined;
921
+ channel_id?: string | undefined;
922
+ clan_id?: string | undefined;
923
923
  label?: string | undefined;
924
924
  } | undefined;
925
925
  sender?: {
@@ -935,8 +935,8 @@ export declare const Envelope: {
935
935
  stream_presence_event?: {
936
936
  stream?: {
937
937
  mode?: number | undefined;
938
- subject?: string | undefined;
939
- subcontext?: string | undefined;
938
+ channel_id?: string | undefined;
939
+ clan_id?: string | undefined;
940
940
  label?: string | undefined;
941
941
  } | undefined;
942
942
  joins?: {
@@ -1733,8 +1733,8 @@ export declare const Envelope: {
1733
1733
  stream_data?: ({
1734
1734
  stream?: {
1735
1735
  mode?: number | undefined;
1736
- subject?: string | undefined;
1737
- subcontext?: string | undefined;
1736
+ channel_id?: string | undefined;
1737
+ clan_id?: string | undefined;
1738
1738
  label?: string | undefined;
1739
1739
  } | undefined;
1740
1740
  sender?: {
@@ -1749,13 +1749,13 @@ export declare const Envelope: {
1749
1749
  } & {
1750
1750
  stream?: ({
1751
1751
  mode?: number | undefined;
1752
- subject?: string | undefined;
1753
- subcontext?: string | undefined;
1752
+ channel_id?: string | undefined;
1753
+ clan_id?: string | undefined;
1754
1754
  label?: string | undefined;
1755
1755
  } & {
1756
1756
  mode?: number | undefined;
1757
- subject?: string | undefined;
1758
- subcontext?: string | undefined;
1757
+ channel_id?: string | undefined;
1758
+ clan_id?: string | undefined;
1759
1759
  label?: string | undefined;
1760
1760
  } & { [K_42 in Exclude<keyof I["stream_data"]["stream"], keyof Stream>]: never; }) | undefined;
1761
1761
  sender?: ({
@@ -1777,8 +1777,8 @@ export declare const Envelope: {
1777
1777
  stream_presence_event?: ({
1778
1778
  stream?: {
1779
1779
  mode?: number | undefined;
1780
- subject?: string | undefined;
1781
- subcontext?: string | undefined;
1780
+ channel_id?: string | undefined;
1781
+ clan_id?: string | undefined;
1782
1782
  label?: string | undefined;
1783
1783
  } | undefined;
1784
1784
  joins?: {
@@ -1798,13 +1798,13 @@ export declare const Envelope: {
1798
1798
  } & {
1799
1799
  stream?: ({
1800
1800
  mode?: number | undefined;
1801
- subject?: string | undefined;
1802
- subcontext?: string | undefined;
1801
+ channel_id?: string | undefined;
1802
+ clan_id?: string | undefined;
1803
1803
  label?: string | undefined;
1804
1804
  } & {
1805
1805
  mode?: number | undefined;
1806
- subject?: string | undefined;
1807
- subcontext?: string | undefined;
1806
+ channel_id?: string | undefined;
1807
+ clan_id?: string | undefined;
1808
1808
  label?: string | undefined;
1809
1809
  } & { [K_45 in Exclude<keyof I["stream_presence_event"]["stream"], keyof Stream>]: never; }) | undefined;
1810
1810
  joins?: ({
@@ -2558,8 +2558,8 @@ export declare const Envelope: {
2558
2558
  stream_data?: {
2559
2559
  stream?: {
2560
2560
  mode?: number | undefined;
2561
- subject?: string | undefined;
2562
- subcontext?: string | undefined;
2561
+ channel_id?: string | undefined;
2562
+ clan_id?: string | undefined;
2563
2563
  label?: string | undefined;
2564
2564
  } | undefined;
2565
2565
  sender?: {
@@ -2575,8 +2575,8 @@ export declare const Envelope: {
2575
2575
  stream_presence_event?: {
2576
2576
  stream?: {
2577
2577
  mode?: number | undefined;
2578
- subject?: string | undefined;
2579
- subcontext?: string | undefined;
2578
+ channel_id?: string | undefined;
2579
+ clan_id?: string | undefined;
2580
2580
  label?: string | undefined;
2581
2581
  } | undefined;
2582
2582
  joins?: {
@@ -3373,8 +3373,8 @@ export declare const Envelope: {
3373
3373
  stream_data?: ({
3374
3374
  stream?: {
3375
3375
  mode?: number | undefined;
3376
- subject?: string | undefined;
3377
- subcontext?: string | undefined;
3376
+ channel_id?: string | undefined;
3377
+ clan_id?: string | undefined;
3378
3378
  label?: string | undefined;
3379
3379
  } | undefined;
3380
3380
  sender?: {
@@ -3389,13 +3389,13 @@ export declare const Envelope: {
3389
3389
  } & {
3390
3390
  stream?: ({
3391
3391
  mode?: number | undefined;
3392
- subject?: string | undefined;
3393
- subcontext?: string | undefined;
3392
+ channel_id?: string | undefined;
3393
+ clan_id?: string | undefined;
3394
3394
  label?: string | undefined;
3395
3395
  } & {
3396
3396
  mode?: number | undefined;
3397
- subject?: string | undefined;
3398
- subcontext?: string | undefined;
3397
+ channel_id?: string | undefined;
3398
+ clan_id?: string | undefined;
3399
3399
  label?: string | undefined;
3400
3400
  } & { [K_135 in Exclude<keyof I_1["stream_data"]["stream"], keyof Stream>]: never; }) | undefined;
3401
3401
  sender?: ({
@@ -3417,8 +3417,8 @@ export declare const Envelope: {
3417
3417
  stream_presence_event?: ({
3418
3418
  stream?: {
3419
3419
  mode?: number | undefined;
3420
- subject?: string | undefined;
3421
- subcontext?: string | undefined;
3420
+ channel_id?: string | undefined;
3421
+ clan_id?: string | undefined;
3422
3422
  label?: string | undefined;
3423
3423
  } | undefined;
3424
3424
  joins?: {
@@ -3438,13 +3438,13 @@ export declare const Envelope: {
3438
3438
  } & {
3439
3439
  stream?: ({
3440
3440
  mode?: number | undefined;
3441
- subject?: string | undefined;
3442
- subcontext?: string | undefined;
3441
+ channel_id?: string | undefined;
3442
+ clan_id?: string | undefined;
3443
3443
  label?: string | undefined;
3444
3444
  } & {
3445
3445
  mode?: number | undefined;
3446
- subject?: string | undefined;
3447
- subcontext?: string | undefined;
3446
+ channel_id?: string | undefined;
3447
+ clan_id?: string | undefined;
3448
3448
  label?: string | undefined;
3449
3449
  } & { [K_138 in Exclude<keyof I_1["stream_presence_event"]["stream"], keyof Stream>]: never; }) | undefined;
3450
3450
  joins?: ({
@@ -6653,24 +6653,24 @@ export declare const Stream: {
6653
6653
  toJSON(message: Stream): unknown;
6654
6654
  create<I extends {
6655
6655
  mode?: number | undefined;
6656
- subject?: string | undefined;
6657
- subcontext?: string | undefined;
6656
+ channel_id?: string | undefined;
6657
+ clan_id?: string | undefined;
6658
6658
  label?: string | undefined;
6659
6659
  } & {
6660
6660
  mode?: number | undefined;
6661
- subject?: string | undefined;
6662
- subcontext?: string | undefined;
6661
+ channel_id?: string | undefined;
6662
+ clan_id?: string | undefined;
6663
6663
  label?: string | undefined;
6664
6664
  } & { [K in Exclude<keyof I, keyof Stream>]: never; }>(base?: I | undefined): Stream;
6665
6665
  fromPartial<I_1 extends {
6666
6666
  mode?: number | undefined;
6667
- subject?: string | undefined;
6668
- subcontext?: string | undefined;
6667
+ channel_id?: string | undefined;
6668
+ clan_id?: string | undefined;
6669
6669
  label?: string | undefined;
6670
6670
  } & {
6671
6671
  mode?: number | undefined;
6672
- subject?: string | undefined;
6673
- subcontext?: string | undefined;
6672
+ channel_id?: string | undefined;
6673
+ clan_id?: string | undefined;
6674
6674
  label?: string | undefined;
6675
6675
  } & { [K_1 in Exclude<keyof I_1, keyof Stream>]: never; }>(object: I_1): Stream;
6676
6676
  };
@@ -6682,8 +6682,8 @@ export declare const StreamData: {
6682
6682
  create<I extends {
6683
6683
  stream?: {
6684
6684
  mode?: number | undefined;
6685
- subject?: string | undefined;
6686
- subcontext?: string | undefined;
6685
+ channel_id?: string | undefined;
6686
+ clan_id?: string | undefined;
6687
6687
  label?: string | undefined;
6688
6688
  } | undefined;
6689
6689
  sender?: {
@@ -6698,13 +6698,13 @@ export declare const StreamData: {
6698
6698
  } & {
6699
6699
  stream?: ({
6700
6700
  mode?: number | undefined;
6701
- subject?: string | undefined;
6702
- subcontext?: string | undefined;
6701
+ channel_id?: string | undefined;
6702
+ clan_id?: string | undefined;
6703
6703
  label?: string | undefined;
6704
6704
  } & {
6705
6705
  mode?: number | undefined;
6706
- subject?: string | undefined;
6707
- subcontext?: string | undefined;
6706
+ channel_id?: string | undefined;
6707
+ clan_id?: string | undefined;
6708
6708
  label?: string | undefined;
6709
6709
  } & { [K in Exclude<keyof I["stream"], keyof Stream>]: never; }) | undefined;
6710
6710
  sender?: ({
@@ -6726,8 +6726,8 @@ export declare const StreamData: {
6726
6726
  fromPartial<I_1 extends {
6727
6727
  stream?: {
6728
6728
  mode?: number | undefined;
6729
- subject?: string | undefined;
6730
- subcontext?: string | undefined;
6729
+ channel_id?: string | undefined;
6730
+ clan_id?: string | undefined;
6731
6731
  label?: string | undefined;
6732
6732
  } | undefined;
6733
6733
  sender?: {
@@ -6742,13 +6742,13 @@ export declare const StreamData: {
6742
6742
  } & {
6743
6743
  stream?: ({
6744
6744
  mode?: number | undefined;
6745
- subject?: string | undefined;
6746
- subcontext?: string | undefined;
6745
+ channel_id?: string | undefined;
6746
+ clan_id?: string | undefined;
6747
6747
  label?: string | undefined;
6748
6748
  } & {
6749
6749
  mode?: number | undefined;
6750
- subject?: string | undefined;
6751
- subcontext?: string | undefined;
6750
+ channel_id?: string | undefined;
6751
+ clan_id?: string | undefined;
6752
6752
  label?: string | undefined;
6753
6753
  } & { [K_3 in Exclude<keyof I_1["stream"], keyof Stream>]: never; }) | undefined;
6754
6754
  sender?: ({
@@ -6776,8 +6776,8 @@ export declare const StreamPresenceEvent: {
6776
6776
  create<I extends {
6777
6777
  stream?: {
6778
6778
  mode?: number | undefined;
6779
- subject?: string | undefined;
6780
- subcontext?: string | undefined;
6779
+ channel_id?: string | undefined;
6780
+ clan_id?: string | undefined;
6781
6781
  label?: string | undefined;
6782
6782
  } | undefined;
6783
6783
  joins?: {
@@ -6797,13 +6797,13 @@ export declare const StreamPresenceEvent: {
6797
6797
  } & {
6798
6798
  stream?: ({
6799
6799
  mode?: number | undefined;
6800
- subject?: string | undefined;
6801
- subcontext?: string | undefined;
6800
+ channel_id?: string | undefined;
6801
+ clan_id?: string | undefined;
6802
6802
  label?: string | undefined;
6803
6803
  } & {
6804
6804
  mode?: number | undefined;
6805
- subject?: string | undefined;
6806
- subcontext?: string | undefined;
6805
+ channel_id?: string | undefined;
6806
+ clan_id?: string | undefined;
6807
6807
  label?: string | undefined;
6808
6808
  } & { [K in Exclude<keyof I["stream"], keyof Stream>]: never; }) | undefined;
6809
6809
  joins?: ({
@@ -6860,8 +6860,8 @@ export declare const StreamPresenceEvent: {
6860
6860
  fromPartial<I_1 extends {
6861
6861
  stream?: {
6862
6862
  mode?: number | undefined;
6863
- subject?: string | undefined;
6864
- subcontext?: string | undefined;
6863
+ channel_id?: string | undefined;
6864
+ clan_id?: string | undefined;
6865
6865
  label?: string | undefined;
6866
6866
  } | undefined;
6867
6867
  joins?: {
@@ -6881,13 +6881,13 @@ export declare const StreamPresenceEvent: {
6881
6881
  } & {
6882
6882
  stream?: ({
6883
6883
  mode?: number | undefined;
6884
- subject?: string | undefined;
6885
- subcontext?: string | undefined;
6884
+ channel_id?: string | undefined;
6885
+ clan_id?: string | undefined;
6886
6886
  label?: string | undefined;
6887
6887
  } & {
6888
6888
  mode?: number | undefined;
6889
- subject?: string | undefined;
6890
- subcontext?: string | undefined;
6889
+ channel_id?: string | undefined;
6890
+ clan_id?: string | undefined;
6891
6891
  label?: string | undefined;
6892
6892
  } & { [K_6 in Exclude<keyof I_1["stream"], keyof Stream>]: never; }) | undefined;
6893
6893
  joins?: ({
@@ -6869,18 +6869,18 @@ var StatusUpdate = {
6869
6869
  }
6870
6870
  };
6871
6871
  function createBaseStream() {
6872
- return { mode: 0, subject: "", subcontext: "", label: "" };
6872
+ return { mode: 0, channel_id: "", clan_id: "", label: "" };
6873
6873
  }
6874
6874
  var Stream = {
6875
6875
  encode(message, writer = import_minimal4.default.Writer.create()) {
6876
6876
  if (message.mode !== 0) {
6877
6877
  writer.uint32(8).int32(message.mode);
6878
6878
  }
6879
- if (message.subject !== "") {
6880
- writer.uint32(18).string(message.subject);
6879
+ if (message.channel_id !== "") {
6880
+ writer.uint32(18).string(message.channel_id);
6881
6881
  }
6882
- if (message.subcontext !== "") {
6883
- writer.uint32(26).string(message.subcontext);
6882
+ if (message.clan_id !== "") {
6883
+ writer.uint32(26).string(message.clan_id);
6884
6884
  }
6885
6885
  if (message.label !== "") {
6886
6886
  writer.uint32(34).string(message.label);
@@ -6898,10 +6898,10 @@ var Stream = {
6898
6898
  message.mode = reader.int32();
6899
6899
  break;
6900
6900
  case 2:
6901
- message.subject = reader.string();
6901
+ message.channel_id = reader.string();
6902
6902
  break;
6903
6903
  case 3:
6904
- message.subcontext = reader.string();
6904
+ message.clan_id = reader.string();
6905
6905
  break;
6906
6906
  case 4:
6907
6907
  message.label = reader.string();
@@ -6916,16 +6916,16 @@ var Stream = {
6916
6916
  fromJSON(object) {
6917
6917
  return {
6918
6918
  mode: isSet4(object.mode) ? Number(object.mode) : 0,
6919
- subject: isSet4(object.subject) ? String(object.subject) : "",
6920
- subcontext: isSet4(object.subcontext) ? String(object.subcontext) : "",
6919
+ channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
6920
+ clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
6921
6921
  label: isSet4(object.label) ? String(object.label) : ""
6922
6922
  };
6923
6923
  },
6924
6924
  toJSON(message) {
6925
6925
  const obj = {};
6926
6926
  message.mode !== void 0 && (obj.mode = Math.round(message.mode));
6927
- message.subject !== void 0 && (obj.subject = message.subject);
6928
- message.subcontext !== void 0 && (obj.subcontext = message.subcontext);
6927
+ message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
6928
+ message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
6929
6929
  message.label !== void 0 && (obj.label = message.label);
6930
6930
  return obj;
6931
6931
  },
@@ -6936,8 +6936,8 @@ var Stream = {
6936
6936
  var _a, _b, _c, _d;
6937
6937
  const message = createBaseStream();
6938
6938
  message.mode = (_a = object.mode) != null ? _a : 0;
6939
- message.subject = (_b = object.subject) != null ? _b : "";
6940
- message.subcontext = (_c = object.subcontext) != null ? _c : "";
6939
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
6940
+ message.clan_id = (_c = object.clan_id) != null ? _c : "";
6941
6941
  message.label = (_d = object.label) != null ? _d : "";
6942
6942
  return message;
6943
6943
  }
@@ -6856,18 +6856,18 @@ var StatusUpdate = {
6856
6856
  }
6857
6857
  };
6858
6858
  function createBaseStream() {
6859
- return { mode: 0, subject: "", subcontext: "", label: "" };
6859
+ return { mode: 0, channel_id: "", clan_id: "", label: "" };
6860
6860
  }
6861
6861
  var Stream = {
6862
6862
  encode(message, writer = import_minimal4.default.Writer.create()) {
6863
6863
  if (message.mode !== 0) {
6864
6864
  writer.uint32(8).int32(message.mode);
6865
6865
  }
6866
- if (message.subject !== "") {
6867
- writer.uint32(18).string(message.subject);
6866
+ if (message.channel_id !== "") {
6867
+ writer.uint32(18).string(message.channel_id);
6868
6868
  }
6869
- if (message.subcontext !== "") {
6870
- writer.uint32(26).string(message.subcontext);
6869
+ if (message.clan_id !== "") {
6870
+ writer.uint32(26).string(message.clan_id);
6871
6871
  }
6872
6872
  if (message.label !== "") {
6873
6873
  writer.uint32(34).string(message.label);
@@ -6885,10 +6885,10 @@ var Stream = {
6885
6885
  message.mode = reader.int32();
6886
6886
  break;
6887
6887
  case 2:
6888
- message.subject = reader.string();
6888
+ message.channel_id = reader.string();
6889
6889
  break;
6890
6890
  case 3:
6891
- message.subcontext = reader.string();
6891
+ message.clan_id = reader.string();
6892
6892
  break;
6893
6893
  case 4:
6894
6894
  message.label = reader.string();
@@ -6903,16 +6903,16 @@ var Stream = {
6903
6903
  fromJSON(object) {
6904
6904
  return {
6905
6905
  mode: isSet4(object.mode) ? Number(object.mode) : 0,
6906
- subject: isSet4(object.subject) ? String(object.subject) : "",
6907
- subcontext: isSet4(object.subcontext) ? String(object.subcontext) : "",
6906
+ channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
6907
+ clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
6908
6908
  label: isSet4(object.label) ? String(object.label) : ""
6909
6909
  };
6910
6910
  },
6911
6911
  toJSON(message) {
6912
6912
  const obj = {};
6913
6913
  message.mode !== void 0 && (obj.mode = Math.round(message.mode));
6914
- message.subject !== void 0 && (obj.subject = message.subject);
6915
- message.subcontext !== void 0 && (obj.subcontext = message.subcontext);
6914
+ message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
6915
+ message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
6916
6916
  message.label !== void 0 && (obj.label = message.label);
6917
6917
  return obj;
6918
6918
  },
@@ -6923,8 +6923,8 @@ var Stream = {
6923
6923
  var _a, _b, _c, _d;
6924
6924
  const message = createBaseStream();
6925
6925
  message.mode = (_a = object.mode) != null ? _a : 0;
6926
- message.subject = (_b = object.subject) != null ? _b : "";
6927
- message.subcontext = (_c = object.subcontext) != null ? _c : "";
6926
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
6927
+ message.clan_id = (_c = object.clan_id) != null ? _c : "";
6928
6928
  message.label = (_d = object.label) != null ? _d : "";
6929
6929
  return message;
6930
6930
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.4.33",
3
+ "version": "1.4.35",
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
@@ -901,9 +901,9 @@ export interface Stream {
901
901
  /** Mode identifies the type of stream. */
902
902
  mode: number;
903
903
  /** Subject is the primary identifier, if any. */
904
- subject: string;
904
+ channel_id: string;
905
905
  /** Subcontext is a secondary identifier, if any. */
906
- subcontext: string;
906
+ clan_id: string;
907
907
  /** The label is an arbitrary identifying string, if the stream has one. */
908
908
  label: string;
909
909
  }
@@ -5983,7 +5983,7 @@ export const StatusUpdate = {
5983
5983
  };
5984
5984
 
5985
5985
  function createBaseStream(): Stream {
5986
- return { mode: 0, subject: "", subcontext: "", label: "" };
5986
+ return { mode: 0, channel_id: "", clan_id: "", label: "" };
5987
5987
  }
5988
5988
 
5989
5989
  export const Stream = {
@@ -5991,11 +5991,11 @@ export const Stream = {
5991
5991
  if (message.mode !== 0) {
5992
5992
  writer.uint32(8).int32(message.mode);
5993
5993
  }
5994
- if (message.subject !== "") {
5995
- writer.uint32(18).string(message.subject);
5994
+ if (message.channel_id !== "") {
5995
+ writer.uint32(18).string(message.channel_id);
5996
5996
  }
5997
- if (message.subcontext !== "") {
5998
- writer.uint32(26).string(message.subcontext);
5997
+ if (message.clan_id !== "") {
5998
+ writer.uint32(26).string(message.clan_id);
5999
5999
  }
6000
6000
  if (message.label !== "") {
6001
6001
  writer.uint32(34).string(message.label);
@@ -6014,10 +6014,10 @@ export const Stream = {
6014
6014
  message.mode = reader.int32();
6015
6015
  break;
6016
6016
  case 2:
6017
- message.subject = reader.string();
6017
+ message.channel_id = reader.string();
6018
6018
  break;
6019
6019
  case 3:
6020
- message.subcontext = reader.string();
6020
+ message.clan_id = reader.string();
6021
6021
  break;
6022
6022
  case 4:
6023
6023
  message.label = reader.string();
@@ -6033,8 +6033,8 @@ export const Stream = {
6033
6033
  fromJSON(object: any): Stream {
6034
6034
  return {
6035
6035
  mode: isSet(object.mode) ? Number(object.mode) : 0,
6036
- subject: isSet(object.subject) ? String(object.subject) : "",
6037
- subcontext: isSet(object.subcontext) ? String(object.subcontext) : "",
6036
+ channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
6037
+ clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
6038
6038
  label: isSet(object.label) ? String(object.label) : "",
6039
6039
  };
6040
6040
  },
@@ -6042,8 +6042,8 @@ export const Stream = {
6042
6042
  toJSON(message: Stream): unknown {
6043
6043
  const obj: any = {};
6044
6044
  message.mode !== undefined && (obj.mode = Math.round(message.mode));
6045
- message.subject !== undefined && (obj.subject = message.subject);
6046
- message.subcontext !== undefined && (obj.subcontext = message.subcontext);
6045
+ message.channel_id !== undefined && (obj.channel_id = message.channel_id);
6046
+ message.clan_id !== undefined && (obj.clan_id = message.clan_id);
6047
6047
  message.label !== undefined && (obj.label = message.label);
6048
6048
  return obj;
6049
6049
  },
@@ -6055,8 +6055,8 @@ export const Stream = {
6055
6055
  fromPartial<I extends Exact<DeepPartial<Stream>, I>>(object: I): Stream {
6056
6056
  const message = createBaseStream();
6057
6057
  message.mode = object.mode ?? 0;
6058
- message.subject = object.subject ?? "";
6059
- message.subcontext = object.subcontext ?? "";
6058
+ message.channel_id = object.channel_id ?? "";
6059
+ message.clan_id = object.clan_id ?? "";
6060
6060
  message.label = object.label ?? "";
6061
6061
  return message;
6062
6062
  },