mezon-sdk 2.8.0 → 2.8.11

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.
Files changed (51) hide show
  1. package/dist/cjs/api/api.d.ts +16 -97
  2. package/dist/cjs/api/api.js +17 -193
  3. package/dist/cjs/api/api.js.map +1 -1
  4. package/dist/cjs/api.d.ts +5 -1
  5. package/dist/cjs/api.js +55 -0
  6. package/dist/cjs/api.js.map +1 -1
  7. package/dist/cjs/constants/enum.d.ts +7 -3
  8. package/dist/cjs/constants/enum.js +4 -0
  9. package/dist/cjs/constants/enum.js.map +1 -1
  10. package/dist/cjs/interfaces/socket.d.ts +42 -0
  11. package/dist/cjs/mezon-client/client/MezonClient.d.ts +2 -1
  12. package/dist/cjs/mezon-client/client/MezonClient.js +5 -1
  13. package/dist/cjs/mezon-client/client/MezonClient.js.map +1 -1
  14. package/dist/cjs/mezon-client/manager/socket_manager.js +1 -1
  15. package/dist/cjs/mezon-client/structures/Clan.d.ts +1 -0
  16. package/dist/cjs/mezon-client/structures/Clan.js +3 -0
  17. package/dist/cjs/mezon-client/structures/Clan.js.map +1 -1
  18. package/dist/cjs/mezon-client/structures/TextChannel.d.ts +3 -1
  19. package/dist/cjs/mezon-client/structures/TextChannel.js +30 -0
  20. package/dist/cjs/mezon-client/structures/TextChannel.js.map +1 -1
  21. package/dist/cjs/rtapi/realtime.d.ts +26 -0
  22. package/dist/cjs/utils/helper.d.ts +2 -1
  23. package/dist/cjs/utils/helper.js +22 -1
  24. package/dist/cjs/utils/helper.js.map +1 -1
  25. package/dist/esm/api/api.d.ts +16 -97
  26. package/dist/esm/api/api.js +15 -187
  27. package/dist/esm/api/api.js.map +1 -1
  28. package/dist/esm/api.d.ts +5 -1
  29. package/dist/esm/api.js +55 -0
  30. package/dist/esm/api.js.map +1 -1
  31. package/dist/esm/constants/enum.d.ts +7 -3
  32. package/dist/esm/constants/enum.js +4 -0
  33. package/dist/esm/constants/enum.js.map +1 -1
  34. package/dist/esm/interfaces/socket.d.ts +42 -0
  35. package/dist/esm/mezon-client/client/MezonClient.d.ts +2 -1
  36. package/dist/esm/mezon-client/client/MezonClient.js +5 -1
  37. package/dist/esm/mezon-client/client/MezonClient.js.map +1 -1
  38. package/dist/esm/mezon-client/manager/socket_manager.js +1 -1
  39. package/dist/esm/mezon-client/structures/Clan.d.ts +1 -0
  40. package/dist/esm/mezon-client/structures/Clan.js +3 -0
  41. package/dist/esm/mezon-client/structures/Clan.js.map +1 -1
  42. package/dist/esm/mezon-client/structures/TextChannel.d.ts +3 -1
  43. package/dist/esm/mezon-client/structures/TextChannel.js +30 -1
  44. package/dist/esm/mezon-client/structures/TextChannel.js.map +1 -1
  45. package/dist/esm/rtapi/realtime.d.ts +26 -0
  46. package/dist/esm/utils/helper.d.ts +2 -1
  47. package/dist/esm/utils/helper.js +20 -0
  48. package/dist/esm/utils/helper.js.map +1 -1
  49. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  50. package/dist/tsconfig.tsbuildinfo +1 -1
  51. package/package.json +1 -1
@@ -2543,6 +2543,7 @@ export declare const Envelope: {
2543
2543
  clan_nick?: string | undefined;
2544
2544
  clan_avatar?: string | undefined;
2545
2545
  clan_id?: string | undefined;
2546
+ added_by?: string | undefined;
2546
2547
  }[] | undefined;
2547
2548
  cursor?: string | undefined;
2548
2549
  channel_id?: string | undefined;
@@ -6706,6 +6707,7 @@ export declare const Envelope: {
6706
6707
  clan_nick?: string | undefined;
6707
6708
  clan_avatar?: string | undefined;
6708
6709
  clan_id?: string | undefined;
6710
+ added_by?: string | undefined;
6709
6711
  }[] | undefined;
6710
6712
  cursor?: string | undefined;
6711
6713
  channel_id?: string | undefined;
@@ -8135,6 +8137,7 @@ export declare const Envelope: {
8135
8137
  clan_nick?: string | undefined;
8136
8138
  clan_avatar?: string | undefined;
8137
8139
  clan_id?: string | undefined;
8140
+ added_by?: string | undefined;
8138
8141
  }[] | undefined;
8139
8142
  cursor?: string | undefined;
8140
8143
  channel_id?: string | undefined;
@@ -8147,6 +8150,7 @@ export declare const Envelope: {
8147
8150
  clan_nick?: string | undefined;
8148
8151
  clan_avatar?: string | undefined;
8149
8152
  clan_id?: string | undefined;
8153
+ added_by?: string | undefined;
8150
8154
  }[] & ({
8151
8155
  user_id?: string | undefined;
8152
8156
  role_id?: string[] | undefined;
@@ -8155,6 +8159,7 @@ export declare const Envelope: {
8155
8159
  clan_nick?: string | undefined;
8156
8160
  clan_avatar?: string | undefined;
8157
8161
  clan_id?: string | undefined;
8162
+ added_by?: string | undefined;
8158
8163
  } & {
8159
8164
  user_id?: string | undefined;
8160
8165
  role_id?: (string[] & string[] & { [K_242 in Exclude<keyof I["list_data_socket"]["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -8163,6 +8168,7 @@ export declare const Envelope: {
8163
8168
  clan_nick?: string | undefined;
8164
8169
  clan_avatar?: string | undefined;
8165
8170
  clan_id?: string | undefined;
8171
+ added_by?: string | undefined;
8166
8172
  } & { [K_243 in Exclude<keyof I["list_data_socket"]["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_244 in Exclude<keyof I["list_data_socket"]["channel_user_list"]["channel_users"], keyof {
8167
8173
  user_id?: string | undefined;
8168
8174
  role_id?: string[] | undefined;
@@ -8171,6 +8177,7 @@ export declare const Envelope: {
8171
8177
  clan_nick?: string | undefined;
8172
8178
  clan_avatar?: string | undefined;
8173
8179
  clan_id?: string | undefined;
8180
+ added_by?: string | undefined;
8174
8181
  }[]>]: never; }) | undefined;
8175
8182
  cursor?: string | undefined;
8176
8183
  channel_id?: string | undefined;
@@ -12347,6 +12354,7 @@ export declare const Envelope: {
12347
12354
  clan_nick?: string | undefined;
12348
12355
  clan_avatar?: string | undefined;
12349
12356
  clan_id?: string | undefined;
12357
+ added_by?: string | undefined;
12350
12358
  }[] | undefined;
12351
12359
  cursor?: string | undefined;
12352
12360
  channel_id?: string | undefined;
@@ -16510,6 +16518,7 @@ export declare const Envelope: {
16510
16518
  clan_nick?: string | undefined;
16511
16519
  clan_avatar?: string | undefined;
16512
16520
  clan_id?: string | undefined;
16521
+ added_by?: string | undefined;
16513
16522
  }[] | undefined;
16514
16523
  cursor?: string | undefined;
16515
16524
  channel_id?: string | undefined;
@@ -17939,6 +17948,7 @@ export declare const Envelope: {
17939
17948
  clan_nick?: string | undefined;
17940
17949
  clan_avatar?: string | undefined;
17941
17950
  clan_id?: string | undefined;
17951
+ added_by?: string | undefined;
17942
17952
  }[] | undefined;
17943
17953
  cursor?: string | undefined;
17944
17954
  channel_id?: string | undefined;
@@ -17951,6 +17961,7 @@ export declare const Envelope: {
17951
17961
  clan_nick?: string | undefined;
17952
17962
  clan_avatar?: string | undefined;
17953
17963
  clan_id?: string | undefined;
17964
+ added_by?: string | undefined;
17954
17965
  }[] & ({
17955
17966
  user_id?: string | undefined;
17956
17967
  role_id?: string[] | undefined;
@@ -17959,6 +17970,7 @@ export declare const Envelope: {
17959
17970
  clan_nick?: string | undefined;
17960
17971
  clan_avatar?: string | undefined;
17961
17972
  clan_id?: string | undefined;
17973
+ added_by?: string | undefined;
17962
17974
  } & {
17963
17975
  user_id?: string | undefined;
17964
17976
  role_id?: (string[] & string[] & { [K_633 in Exclude<keyof I_1["list_data_socket"]["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -17967,6 +17979,7 @@ export declare const Envelope: {
17967
17979
  clan_nick?: string | undefined;
17968
17980
  clan_avatar?: string | undefined;
17969
17981
  clan_id?: string | undefined;
17982
+ added_by?: string | undefined;
17970
17983
  } & { [K_634 in Exclude<keyof I_1["list_data_socket"]["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_635 in Exclude<keyof I_1["list_data_socket"]["channel_user_list"]["channel_users"], keyof {
17971
17984
  user_id?: string | undefined;
17972
17985
  role_id?: string[] | undefined;
@@ -17975,6 +17988,7 @@ export declare const Envelope: {
17975
17988
  clan_nick?: string | undefined;
17976
17989
  clan_avatar?: string | undefined;
17977
17990
  clan_id?: string | undefined;
17991
+ added_by?: string | undefined;
17978
17992
  }[]>]: never; }) | undefined;
17979
17993
  cursor?: string | undefined;
17980
17994
  channel_id?: string | undefined;
@@ -28552,6 +28566,7 @@ export declare const ListDataSocket: {
28552
28566
  clan_nick?: string | undefined;
28553
28567
  clan_avatar?: string | undefined;
28554
28568
  clan_id?: string | undefined;
28569
+ added_by?: string | undefined;
28555
28570
  }[] | undefined;
28556
28571
  cursor?: string | undefined;
28557
28572
  channel_id?: string | undefined;
@@ -29981,6 +29996,7 @@ export declare const ListDataSocket: {
29981
29996
  clan_nick?: string | undefined;
29982
29997
  clan_avatar?: string | undefined;
29983
29998
  clan_id?: string | undefined;
29999
+ added_by?: string | undefined;
29984
30000
  }[] | undefined;
29985
30001
  cursor?: string | undefined;
29986
30002
  channel_id?: string | undefined;
@@ -29993,6 +30009,7 @@ export declare const ListDataSocket: {
29993
30009
  clan_nick?: string | undefined;
29994
30010
  clan_avatar?: string | undefined;
29995
30011
  clan_id?: string | undefined;
30012
+ added_by?: string | undefined;
29996
30013
  }[] & ({
29997
30014
  user_id?: string | undefined;
29998
30015
  role_id?: string[] | undefined;
@@ -30001,6 +30018,7 @@ export declare const ListDataSocket: {
30001
30018
  clan_nick?: string | undefined;
30002
30019
  clan_avatar?: string | undefined;
30003
30020
  clan_id?: string | undefined;
30021
+ added_by?: string | undefined;
30004
30022
  } & {
30005
30023
  user_id?: string | undefined;
30006
30024
  role_id?: (string[] & string[] & { [K_48 in Exclude<keyof I["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -30009,6 +30027,7 @@ export declare const ListDataSocket: {
30009
30027
  clan_nick?: string | undefined;
30010
30028
  clan_avatar?: string | undefined;
30011
30029
  clan_id?: string | undefined;
30030
+ added_by?: string | undefined;
30012
30031
  } & { [K_49 in Exclude<keyof I["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_50 in Exclude<keyof I["channel_user_list"]["channel_users"], keyof {
30013
30032
  user_id?: string | undefined;
30014
30033
  role_id?: string[] | undefined;
@@ -30017,6 +30036,7 @@ export declare const ListDataSocket: {
30017
30036
  clan_nick?: string | undefined;
30018
30037
  clan_avatar?: string | undefined;
30019
30038
  clan_id?: string | undefined;
30039
+ added_by?: string | undefined;
30020
30040
  }[]>]: never; }) | undefined;
30021
30041
  cursor?: string | undefined;
30022
30042
  channel_id?: string | undefined;
@@ -32906,6 +32926,7 @@ export declare const ListDataSocket: {
32906
32926
  clan_nick?: string | undefined;
32907
32927
  clan_avatar?: string | undefined;
32908
32928
  clan_id?: string | undefined;
32929
+ added_by?: string | undefined;
32909
32930
  }[] | undefined;
32910
32931
  cursor?: string | undefined;
32911
32932
  channel_id?: string | undefined;
@@ -34335,6 +34356,7 @@ export declare const ListDataSocket: {
34335
34356
  clan_nick?: string | undefined;
34336
34357
  clan_avatar?: string | undefined;
34337
34358
  clan_id?: string | undefined;
34359
+ added_by?: string | undefined;
34338
34360
  }[] | undefined;
34339
34361
  cursor?: string | undefined;
34340
34362
  channel_id?: string | undefined;
@@ -34347,6 +34369,7 @@ export declare const ListDataSocket: {
34347
34369
  clan_nick?: string | undefined;
34348
34370
  clan_avatar?: string | undefined;
34349
34371
  clan_id?: string | undefined;
34372
+ added_by?: string | undefined;
34350
34373
  }[] & ({
34351
34374
  user_id?: string | undefined;
34352
34375
  role_id?: string[] | undefined;
@@ -34355,6 +34378,7 @@ export declare const ListDataSocket: {
34355
34378
  clan_nick?: string | undefined;
34356
34379
  clan_avatar?: string | undefined;
34357
34380
  clan_id?: string | undefined;
34381
+ added_by?: string | undefined;
34358
34382
  } & {
34359
34383
  user_id?: string | undefined;
34360
34384
  role_id?: (string[] & string[] & { [K_236 in Exclude<keyof I_1["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -34363,6 +34387,7 @@ export declare const ListDataSocket: {
34363
34387
  clan_nick?: string | undefined;
34364
34388
  clan_avatar?: string | undefined;
34365
34389
  clan_id?: string | undefined;
34390
+ added_by?: string | undefined;
34366
34391
  } & { [K_237 in Exclude<keyof I_1["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_238 in Exclude<keyof I_1["channel_user_list"]["channel_users"], keyof {
34367
34392
  user_id?: string | undefined;
34368
34393
  role_id?: string[] | undefined;
@@ -34371,6 +34396,7 @@ export declare const ListDataSocket: {
34371
34396
  clan_nick?: string | undefined;
34372
34397
  clan_avatar?: string | undefined;
34373
34398
  clan_id?: string | undefined;
34399
+ added_by?: string | undefined;
34374
34400
  }[]>]: never; }) | undefined;
34375
34401
  cursor?: string | undefined;
34376
34402
  channel_id?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  import { ChannelStreamMode, InternalEventsSocket } from "../constants";
2
2
  export declare function convertInternalEventToEvents(input: InternalEventsSocket): string;
3
- export declare function convertChanneltypeToChannelMode(channelType: string | number): 0 | ChannelStreamMode.STREAM_MODE_CHANNEL | ChannelStreamMode.STREAM_MODE_GROUP | ChannelStreamMode.STREAM_MODE_DM | ChannelStreamMode.STREAM_MODE_THREAD;
3
+ export declare function convertChanneltypeToChannelMode(channelType: string | number): ChannelStreamMode.STREAM_MODE_CHANNEL | ChannelStreamMode.STREAM_MODE_GROUP | ChannelStreamMode.STREAM_MODE_DM | ChannelStreamMode.STREAM_MODE_THREAD | 0;
4
4
  export declare function isValidUserId(userId: string | number): boolean;
5
5
  export declare function sleep(ms: number): Promise<unknown>;
6
6
  export declare function parseUrlToHostAndSSL(urlStr: string): {
@@ -8,3 +8,4 @@ export declare function parseUrlToHostAndSSL(urlStr: string): {
8
8
  port: string;
9
9
  useSSL: boolean;
10
10
  };
11
+ export declare function generateSnowflakeId(): string;
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseUrlToHostAndSSL = exports.sleep = exports.isValidUserId = exports.convertChanneltypeToChannelMode = exports.convertInternalEventToEvents = void 0;
3
+ exports.generateSnowflakeId = exports.parseUrlToHostAndSSL = exports.sleep = exports.isValidUserId = exports.convertChanneltypeToChannelMode = exports.convertInternalEventToEvents = void 0;
4
4
  const constants_1 = require("../constants");
5
+ let sequence = BigInt("0");
6
+ let lastTimestamp = BigInt("0");
5
7
  function convertInternalEventToEvents(input) {
6
8
  return input.replace(/_event/g, "").replace(/_/g, "");
7
9
  }
@@ -41,4 +43,23 @@ function parseUrlToHostAndSSL(urlStr) {
41
43
  };
42
44
  }
43
45
  exports.parseUrlToHostAndSSL = parseUrlToHostAndSSL;
46
+ function generateSnowflakeId() {
47
+ const epoch = BigInt("1577836800000");
48
+ const timestamp = BigInt(Date.now().toString());
49
+ if (timestamp === lastTimestamp) {
50
+ sequence = sequence + BigInt("1");
51
+ }
52
+ else {
53
+ sequence = BigInt("0");
54
+ lastTimestamp = timestamp;
55
+ }
56
+ const workerId = BigInt("1");
57
+ const dataCenterId = BigInt("1");
58
+ const snowflakeId = ((timestamp - epoch) << BigInt("22")) |
59
+ (dataCenterId << BigInt("17")) |
60
+ (workerId << BigInt("12")) |
61
+ sequence;
62
+ return snowflakeId.toString();
63
+ }
64
+ exports.generateSnowflakeId = generateSnowflakeId;
44
65
  //# sourceMappingURL=helper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/utils/helper.ts"],"names":[],"mappings":";;;AAAA,4CAIsB;AAEtB,SAAgB,4BAA4B,CAC1C,KAA2B;IAE3B,OAAO,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AACxD,CAAC;AAJD,oEAIC;AAED,SAAgB,+BAA+B,CAAC,WAA4B;IAC1E,QAAQ,MAAM,CAAC,WAAW,CAAC,EAAE;QAC3B,KAAK,uBAAW,CAAC,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AAC;IAC5B,OAAO;QACL,IAAI,EAAE,GAAG,CAAC,QAAQ;QAClB,IAAI,EAAE,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QAC5D,MAAM,EAAE,GAAG,CAAC,QAAQ,KAAK,QAAQ;KAClC,CAAC;AACJ,CAAC;AAXD,oDAWC;AAED,SAAgB,mBAAmB;IACjC,MAAM,KAAK,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;IACtC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IAEhD,IAAI,SAAS,KAAK,aAAa,EAAE;QAC/B,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;KACnC;SAAM;QACL,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QACvB,aAAa,GAAG,SAAS,CAAC;KAC3B;IAED,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC7B,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAEjC,MAAM,WAAW,GACf,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;QACrC,CAAC,YAAY,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;QAC1B,QAAQ,CAAC;IAEX,OAAO,WAAW,CAAC,QAAQ,EAAE,CAAC;AAChC,CAAC;AArBD,kDAqBC"}
@@ -511,6 +511,8 @@ export interface ChannelUserList_ChannelUser {
511
511
  clan_avatar: string;
512
512
  /** clan Id */
513
513
  clan_id: string;
514
+ /** added by */
515
+ added_by: string;
514
516
  }
515
517
  /** A list of users belonging to a channel, along with their role. */
516
518
  export interface VoiceChannelUser {
@@ -3108,17 +3110,6 @@ export interface ForSaleItem {
3108
3110
  export interface ForSaleItemList {
3109
3111
  for_sale_items: ForSaleItem[];
3110
3112
  }
3111
- export interface ListChannelMemberRequest {
3112
- channel_id: string;
3113
- clan_id: string;
3114
- }
3115
- export interface ChannelMemberDetail {
3116
- member_id: string;
3117
- added_by: string;
3118
- }
3119
- export interface ChannelMemberList {
3120
- channel_members: ChannelMemberDetail[];
3121
- }
3122
3113
  export declare const Account: {
3123
3114
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
3124
3115
  decode(input: _m0.Reader | Uint8Array, length?: number): Account;
@@ -6167,6 +6158,7 @@ export declare const ChannelUserList: {
6167
6158
  clan_nick?: string | undefined;
6168
6159
  clan_avatar?: string | undefined;
6169
6160
  clan_id?: string | undefined;
6161
+ added_by?: string | undefined;
6170
6162
  }[] | undefined;
6171
6163
  cursor?: string | undefined;
6172
6164
  channel_id?: string | undefined;
@@ -6179,6 +6171,7 @@ export declare const ChannelUserList: {
6179
6171
  clan_nick?: string | undefined;
6180
6172
  clan_avatar?: string | undefined;
6181
6173
  clan_id?: string | undefined;
6174
+ added_by?: string | undefined;
6182
6175
  }[] & ({
6183
6176
  user_id?: string | undefined;
6184
6177
  role_id?: string[] | undefined;
@@ -6187,6 +6180,7 @@ export declare const ChannelUserList: {
6187
6180
  clan_nick?: string | undefined;
6188
6181
  clan_avatar?: string | undefined;
6189
6182
  clan_id?: string | undefined;
6183
+ added_by?: string | undefined;
6190
6184
  } & {
6191
6185
  user_id?: string | undefined;
6192
6186
  role_id?: (string[] & string[] & { [K in Exclude<keyof I["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -6195,6 +6189,7 @@ export declare const ChannelUserList: {
6195
6189
  clan_nick?: string | undefined;
6196
6190
  clan_avatar?: string | undefined;
6197
6191
  clan_id?: string | undefined;
6192
+ added_by?: string | undefined;
6198
6193
  } & { [K_1 in Exclude<keyof I["channel_users"][number], keyof ChannelUserList_ChannelUser>]: never; })[] & { [K_2 in Exclude<keyof I["channel_users"], keyof {
6199
6194
  user_id?: string | undefined;
6200
6195
  role_id?: string[] | undefined;
@@ -6203,6 +6198,7 @@ export declare const ChannelUserList: {
6203
6198
  clan_nick?: string | undefined;
6204
6199
  clan_avatar?: string | undefined;
6205
6200
  clan_id?: string | undefined;
6201
+ added_by?: string | undefined;
6206
6202
  }[]>]: never; }) | undefined;
6207
6203
  cursor?: string | undefined;
6208
6204
  channel_id?: string | undefined;
@@ -6216,6 +6212,7 @@ export declare const ChannelUserList: {
6216
6212
  clan_nick?: string | undefined;
6217
6213
  clan_avatar?: string | undefined;
6218
6214
  clan_id?: string | undefined;
6215
+ added_by?: string | undefined;
6219
6216
  }[] | undefined;
6220
6217
  cursor?: string | undefined;
6221
6218
  channel_id?: string | undefined;
@@ -6228,6 +6225,7 @@ export declare const ChannelUserList: {
6228
6225
  clan_nick?: string | undefined;
6229
6226
  clan_avatar?: string | undefined;
6230
6227
  clan_id?: string | undefined;
6228
+ added_by?: string | undefined;
6231
6229
  }[] & ({
6232
6230
  user_id?: string | undefined;
6233
6231
  role_id?: string[] | undefined;
@@ -6236,6 +6234,7 @@ export declare const ChannelUserList: {
6236
6234
  clan_nick?: string | undefined;
6237
6235
  clan_avatar?: string | undefined;
6238
6236
  clan_id?: string | undefined;
6237
+ added_by?: string | undefined;
6239
6238
  } & {
6240
6239
  user_id?: string | undefined;
6241
6240
  role_id?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -6244,6 +6243,7 @@ export declare const ChannelUserList: {
6244
6243
  clan_nick?: string | undefined;
6245
6244
  clan_avatar?: string | undefined;
6246
6245
  clan_id?: string | undefined;
6246
+ added_by?: string | undefined;
6247
6247
  } & { [K_5 in Exclude<keyof I_1["channel_users"][number], keyof ChannelUserList_ChannelUser>]: never; })[] & { [K_6 in Exclude<keyof I_1["channel_users"], keyof {
6248
6248
  user_id?: string | undefined;
6249
6249
  role_id?: string[] | undefined;
@@ -6252,6 +6252,7 @@ export declare const ChannelUserList: {
6252
6252
  clan_nick?: string | undefined;
6253
6253
  clan_avatar?: string | undefined;
6254
6254
  clan_id?: string | undefined;
6255
+ added_by?: string | undefined;
6255
6256
  }[]>]: never; }) | undefined;
6256
6257
  cursor?: string | undefined;
6257
6258
  channel_id?: string | undefined;
@@ -6270,6 +6271,7 @@ export declare const ChannelUserList_ChannelUser: {
6270
6271
  clan_nick?: string | undefined;
6271
6272
  clan_avatar?: string | undefined;
6272
6273
  clan_id?: string | undefined;
6274
+ added_by?: string | undefined;
6273
6275
  } & {
6274
6276
  user_id?: string | undefined;
6275
6277
  role_id?: (string[] & string[] & { [K in Exclude<keyof I["role_id"], keyof string[]>]: never; }) | undefined;
@@ -6278,6 +6280,7 @@ export declare const ChannelUserList_ChannelUser: {
6278
6280
  clan_nick?: string | undefined;
6279
6281
  clan_avatar?: string | undefined;
6280
6282
  clan_id?: string | undefined;
6283
+ added_by?: string | undefined;
6281
6284
  } & { [K_1 in Exclude<keyof I, keyof ChannelUserList_ChannelUser>]: never; }>(base?: I | undefined): ChannelUserList_ChannelUser;
6282
6285
  fromPartial<I_1 extends {
6283
6286
  user_id?: string | undefined;
@@ -6287,6 +6290,7 @@ export declare const ChannelUserList_ChannelUser: {
6287
6290
  clan_nick?: string | undefined;
6288
6291
  clan_avatar?: string | undefined;
6289
6292
  clan_id?: string | undefined;
6293
+ added_by?: string | undefined;
6290
6294
  } & {
6291
6295
  user_id?: string | undefined;
6292
6296
  role_id?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["role_id"], keyof string[]>]: never; }) | undefined;
@@ -6295,6 +6299,7 @@ export declare const ChannelUserList_ChannelUser: {
6295
6299
  clan_nick?: string | undefined;
6296
6300
  clan_avatar?: string | undefined;
6297
6301
  clan_id?: string | undefined;
6302
+ added_by?: string | undefined;
6298
6303
  } & { [K_3 in Exclude<keyof I_1, keyof ChannelUserList_ChannelUser>]: never; }>(object: I_1): ChannelUserList_ChannelUser;
6299
6304
  };
6300
6305
  export declare const VoiceChannelUser: {
@@ -24649,92 +24654,6 @@ export declare const ForSaleItemList: {
24649
24654
  }[]>]: never; }) | undefined;
24650
24655
  } & { [K_5 in Exclude<keyof I_1, "for_sale_items">]: never; }>(object: I_1): ForSaleItemList;
24651
24656
  };
24652
- export declare const ListChannelMemberRequest: {
24653
- encode(message: ListChannelMemberRequest, writer?: _m0.Writer): _m0.Writer;
24654
- decode(input: _m0.Reader | Uint8Array, length?: number): ListChannelMemberRequest;
24655
- fromJSON(object: any): ListChannelMemberRequest;
24656
- toJSON(message: ListChannelMemberRequest): unknown;
24657
- create<I extends {
24658
- channel_id?: string | undefined;
24659
- clan_id?: string | undefined;
24660
- } & {
24661
- channel_id?: string | undefined;
24662
- clan_id?: string | undefined;
24663
- } & { [K in Exclude<keyof I, keyof ListChannelMemberRequest>]: never; }>(base?: I | undefined): ListChannelMemberRequest;
24664
- fromPartial<I_1 extends {
24665
- channel_id?: string | undefined;
24666
- clan_id?: string | undefined;
24667
- } & {
24668
- channel_id?: string | undefined;
24669
- clan_id?: string | undefined;
24670
- } & { [K_1 in Exclude<keyof I_1, keyof ListChannelMemberRequest>]: never; }>(object: I_1): ListChannelMemberRequest;
24671
- };
24672
- export declare const ChannelMemberDetail: {
24673
- encode(message: ChannelMemberDetail, writer?: _m0.Writer): _m0.Writer;
24674
- decode(input: _m0.Reader | Uint8Array, length?: number): ChannelMemberDetail;
24675
- fromJSON(object: any): ChannelMemberDetail;
24676
- toJSON(message: ChannelMemberDetail): unknown;
24677
- create<I extends {
24678
- member_id?: string | undefined;
24679
- added_by?: string | undefined;
24680
- } & {
24681
- member_id?: string | undefined;
24682
- added_by?: string | undefined;
24683
- } & { [K in Exclude<keyof I, keyof ChannelMemberDetail>]: never; }>(base?: I | undefined): ChannelMemberDetail;
24684
- fromPartial<I_1 extends {
24685
- member_id?: string | undefined;
24686
- added_by?: string | undefined;
24687
- } & {
24688
- member_id?: string | undefined;
24689
- added_by?: string | undefined;
24690
- } & { [K_1 in Exclude<keyof I_1, keyof ChannelMemberDetail>]: never; }>(object: I_1): ChannelMemberDetail;
24691
- };
24692
- export declare const ChannelMemberList: {
24693
- encode(message: ChannelMemberList, writer?: _m0.Writer): _m0.Writer;
24694
- decode(input: _m0.Reader | Uint8Array, length?: number): ChannelMemberList;
24695
- fromJSON(object: any): ChannelMemberList;
24696
- toJSON(message: ChannelMemberList): unknown;
24697
- create<I extends {
24698
- channel_members?: {
24699
- member_id?: string | undefined;
24700
- added_by?: string | undefined;
24701
- }[] | undefined;
24702
- } & {
24703
- channel_members?: ({
24704
- member_id?: string | undefined;
24705
- added_by?: string | undefined;
24706
- }[] & ({
24707
- member_id?: string | undefined;
24708
- added_by?: string | undefined;
24709
- } & {
24710
- member_id?: string | undefined;
24711
- added_by?: string | undefined;
24712
- } & { [K in Exclude<keyof I["channel_members"][number], keyof ChannelMemberDetail>]: never; })[] & { [K_1 in Exclude<keyof I["channel_members"], keyof {
24713
- member_id?: string | undefined;
24714
- added_by?: string | undefined;
24715
- }[]>]: never; }) | undefined;
24716
- } & { [K_2 in Exclude<keyof I, "channel_members">]: never; }>(base?: I | undefined): ChannelMemberList;
24717
- fromPartial<I_1 extends {
24718
- channel_members?: {
24719
- member_id?: string | undefined;
24720
- added_by?: string | undefined;
24721
- }[] | undefined;
24722
- } & {
24723
- channel_members?: ({
24724
- member_id?: string | undefined;
24725
- added_by?: string | undefined;
24726
- }[] & ({
24727
- member_id?: string | undefined;
24728
- added_by?: string | undefined;
24729
- } & {
24730
- member_id?: string | undefined;
24731
- added_by?: string | undefined;
24732
- } & { [K_3 in Exclude<keyof I_1["channel_members"][number], keyof ChannelMemberDetail>]: never; })[] & { [K_4 in Exclude<keyof I_1["channel_members"], keyof {
24733
- member_id?: string | undefined;
24734
- added_by?: string | undefined;
24735
- }[]>]: never; }) | undefined;
24736
- } & { [K_5 in Exclude<keyof I_1, "channel_members">]: never; }>(object: I_1): ChannelMemberList;
24737
- };
24738
24657
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
24739
24658
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
24740
24659
  [K in keyof T]?: DeepPartial<T[K]>;