mezon-sdk 2.7.78 → 2.7.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.
Files changed (61) hide show
  1. package/dist/cjs/api/api.d.ts +3090 -433
  2. package/dist/cjs/api/api.js +2038 -617
  3. package/dist/cjs/api/api.js.map +1 -1
  4. package/dist/cjs/client.js +10 -0
  5. package/dist/cjs/client.js.map +1 -1
  6. package/dist/cjs/index.d.ts +1 -1
  7. package/dist/cjs/index.js +1 -1
  8. package/dist/cjs/index.js.map +1 -1
  9. package/dist/cjs/mezon-client/channel_manager.d.ts +13 -0
  10. package/dist/cjs/mezon-client/channel_manager.js +69 -0
  11. package/dist/cjs/mezon-client/channel_manager.js.map +1 -0
  12. package/dist/cjs/mezon-client/event_manager.d.ts +7 -0
  13. package/dist/cjs/mezon-client/event_manager.js +37 -0
  14. package/dist/cjs/mezon-client/event_manager.js.map +1 -0
  15. package/dist/cjs/mezon-client/message_manager.d.ts +14 -0
  16. package/dist/cjs/mezon-client/message_manager.js +58 -0
  17. package/dist/cjs/mezon-client/message_manager.js.map +1 -0
  18. package/dist/cjs/mezon-client/mezon_client.d.ts +38 -0
  19. package/dist/cjs/mezon-client/mezon_client.js +120 -0
  20. package/dist/cjs/mezon-client/mezon_client.js.map +1 -0
  21. package/dist/cjs/mezon-client/session_manager.d.ts +10 -0
  22. package/dist/cjs/mezon-client/session_manager.js +35 -0
  23. package/dist/cjs/mezon-client/session_manager.js.map +1 -0
  24. package/dist/cjs/mezon-client/socket_manager.d.ts +20 -0
  25. package/dist/cjs/mezon-client/socket_manager.js +54 -0
  26. package/dist/cjs/mezon-client/socket_manager.js.map +1 -0
  27. package/dist/cjs/rtapi/realtime.d.ts +2114 -693
  28. package/dist/cjs/rtapi/realtime.js +389 -507
  29. package/dist/cjs/rtapi/realtime.js.map +1 -1
  30. package/dist/esm/api/api.d.ts +3090 -433
  31. package/dist/esm/api/api.js +2028 -611
  32. package/dist/esm/api/api.js.map +1 -1
  33. package/dist/esm/client.js +10 -0
  34. package/dist/esm/client.js.map +1 -1
  35. package/dist/esm/index.d.ts +1 -1
  36. package/dist/esm/index.js +1 -1
  37. package/dist/esm/index.js.map +1 -1
  38. package/dist/esm/mezon-client/channel_manager.d.ts +13 -0
  39. package/dist/esm/mezon-client/channel_manager.js +68 -0
  40. package/dist/esm/mezon-client/channel_manager.js.map +1 -0
  41. package/dist/esm/mezon-client/event_manager.d.ts +7 -0
  42. package/dist/esm/mezon-client/event_manager.js +31 -0
  43. package/dist/esm/mezon-client/event_manager.js.map +1 -0
  44. package/dist/esm/mezon-client/message_manager.d.ts +14 -0
  45. package/dist/esm/mezon-client/message_manager.js +55 -0
  46. package/dist/esm/mezon-client/message_manager.js.map +1 -0
  47. package/dist/esm/mezon-client/mezon_client.d.ts +38 -0
  48. package/dist/esm/mezon-client/mezon_client.js +128 -0
  49. package/dist/esm/mezon-client/mezon_client.js.map +1 -0
  50. package/dist/esm/mezon-client/session_manager.d.ts +10 -0
  51. package/dist/esm/mezon-client/session_manager.js +33 -0
  52. package/dist/esm/mezon-client/session_manager.js.map +1 -0
  53. package/dist/esm/mezon-client/socket_manager.d.ts +20 -0
  54. package/dist/esm/mezon-client/socket_manager.js +56 -0
  55. package/dist/esm/mezon-client/socket_manager.js.map +1 -0
  56. package/dist/esm/rtapi/realtime.d.ts +2114 -693
  57. package/dist/esm/rtapi/realtime.js +379 -496
  58. package/dist/esm/rtapi/realtime.js.map +1 -1
  59. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  60. package/dist/tsconfig.tsbuildinfo +1 -1
  61. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v1.181.1
4
- // protoc v5.27.2
3
+ // protoc-gen-ts_proto v1.181.2
4
+ // protoc v4.25.2
5
5
  // source: api/api.proto
6
6
  /* eslint-disable */
7
7
  import Long from "long";
@@ -305,7 +305,7 @@ function createBaseAccount() {
305
305
  wallet: "",
306
306
  email: "",
307
307
  devices: [],
308
- custom_id: "",
308
+ mezon_id: "",
309
309
  verify_time: undefined,
310
310
  disable_time: undefined,
311
311
  logo: "",
@@ -327,8 +327,8 @@ export const Account = {
327
327
  for (const v of message.devices) {
328
328
  AccountDevice.encode(v, writer.uint32(34).fork()).ldelim();
329
329
  }
330
- if (message.custom_id !== "") {
331
- writer.uint32(42).string(message.custom_id);
330
+ if (message.mezon_id !== "") {
331
+ writer.uint32(42).string(message.mezon_id);
332
332
  }
333
333
  if (message.verify_time !== undefined) {
334
334
  Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(50).fork()).ldelim();
@@ -382,7 +382,7 @@ export const Account = {
382
382
  if (tag !== 42) {
383
383
  break;
384
384
  }
385
- message.custom_id = reader.string();
385
+ message.mezon_id = reader.string();
386
386
  continue;
387
387
  case 6:
388
388
  if (tag !== 50) {
@@ -430,7 +430,7 @@ export const Account = {
430
430
  devices: globalThis.Array.isArray(object?.devices)
431
431
  ? object.devices.map((e) => AccountDevice.fromJSON(e))
432
432
  : [],
433
- custom_id: isSet(object.custom_id) ? globalThis.String(object.custom_id) : "",
433
+ mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
434
434
  verify_time: isSet(object.verify_time) ? fromJsonTimestamp(object.verify_time) : undefined,
435
435
  disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
436
436
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
@@ -452,8 +452,8 @@ export const Account = {
452
452
  if (message.devices?.length) {
453
453
  obj.devices = message.devices.map((e) => AccountDevice.toJSON(e));
454
454
  }
455
- if (message.custom_id !== "") {
456
- obj.custom_id = message.custom_id;
455
+ if (message.mezon_id !== "") {
456
+ obj.mezon_id = message.mezon_id;
457
457
  }
458
458
  if (message.verify_time !== undefined) {
459
459
  obj.verify_time = message.verify_time.toISOString();
@@ -481,7 +481,7 @@ export const Account = {
481
481
  message.wallet = object.wallet ?? "";
482
482
  message.email = object.email ?? "";
483
483
  message.devices = object.devices?.map((e) => AccountDevice.fromPartial(e)) || [];
484
- message.custom_id = object.custom_id ?? "";
484
+ message.mezon_id = object.mezon_id ?? "";
485
485
  message.verify_time = object.verify_time ?? undefined;
486
486
  message.disable_time = object.disable_time ?? undefined;
487
487
  message.logo = object.logo ?? "";
@@ -792,157 +792,6 @@ export const AccountApple_VarsEntry = {
792
792
  return message;
793
793
  },
794
794
  };
795
- function createBaseAccountCustom() {
796
- return { id: "", vars: {} };
797
- }
798
- export const AccountCustom = {
799
- encode(message, writer = _m0.Writer.create()) {
800
- if (message.id !== "") {
801
- writer.uint32(10).string(message.id);
802
- }
803
- Object.entries(message.vars).forEach(([key, value]) => {
804
- AccountCustom_VarsEntry.encode({ key: key, value }, writer.uint32(18).fork()).ldelim();
805
- });
806
- return writer;
807
- },
808
- decode(input, length) {
809
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
810
- let end = length === undefined ? reader.len : reader.pos + length;
811
- const message = createBaseAccountCustom();
812
- while (reader.pos < end) {
813
- const tag = reader.uint32();
814
- switch (tag >>> 3) {
815
- case 1:
816
- if (tag !== 10) {
817
- break;
818
- }
819
- message.id = reader.string();
820
- continue;
821
- case 2:
822
- if (tag !== 18) {
823
- break;
824
- }
825
- const entry2 = AccountCustom_VarsEntry.decode(reader, reader.uint32());
826
- if (entry2.value !== undefined) {
827
- message.vars[entry2.key] = entry2.value;
828
- }
829
- continue;
830
- }
831
- if ((tag & 7) === 4 || tag === 0) {
832
- break;
833
- }
834
- reader.skipType(tag & 7);
835
- }
836
- return message;
837
- },
838
- fromJSON(object) {
839
- return {
840
- id: isSet(object.id) ? globalThis.String(object.id) : "",
841
- vars: isObject(object.vars)
842
- ? Object.entries(object.vars).reduce((acc, [key, value]) => {
843
- acc[key] = String(value);
844
- return acc;
845
- }, {})
846
- : {},
847
- };
848
- },
849
- toJSON(message) {
850
- const obj = {};
851
- if (message.id !== "") {
852
- obj.id = message.id;
853
- }
854
- if (message.vars) {
855
- const entries = Object.entries(message.vars);
856
- if (entries.length > 0) {
857
- obj.vars = {};
858
- entries.forEach(([k, v]) => {
859
- obj.vars[k] = v;
860
- });
861
- }
862
- }
863
- return obj;
864
- },
865
- create(base) {
866
- return AccountCustom.fromPartial(base ?? {});
867
- },
868
- fromPartial(object) {
869
- const message = createBaseAccountCustom();
870
- message.id = object.id ?? "";
871
- message.vars = Object.entries(object.vars ?? {}).reduce((acc, [key, value]) => {
872
- if (value !== undefined) {
873
- acc[key] = globalThis.String(value);
874
- }
875
- return acc;
876
- }, {});
877
- return message;
878
- },
879
- };
880
- function createBaseAccountCustom_VarsEntry() {
881
- return { key: "", value: "" };
882
- }
883
- export const AccountCustom_VarsEntry = {
884
- encode(message, writer = _m0.Writer.create()) {
885
- if (message.key !== "") {
886
- writer.uint32(10).string(message.key);
887
- }
888
- if (message.value !== "") {
889
- writer.uint32(18).string(message.value);
890
- }
891
- return writer;
892
- },
893
- decode(input, length) {
894
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
895
- let end = length === undefined ? reader.len : reader.pos + length;
896
- const message = createBaseAccountCustom_VarsEntry();
897
- while (reader.pos < end) {
898
- const tag = reader.uint32();
899
- switch (tag >>> 3) {
900
- case 1:
901
- if (tag !== 10) {
902
- break;
903
- }
904
- message.key = reader.string();
905
- continue;
906
- case 2:
907
- if (tag !== 18) {
908
- break;
909
- }
910
- message.value = reader.string();
911
- continue;
912
- }
913
- if ((tag & 7) === 4 || tag === 0) {
914
- break;
915
- }
916
- reader.skipType(tag & 7);
917
- }
918
- return message;
919
- },
920
- fromJSON(object) {
921
- return {
922
- key: isSet(object.key) ? globalThis.String(object.key) : "",
923
- value: isSet(object.value) ? globalThis.String(object.value) : "",
924
- };
925
- },
926
- toJSON(message) {
927
- const obj = {};
928
- if (message.key !== "") {
929
- obj.key = message.key;
930
- }
931
- if (message.value !== "") {
932
- obj.value = message.value;
933
- }
934
- return obj;
935
- },
936
- create(base) {
937
- return AccountCustom_VarsEntry.fromPartial(base ?? {});
938
- },
939
- fromPartial(object) {
940
- const message = createBaseAccountCustom_VarsEntry();
941
- message.key = object.key ?? "";
942
- message.value = object.value ?? "";
943
- return message;
944
- },
945
- };
946
795
  function createBaseAccountDevice() {
947
796
  return { id: "", vars: {} };
948
797
  }
@@ -1933,23 +1782,23 @@ export const AccountGoogle_VarsEntry = {
1933
1782
  return message;
1934
1783
  },
1935
1784
  };
1936
- function createBaseAccountSteam() {
1785
+ function createBaseAccountMezon() {
1937
1786
  return { token: "", vars: {} };
1938
1787
  }
1939
- export const AccountSteam = {
1788
+ export const AccountMezon = {
1940
1789
  encode(message, writer = _m0.Writer.create()) {
1941
1790
  if (message.token !== "") {
1942
1791
  writer.uint32(10).string(message.token);
1943
1792
  }
1944
1793
  Object.entries(message.vars).forEach(([key, value]) => {
1945
- AccountSteam_VarsEntry.encode({ key: key, value }, writer.uint32(18).fork()).ldelim();
1794
+ AccountMezon_VarsEntry.encode({ key: key, value }, writer.uint32(18).fork()).ldelim();
1946
1795
  });
1947
1796
  return writer;
1948
1797
  },
1949
1798
  decode(input, length) {
1950
1799
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1951
1800
  let end = length === undefined ? reader.len : reader.pos + length;
1952
- const message = createBaseAccountSteam();
1801
+ const message = createBaseAccountMezon();
1953
1802
  while (reader.pos < end) {
1954
1803
  const tag = reader.uint32();
1955
1804
  switch (tag >>> 3) {
@@ -1963,7 +1812,7 @@ export const AccountSteam = {
1963
1812
  if (tag !== 18) {
1964
1813
  break;
1965
1814
  }
1966
- const entry2 = AccountSteam_VarsEntry.decode(reader, reader.uint32());
1815
+ const entry2 = AccountMezon_VarsEntry.decode(reader, reader.uint32());
1967
1816
  if (entry2.value !== undefined) {
1968
1817
  message.vars[entry2.key] = entry2.value;
1969
1818
  }
@@ -2004,10 +1853,10 @@ export const AccountSteam = {
2004
1853
  return obj;
2005
1854
  },
2006
1855
  create(base) {
2007
- return AccountSteam.fromPartial(base ?? {});
1856
+ return AccountMezon.fromPartial(base ?? {});
2008
1857
  },
2009
1858
  fromPartial(object) {
2010
- const message = createBaseAccountSteam();
1859
+ const message = createBaseAccountMezon();
2011
1860
  message.token = object.token ?? "";
2012
1861
  message.vars = Object.entries(object.vars ?? {}).reduce((acc, [key, value]) => {
2013
1862
  if (value !== undefined) {
@@ -2018,10 +1867,10 @@ export const AccountSteam = {
2018
1867
  return message;
2019
1868
  },
2020
1869
  };
2021
- function createBaseAccountSteam_VarsEntry() {
1870
+ function createBaseAccountMezon_VarsEntry() {
2022
1871
  return { key: "", value: "" };
2023
1872
  }
2024
- export const AccountSteam_VarsEntry = {
1873
+ export const AccountMezon_VarsEntry = {
2025
1874
  encode(message, writer = _m0.Writer.create()) {
2026
1875
  if (message.key !== "") {
2027
1876
  writer.uint32(10).string(message.key);
@@ -2034,7 +1883,7 @@ export const AccountSteam_VarsEntry = {
2034
1883
  decode(input, length) {
2035
1884
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2036
1885
  let end = length === undefined ? reader.len : reader.pos + length;
2037
- const message = createBaseAccountSteam_VarsEntry();
1886
+ const message = createBaseAccountMezon_VarsEntry();
2038
1887
  while (reader.pos < end) {
2039
1888
  const tag = reader.uint32();
2040
1889
  switch (tag >>> 3) {
@@ -2075,32 +1924,32 @@ export const AccountSteam_VarsEntry = {
2075
1924
  return obj;
2076
1925
  },
2077
1926
  create(base) {
2078
- return AccountSteam_VarsEntry.fromPartial(base ?? {});
1927
+ return AccountMezon_VarsEntry.fromPartial(base ?? {});
2079
1928
  },
2080
1929
  fromPartial(object) {
2081
- const message = createBaseAccountSteam_VarsEntry();
1930
+ const message = createBaseAccountMezon_VarsEntry();
2082
1931
  message.key = object.key ?? "";
2083
1932
  message.value = object.value ?? "";
2084
1933
  return message;
2085
1934
  },
2086
1935
  };
2087
- function createBaseAddFriendsRequest() {
2088
- return { ids: [], usernames: [] };
1936
+ function createBaseAccountSteam() {
1937
+ return { token: "", vars: {} };
2089
1938
  }
2090
- export const AddFriendsRequest = {
1939
+ export const AccountSteam = {
2091
1940
  encode(message, writer = _m0.Writer.create()) {
2092
- for (const v of message.ids) {
2093
- writer.uint32(10).string(v);
2094
- }
2095
- for (const v of message.usernames) {
2096
- writer.uint32(18).string(v);
1941
+ if (message.token !== "") {
1942
+ writer.uint32(10).string(message.token);
2097
1943
  }
1944
+ Object.entries(message.vars).forEach(([key, value]) => {
1945
+ AccountSteam_VarsEntry.encode({ key: key, value }, writer.uint32(18).fork()).ldelim();
1946
+ });
2098
1947
  return writer;
2099
1948
  },
2100
1949
  decode(input, length) {
2101
1950
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2102
1951
  let end = length === undefined ? reader.len : reader.pos + length;
2103
- const message = createBaseAddFriendsRequest();
1952
+ const message = createBaseAccountSteam();
2104
1953
  while (reader.pos < end) {
2105
1954
  const tag = reader.uint32();
2106
1955
  switch (tag >>> 3) {
@@ -2108,13 +1957,16 @@ export const AddFriendsRequest = {
2108
1957
  if (tag !== 10) {
2109
1958
  break;
2110
1959
  }
2111
- message.ids.push(reader.string());
1960
+ message.token = reader.string();
2112
1961
  continue;
2113
1962
  case 2:
2114
1963
  if (tag !== 18) {
2115
1964
  break;
2116
1965
  }
2117
- message.usernames.push(reader.string());
1966
+ const entry2 = AccountSteam_VarsEntry.decode(reader, reader.uint32());
1967
+ if (entry2.value !== undefined) {
1968
+ message.vars[entry2.key] = entry2.value;
1969
+ }
2118
1970
  continue;
2119
1971
  }
2120
1972
  if ((tag & 7) === 4 || tag === 0) {
@@ -2126,49 +1978,63 @@ export const AddFriendsRequest = {
2126
1978
  },
2127
1979
  fromJSON(object) {
2128
1980
  return {
2129
- ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e) => globalThis.String(e)) : [],
2130
- usernames: globalThis.Array.isArray(object?.usernames)
2131
- ? object.usernames.map((e) => globalThis.String(e))
2132
- : [],
1981
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
1982
+ vars: isObject(object.vars)
1983
+ ? Object.entries(object.vars).reduce((acc, [key, value]) => {
1984
+ acc[key] = String(value);
1985
+ return acc;
1986
+ }, {})
1987
+ : {},
2133
1988
  };
2134
1989
  },
2135
1990
  toJSON(message) {
2136
1991
  const obj = {};
2137
- if (message.ids?.length) {
2138
- obj.ids = message.ids;
1992
+ if (message.token !== "") {
1993
+ obj.token = message.token;
2139
1994
  }
2140
- if (message.usernames?.length) {
2141
- obj.usernames = message.usernames;
1995
+ if (message.vars) {
1996
+ const entries = Object.entries(message.vars);
1997
+ if (entries.length > 0) {
1998
+ obj.vars = {};
1999
+ entries.forEach(([k, v]) => {
2000
+ obj.vars[k] = v;
2001
+ });
2002
+ }
2142
2003
  }
2143
2004
  return obj;
2144
2005
  },
2145
2006
  create(base) {
2146
- return AddFriendsRequest.fromPartial(base ?? {});
2007
+ return AccountSteam.fromPartial(base ?? {});
2147
2008
  },
2148
2009
  fromPartial(object) {
2149
- const message = createBaseAddFriendsRequest();
2150
- message.ids = object.ids?.map((e) => e) || [];
2151
- message.usernames = object.usernames?.map((e) => e) || [];
2010
+ const message = createBaseAccountSteam();
2011
+ message.token = object.token ?? "";
2012
+ message.vars = Object.entries(object.vars ?? {}).reduce((acc, [key, value]) => {
2013
+ if (value !== undefined) {
2014
+ acc[key] = globalThis.String(value);
2015
+ }
2016
+ return acc;
2017
+ }, {});
2152
2018
  return message;
2153
2019
  },
2154
2020
  };
2155
- function createBaseAddGroupUsersRequest() {
2156
- return { group_id: "", user_ids: [] };
2021
+ function createBaseAccountSteam_VarsEntry() {
2022
+ return { key: "", value: "" };
2157
2023
  }
2158
- export const AddGroupUsersRequest = {
2024
+ export const AccountSteam_VarsEntry = {
2159
2025
  encode(message, writer = _m0.Writer.create()) {
2160
- if (message.group_id !== "") {
2161
- writer.uint32(10).string(message.group_id);
2026
+ if (message.key !== "") {
2027
+ writer.uint32(10).string(message.key);
2162
2028
  }
2163
- for (const v of message.user_ids) {
2164
- writer.uint32(18).string(v);
2029
+ if (message.value !== "") {
2030
+ writer.uint32(18).string(message.value);
2165
2031
  }
2166
2032
  return writer;
2167
2033
  },
2168
2034
  decode(input, length) {
2169
2035
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2170
2036
  let end = length === undefined ? reader.len : reader.pos + length;
2171
- const message = createBaseAddGroupUsersRequest();
2037
+ const message = createBaseAccountSteam_VarsEntry();
2172
2038
  while (reader.pos < end) {
2173
2039
  const tag = reader.uint32();
2174
2040
  switch (tag >>> 3) {
@@ -2176,13 +2042,13 @@ export const AddGroupUsersRequest = {
2176
2042
  if (tag !== 10) {
2177
2043
  break;
2178
2044
  }
2179
- message.group_id = reader.string();
2045
+ message.key = reader.string();
2180
2046
  continue;
2181
2047
  case 2:
2182
2048
  if (tag !== 18) {
2183
2049
  break;
2184
2050
  }
2185
- message.user_ids.push(reader.string());
2051
+ message.value = reader.string();
2186
2052
  continue;
2187
2053
  }
2188
2054
  if ((tag & 7) === 4 || tag === 0) {
@@ -2194,32 +2060,166 @@ export const AddGroupUsersRequest = {
2194
2060
  },
2195
2061
  fromJSON(object) {
2196
2062
  return {
2197
- group_id: isSet(object.group_id) ? globalThis.String(object.group_id) : "",
2198
- user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
2063
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2064
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
2199
2065
  };
2200
2066
  },
2201
2067
  toJSON(message) {
2202
2068
  const obj = {};
2203
- if (message.group_id !== "") {
2204
- obj.group_id = message.group_id;
2069
+ if (message.key !== "") {
2070
+ obj.key = message.key;
2205
2071
  }
2206
- if (message.user_ids?.length) {
2207
- obj.user_ids = message.user_ids;
2072
+ if (message.value !== "") {
2073
+ obj.value = message.value;
2208
2074
  }
2209
2075
  return obj;
2210
2076
  },
2211
2077
  create(base) {
2212
- return AddGroupUsersRequest.fromPartial(base ?? {});
2078
+ return AccountSteam_VarsEntry.fromPartial(base ?? {});
2213
2079
  },
2214
2080
  fromPartial(object) {
2215
- const message = createBaseAddGroupUsersRequest();
2216
- message.group_id = object.group_id ?? "";
2217
- message.user_ids = object.user_ids?.map((e) => e) || [];
2081
+ const message = createBaseAccountSteam_VarsEntry();
2082
+ message.key = object.key ?? "";
2083
+ message.value = object.value ?? "";
2218
2084
  return message;
2219
2085
  },
2220
2086
  };
2221
- function createBaseSessionRefreshRequest() {
2222
- return { token: "", vars: {} };
2087
+ function createBaseAddFriendsRequest() {
2088
+ return { ids: [], usernames: [] };
2089
+ }
2090
+ export const AddFriendsRequest = {
2091
+ encode(message, writer = _m0.Writer.create()) {
2092
+ for (const v of message.ids) {
2093
+ writer.uint32(10).string(v);
2094
+ }
2095
+ for (const v of message.usernames) {
2096
+ writer.uint32(18).string(v);
2097
+ }
2098
+ return writer;
2099
+ },
2100
+ decode(input, length) {
2101
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2102
+ let end = length === undefined ? reader.len : reader.pos + length;
2103
+ const message = createBaseAddFriendsRequest();
2104
+ while (reader.pos < end) {
2105
+ const tag = reader.uint32();
2106
+ switch (tag >>> 3) {
2107
+ case 1:
2108
+ if (tag !== 10) {
2109
+ break;
2110
+ }
2111
+ message.ids.push(reader.string());
2112
+ continue;
2113
+ case 2:
2114
+ if (tag !== 18) {
2115
+ break;
2116
+ }
2117
+ message.usernames.push(reader.string());
2118
+ continue;
2119
+ }
2120
+ if ((tag & 7) === 4 || tag === 0) {
2121
+ break;
2122
+ }
2123
+ reader.skipType(tag & 7);
2124
+ }
2125
+ return message;
2126
+ },
2127
+ fromJSON(object) {
2128
+ return {
2129
+ ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e) => globalThis.String(e)) : [],
2130
+ usernames: globalThis.Array.isArray(object?.usernames)
2131
+ ? object.usernames.map((e) => globalThis.String(e))
2132
+ : [],
2133
+ };
2134
+ },
2135
+ toJSON(message) {
2136
+ const obj = {};
2137
+ if (message.ids?.length) {
2138
+ obj.ids = message.ids;
2139
+ }
2140
+ if (message.usernames?.length) {
2141
+ obj.usernames = message.usernames;
2142
+ }
2143
+ return obj;
2144
+ },
2145
+ create(base) {
2146
+ return AddFriendsRequest.fromPartial(base ?? {});
2147
+ },
2148
+ fromPartial(object) {
2149
+ const message = createBaseAddFriendsRequest();
2150
+ message.ids = object.ids?.map((e) => e) || [];
2151
+ message.usernames = object.usernames?.map((e) => e) || [];
2152
+ return message;
2153
+ },
2154
+ };
2155
+ function createBaseAddGroupUsersRequest() {
2156
+ return { group_id: "", user_ids: [] };
2157
+ }
2158
+ export const AddGroupUsersRequest = {
2159
+ encode(message, writer = _m0.Writer.create()) {
2160
+ if (message.group_id !== "") {
2161
+ writer.uint32(10).string(message.group_id);
2162
+ }
2163
+ for (const v of message.user_ids) {
2164
+ writer.uint32(18).string(v);
2165
+ }
2166
+ return writer;
2167
+ },
2168
+ decode(input, length) {
2169
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2170
+ let end = length === undefined ? reader.len : reader.pos + length;
2171
+ const message = createBaseAddGroupUsersRequest();
2172
+ while (reader.pos < end) {
2173
+ const tag = reader.uint32();
2174
+ switch (tag >>> 3) {
2175
+ case 1:
2176
+ if (tag !== 10) {
2177
+ break;
2178
+ }
2179
+ message.group_id = reader.string();
2180
+ continue;
2181
+ case 2:
2182
+ if (tag !== 18) {
2183
+ break;
2184
+ }
2185
+ message.user_ids.push(reader.string());
2186
+ continue;
2187
+ }
2188
+ if ((tag & 7) === 4 || tag === 0) {
2189
+ break;
2190
+ }
2191
+ reader.skipType(tag & 7);
2192
+ }
2193
+ return message;
2194
+ },
2195
+ fromJSON(object) {
2196
+ return {
2197
+ group_id: isSet(object.group_id) ? globalThis.String(object.group_id) : "",
2198
+ user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
2199
+ };
2200
+ },
2201
+ toJSON(message) {
2202
+ const obj = {};
2203
+ if (message.group_id !== "") {
2204
+ obj.group_id = message.group_id;
2205
+ }
2206
+ if (message.user_ids?.length) {
2207
+ obj.user_ids = message.user_ids;
2208
+ }
2209
+ return obj;
2210
+ },
2211
+ create(base) {
2212
+ return AddGroupUsersRequest.fromPartial(base ?? {});
2213
+ },
2214
+ fromPartial(object) {
2215
+ const message = createBaseAddGroupUsersRequest();
2216
+ message.group_id = object.group_id ?? "";
2217
+ message.user_ids = object.user_ids?.map((e) => e) || [];
2218
+ return message;
2219
+ },
2220
+ };
2221
+ function createBaseSessionRefreshRequest() {
2222
+ return { token: "", vars: {} };
2223
2223
  }
2224
2224
  export const SessionRefreshRequest = {
2225
2225
  encode(message, writer = _m0.Writer.create()) {
@@ -2545,88 +2545,6 @@ export const AuthenticateAppleRequest = {
2545
2545
  return message;
2546
2546
  },
2547
2547
  };
2548
- function createBaseAuthenticateCustomRequest() {
2549
- return { account: undefined, create: undefined, username: "" };
2550
- }
2551
- export const AuthenticateCustomRequest = {
2552
- encode(message, writer = _m0.Writer.create()) {
2553
- if (message.account !== undefined) {
2554
- AccountCustom.encode(message.account, writer.uint32(10).fork()).ldelim();
2555
- }
2556
- if (message.create !== undefined) {
2557
- BoolValue.encode({ value: message.create }, writer.uint32(18).fork()).ldelim();
2558
- }
2559
- if (message.username !== "") {
2560
- writer.uint32(26).string(message.username);
2561
- }
2562
- return writer;
2563
- },
2564
- decode(input, length) {
2565
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2566
- let end = length === undefined ? reader.len : reader.pos + length;
2567
- const message = createBaseAuthenticateCustomRequest();
2568
- while (reader.pos < end) {
2569
- const tag = reader.uint32();
2570
- switch (tag >>> 3) {
2571
- case 1:
2572
- if (tag !== 10) {
2573
- break;
2574
- }
2575
- message.account = AccountCustom.decode(reader, reader.uint32());
2576
- continue;
2577
- case 2:
2578
- if (tag !== 18) {
2579
- break;
2580
- }
2581
- message.create = BoolValue.decode(reader, reader.uint32()).value;
2582
- continue;
2583
- case 3:
2584
- if (tag !== 26) {
2585
- break;
2586
- }
2587
- message.username = reader.string();
2588
- continue;
2589
- }
2590
- if ((tag & 7) === 4 || tag === 0) {
2591
- break;
2592
- }
2593
- reader.skipType(tag & 7);
2594
- }
2595
- return message;
2596
- },
2597
- fromJSON(object) {
2598
- return {
2599
- account: isSet(object.account) ? AccountCustom.fromJSON(object.account) : undefined,
2600
- create: isSet(object.create) ? Boolean(object.create) : undefined,
2601
- username: isSet(object.username) ? globalThis.String(object.username) : "",
2602
- };
2603
- },
2604
- toJSON(message) {
2605
- const obj = {};
2606
- if (message.account !== undefined) {
2607
- obj.account = AccountCustom.toJSON(message.account);
2608
- }
2609
- if (message.create !== undefined) {
2610
- obj.create = message.create;
2611
- }
2612
- if (message.username !== "") {
2613
- obj.username = message.username;
2614
- }
2615
- return obj;
2616
- },
2617
- create(base) {
2618
- return AuthenticateCustomRequest.fromPartial(base ?? {});
2619
- },
2620
- fromPartial(object) {
2621
- const message = createBaseAuthenticateCustomRequest();
2622
- message.account = (object.account !== undefined && object.account !== null)
2623
- ? AccountCustom.fromPartial(object.account)
2624
- : undefined;
2625
- message.create = object.create ?? undefined;
2626
- message.username = object.username ?? "";
2627
- return message;
2628
- },
2629
- };
2630
2548
  function createBaseAuthenticateDeviceRequest() {
2631
2549
  return { account: undefined, create: undefined, username: "" };
2632
2550
  }
@@ -3183,13 +3101,13 @@ export const AuthenticateGoogleRequest = {
3183
3101
  return message;
3184
3102
  },
3185
3103
  };
3186
- function createBaseAuthenticateSteamRequest() {
3187
- return { account: undefined, create: undefined, username: "", sync: undefined };
3104
+ function createBaseAuthenticateMezonRequest() {
3105
+ return { account: undefined, create: undefined, username: "" };
3188
3106
  }
3189
- export const AuthenticateSteamRequest = {
3107
+ export const AuthenticateMezonRequest = {
3190
3108
  encode(message, writer = _m0.Writer.create()) {
3191
3109
  if (message.account !== undefined) {
3192
- AccountSteam.encode(message.account, writer.uint32(10).fork()).ldelim();
3110
+ AccountMezon.encode(message.account, writer.uint32(10).fork()).ldelim();
3193
3111
  }
3194
3112
  if (message.create !== undefined) {
3195
3113
  BoolValue.encode({ value: message.create }, writer.uint32(18).fork()).ldelim();
@@ -3197,15 +3115,12 @@ export const AuthenticateSteamRequest = {
3197
3115
  if (message.username !== "") {
3198
3116
  writer.uint32(26).string(message.username);
3199
3117
  }
3200
- if (message.sync !== undefined) {
3201
- BoolValue.encode({ value: message.sync }, writer.uint32(34).fork()).ldelim();
3202
- }
3203
3118
  return writer;
3204
3119
  },
3205
3120
  decode(input, length) {
3206
3121
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3207
3122
  let end = length === undefined ? reader.len : reader.pos + length;
3208
- const message = createBaseAuthenticateSteamRequest();
3123
+ const message = createBaseAuthenticateMezonRequest();
3209
3124
  while (reader.pos < end) {
3210
3125
  const tag = reader.uint32();
3211
3126
  switch (tag >>> 3) {
@@ -3213,7 +3128,7 @@ export const AuthenticateSteamRequest = {
3213
3128
  if (tag !== 10) {
3214
3129
  break;
3215
3130
  }
3216
- message.account = AccountSteam.decode(reader, reader.uint32());
3131
+ message.account = AccountMezon.decode(reader, reader.uint32());
3217
3132
  continue;
3218
3133
  case 2:
3219
3134
  if (tag !== 18) {
@@ -3227,12 +3142,6 @@ export const AuthenticateSteamRequest = {
3227
3142
  }
3228
3143
  message.username = reader.string();
3229
3144
  continue;
3230
- case 4:
3231
- if (tag !== 34) {
3232
- break;
3233
- }
3234
- message.sync = BoolValue.decode(reader, reader.uint32()).value;
3235
- continue;
3236
3145
  }
3237
3146
  if ((tag & 7) === 4 || tag === 0) {
3238
3147
  break;
@@ -3243,16 +3152,15 @@ export const AuthenticateSteamRequest = {
3243
3152
  },
3244
3153
  fromJSON(object) {
3245
3154
  return {
3246
- account: isSet(object.account) ? AccountSteam.fromJSON(object.account) : undefined,
3155
+ account: isSet(object.account) ? AccountMezon.fromJSON(object.account) : undefined,
3247
3156
  create: isSet(object.create) ? Boolean(object.create) : undefined,
3248
3157
  username: isSet(object.username) ? globalThis.String(object.username) : "",
3249
- sync: isSet(object.sync) ? Boolean(object.sync) : undefined,
3250
3158
  };
3251
3159
  },
3252
3160
  toJSON(message) {
3253
3161
  const obj = {};
3254
3162
  if (message.account !== undefined) {
3255
- obj.account = AccountSteam.toJSON(message.account);
3163
+ obj.account = AccountMezon.toJSON(message.account);
3256
3164
  }
3257
3165
  if (message.create !== undefined) {
3258
3166
  obj.create = message.create;
@@ -3260,42 +3168,134 @@ export const AuthenticateSteamRequest = {
3260
3168
  if (message.username !== "") {
3261
3169
  obj.username = message.username;
3262
3170
  }
3263
- if (message.sync !== undefined) {
3264
- obj.sync = message.sync;
3265
- }
3266
3171
  return obj;
3267
3172
  },
3268
3173
  create(base) {
3269
- return AuthenticateSteamRequest.fromPartial(base ?? {});
3174
+ return AuthenticateMezonRequest.fromPartial(base ?? {});
3270
3175
  },
3271
3176
  fromPartial(object) {
3272
- const message = createBaseAuthenticateSteamRequest();
3177
+ const message = createBaseAuthenticateMezonRequest();
3273
3178
  message.account = (object.account !== undefined && object.account !== null)
3274
- ? AccountSteam.fromPartial(object.account)
3179
+ ? AccountMezon.fromPartial(object.account)
3275
3180
  : undefined;
3276
3181
  message.create = object.create ?? undefined;
3277
3182
  message.username = object.username ?? "";
3278
- message.sync = object.sync ?? undefined;
3279
3183
  return message;
3280
3184
  },
3281
3185
  };
3282
- function createBaseBanGroupUsersRequest() {
3283
- return { group_id: "", user_ids: [] };
3186
+ function createBaseAuthenticateSteamRequest() {
3187
+ return { account: undefined, create: undefined, username: "", sync: undefined };
3284
3188
  }
3285
- export const BanGroupUsersRequest = {
3189
+ export const AuthenticateSteamRequest = {
3286
3190
  encode(message, writer = _m0.Writer.create()) {
3287
- if (message.group_id !== "") {
3288
- writer.uint32(10).string(message.group_id);
3191
+ if (message.account !== undefined) {
3192
+ AccountSteam.encode(message.account, writer.uint32(10).fork()).ldelim();
3289
3193
  }
3290
- for (const v of message.user_ids) {
3291
- writer.uint32(18).string(v);
3194
+ if (message.create !== undefined) {
3195
+ BoolValue.encode({ value: message.create }, writer.uint32(18).fork()).ldelim();
3196
+ }
3197
+ if (message.username !== "") {
3198
+ writer.uint32(26).string(message.username);
3199
+ }
3200
+ if (message.sync !== undefined) {
3201
+ BoolValue.encode({ value: message.sync }, writer.uint32(34).fork()).ldelim();
3292
3202
  }
3293
3203
  return writer;
3294
3204
  },
3295
3205
  decode(input, length) {
3296
3206
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3297
3207
  let end = length === undefined ? reader.len : reader.pos + length;
3298
- const message = createBaseBanGroupUsersRequest();
3208
+ const message = createBaseAuthenticateSteamRequest();
3209
+ while (reader.pos < end) {
3210
+ const tag = reader.uint32();
3211
+ switch (tag >>> 3) {
3212
+ case 1:
3213
+ if (tag !== 10) {
3214
+ break;
3215
+ }
3216
+ message.account = AccountSteam.decode(reader, reader.uint32());
3217
+ continue;
3218
+ case 2:
3219
+ if (tag !== 18) {
3220
+ break;
3221
+ }
3222
+ message.create = BoolValue.decode(reader, reader.uint32()).value;
3223
+ continue;
3224
+ case 3:
3225
+ if (tag !== 26) {
3226
+ break;
3227
+ }
3228
+ message.username = reader.string();
3229
+ continue;
3230
+ case 4:
3231
+ if (tag !== 34) {
3232
+ break;
3233
+ }
3234
+ message.sync = BoolValue.decode(reader, reader.uint32()).value;
3235
+ continue;
3236
+ }
3237
+ if ((tag & 7) === 4 || tag === 0) {
3238
+ break;
3239
+ }
3240
+ reader.skipType(tag & 7);
3241
+ }
3242
+ return message;
3243
+ },
3244
+ fromJSON(object) {
3245
+ return {
3246
+ account: isSet(object.account) ? AccountSteam.fromJSON(object.account) : undefined,
3247
+ create: isSet(object.create) ? Boolean(object.create) : undefined,
3248
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
3249
+ sync: isSet(object.sync) ? Boolean(object.sync) : undefined,
3250
+ };
3251
+ },
3252
+ toJSON(message) {
3253
+ const obj = {};
3254
+ if (message.account !== undefined) {
3255
+ obj.account = AccountSteam.toJSON(message.account);
3256
+ }
3257
+ if (message.create !== undefined) {
3258
+ obj.create = message.create;
3259
+ }
3260
+ if (message.username !== "") {
3261
+ obj.username = message.username;
3262
+ }
3263
+ if (message.sync !== undefined) {
3264
+ obj.sync = message.sync;
3265
+ }
3266
+ return obj;
3267
+ },
3268
+ create(base) {
3269
+ return AuthenticateSteamRequest.fromPartial(base ?? {});
3270
+ },
3271
+ fromPartial(object) {
3272
+ const message = createBaseAuthenticateSteamRequest();
3273
+ message.account = (object.account !== undefined && object.account !== null)
3274
+ ? AccountSteam.fromPartial(object.account)
3275
+ : undefined;
3276
+ message.create = object.create ?? undefined;
3277
+ message.username = object.username ?? "";
3278
+ message.sync = object.sync ?? undefined;
3279
+ return message;
3280
+ },
3281
+ };
3282
+ function createBaseBanGroupUsersRequest() {
3283
+ return { group_id: "", user_ids: [] };
3284
+ }
3285
+ export const BanGroupUsersRequest = {
3286
+ encode(message, writer = _m0.Writer.create()) {
3287
+ if (message.group_id !== "") {
3288
+ writer.uint32(10).string(message.group_id);
3289
+ }
3290
+ for (const v of message.user_ids) {
3291
+ writer.uint32(18).string(v);
3292
+ }
3293
+ return writer;
3294
+ },
3295
+ decode(input, length) {
3296
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3297
+ let end = length === undefined ? reader.len : reader.pos + length;
3298
+ const message = createBaseBanGroupUsersRequest();
3299
3299
  while (reader.pos < end) {
3300
3300
  const tag = reader.uint32();
3301
3301
  switch (tag >>> 3) {
@@ -4019,6 +4019,7 @@ function createBaseNotificationInfo() {
4019
4019
  category_name: "",
4020
4020
  clan_name: "",
4021
4021
  clan_logo: "",
4022
+ channel: undefined,
4022
4023
  };
4023
4024
  }
4024
4025
  export const NotificationInfo = {
@@ -4053,6 +4054,9 @@ export const NotificationInfo = {
4053
4054
  if (message.clan_logo !== "") {
4054
4055
  writer.uint32(82).string(message.clan_logo);
4055
4056
  }
4057
+ if (message.channel !== undefined) {
4058
+ ChannelDescription.encode(message.channel, writer.uint32(90).fork()).ldelim();
4059
+ }
4056
4060
  return writer;
4057
4061
  },
4058
4062
  decode(input, length) {
@@ -4122,6 +4126,12 @@ export const NotificationInfo = {
4122
4126
  }
4123
4127
  message.clan_logo = reader.string();
4124
4128
  continue;
4129
+ case 11:
4130
+ if (tag !== 90) {
4131
+ break;
4132
+ }
4133
+ message.channel = ChannelDescription.decode(reader, reader.uint32());
4134
+ continue;
4125
4135
  }
4126
4136
  if ((tag & 7) === 4 || tag === 0) {
4127
4137
  break;
@@ -4142,6 +4152,7 @@ export const NotificationInfo = {
4142
4152
  category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
4143
4153
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
4144
4154
  clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
4155
+ channel: isSet(object.channel) ? ChannelDescription.fromJSON(object.channel) : undefined,
4145
4156
  };
4146
4157
  },
4147
4158
  toJSON(message) {
@@ -4176,6 +4187,9 @@ export const NotificationInfo = {
4176
4187
  if (message.clan_logo !== "") {
4177
4188
  obj.clan_logo = message.clan_logo;
4178
4189
  }
4190
+ if (message.channel !== undefined) {
4191
+ obj.channel = ChannelDescription.toJSON(message.channel);
4192
+ }
4179
4193
  return obj;
4180
4194
  },
4181
4195
  create(base) {
@@ -4193,6 +4207,9 @@ export const NotificationInfo = {
4193
4207
  message.category_name = object.category_name ?? "";
4194
4208
  message.clan_name = object.clan_name ?? "";
4195
4209
  message.clan_logo = object.clan_logo ?? "";
4210
+ message.channel = (object.channel !== undefined && object.channel !== null)
4211
+ ? ChannelDescription.fromPartial(object.channel)
4212
+ : undefined;
4196
4213
  return message;
4197
4214
  },
4198
4215
  };
@@ -8312,6 +8329,7 @@ function createBaseNotification() {
8312
8329
  channel_id: "",
8313
8330
  channel_type: 0,
8314
8331
  avatar_url: "",
8332
+ channel: undefined,
8315
8333
  };
8316
8334
  }
8317
8335
  export const Notification = {
@@ -8349,6 +8367,9 @@ export const Notification = {
8349
8367
  if (message.avatar_url !== "") {
8350
8368
  writer.uint32(90).string(message.avatar_url);
8351
8369
  }
8370
+ if (message.channel !== undefined) {
8371
+ ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
8372
+ }
8352
8373
  return writer;
8353
8374
  },
8354
8375
  decode(input, length) {
@@ -8424,6 +8445,12 @@ export const Notification = {
8424
8445
  }
8425
8446
  message.avatar_url = reader.string();
8426
8447
  continue;
8448
+ case 12:
8449
+ if (tag !== 98) {
8450
+ break;
8451
+ }
8452
+ message.channel = ChannelDescription.decode(reader, reader.uint32());
8453
+ continue;
8427
8454
  }
8428
8455
  if ((tag & 7) === 4 || tag === 0) {
8429
8456
  break;
@@ -8445,6 +8472,7 @@ export const Notification = {
8445
8472
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
8446
8473
  channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
8447
8474
  avatar_url: isSet(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
8475
+ channel: isSet(object.channel) ? ChannelDescription.fromJSON(object.channel) : undefined,
8448
8476
  };
8449
8477
  },
8450
8478
  toJSON(message) {
@@ -8482,6 +8510,9 @@ export const Notification = {
8482
8510
  if (message.avatar_url !== "") {
8483
8511
  obj.avatar_url = message.avatar_url;
8484
8512
  }
8513
+ if (message.channel !== undefined) {
8514
+ obj.channel = ChannelDescription.toJSON(message.channel);
8515
+ }
8485
8516
  return obj;
8486
8517
  },
8487
8518
  create(base) {
@@ -8500,6 +8531,9 @@ export const Notification = {
8500
8531
  message.channel_id = object.channel_id ?? "";
8501
8532
  message.channel_type = object.channel_type ?? 0;
8502
8533
  message.avatar_url = object.avatar_url ?? "";
8534
+ message.channel = (object.channel !== undefined && object.channel !== null)
8535
+ ? ChannelDescription.fromPartial(object.channel)
8536
+ : undefined;
8503
8537
  return message;
8504
8538
  },
8505
8539
  };
@@ -10782,7 +10816,15 @@ export const InviteUserRequest = {
10782
10816
  },
10783
10817
  };
10784
10818
  function createBaseInviteUserRes() {
10785
- return { clan_id: "", channel_id: "", clan_name: "", channel_label: "", user_joined: false, expiry_time: undefined };
10819
+ return {
10820
+ clan_id: "",
10821
+ channel_id: "",
10822
+ clan_name: "",
10823
+ channel_label: "",
10824
+ user_joined: false,
10825
+ expiry_time: undefined,
10826
+ channel_desc: undefined,
10827
+ };
10786
10828
  }
10787
10829
  export const InviteUserRes = {
10788
10830
  encode(message, writer = _m0.Writer.create()) {
@@ -10804,6 +10846,9 @@ export const InviteUserRes = {
10804
10846
  if (message.expiry_time !== undefined) {
10805
10847
  Timestamp.encode(toTimestamp(message.expiry_time), writer.uint32(50).fork()).ldelim();
10806
10848
  }
10849
+ if (message.channel_desc !== undefined) {
10850
+ ChannelDescription.encode(message.channel_desc, writer.uint32(58).fork()).ldelim();
10851
+ }
10807
10852
  return writer;
10808
10853
  },
10809
10854
  decode(input, length) {
@@ -10849,6 +10894,12 @@ export const InviteUserRes = {
10849
10894
  }
10850
10895
  message.expiry_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
10851
10896
  continue;
10897
+ case 7:
10898
+ if (tag !== 58) {
10899
+ break;
10900
+ }
10901
+ message.channel_desc = ChannelDescription.decode(reader, reader.uint32());
10902
+ continue;
10852
10903
  }
10853
10904
  if ((tag & 7) === 4 || tag === 0) {
10854
10905
  break;
@@ -10865,6 +10916,7 @@ export const InviteUserRes = {
10865
10916
  channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
10866
10917
  user_joined: isSet(object.user_joined) ? globalThis.Boolean(object.user_joined) : false,
10867
10918
  expiry_time: isSet(object.expiry_time) ? fromJsonTimestamp(object.expiry_time) : undefined,
10919
+ channel_desc: isSet(object.channel_desc) ? ChannelDescription.fromJSON(object.channel_desc) : undefined,
10868
10920
  };
10869
10921
  },
10870
10922
  toJSON(message) {
@@ -10887,6 +10939,9 @@ export const InviteUserRes = {
10887
10939
  if (message.expiry_time !== undefined) {
10888
10940
  obj.expiry_time = message.expiry_time.toISOString();
10889
10941
  }
10942
+ if (message.channel_desc !== undefined) {
10943
+ obj.channel_desc = ChannelDescription.toJSON(message.channel_desc);
10944
+ }
10890
10945
  return obj;
10891
10946
  },
10892
10947
  create(base) {
@@ -10900,6 +10955,9 @@ export const InviteUserRes = {
10900
10955
  message.channel_label = object.channel_label ?? "";
10901
10956
  message.user_joined = object.user_joined ?? false;
10902
10957
  message.expiry_time = object.expiry_time ?? undefined;
10958
+ message.channel_desc = (object.channel_desc !== undefined && object.channel_desc !== null)
10959
+ ? ChannelDescription.fromPartial(object.channel_desc)
10960
+ : undefined;
10903
10961
  return message;
10904
10962
  },
10905
10963
  };
@@ -12053,7 +12111,7 @@ function createBaseChannelDescription() {
12053
12111
  count_mess_unread: 0,
12054
12112
  active: 0,
12055
12113
  last_pin_message: "",
12056
- usernames: "",
12114
+ usernames: [],
12057
12115
  creator_name: "",
12058
12116
  create_time_seconds: 0,
12059
12117
  update_time_seconds: 0,
@@ -12065,6 +12123,7 @@ function createBaseChannelDescription() {
12065
12123
  age_restricted: 0,
12066
12124
  topic: "",
12067
12125
  e2ee: 0,
12126
+ display_names: [],
12068
12127
  };
12069
12128
  }
12070
12129
  export const ChannelDescription = {
@@ -12125,8 +12184,8 @@ export const ChannelDescription = {
12125
12184
  if (message.last_pin_message !== "") {
12126
12185
  writer.uint32(146).string(message.last_pin_message);
12127
12186
  }
12128
- if (message.usernames !== "") {
12129
- writer.uint32(154).string(message.usernames);
12187
+ for (const v of message.usernames) {
12188
+ writer.uint32(154).string(v);
12130
12189
  }
12131
12190
  if (message.creator_name !== "") {
12132
12191
  writer.uint32(162).string(message.creator_name);
@@ -12161,6 +12220,9 @@ export const ChannelDescription = {
12161
12220
  if (message.e2ee !== 0) {
12162
12221
  writer.uint32(240).int32(message.e2ee);
12163
12222
  }
12223
+ for (const v of message.display_names) {
12224
+ writer.uint32(250).string(v);
12225
+ }
12164
12226
  return writer;
12165
12227
  },
12166
12228
  decode(input, length) {
@@ -12289,7 +12351,7 @@ export const ChannelDescription = {
12289
12351
  if (tag !== 154) {
12290
12352
  break;
12291
12353
  }
12292
- message.usernames = reader.string();
12354
+ message.usernames.push(reader.string());
12293
12355
  continue;
12294
12356
  case 20:
12295
12357
  if (tag !== 162) {
@@ -12357,6 +12419,12 @@ export const ChannelDescription = {
12357
12419
  }
12358
12420
  message.e2ee = reader.int32();
12359
12421
  continue;
12422
+ case 31:
12423
+ if (tag !== 250) {
12424
+ break;
12425
+ }
12426
+ message.display_names.push(reader.string());
12427
+ continue;
12360
12428
  }
12361
12429
  if ((tag & 7) === 4 || tag === 0) {
12362
12430
  break;
@@ -12393,11 +12461,15 @@ export const ChannelDescription = {
12393
12461
  count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
12394
12462
  active: isSet(object.active) ? globalThis.Number(object.active) : 0,
12395
12463
  last_pin_message: isSet(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
12396
- usernames: isSet(object.usernames) ? globalThis.String(object.usernames) : "",
12464
+ usernames: globalThis.Array.isArray(object?.usernames)
12465
+ ? object.usernames.map((e) => globalThis.String(e))
12466
+ : [],
12397
12467
  creator_name: isSet(object.creator_name) ? globalThis.String(object.creator_name) : "",
12398
12468
  create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
12399
12469
  update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
12400
- metadata: globalThis.Array.isArray(object?.metadata) ? object.metadata.map((e) => globalThis.String(e)) : [],
12470
+ metadata: globalThis.Array.isArray(object?.metadata)
12471
+ ? object.metadata.map((e) => globalThis.String(e))
12472
+ : [],
12401
12473
  about_me: globalThis.Array.isArray(object?.about_me) ? object.about_me.map((e) => globalThis.String(e)) : [],
12402
12474
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
12403
12475
  app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
@@ -12405,6 +12477,9 @@ export const ChannelDescription = {
12405
12477
  age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
12406
12478
  topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
12407
12479
  e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
12480
+ display_names: globalThis.Array.isArray(object?.display_names)
12481
+ ? object.display_names.map((e) => globalThis.String(e))
12482
+ : [],
12408
12483
  };
12409
12484
  },
12410
12485
  toJSON(message) {
@@ -12463,7 +12538,7 @@ export const ChannelDescription = {
12463
12538
  if (message.last_pin_message !== "") {
12464
12539
  obj.last_pin_message = message.last_pin_message;
12465
12540
  }
12466
- if (message.usernames !== "") {
12541
+ if (message.usernames?.length) {
12467
12542
  obj.usernames = message.usernames;
12468
12543
  }
12469
12544
  if (message.creator_name !== "") {
@@ -12499,6 +12574,9 @@ export const ChannelDescription = {
12499
12574
  if (message.e2ee !== 0) {
12500
12575
  obj.e2ee = Math.round(message.e2ee);
12501
12576
  }
12577
+ if (message.display_names?.length) {
12578
+ obj.display_names = message.display_names;
12579
+ }
12502
12580
  return obj;
12503
12581
  },
12504
12582
  create(base) {
@@ -12528,7 +12606,7 @@ export const ChannelDescription = {
12528
12606
  message.count_mess_unread = object.count_mess_unread ?? 0;
12529
12607
  message.active = object.active ?? 0;
12530
12608
  message.last_pin_message = object.last_pin_message ?? "";
12531
- message.usernames = object.usernames ?? "";
12609
+ message.usernames = object.usernames?.map((e) => e) || [];
12532
12610
  message.creator_name = object.creator_name ?? "";
12533
12611
  message.create_time_seconds = object.create_time_seconds ?? 0;
12534
12612
  message.update_time_seconds = object.update_time_seconds ?? 0;
@@ -12540,11 +12618,12 @@ export const ChannelDescription = {
12540
12618
  message.age_restricted = object.age_restricted ?? 0;
12541
12619
  message.topic = object.topic ?? "";
12542
12620
  message.e2ee = object.e2ee ?? 0;
12621
+ message.display_names = object.display_names?.map((e) => e) || [];
12543
12622
  return message;
12544
12623
  },
12545
12624
  };
12546
12625
  function createBaseChannelDescList() {
12547
- return { channeldesc: [], next_cursor: "", prev_cursor: "", cacheable_cursor: "" };
12626
+ return { channeldesc: [], next_cursor: "", prev_cursor: "", cacheable_cursor: "", page: 0 };
12548
12627
  }
12549
12628
  export const ChannelDescList = {
12550
12629
  encode(message, writer = _m0.Writer.create()) {
@@ -12560,6 +12639,9 @@ export const ChannelDescList = {
12560
12639
  if (message.cacheable_cursor !== "") {
12561
12640
  writer.uint32(34).string(message.cacheable_cursor);
12562
12641
  }
12642
+ if (message.page !== 0) {
12643
+ writer.uint32(40).int32(message.page);
12644
+ }
12563
12645
  return writer;
12564
12646
  },
12565
12647
  decode(input, length) {
@@ -12593,6 +12675,12 @@ export const ChannelDescList = {
12593
12675
  }
12594
12676
  message.cacheable_cursor = reader.string();
12595
12677
  continue;
12678
+ case 5:
12679
+ if (tag !== 40) {
12680
+ break;
12681
+ }
12682
+ message.page = reader.int32();
12683
+ continue;
12596
12684
  }
12597
12685
  if ((tag & 7) === 4 || tag === 0) {
12598
12686
  break;
@@ -12609,6 +12697,7 @@ export const ChannelDescList = {
12609
12697
  next_cursor: isSet(object.next_cursor) ? globalThis.String(object.next_cursor) : "",
12610
12698
  prev_cursor: isSet(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
12611
12699
  cacheable_cursor: isSet(object.cacheable_cursor) ? globalThis.String(object.cacheable_cursor) : "",
12700
+ page: isSet(object.page) ? globalThis.Number(object.page) : 0,
12612
12701
  };
12613
12702
  },
12614
12703
  toJSON(message) {
@@ -12625,6 +12714,9 @@ export const ChannelDescList = {
12625
12714
  if (message.cacheable_cursor !== "") {
12626
12715
  obj.cacheable_cursor = message.cacheable_cursor;
12627
12716
  }
12717
+ if (message.page !== 0) {
12718
+ obj.page = Math.round(message.page);
12719
+ }
12628
12720
  return obj;
12629
12721
  },
12630
12722
  create(base) {
@@ -12636,11 +12728,12 @@ export const ChannelDescList = {
12636
12728
  message.next_cursor = object.next_cursor ?? "";
12637
12729
  message.prev_cursor = object.prev_cursor ?? "";
12638
12730
  message.cacheable_cursor = object.cacheable_cursor ?? "";
12731
+ message.page = object.page ?? 0;
12639
12732
  return message;
12640
12733
  },
12641
12734
  };
12642
12735
  function createBaseListThreadRequest() {
12643
- return { limit: undefined, state: undefined, clan_id: "", channel_id: "", thread_id: "" };
12736
+ return { limit: undefined, state: undefined, clan_id: "", channel_id: "", thread_id: "", page: undefined };
12644
12737
  }
12645
12738
  export const ListThreadRequest = {
12646
12739
  encode(message, writer = _m0.Writer.create()) {
@@ -12659,6 +12752,9 @@ export const ListThreadRequest = {
12659
12752
  if (message.thread_id !== "") {
12660
12753
  writer.uint32(42).string(message.thread_id);
12661
12754
  }
12755
+ if (message.page !== undefined) {
12756
+ Int32Value.encode({ value: message.page }, writer.uint32(50).fork()).ldelim();
12757
+ }
12662
12758
  return writer;
12663
12759
  },
12664
12760
  decode(input, length) {
@@ -12698,6 +12794,12 @@ export const ListThreadRequest = {
12698
12794
  }
12699
12795
  message.thread_id = reader.string();
12700
12796
  continue;
12797
+ case 6:
12798
+ if (tag !== 50) {
12799
+ break;
12800
+ }
12801
+ message.page = Int32Value.decode(reader, reader.uint32()).value;
12802
+ continue;
12701
12803
  }
12702
12804
  if ((tag & 7) === 4 || tag === 0) {
12703
12805
  break;
@@ -12713,6 +12815,7 @@ export const ListThreadRequest = {
12713
12815
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
12714
12816
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
12715
12817
  thread_id: isSet(object.thread_id) ? globalThis.String(object.thread_id) : "",
12818
+ page: isSet(object.page) ? Number(object.page) : undefined,
12716
12819
  };
12717
12820
  },
12718
12821
  toJSON(message) {
@@ -12732,6 +12835,9 @@ export const ListThreadRequest = {
12732
12835
  if (message.thread_id !== "") {
12733
12836
  obj.thread_id = message.thread_id;
12734
12837
  }
12838
+ if (message.page !== undefined) {
12839
+ obj.page = message.page;
12840
+ }
12735
12841
  return obj;
12736
12842
  },
12737
12843
  create(base) {
@@ -12744,6 +12850,7 @@ export const ListThreadRequest = {
12744
12850
  message.clan_id = object.clan_id ?? "";
12745
12851
  message.channel_id = object.channel_id ?? "";
12746
12852
  message.thread_id = object.thread_id ?? "";
12853
+ message.page = object.page ?? undefined;
12747
12854
  return message;
12748
12855
  },
12749
12856
  };
@@ -14708,7 +14815,7 @@ export const PinMessagesList = {
14708
14815
  },
14709
14816
  };
14710
14817
  function createBaseNotificationUserChannel() {
14711
- return { id: "", notification_setting_type: 0, time_mute: undefined, active: 0 };
14818
+ return { id: "", notification_setting_type: 0, time_mute: undefined, active: 0, channel_id: "" };
14712
14819
  }
14713
14820
  export const NotificationUserChannel = {
14714
14821
  encode(message, writer = _m0.Writer.create()) {
@@ -14724,6 +14831,9 @@ export const NotificationUserChannel = {
14724
14831
  if (message.active !== 0) {
14725
14832
  writer.uint32(32).int32(message.active);
14726
14833
  }
14834
+ if (message.channel_id !== "") {
14835
+ writer.uint32(42).string(message.channel_id);
14836
+ }
14727
14837
  return writer;
14728
14838
  },
14729
14839
  decode(input, length) {
@@ -14757,6 +14867,12 @@ export const NotificationUserChannel = {
14757
14867
  }
14758
14868
  message.active = reader.int32();
14759
14869
  continue;
14870
+ case 5:
14871
+ if (tag !== 42) {
14872
+ break;
14873
+ }
14874
+ message.channel_id = reader.string();
14875
+ continue;
14760
14876
  }
14761
14877
  if ((tag & 7) === 4 || tag === 0) {
14762
14878
  break;
@@ -14773,6 +14889,7 @@ export const NotificationUserChannel = {
14773
14889
  : 0,
14774
14890
  time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
14775
14891
  active: isSet(object.active) ? globalThis.Number(object.active) : 0,
14892
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
14776
14893
  };
14777
14894
  },
14778
14895
  toJSON(message) {
@@ -14789,6 +14906,9 @@ export const NotificationUserChannel = {
14789
14906
  if (message.active !== 0) {
14790
14907
  obj.active = Math.round(message.active);
14791
14908
  }
14909
+ if (message.channel_id !== "") {
14910
+ obj.channel_id = message.channel_id;
14911
+ }
14792
14912
  return obj;
14793
14913
  },
14794
14914
  create(base) {
@@ -14800,6 +14920,7 @@ export const NotificationUserChannel = {
14800
14920
  message.notification_setting_type = object.notification_setting_type ?? 0;
14801
14921
  message.time_mute = object.time_mute ?? undefined;
14802
14922
  message.active = object.active ?? 0;
14923
+ message.channel_id = object.channel_id ?? "";
14803
14924
  return message;
14804
14925
  },
14805
14926
  };
@@ -18544,10 +18665,10 @@ function createBaseSearchMessageDocument() {
18544
18665
  clan_id: 0,
18545
18666
  sender_id: 0,
18546
18667
  content: "",
18547
- mention: "",
18548
- reaction: "",
18668
+ mentions: "",
18669
+ reactions: "",
18549
18670
  attachments: [],
18550
- reference: "",
18671
+ references: "",
18551
18672
  create_time: "",
18552
18673
  update_time: "",
18553
18674
  channel_label: "",
@@ -18575,17 +18696,17 @@ export const SearchMessageDocument = {
18575
18696
  if (message.content !== "") {
18576
18697
  writer.uint32(42).string(message.content);
18577
18698
  }
18578
- if (message.mention !== "") {
18579
- writer.uint32(50).string(message.mention);
18699
+ if (message.mentions !== "") {
18700
+ writer.uint32(50).string(message.mentions);
18580
18701
  }
18581
- if (message.reaction !== "") {
18582
- writer.uint32(58).string(message.reaction);
18702
+ if (message.reactions !== "") {
18703
+ writer.uint32(58).string(message.reactions);
18583
18704
  }
18584
18705
  for (const v of message.attachments) {
18585
18706
  MessageAttachment.encode(v, writer.uint32(66).fork()).ldelim();
18586
18707
  }
18587
- if (message.reference !== "") {
18588
- writer.uint32(74).string(message.reference);
18708
+ if (message.references !== "") {
18709
+ writer.uint32(74).string(message.references);
18589
18710
  }
18590
18711
  if (message.create_time !== "") {
18591
18712
  writer.uint32(82).string(message.create_time);
@@ -18654,13 +18775,13 @@ export const SearchMessageDocument = {
18654
18775
  if (tag !== 50) {
18655
18776
  break;
18656
18777
  }
18657
- message.mention = reader.string();
18778
+ message.mentions = reader.string();
18658
18779
  continue;
18659
18780
  case 7:
18660
18781
  if (tag !== 58) {
18661
18782
  break;
18662
18783
  }
18663
- message.reaction = reader.string();
18784
+ message.reactions = reader.string();
18664
18785
  continue;
18665
18786
  case 8:
18666
18787
  if (tag !== 66) {
@@ -18672,7 +18793,7 @@ export const SearchMessageDocument = {
18672
18793
  if (tag !== 74) {
18673
18794
  break;
18674
18795
  }
18675
- message.reference = reader.string();
18796
+ message.references = reader.string();
18676
18797
  continue;
18677
18798
  case 10:
18678
18799
  if (tag !== 82) {
@@ -18737,12 +18858,12 @@ export const SearchMessageDocument = {
18737
18858
  clan_id: isSet(object.clan_id) ? globalThis.Number(object.clan_id) : 0,
18738
18859
  sender_id: isSet(object.sender_id) ? globalThis.Number(object.sender_id) : 0,
18739
18860
  content: isSet(object.content) ? globalThis.String(object.content) : "",
18740
- mention: isSet(object.mention) ? globalThis.String(object.mention) : "",
18741
- reaction: isSet(object.reaction) ? globalThis.String(object.reaction) : "",
18861
+ mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
18862
+ reactions: isSet(object.reactions) ? globalThis.String(object.reactions) : "",
18742
18863
  attachments: globalThis.Array.isArray(object?.attachments)
18743
18864
  ? object.attachments.map((e) => MessageAttachment.fromJSON(e))
18744
18865
  : [],
18745
- reference: isSet(object.reference) ? globalThis.String(object.reference) : "",
18866
+ references: isSet(object.references) ? globalThis.String(object.references) : "",
18746
18867
  create_time: isSet(object.create_time) ? globalThis.String(object.create_time) : "",
18747
18868
  update_time: isSet(object.update_time) ? globalThis.String(object.update_time) : "",
18748
18869
  channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
@@ -18770,17 +18891,17 @@ export const SearchMessageDocument = {
18770
18891
  if (message.content !== "") {
18771
18892
  obj.content = message.content;
18772
18893
  }
18773
- if (message.mention !== "") {
18774
- obj.mention = message.mention;
18894
+ if (message.mentions !== "") {
18895
+ obj.mentions = message.mentions;
18775
18896
  }
18776
- if (message.reaction !== "") {
18777
- obj.reaction = message.reaction;
18897
+ if (message.reactions !== "") {
18898
+ obj.reactions = message.reactions;
18778
18899
  }
18779
18900
  if (message.attachments?.length) {
18780
18901
  obj.attachments = message.attachments.map((e) => MessageAttachment.toJSON(e));
18781
18902
  }
18782
- if (message.reference !== "") {
18783
- obj.reference = message.reference;
18903
+ if (message.references !== "") {
18904
+ obj.references = message.references;
18784
18905
  }
18785
18906
  if (message.create_time !== "") {
18786
18907
  obj.create_time = message.create_time;
@@ -18818,10 +18939,10 @@ export const SearchMessageDocument = {
18818
18939
  message.clan_id = object.clan_id ?? 0;
18819
18940
  message.sender_id = object.sender_id ?? 0;
18820
18941
  message.content = object.content ?? "";
18821
- message.mention = object.mention ?? "";
18822
- message.reaction = object.reaction ?? "";
18942
+ message.mentions = object.mentions ?? "";
18943
+ message.reactions = object.reactions ?? "";
18823
18944
  message.attachments = object.attachments?.map((e) => MessageAttachment.fromPartial(e)) || [];
18824
- message.reference = object.reference ?? "";
18945
+ message.references = object.references ?? "";
18825
18946
  message.create_time = object.create_time ?? "";
18826
18947
  message.update_time = object.update_time ?? "";
18827
18948
  message.channel_label = object.channel_label ?? "";
@@ -20029,6 +20150,7 @@ function createBaseWebhook() {
20029
20150
  create_time: "",
20030
20151
  update_time: "",
20031
20152
  avatar: "",
20153
+ status: 0,
20032
20154
  };
20033
20155
  }
20034
20156
  export const Webhook = {
@@ -20060,6 +20182,9 @@ export const Webhook = {
20060
20182
  if (message.avatar !== "") {
20061
20183
  writer.uint32(74).string(message.avatar);
20062
20184
  }
20185
+ if (message.status !== 0) {
20186
+ writer.uint32(80).int32(message.status);
20187
+ }
20063
20188
  return writer;
20064
20189
  },
20065
20190
  decode(input, length) {
@@ -20123,6 +20248,12 @@ export const Webhook = {
20123
20248
  }
20124
20249
  message.avatar = reader.string();
20125
20250
  continue;
20251
+ case 10:
20252
+ if (tag !== 80) {
20253
+ break;
20254
+ }
20255
+ message.status = reader.int32();
20256
+ continue;
20126
20257
  }
20127
20258
  if ((tag & 7) === 4 || tag === 0) {
20128
20259
  break;
@@ -20142,6 +20273,7 @@ export const Webhook = {
20142
20273
  create_time: isSet(object.create_time) ? globalThis.String(object.create_time) : "",
20143
20274
  update_time: isSet(object.update_time) ? globalThis.String(object.update_time) : "",
20144
20275
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
20276
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
20145
20277
  };
20146
20278
  },
20147
20279
  toJSON(message) {
@@ -20173,6 +20305,9 @@ export const Webhook = {
20173
20305
  if (message.avatar !== "") {
20174
20306
  obj.avatar = message.avatar;
20175
20307
  }
20308
+ if (message.status !== 0) {
20309
+ obj.status = Math.round(message.status);
20310
+ }
20176
20311
  return obj;
20177
20312
  },
20178
20313
  create(base) {
@@ -20189,6 +20324,7 @@ export const Webhook = {
20189
20324
  message.create_time = object.create_time ?? "";
20190
20325
  message.update_time = object.update_time ?? "";
20191
20326
  message.avatar = object.avatar ?? "";
20327
+ message.status = object.status ?? 0;
20192
20328
  return message;
20193
20329
  },
20194
20330
  };
@@ -21277,15 +21413,18 @@ export const ClanStickerDeleteRequest = {
21277
21413
  },
21278
21414
  };
21279
21415
  function createBaseChangeChannelCategoryRequest() {
21280
- return { channel_id: "", new_category_id: "" };
21416
+ return { clan_id: "", channel_id: "", new_category_id: "" };
21281
21417
  }
21282
21418
  export const ChangeChannelCategoryRequest = {
21283
21419
  encode(message, writer = _m0.Writer.create()) {
21420
+ if (message.clan_id !== "") {
21421
+ writer.uint32(10).string(message.clan_id);
21422
+ }
21284
21423
  if (message.channel_id !== "") {
21285
- writer.uint32(10).string(message.channel_id);
21424
+ writer.uint32(18).string(message.channel_id);
21286
21425
  }
21287
21426
  if (message.new_category_id !== "") {
21288
- writer.uint32(18).string(message.new_category_id);
21427
+ writer.uint32(26).string(message.new_category_id);
21289
21428
  }
21290
21429
  return writer;
21291
21430
  },
@@ -21300,12 +21439,18 @@ export const ChangeChannelCategoryRequest = {
21300
21439
  if (tag !== 10) {
21301
21440
  break;
21302
21441
  }
21303
- message.channel_id = reader.string();
21442
+ message.clan_id = reader.string();
21304
21443
  continue;
21305
21444
  case 2:
21306
21445
  if (tag !== 18) {
21307
21446
  break;
21308
21447
  }
21448
+ message.channel_id = reader.string();
21449
+ continue;
21450
+ case 3:
21451
+ if (tag !== 26) {
21452
+ break;
21453
+ }
21309
21454
  message.new_category_id = reader.string();
21310
21455
  continue;
21311
21456
  }
@@ -21318,12 +21463,16 @@ export const ChangeChannelCategoryRequest = {
21318
21463
  },
21319
21464
  fromJSON(object) {
21320
21465
  return {
21466
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
21321
21467
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
21322
21468
  new_category_id: isSet(object.new_category_id) ? globalThis.String(object.new_category_id) : "",
21323
21469
  };
21324
21470
  },
21325
21471
  toJSON(message) {
21326
21472
  const obj = {};
21473
+ if (message.clan_id !== "") {
21474
+ obj.clan_id = message.clan_id;
21475
+ }
21327
21476
  if (message.channel_id !== "") {
21328
21477
  obj.channel_id = message.channel_id;
21329
21478
  }
@@ -21337,6 +21486,7 @@ export const ChangeChannelCategoryRequest = {
21337
21486
  },
21338
21487
  fromPartial(object) {
21339
21488
  const message = createBaseChangeChannelCategoryRequest();
21489
+ message.clan_id = object.clan_id ?? "";
21340
21490
  message.channel_id = object.channel_id ?? "";
21341
21491
  message.new_category_id = object.new_category_id ?? "";
21342
21492
  return message;
@@ -25273,7 +25423,7 @@ export const DeleteChannelCanvasRequest = {
25273
25423
  },
25274
25424
  };
25275
25425
  function createBaseChannelCanvasListRequest() {
25276
- return { clan_id: "", channel_id: "", limit: undefined, page: undefined };
25426
+ return { clan_id: "", channel_id: "", limit: undefined, page: undefined, cursor: "" };
25277
25427
  }
25278
25428
  export const ChannelCanvasListRequest = {
25279
25429
  encode(message, writer = _m0.Writer.create()) {
@@ -25289,6 +25439,9 @@ export const ChannelCanvasListRequest = {
25289
25439
  if (message.page !== undefined) {
25290
25440
  Int32Value.encode({ value: message.page }, writer.uint32(34).fork()).ldelim();
25291
25441
  }
25442
+ if (message.cursor !== "") {
25443
+ writer.uint32(42).string(message.cursor);
25444
+ }
25292
25445
  return writer;
25293
25446
  },
25294
25447
  decode(input, length) {
@@ -25322,6 +25475,12 @@ export const ChannelCanvasListRequest = {
25322
25475
  }
25323
25476
  message.page = Int32Value.decode(reader, reader.uint32()).value;
25324
25477
  continue;
25478
+ case 5:
25479
+ if (tag !== 42) {
25480
+ break;
25481
+ }
25482
+ message.cursor = reader.string();
25483
+ continue;
25325
25484
  }
25326
25485
  if ((tag & 7) === 4 || tag === 0) {
25327
25486
  break;
@@ -25336,6 +25495,7 @@ export const ChannelCanvasListRequest = {
25336
25495
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
25337
25496
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
25338
25497
  page: isSet(object.page) ? Number(object.page) : undefined,
25498
+ cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
25339
25499
  };
25340
25500
  },
25341
25501
  toJSON(message) {
@@ -25352,6 +25512,9 @@ export const ChannelCanvasListRequest = {
25352
25512
  if (message.page !== undefined) {
25353
25513
  obj.page = message.page;
25354
25514
  }
25515
+ if (message.cursor !== "") {
25516
+ obj.cursor = message.cursor;
25517
+ }
25355
25518
  return obj;
25356
25519
  },
25357
25520
  create(base) {
@@ -25363,11 +25526,12 @@ export const ChannelCanvasListRequest = {
25363
25526
  message.channel_id = object.channel_id ?? "";
25364
25527
  message.limit = object.limit ?? undefined;
25365
25528
  message.page = object.page ?? undefined;
25529
+ message.cursor = object.cursor ?? "";
25366
25530
  return message;
25367
25531
  },
25368
25532
  };
25369
25533
  function createBaseChannelCanvasItem() {
25370
- return { id: "", title: "", is_default: false, content: "", creator_id: "" };
25534
+ return { id: "", title: "", is_default: false, content: "", creator_id: "", update_time: undefined };
25371
25535
  }
25372
25536
  export const ChannelCanvasItem = {
25373
25537
  encode(message, writer = _m0.Writer.create()) {
@@ -25386,6 +25550,9 @@ export const ChannelCanvasItem = {
25386
25550
  if (message.creator_id !== "") {
25387
25551
  writer.uint32(42).string(message.creator_id);
25388
25552
  }
25553
+ if (message.update_time !== undefined) {
25554
+ Timestamp.encode(toTimestamp(message.update_time), writer.uint32(50).fork()).ldelim();
25555
+ }
25389
25556
  return writer;
25390
25557
  },
25391
25558
  decode(input, length) {
@@ -25425,11 +25592,17 @@ export const ChannelCanvasItem = {
25425
25592
  }
25426
25593
  message.creator_id = reader.string();
25427
25594
  continue;
25428
- }
25429
- if ((tag & 7) === 4 || tag === 0) {
25430
- break;
25431
- }
25432
- reader.skipType(tag & 7);
25595
+ case 6:
25596
+ if (tag !== 50) {
25597
+ break;
25598
+ }
25599
+ message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
25600
+ continue;
25601
+ }
25602
+ if ((tag & 7) === 4 || tag === 0) {
25603
+ break;
25604
+ }
25605
+ reader.skipType(tag & 7);
25433
25606
  }
25434
25607
  return message;
25435
25608
  },
@@ -25440,6 +25613,7 @@ export const ChannelCanvasItem = {
25440
25613
  is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
25441
25614
  content: isSet(object.content) ? globalThis.String(object.content) : "",
25442
25615
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
25616
+ update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
25443
25617
  };
25444
25618
  },
25445
25619
  toJSON(message) {
@@ -25459,6 +25633,9 @@ export const ChannelCanvasItem = {
25459
25633
  if (message.creator_id !== "") {
25460
25634
  obj.creator_id = message.creator_id;
25461
25635
  }
25636
+ if (message.update_time !== undefined) {
25637
+ obj.update_time = message.update_time.toISOString();
25638
+ }
25462
25639
  return obj;
25463
25640
  },
25464
25641
  create(base) {
@@ -25471,11 +25648,12 @@ export const ChannelCanvasItem = {
25471
25648
  message.is_default = object.is_default ?? false;
25472
25649
  message.content = object.content ?? "";
25473
25650
  message.creator_id = object.creator_id ?? "";
25651
+ message.update_time = object.update_time ?? undefined;
25474
25652
  return message;
25475
25653
  },
25476
25654
  };
25477
25655
  function createBaseChannelCanvasListResponse() {
25478
- return { clan_id: "", channel_id: "", channel_canvases: [] };
25656
+ return { clan_id: "", channel_id: "", channel_canvases: [], count: 0 };
25479
25657
  }
25480
25658
  export const ChannelCanvasListResponse = {
25481
25659
  encode(message, writer = _m0.Writer.create()) {
@@ -25488,6 +25666,9 @@ export const ChannelCanvasListResponse = {
25488
25666
  for (const v of message.channel_canvases) {
25489
25667
  ChannelCanvasItem.encode(v, writer.uint32(26).fork()).ldelim();
25490
25668
  }
25669
+ if (message.count !== 0) {
25670
+ writer.uint32(32).int64(message.count);
25671
+ }
25491
25672
  return writer;
25492
25673
  },
25493
25674
  decode(input, length) {
@@ -25515,6 +25696,12 @@ export const ChannelCanvasListResponse = {
25515
25696
  }
25516
25697
  message.channel_canvases.push(ChannelCanvasItem.decode(reader, reader.uint32()));
25517
25698
  continue;
25699
+ case 4:
25700
+ if (tag !== 32) {
25701
+ break;
25702
+ }
25703
+ message.count = longToNumber(reader.int64());
25704
+ continue;
25518
25705
  }
25519
25706
  if ((tag & 7) === 4 || tag === 0) {
25520
25707
  break;
@@ -25530,6 +25717,7 @@ export const ChannelCanvasListResponse = {
25530
25717
  channel_canvases: globalThis.Array.isArray(object?.channel_canvases)
25531
25718
  ? object.channel_canvases.map((e) => ChannelCanvasItem.fromJSON(e))
25532
25719
  : [],
25720
+ count: isSet(object.count) ? globalThis.Number(object.count) : 0,
25533
25721
  };
25534
25722
  },
25535
25723
  toJSON(message) {
@@ -25543,6 +25731,9 @@ export const ChannelCanvasListResponse = {
25543
25731
  if (message.channel_canvases?.length) {
25544
25732
  obj.channel_canvases = message.channel_canvases.map((e) => ChannelCanvasItem.toJSON(e));
25545
25733
  }
25734
+ if (message.count !== 0) {
25735
+ obj.count = Math.round(message.count);
25736
+ }
25546
25737
  return obj;
25547
25738
  },
25548
25739
  create(base) {
@@ -25553,6 +25744,7 @@ export const ChannelCanvasListResponse = {
25553
25744
  message.clan_id = object.clan_id ?? "";
25554
25745
  message.channel_id = object.channel_id ?? "";
25555
25746
  message.channel_canvases = object.channel_canvases?.map((e) => ChannelCanvasItem.fromPartial(e)) || [];
25747
+ message.count = object.count ?? 0;
25556
25748
  return message;
25557
25749
  },
25558
25750
  };
@@ -26371,7 +26563,7 @@ export const CreateActivityRequest = {
26371
26563
  },
26372
26564
  };
26373
26565
  function createBaseLoginIDResponse() {
26374
- return { login_id: "", status: 0, create_time_second: 0, platform: "", user_id: 0, user_name: "", address: "" };
26566
+ return { login_id: "", status: 0, create_time_second: 0, platform: "", user_id: 0, username: "", address: "" };
26375
26567
  }
26376
26568
  export const LoginIDResponse = {
26377
26569
  encode(message, writer = _m0.Writer.create()) {
@@ -26390,8 +26582,8 @@ export const LoginIDResponse = {
26390
26582
  if (message.user_id !== 0) {
26391
26583
  writer.uint32(40).int64(message.user_id);
26392
26584
  }
26393
- if (message.user_name !== "") {
26394
- writer.uint32(50).string(message.user_name);
26585
+ if (message.username !== "") {
26586
+ writer.uint32(50).string(message.username);
26395
26587
  }
26396
26588
  if (message.address !== "") {
26397
26589
  writer.uint32(58).string(message.address);
@@ -26439,7 +26631,7 @@ export const LoginIDResponse = {
26439
26631
  if (tag !== 50) {
26440
26632
  break;
26441
26633
  }
26442
- message.user_name = reader.string();
26634
+ message.username = reader.string();
26443
26635
  continue;
26444
26636
  case 7:
26445
26637
  if (tag !== 58) {
@@ -26462,7 +26654,7 @@ export const LoginIDResponse = {
26462
26654
  create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
26463
26655
  platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
26464
26656
  user_id: isSet(object.user_id) ? globalThis.Number(object.user_id) : 0,
26465
- user_name: isSet(object.user_name) ? globalThis.String(object.user_name) : "",
26657
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
26466
26658
  address: isSet(object.address) ? globalThis.String(object.address) : "",
26467
26659
  };
26468
26660
  },
@@ -26483,8 +26675,8 @@ export const LoginIDResponse = {
26483
26675
  if (message.user_id !== 0) {
26484
26676
  obj.user_id = Math.round(message.user_id);
26485
26677
  }
26486
- if (message.user_name !== "") {
26487
- obj.user_name = message.user_name;
26678
+ if (message.username !== "") {
26679
+ obj.username = message.username;
26488
26680
  }
26489
26681
  if (message.address !== "") {
26490
26682
  obj.address = message.address;
@@ -26501,7 +26693,7 @@ export const LoginIDResponse = {
26501
26693
  message.create_time_second = object.create_time_second ?? 0;
26502
26694
  message.platform = object.platform ?? "";
26503
26695
  message.user_id = object.user_id ?? 0;
26504
- message.user_name = object.user_name ?? "";
26696
+ message.username = object.username ?? "";
26505
26697
  message.address = object.address ?? "";
26506
26698
  return message;
26507
26699
  },
@@ -29746,154 +29938,6 @@ export const UpdateOnboardingStepRequest = {
29746
29938
  return message;
29747
29939
  },
29748
29940
  };
29749
- function createBasePTTChannelUser() {
29750
- return { id: "", user_id: "", channel_id: "", participant: "" };
29751
- }
29752
- export const PTTChannelUser = {
29753
- encode(message, writer = _m0.Writer.create()) {
29754
- if (message.id !== "") {
29755
- writer.uint32(10).string(message.id);
29756
- }
29757
- if (message.user_id !== "") {
29758
- writer.uint32(18).string(message.user_id);
29759
- }
29760
- if (message.channel_id !== "") {
29761
- writer.uint32(26).string(message.channel_id);
29762
- }
29763
- if (message.participant !== "") {
29764
- writer.uint32(34).string(message.participant);
29765
- }
29766
- return writer;
29767
- },
29768
- decode(input, length) {
29769
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29770
- let end = length === undefined ? reader.len : reader.pos + length;
29771
- const message = createBasePTTChannelUser();
29772
- while (reader.pos < end) {
29773
- const tag = reader.uint32();
29774
- switch (tag >>> 3) {
29775
- case 1:
29776
- if (tag !== 10) {
29777
- break;
29778
- }
29779
- message.id = reader.string();
29780
- continue;
29781
- case 2:
29782
- if (tag !== 18) {
29783
- break;
29784
- }
29785
- message.user_id = reader.string();
29786
- continue;
29787
- case 3:
29788
- if (tag !== 26) {
29789
- break;
29790
- }
29791
- message.channel_id = reader.string();
29792
- continue;
29793
- case 4:
29794
- if (tag !== 34) {
29795
- break;
29796
- }
29797
- message.participant = reader.string();
29798
- continue;
29799
- }
29800
- if ((tag & 7) === 4 || tag === 0) {
29801
- break;
29802
- }
29803
- reader.skipType(tag & 7);
29804
- }
29805
- return message;
29806
- },
29807
- fromJSON(object) {
29808
- return {
29809
- id: isSet(object.id) ? globalThis.String(object.id) : "",
29810
- user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
29811
- channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
29812
- participant: isSet(object.participant) ? globalThis.String(object.participant) : "",
29813
- };
29814
- },
29815
- toJSON(message) {
29816
- const obj = {};
29817
- if (message.id !== "") {
29818
- obj.id = message.id;
29819
- }
29820
- if (message.user_id !== "") {
29821
- obj.user_id = message.user_id;
29822
- }
29823
- if (message.channel_id !== "") {
29824
- obj.channel_id = message.channel_id;
29825
- }
29826
- if (message.participant !== "") {
29827
- obj.participant = message.participant;
29828
- }
29829
- return obj;
29830
- },
29831
- create(base) {
29832
- return PTTChannelUser.fromPartial(base ?? {});
29833
- },
29834
- fromPartial(object) {
29835
- const message = createBasePTTChannelUser();
29836
- message.id = object.id ?? "";
29837
- message.user_id = object.user_id ?? "";
29838
- message.channel_id = object.channel_id ?? "";
29839
- message.participant = object.participant ?? "";
29840
- return message;
29841
- },
29842
- };
29843
- function createBasePTTChannelUserList() {
29844
- return { ptt_channel_users: [] };
29845
- }
29846
- export const PTTChannelUserList = {
29847
- encode(message, writer = _m0.Writer.create()) {
29848
- for (const v of message.ptt_channel_users) {
29849
- PTTChannelUser.encode(v, writer.uint32(10).fork()).ldelim();
29850
- }
29851
- return writer;
29852
- },
29853
- decode(input, length) {
29854
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29855
- let end = length === undefined ? reader.len : reader.pos + length;
29856
- const message = createBasePTTChannelUserList();
29857
- while (reader.pos < end) {
29858
- const tag = reader.uint32();
29859
- switch (tag >>> 3) {
29860
- case 1:
29861
- if (tag !== 10) {
29862
- break;
29863
- }
29864
- message.ptt_channel_users.push(PTTChannelUser.decode(reader, reader.uint32()));
29865
- continue;
29866
- }
29867
- if ((tag & 7) === 4 || tag === 0) {
29868
- break;
29869
- }
29870
- reader.skipType(tag & 7);
29871
- }
29872
- return message;
29873
- },
29874
- fromJSON(object) {
29875
- return {
29876
- ptt_channel_users: globalThis.Array.isArray(object?.ptt_channel_users)
29877
- ? object.ptt_channel_users.map((e) => PTTChannelUser.fromJSON(e))
29878
- : [],
29879
- };
29880
- },
29881
- toJSON(message) {
29882
- const obj = {};
29883
- if (message.ptt_channel_users?.length) {
29884
- obj.ptt_channel_users = message.ptt_channel_users.map((e) => PTTChannelUser.toJSON(e));
29885
- }
29886
- return obj;
29887
- },
29888
- create(base) {
29889
- return PTTChannelUserList.fromPartial(base ?? {});
29890
- },
29891
- fromPartial(object) {
29892
- const message = createBasePTTChannelUserList();
29893
- message.ptt_channel_users = object.ptt_channel_users?.map((e) => PTTChannelUser.fromPartial(e)) || [];
29894
- return message;
29895
- },
29896
- };
29897
29941
  function createBaseWalletLedger() {
29898
29942
  return { id: "", user_id: "", create_time: undefined, value: 0, transaction_id: "" };
29899
29943
  }
@@ -30003,18 +30047,15 @@ export const WalletLedger = {
30003
30047
  },
30004
30048
  };
30005
30049
  function createBaseWalletLedgerList() {
30006
- return { wallet_ledger: [], prev_cursor: "", next_cursor: "" };
30050
+ return { wallet_ledger: [], count: 0 };
30007
30051
  }
30008
30052
  export const WalletLedgerList = {
30009
30053
  encode(message, writer = _m0.Writer.create()) {
30010
30054
  for (const v of message.wallet_ledger) {
30011
30055
  WalletLedger.encode(v, writer.uint32(10).fork()).ldelim();
30012
30056
  }
30013
- if (message.prev_cursor !== "") {
30014
- writer.uint32(18).string(message.prev_cursor);
30015
- }
30016
- if (message.next_cursor !== "") {
30017
- writer.uint32(26).string(message.next_cursor);
30057
+ if (message.count !== 0) {
30058
+ writer.uint32(16).int32(message.count);
30018
30059
  }
30019
30060
  return writer;
30020
30061
  },
@@ -30032,16 +30073,10 @@ export const WalletLedgerList = {
30032
30073
  message.wallet_ledger.push(WalletLedger.decode(reader, reader.uint32()));
30033
30074
  continue;
30034
30075
  case 2:
30035
- if (tag !== 18) {
30036
- break;
30037
- }
30038
- message.prev_cursor = reader.string();
30039
- continue;
30040
- case 3:
30041
- if (tag !== 26) {
30076
+ if (tag !== 16) {
30042
30077
  break;
30043
30078
  }
30044
- message.next_cursor = reader.string();
30079
+ message.count = reader.int32();
30045
30080
  continue;
30046
30081
  }
30047
30082
  if ((tag & 7) === 4 || tag === 0) {
@@ -30056,8 +30091,7 @@ export const WalletLedgerList = {
30056
30091
  wallet_ledger: globalThis.Array.isArray(object?.wallet_ledger)
30057
30092
  ? object.wallet_ledger.map((e) => WalletLedger.fromJSON(e))
30058
30093
  : [],
30059
- prev_cursor: isSet(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
30060
- next_cursor: isSet(object.next_cursor) ? globalThis.String(object.next_cursor) : "",
30094
+ count: isSet(object.count) ? globalThis.Number(object.count) : 0,
30061
30095
  };
30062
30096
  },
30063
30097
  toJSON(message) {
@@ -30065,11 +30099,8 @@ export const WalletLedgerList = {
30065
30099
  if (message.wallet_ledger?.length) {
30066
30100
  obj.wallet_ledger = message.wallet_ledger.map((e) => WalletLedger.toJSON(e));
30067
30101
  }
30068
- if (message.prev_cursor !== "") {
30069
- obj.prev_cursor = message.prev_cursor;
30070
- }
30071
- if (message.next_cursor !== "") {
30072
- obj.next_cursor = message.next_cursor;
30102
+ if (message.count !== 0) {
30103
+ obj.count = Math.round(message.count);
30073
30104
  }
30074
30105
  return obj;
30075
30106
  },
@@ -30079,13 +30110,12 @@ export const WalletLedgerList = {
30079
30110
  fromPartial(object) {
30080
30111
  const message = createBaseWalletLedgerList();
30081
30112
  message.wallet_ledger = object.wallet_ledger?.map((e) => WalletLedger.fromPartial(e)) || [];
30082
- message.prev_cursor = object.prev_cursor ?? "";
30083
- message.next_cursor = object.next_cursor ?? "";
30113
+ message.count = object.count ?? 0;
30084
30114
  return message;
30085
30115
  },
30086
30116
  };
30087
30117
  function createBaseWalletLedgerListReq() {
30088
- return { limit: undefined, cursor: "", transaction_id: "" };
30118
+ return { limit: undefined, cursor: "", transaction_id: "", page: undefined };
30089
30119
  }
30090
30120
  export const WalletLedgerListReq = {
30091
30121
  encode(message, writer = _m0.Writer.create()) {
@@ -30098,6 +30128,9 @@ export const WalletLedgerListReq = {
30098
30128
  if (message.transaction_id !== "") {
30099
30129
  writer.uint32(26).string(message.transaction_id);
30100
30130
  }
30131
+ if (message.page !== undefined) {
30132
+ Int32Value.encode({ value: message.page }, writer.uint32(34).fork()).ldelim();
30133
+ }
30101
30134
  return writer;
30102
30135
  },
30103
30136
  decode(input, length) {
@@ -30125,6 +30158,12 @@ export const WalletLedgerListReq = {
30125
30158
  }
30126
30159
  message.transaction_id = reader.string();
30127
30160
  continue;
30161
+ case 4:
30162
+ if (tag !== 34) {
30163
+ break;
30164
+ }
30165
+ message.page = Int32Value.decode(reader, reader.uint32()).value;
30166
+ continue;
30128
30167
  }
30129
30168
  if ((tag & 7) === 4 || tag === 0) {
30130
30169
  break;
@@ -30138,6 +30177,7 @@ export const WalletLedgerListReq = {
30138
30177
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
30139
30178
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
30140
30179
  transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
30180
+ page: isSet(object.page) ? Number(object.page) : undefined,
30141
30181
  };
30142
30182
  },
30143
30183
  toJSON(message) {
@@ -30151,6 +30191,9 @@ export const WalletLedgerListReq = {
30151
30191
  if (message.transaction_id !== "") {
30152
30192
  obj.transaction_id = message.transaction_id;
30153
30193
  }
30194
+ if (message.page !== undefined) {
30195
+ obj.page = message.page;
30196
+ }
30154
30197
  return obj;
30155
30198
  },
30156
30199
  create(base) {
@@ -30161,61 +30204,24 @@ export const WalletLedgerListReq = {
30161
30204
  message.limit = object.limit ?? undefined;
30162
30205
  message.cursor = object.cursor ?? "";
30163
30206
  message.transaction_id = object.transaction_id ?? "";
30207
+ message.page = object.page ?? undefined;
30164
30208
  return message;
30165
30209
  },
30166
30210
  };
30167
- function createBaseSdTopic() {
30168
- return {
30169
- id: "",
30170
- creator_id: "",
30171
- message_id: "",
30172
- clan_id: "",
30173
- channel_id: "",
30174
- status: 0,
30175
- create_time: undefined,
30176
- update_time: undefined,
30177
- message: undefined,
30178
- last_sent_message: undefined,
30179
- };
30211
+ function createBaseTransactionDetailReq() {
30212
+ return { trans_id: "" };
30180
30213
  }
30181
- export const SdTopic = {
30214
+ export const TransactionDetailReq = {
30182
30215
  encode(message, writer = _m0.Writer.create()) {
30183
- if (message.id !== "") {
30184
- writer.uint32(10).string(message.id);
30185
- }
30186
- if (message.creator_id !== "") {
30187
- writer.uint32(18).string(message.creator_id);
30188
- }
30189
- if (message.message_id !== "") {
30190
- writer.uint32(26).string(message.message_id);
30191
- }
30192
- if (message.clan_id !== "") {
30193
- writer.uint32(34).string(message.clan_id);
30194
- }
30195
- if (message.channel_id !== "") {
30196
- writer.uint32(42).string(message.channel_id);
30197
- }
30198
- if (message.status !== 0) {
30199
- writer.uint32(48).int32(message.status);
30200
- }
30201
- if (message.create_time !== undefined) {
30202
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(58).fork()).ldelim();
30203
- }
30204
- if (message.update_time !== undefined) {
30205
- Timestamp.encode(toTimestamp(message.update_time), writer.uint32(66).fork()).ldelim();
30206
- }
30207
- if (message.message !== undefined) {
30208
- ChannelMessage.encode(message.message, writer.uint32(74).fork()).ldelim();
30209
- }
30210
- if (message.last_sent_message !== undefined) {
30211
- ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(82).fork()).ldelim();
30216
+ if (message.trans_id !== "") {
30217
+ writer.uint32(10).string(message.trans_id);
30212
30218
  }
30213
30219
  return writer;
30214
30220
  },
30215
30221
  decode(input, length) {
30216
30222
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
30217
30223
  let end = length === undefined ? reader.len : reader.pos + length;
30218
- const message = createBaseSdTopic();
30224
+ const message = createBaseTransactionDetailReq();
30219
30225
  while (reader.pos < end) {
30220
30226
  const tag = reader.uint32();
30221
30227
  switch (tag >>> 3) {
@@ -30223,13 +30229,275 @@ export const SdTopic = {
30223
30229
  if (tag !== 10) {
30224
30230
  break;
30225
30231
  }
30226
- message.id = reader.string();
30232
+ message.trans_id = reader.string();
30227
30233
  continue;
30228
- case 2:
30229
- if (tag !== 18) {
30230
- break;
30231
- }
30232
- message.creator_id = reader.string();
30234
+ }
30235
+ if ((tag & 7) === 4 || tag === 0) {
30236
+ break;
30237
+ }
30238
+ reader.skipType(tag & 7);
30239
+ }
30240
+ return message;
30241
+ },
30242
+ fromJSON(object) {
30243
+ return { trans_id: isSet(object.trans_id) ? globalThis.String(object.trans_id) : "" };
30244
+ },
30245
+ toJSON(message) {
30246
+ const obj = {};
30247
+ if (message.trans_id !== "") {
30248
+ obj.trans_id = message.trans_id;
30249
+ }
30250
+ return obj;
30251
+ },
30252
+ create(base) {
30253
+ return TransactionDetailReq.fromPartial(base ?? {});
30254
+ },
30255
+ fromPartial(object) {
30256
+ const message = createBaseTransactionDetailReq();
30257
+ message.trans_id = object.trans_id ?? "";
30258
+ return message;
30259
+ },
30260
+ };
30261
+ function createBaseTransactionDetail() {
30262
+ return {
30263
+ sender_id: "",
30264
+ sender_username: "",
30265
+ receiver_id: "",
30266
+ receiver_username: "",
30267
+ amount: 0,
30268
+ trans_id: "",
30269
+ metadata: "",
30270
+ create_time: undefined,
30271
+ update_time: undefined,
30272
+ };
30273
+ }
30274
+ export const TransactionDetail = {
30275
+ encode(message, writer = _m0.Writer.create()) {
30276
+ if (message.sender_id !== "") {
30277
+ writer.uint32(10).string(message.sender_id);
30278
+ }
30279
+ if (message.sender_username !== "") {
30280
+ writer.uint32(18).string(message.sender_username);
30281
+ }
30282
+ if (message.receiver_id !== "") {
30283
+ writer.uint32(26).string(message.receiver_id);
30284
+ }
30285
+ if (message.receiver_username !== "") {
30286
+ writer.uint32(34).string(message.receiver_username);
30287
+ }
30288
+ if (message.amount !== 0) {
30289
+ writer.uint32(40).int32(message.amount);
30290
+ }
30291
+ if (message.trans_id !== "") {
30292
+ writer.uint32(50).string(message.trans_id);
30293
+ }
30294
+ if (message.metadata !== "") {
30295
+ writer.uint32(58).string(message.metadata);
30296
+ }
30297
+ if (message.create_time !== undefined) {
30298
+ Timestamp.encode(toTimestamp(message.create_time), writer.uint32(66).fork()).ldelim();
30299
+ }
30300
+ if (message.update_time !== undefined) {
30301
+ Timestamp.encode(toTimestamp(message.update_time), writer.uint32(74).fork()).ldelim();
30302
+ }
30303
+ return writer;
30304
+ },
30305
+ decode(input, length) {
30306
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
30307
+ let end = length === undefined ? reader.len : reader.pos + length;
30308
+ const message = createBaseTransactionDetail();
30309
+ while (reader.pos < end) {
30310
+ const tag = reader.uint32();
30311
+ switch (tag >>> 3) {
30312
+ case 1:
30313
+ if (tag !== 10) {
30314
+ break;
30315
+ }
30316
+ message.sender_id = reader.string();
30317
+ continue;
30318
+ case 2:
30319
+ if (tag !== 18) {
30320
+ break;
30321
+ }
30322
+ message.sender_username = reader.string();
30323
+ continue;
30324
+ case 3:
30325
+ if (tag !== 26) {
30326
+ break;
30327
+ }
30328
+ message.receiver_id = reader.string();
30329
+ continue;
30330
+ case 4:
30331
+ if (tag !== 34) {
30332
+ break;
30333
+ }
30334
+ message.receiver_username = reader.string();
30335
+ continue;
30336
+ case 5:
30337
+ if (tag !== 40) {
30338
+ break;
30339
+ }
30340
+ message.amount = reader.int32();
30341
+ continue;
30342
+ case 6:
30343
+ if (tag !== 50) {
30344
+ break;
30345
+ }
30346
+ message.trans_id = reader.string();
30347
+ continue;
30348
+ case 7:
30349
+ if (tag !== 58) {
30350
+ break;
30351
+ }
30352
+ message.metadata = reader.string();
30353
+ continue;
30354
+ case 8:
30355
+ if (tag !== 66) {
30356
+ break;
30357
+ }
30358
+ message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
30359
+ continue;
30360
+ case 9:
30361
+ if (tag !== 74) {
30362
+ break;
30363
+ }
30364
+ message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
30365
+ continue;
30366
+ }
30367
+ if ((tag & 7) === 4 || tag === 0) {
30368
+ break;
30369
+ }
30370
+ reader.skipType(tag & 7);
30371
+ }
30372
+ return message;
30373
+ },
30374
+ fromJSON(object) {
30375
+ return {
30376
+ sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
30377
+ sender_username: isSet(object.sender_username) ? globalThis.String(object.sender_username) : "",
30378
+ receiver_id: isSet(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
30379
+ receiver_username: isSet(object.receiver_username) ? globalThis.String(object.receiver_username) : "",
30380
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
30381
+ trans_id: isSet(object.trans_id) ? globalThis.String(object.trans_id) : "",
30382
+ metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
30383
+ create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
30384
+ update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
30385
+ };
30386
+ },
30387
+ toJSON(message) {
30388
+ const obj = {};
30389
+ if (message.sender_id !== "") {
30390
+ obj.sender_id = message.sender_id;
30391
+ }
30392
+ if (message.sender_username !== "") {
30393
+ obj.sender_username = message.sender_username;
30394
+ }
30395
+ if (message.receiver_id !== "") {
30396
+ obj.receiver_id = message.receiver_id;
30397
+ }
30398
+ if (message.receiver_username !== "") {
30399
+ obj.receiver_username = message.receiver_username;
30400
+ }
30401
+ if (message.amount !== 0) {
30402
+ obj.amount = Math.round(message.amount);
30403
+ }
30404
+ if (message.trans_id !== "") {
30405
+ obj.trans_id = message.trans_id;
30406
+ }
30407
+ if (message.metadata !== "") {
30408
+ obj.metadata = message.metadata;
30409
+ }
30410
+ if (message.create_time !== undefined) {
30411
+ obj.create_time = message.create_time.toISOString();
30412
+ }
30413
+ if (message.update_time !== undefined) {
30414
+ obj.update_time = message.update_time.toISOString();
30415
+ }
30416
+ return obj;
30417
+ },
30418
+ create(base) {
30419
+ return TransactionDetail.fromPartial(base ?? {});
30420
+ },
30421
+ fromPartial(object) {
30422
+ const message = createBaseTransactionDetail();
30423
+ message.sender_id = object.sender_id ?? "";
30424
+ message.sender_username = object.sender_username ?? "";
30425
+ message.receiver_id = object.receiver_id ?? "";
30426
+ message.receiver_username = object.receiver_username ?? "";
30427
+ message.amount = object.amount ?? 0;
30428
+ message.trans_id = object.trans_id ?? "";
30429
+ message.metadata = object.metadata ?? "";
30430
+ message.create_time = object.create_time ?? undefined;
30431
+ message.update_time = object.update_time ?? undefined;
30432
+ return message;
30433
+ },
30434
+ };
30435
+ function createBaseSdTopic() {
30436
+ return {
30437
+ id: "",
30438
+ creator_id: "",
30439
+ message_id: "",
30440
+ clan_id: "",
30441
+ channel_id: "",
30442
+ status: 0,
30443
+ create_time: undefined,
30444
+ update_time: undefined,
30445
+ message: undefined,
30446
+ last_sent_message: undefined,
30447
+ };
30448
+ }
30449
+ export const SdTopic = {
30450
+ encode(message, writer = _m0.Writer.create()) {
30451
+ if (message.id !== "") {
30452
+ writer.uint32(10).string(message.id);
30453
+ }
30454
+ if (message.creator_id !== "") {
30455
+ writer.uint32(18).string(message.creator_id);
30456
+ }
30457
+ if (message.message_id !== "") {
30458
+ writer.uint32(26).string(message.message_id);
30459
+ }
30460
+ if (message.clan_id !== "") {
30461
+ writer.uint32(34).string(message.clan_id);
30462
+ }
30463
+ if (message.channel_id !== "") {
30464
+ writer.uint32(42).string(message.channel_id);
30465
+ }
30466
+ if (message.status !== 0) {
30467
+ writer.uint32(48).int32(message.status);
30468
+ }
30469
+ if (message.create_time !== undefined) {
30470
+ Timestamp.encode(toTimestamp(message.create_time), writer.uint32(58).fork()).ldelim();
30471
+ }
30472
+ if (message.update_time !== undefined) {
30473
+ Timestamp.encode(toTimestamp(message.update_time), writer.uint32(66).fork()).ldelim();
30474
+ }
30475
+ if (message.message !== undefined) {
30476
+ ChannelMessage.encode(message.message, writer.uint32(74).fork()).ldelim();
30477
+ }
30478
+ if (message.last_sent_message !== undefined) {
30479
+ ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(82).fork()).ldelim();
30480
+ }
30481
+ return writer;
30482
+ },
30483
+ decode(input, length) {
30484
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
30485
+ let end = length === undefined ? reader.len : reader.pos + length;
30486
+ const message = createBaseSdTopic();
30487
+ while (reader.pos < end) {
30488
+ const tag = reader.uint32();
30489
+ switch (tag >>> 3) {
30490
+ case 1:
30491
+ if (tag !== 10) {
30492
+ break;
30493
+ }
30494
+ message.id = reader.string();
30495
+ continue;
30496
+ case 2:
30497
+ if (tag !== 18) {
30498
+ break;
30499
+ }
30500
+ message.creator_id = reader.string();
30233
30501
  continue;
30234
30502
  case 3:
30235
30503
  if (tag !== 26) {
@@ -30701,6 +30969,1155 @@ export const DeleteSdTopicRequest = {
30701
30969
  return message;
30702
30970
  },
30703
30971
  };
30972
+ function createBaseGenerateMeetTokenRequest() {
30973
+ return { channel_id: "", room_name: "" };
30974
+ }
30975
+ export const GenerateMeetTokenRequest = {
30976
+ encode(message, writer = _m0.Writer.create()) {
30977
+ if (message.channel_id !== "") {
30978
+ writer.uint32(10).string(message.channel_id);
30979
+ }
30980
+ if (message.room_name !== "") {
30981
+ writer.uint32(18).string(message.room_name);
30982
+ }
30983
+ return writer;
30984
+ },
30985
+ decode(input, length) {
30986
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
30987
+ let end = length === undefined ? reader.len : reader.pos + length;
30988
+ const message = createBaseGenerateMeetTokenRequest();
30989
+ while (reader.pos < end) {
30990
+ const tag = reader.uint32();
30991
+ switch (tag >>> 3) {
30992
+ case 1:
30993
+ if (tag !== 10) {
30994
+ break;
30995
+ }
30996
+ message.channel_id = reader.string();
30997
+ continue;
30998
+ case 2:
30999
+ if (tag !== 18) {
31000
+ break;
31001
+ }
31002
+ message.room_name = reader.string();
31003
+ continue;
31004
+ }
31005
+ if ((tag & 7) === 4 || tag === 0) {
31006
+ break;
31007
+ }
31008
+ reader.skipType(tag & 7);
31009
+ }
31010
+ return message;
31011
+ },
31012
+ fromJSON(object) {
31013
+ return {
31014
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
31015
+ room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
31016
+ };
31017
+ },
31018
+ toJSON(message) {
31019
+ const obj = {};
31020
+ if (message.channel_id !== "") {
31021
+ obj.channel_id = message.channel_id;
31022
+ }
31023
+ if (message.room_name !== "") {
31024
+ obj.room_name = message.room_name;
31025
+ }
31026
+ return obj;
31027
+ },
31028
+ create(base) {
31029
+ return GenerateMeetTokenRequest.fromPartial(base ?? {});
31030
+ },
31031
+ fromPartial(object) {
31032
+ const message = createBaseGenerateMeetTokenRequest();
31033
+ message.channel_id = object.channel_id ?? "";
31034
+ message.room_name = object.room_name ?? "";
31035
+ return message;
31036
+ },
31037
+ };
31038
+ function createBaseGenerateMeetTokenResponse() {
31039
+ return { token: "" };
31040
+ }
31041
+ export const GenerateMeetTokenResponse = {
31042
+ encode(message, writer = _m0.Writer.create()) {
31043
+ if (message.token !== "") {
31044
+ writer.uint32(10).string(message.token);
31045
+ }
31046
+ return writer;
31047
+ },
31048
+ decode(input, length) {
31049
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
31050
+ let end = length === undefined ? reader.len : reader.pos + length;
31051
+ const message = createBaseGenerateMeetTokenResponse();
31052
+ while (reader.pos < end) {
31053
+ const tag = reader.uint32();
31054
+ switch (tag >>> 3) {
31055
+ case 1:
31056
+ if (tag !== 10) {
31057
+ break;
31058
+ }
31059
+ message.token = reader.string();
31060
+ continue;
31061
+ }
31062
+ if ((tag & 7) === 4 || tag === 0) {
31063
+ break;
31064
+ }
31065
+ reader.skipType(tag & 7);
31066
+ }
31067
+ return message;
31068
+ },
31069
+ fromJSON(object) {
31070
+ return { token: isSet(object.token) ? globalThis.String(object.token) : "" };
31071
+ },
31072
+ toJSON(message) {
31073
+ const obj = {};
31074
+ if (message.token !== "") {
31075
+ obj.token = message.token;
31076
+ }
31077
+ return obj;
31078
+ },
31079
+ create(base) {
31080
+ return GenerateMeetTokenResponse.fromPartial(base ?? {});
31081
+ },
31082
+ fromPartial(object) {
31083
+ const message = createBaseGenerateMeetTokenResponse();
31084
+ message.token = object.token ?? "";
31085
+ return message;
31086
+ },
31087
+ };
31088
+ function createBaseCreateRoomChannelApps() {
31089
+ return { channel_id: "", room_name: "" };
31090
+ }
31091
+ export const CreateRoomChannelApps = {
31092
+ encode(message, writer = _m0.Writer.create()) {
31093
+ if (message.channel_id !== "") {
31094
+ writer.uint32(10).string(message.channel_id);
31095
+ }
31096
+ if (message.room_name !== "") {
31097
+ writer.uint32(18).string(message.room_name);
31098
+ }
31099
+ return writer;
31100
+ },
31101
+ decode(input, length) {
31102
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
31103
+ let end = length === undefined ? reader.len : reader.pos + length;
31104
+ const message = createBaseCreateRoomChannelApps();
31105
+ while (reader.pos < end) {
31106
+ const tag = reader.uint32();
31107
+ switch (tag >>> 3) {
31108
+ case 1:
31109
+ if (tag !== 10) {
31110
+ break;
31111
+ }
31112
+ message.channel_id = reader.string();
31113
+ continue;
31114
+ case 2:
31115
+ if (tag !== 18) {
31116
+ break;
31117
+ }
31118
+ message.room_name = reader.string();
31119
+ continue;
31120
+ }
31121
+ if ((tag & 7) === 4 || tag === 0) {
31122
+ break;
31123
+ }
31124
+ reader.skipType(tag & 7);
31125
+ }
31126
+ return message;
31127
+ },
31128
+ fromJSON(object) {
31129
+ return {
31130
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
31131
+ room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
31132
+ };
31133
+ },
31134
+ toJSON(message) {
31135
+ const obj = {};
31136
+ if (message.channel_id !== "") {
31137
+ obj.channel_id = message.channel_id;
31138
+ }
31139
+ if (message.room_name !== "") {
31140
+ obj.room_name = message.room_name;
31141
+ }
31142
+ return obj;
31143
+ },
31144
+ create(base) {
31145
+ return CreateRoomChannelApps.fromPartial(base ?? {});
31146
+ },
31147
+ fromPartial(object) {
31148
+ const message = createBaseCreateRoomChannelApps();
31149
+ message.channel_id = object.channel_id ?? "";
31150
+ message.room_name = object.room_name ?? "";
31151
+ return message;
31152
+ },
31153
+ };
31154
+ function createBaseHandleParticipantMeetStateRequest() {
31155
+ return { clan_id: "", channel_id: "", user_id: "", display_name: "", state: 0 };
31156
+ }
31157
+ export const HandleParticipantMeetStateRequest = {
31158
+ encode(message, writer = _m0.Writer.create()) {
31159
+ if (message.clan_id !== "") {
31160
+ writer.uint32(10).string(message.clan_id);
31161
+ }
31162
+ if (message.channel_id !== "") {
31163
+ writer.uint32(18).string(message.channel_id);
31164
+ }
31165
+ if (message.user_id !== "") {
31166
+ writer.uint32(26).string(message.user_id);
31167
+ }
31168
+ if (message.display_name !== "") {
31169
+ writer.uint32(34).string(message.display_name);
31170
+ }
31171
+ if (message.state !== 0) {
31172
+ writer.uint32(40).int32(message.state);
31173
+ }
31174
+ return writer;
31175
+ },
31176
+ decode(input, length) {
31177
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
31178
+ let end = length === undefined ? reader.len : reader.pos + length;
31179
+ const message = createBaseHandleParticipantMeetStateRequest();
31180
+ while (reader.pos < end) {
31181
+ const tag = reader.uint32();
31182
+ switch (tag >>> 3) {
31183
+ case 1:
31184
+ if (tag !== 10) {
31185
+ break;
31186
+ }
31187
+ message.clan_id = reader.string();
31188
+ continue;
31189
+ case 2:
31190
+ if (tag !== 18) {
31191
+ break;
31192
+ }
31193
+ message.channel_id = reader.string();
31194
+ continue;
31195
+ case 3:
31196
+ if (tag !== 26) {
31197
+ break;
31198
+ }
31199
+ message.user_id = reader.string();
31200
+ continue;
31201
+ case 4:
31202
+ if (tag !== 34) {
31203
+ break;
31204
+ }
31205
+ message.display_name = reader.string();
31206
+ continue;
31207
+ case 5:
31208
+ if (tag !== 40) {
31209
+ break;
31210
+ }
31211
+ message.state = reader.int32();
31212
+ continue;
31213
+ }
31214
+ if ((tag & 7) === 4 || tag === 0) {
31215
+ break;
31216
+ }
31217
+ reader.skipType(tag & 7);
31218
+ }
31219
+ return message;
31220
+ },
31221
+ fromJSON(object) {
31222
+ return {
31223
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
31224
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
31225
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
31226
+ display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
31227
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
31228
+ };
31229
+ },
31230
+ toJSON(message) {
31231
+ const obj = {};
31232
+ if (message.clan_id !== "") {
31233
+ obj.clan_id = message.clan_id;
31234
+ }
31235
+ if (message.channel_id !== "") {
31236
+ obj.channel_id = message.channel_id;
31237
+ }
31238
+ if (message.user_id !== "") {
31239
+ obj.user_id = message.user_id;
31240
+ }
31241
+ if (message.display_name !== "") {
31242
+ obj.display_name = message.display_name;
31243
+ }
31244
+ if (message.state !== 0) {
31245
+ obj.state = Math.round(message.state);
31246
+ }
31247
+ return obj;
31248
+ },
31249
+ create(base) {
31250
+ return HandleParticipantMeetStateRequest.fromPartial(base ?? {});
31251
+ },
31252
+ fromPartial(object) {
31253
+ const message = createBaseHandleParticipantMeetStateRequest();
31254
+ message.clan_id = object.clan_id ?? "";
31255
+ message.channel_id = object.channel_id ?? "";
31256
+ message.user_id = object.user_id ?? "";
31257
+ message.display_name = object.display_name ?? "";
31258
+ message.state = object.state ?? 0;
31259
+ return message;
31260
+ },
31261
+ };
31262
+ function createBaseMezonOauthClient() {
31263
+ return {
31264
+ access_token_strategy: "",
31265
+ allowed_cors_origins: [],
31266
+ audience: [],
31267
+ authorization_code_grant_access_token_lifespan: "",
31268
+ authorization_code_grant_id_token_lifespan: "",
31269
+ authorization_code_grant_refresh_token_lifespan: "",
31270
+ backchannel_logout_session_required: false,
31271
+ backchannel_logout_uri: "",
31272
+ client_credentials_grant_access_token_lifespan: "",
31273
+ client_id: "",
31274
+ client_name: "",
31275
+ client_secret: "",
31276
+ client_secret_expires_at: 0,
31277
+ client_uri: "",
31278
+ contacts: [],
31279
+ created_at: undefined,
31280
+ frontchannel_logout_session_required: false,
31281
+ frontchannel_logout_uri: "",
31282
+ grant_types: [],
31283
+ implicit_grant_access_token_lifespan: "",
31284
+ implicit_grant_id_token_lifespan: "",
31285
+ jwks: [],
31286
+ jwks_uri: "",
31287
+ jwt_bearer_grant_access_token_lifespan: "",
31288
+ logo_uri: "",
31289
+ owner: "",
31290
+ policy_uri: "",
31291
+ post_logout_redirect_uris: [],
31292
+ redirect_uris: [],
31293
+ refresh_token_grant_access_token_lifespan: "",
31294
+ refresh_token_grant_id_token_lifespan: "",
31295
+ refresh_token_grant_refresh_token_lifespan: "",
31296
+ registration_access_token: "",
31297
+ registration_client_uri: "",
31298
+ request_object_signing_alg: "",
31299
+ request_uris: [],
31300
+ response_types: [],
31301
+ scope: "",
31302
+ sector_identifier_uri: "",
31303
+ skip_consent: false,
31304
+ skip_logout_consent: false,
31305
+ subject_type: "",
31306
+ token_endpoint_auth_method: "",
31307
+ token_endpoint_auth_signing_alg: "",
31308
+ tos_uri: "",
31309
+ updated_at: undefined,
31310
+ userinfo_signed_response_alg: "",
31311
+ };
31312
+ }
31313
+ export const MezonOauthClient = {
31314
+ encode(message, writer = _m0.Writer.create()) {
31315
+ if (message.access_token_strategy !== "") {
31316
+ writer.uint32(10).string(message.access_token_strategy);
31317
+ }
31318
+ for (const v of message.allowed_cors_origins) {
31319
+ writer.uint32(18).string(v);
31320
+ }
31321
+ for (const v of message.audience) {
31322
+ writer.uint32(26).string(v);
31323
+ }
31324
+ if (message.authorization_code_grant_access_token_lifespan !== "") {
31325
+ writer.uint32(34).string(message.authorization_code_grant_access_token_lifespan);
31326
+ }
31327
+ if (message.authorization_code_grant_id_token_lifespan !== "") {
31328
+ writer.uint32(42).string(message.authorization_code_grant_id_token_lifespan);
31329
+ }
31330
+ if (message.authorization_code_grant_refresh_token_lifespan !== "") {
31331
+ writer.uint32(50).string(message.authorization_code_grant_refresh_token_lifespan);
31332
+ }
31333
+ if (message.backchannel_logout_session_required !== false) {
31334
+ writer.uint32(56).bool(message.backchannel_logout_session_required);
31335
+ }
31336
+ if (message.backchannel_logout_uri !== "") {
31337
+ writer.uint32(66).string(message.backchannel_logout_uri);
31338
+ }
31339
+ if (message.client_credentials_grant_access_token_lifespan !== "") {
31340
+ writer.uint32(74).string(message.client_credentials_grant_access_token_lifespan);
31341
+ }
31342
+ if (message.client_id !== "") {
31343
+ writer.uint32(82).string(message.client_id);
31344
+ }
31345
+ if (message.client_name !== "") {
31346
+ writer.uint32(90).string(message.client_name);
31347
+ }
31348
+ if (message.client_secret !== "") {
31349
+ writer.uint32(98).string(message.client_secret);
31350
+ }
31351
+ if (message.client_secret_expires_at !== 0) {
31352
+ writer.uint32(104).int32(message.client_secret_expires_at);
31353
+ }
31354
+ if (message.client_uri !== "") {
31355
+ writer.uint32(114).string(message.client_uri);
31356
+ }
31357
+ for (const v of message.contacts) {
31358
+ writer.uint32(122).string(v);
31359
+ }
31360
+ if (message.created_at !== undefined) {
31361
+ Timestamp.encode(toTimestamp(message.created_at), writer.uint32(130).fork()).ldelim();
31362
+ }
31363
+ if (message.frontchannel_logout_session_required !== false) {
31364
+ writer.uint32(136).bool(message.frontchannel_logout_session_required);
31365
+ }
31366
+ if (message.frontchannel_logout_uri !== "") {
31367
+ writer.uint32(146).string(message.frontchannel_logout_uri);
31368
+ }
31369
+ for (const v of message.grant_types) {
31370
+ writer.uint32(154).string(v);
31371
+ }
31372
+ if (message.implicit_grant_access_token_lifespan !== "") {
31373
+ writer.uint32(162).string(message.implicit_grant_access_token_lifespan);
31374
+ }
31375
+ if (message.implicit_grant_id_token_lifespan !== "") {
31376
+ writer.uint32(170).string(message.implicit_grant_id_token_lifespan);
31377
+ }
31378
+ for (const v of message.jwks) {
31379
+ writer.uint32(178).string(v);
31380
+ }
31381
+ if (message.jwks_uri !== "") {
31382
+ writer.uint32(186).string(message.jwks_uri);
31383
+ }
31384
+ if (message.jwt_bearer_grant_access_token_lifespan !== "") {
31385
+ writer.uint32(194).string(message.jwt_bearer_grant_access_token_lifespan);
31386
+ }
31387
+ if (message.logo_uri !== "") {
31388
+ writer.uint32(202).string(message.logo_uri);
31389
+ }
31390
+ if (message.owner !== "") {
31391
+ writer.uint32(210).string(message.owner);
31392
+ }
31393
+ if (message.policy_uri !== "") {
31394
+ writer.uint32(218).string(message.policy_uri);
31395
+ }
31396
+ for (const v of message.post_logout_redirect_uris) {
31397
+ writer.uint32(226).string(v);
31398
+ }
31399
+ for (const v of message.redirect_uris) {
31400
+ writer.uint32(234).string(v);
31401
+ }
31402
+ if (message.refresh_token_grant_access_token_lifespan !== "") {
31403
+ writer.uint32(242).string(message.refresh_token_grant_access_token_lifespan);
31404
+ }
31405
+ if (message.refresh_token_grant_id_token_lifespan !== "") {
31406
+ writer.uint32(250).string(message.refresh_token_grant_id_token_lifespan);
31407
+ }
31408
+ if (message.refresh_token_grant_refresh_token_lifespan !== "") {
31409
+ writer.uint32(258).string(message.refresh_token_grant_refresh_token_lifespan);
31410
+ }
31411
+ if (message.registration_access_token !== "") {
31412
+ writer.uint32(266).string(message.registration_access_token);
31413
+ }
31414
+ if (message.registration_client_uri !== "") {
31415
+ writer.uint32(274).string(message.registration_client_uri);
31416
+ }
31417
+ if (message.request_object_signing_alg !== "") {
31418
+ writer.uint32(282).string(message.request_object_signing_alg);
31419
+ }
31420
+ for (const v of message.request_uris) {
31421
+ writer.uint32(290).string(v);
31422
+ }
31423
+ for (const v of message.response_types) {
31424
+ writer.uint32(298).string(v);
31425
+ }
31426
+ if (message.scope !== "") {
31427
+ writer.uint32(306).string(message.scope);
31428
+ }
31429
+ if (message.sector_identifier_uri !== "") {
31430
+ writer.uint32(314).string(message.sector_identifier_uri);
31431
+ }
31432
+ if (message.skip_consent !== false) {
31433
+ writer.uint32(320).bool(message.skip_consent);
31434
+ }
31435
+ if (message.skip_logout_consent !== false) {
31436
+ writer.uint32(328).bool(message.skip_logout_consent);
31437
+ }
31438
+ if (message.subject_type !== "") {
31439
+ writer.uint32(338).string(message.subject_type);
31440
+ }
31441
+ if (message.token_endpoint_auth_method !== "") {
31442
+ writer.uint32(346).string(message.token_endpoint_auth_method);
31443
+ }
31444
+ if (message.token_endpoint_auth_signing_alg !== "") {
31445
+ writer.uint32(354).string(message.token_endpoint_auth_signing_alg);
31446
+ }
31447
+ if (message.tos_uri !== "") {
31448
+ writer.uint32(362).string(message.tos_uri);
31449
+ }
31450
+ if (message.updated_at !== undefined) {
31451
+ Timestamp.encode(toTimestamp(message.updated_at), writer.uint32(370).fork()).ldelim();
31452
+ }
31453
+ if (message.userinfo_signed_response_alg !== "") {
31454
+ writer.uint32(378).string(message.userinfo_signed_response_alg);
31455
+ }
31456
+ return writer;
31457
+ },
31458
+ decode(input, length) {
31459
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
31460
+ let end = length === undefined ? reader.len : reader.pos + length;
31461
+ const message = createBaseMezonOauthClient();
31462
+ while (reader.pos < end) {
31463
+ const tag = reader.uint32();
31464
+ switch (tag >>> 3) {
31465
+ case 1:
31466
+ if (tag !== 10) {
31467
+ break;
31468
+ }
31469
+ message.access_token_strategy = reader.string();
31470
+ continue;
31471
+ case 2:
31472
+ if (tag !== 18) {
31473
+ break;
31474
+ }
31475
+ message.allowed_cors_origins.push(reader.string());
31476
+ continue;
31477
+ case 3:
31478
+ if (tag !== 26) {
31479
+ break;
31480
+ }
31481
+ message.audience.push(reader.string());
31482
+ continue;
31483
+ case 4:
31484
+ if (tag !== 34) {
31485
+ break;
31486
+ }
31487
+ message.authorization_code_grant_access_token_lifespan = reader.string();
31488
+ continue;
31489
+ case 5:
31490
+ if (tag !== 42) {
31491
+ break;
31492
+ }
31493
+ message.authorization_code_grant_id_token_lifespan = reader.string();
31494
+ continue;
31495
+ case 6:
31496
+ if (tag !== 50) {
31497
+ break;
31498
+ }
31499
+ message.authorization_code_grant_refresh_token_lifespan = reader.string();
31500
+ continue;
31501
+ case 7:
31502
+ if (tag !== 56) {
31503
+ break;
31504
+ }
31505
+ message.backchannel_logout_session_required = reader.bool();
31506
+ continue;
31507
+ case 8:
31508
+ if (tag !== 66) {
31509
+ break;
31510
+ }
31511
+ message.backchannel_logout_uri = reader.string();
31512
+ continue;
31513
+ case 9:
31514
+ if (tag !== 74) {
31515
+ break;
31516
+ }
31517
+ message.client_credentials_grant_access_token_lifespan = reader.string();
31518
+ continue;
31519
+ case 10:
31520
+ if (tag !== 82) {
31521
+ break;
31522
+ }
31523
+ message.client_id = reader.string();
31524
+ continue;
31525
+ case 11:
31526
+ if (tag !== 90) {
31527
+ break;
31528
+ }
31529
+ message.client_name = reader.string();
31530
+ continue;
31531
+ case 12:
31532
+ if (tag !== 98) {
31533
+ break;
31534
+ }
31535
+ message.client_secret = reader.string();
31536
+ continue;
31537
+ case 13:
31538
+ if (tag !== 104) {
31539
+ break;
31540
+ }
31541
+ message.client_secret_expires_at = reader.int32();
31542
+ continue;
31543
+ case 14:
31544
+ if (tag !== 114) {
31545
+ break;
31546
+ }
31547
+ message.client_uri = reader.string();
31548
+ continue;
31549
+ case 15:
31550
+ if (tag !== 122) {
31551
+ break;
31552
+ }
31553
+ message.contacts.push(reader.string());
31554
+ continue;
31555
+ case 16:
31556
+ if (tag !== 130) {
31557
+ break;
31558
+ }
31559
+ message.created_at = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
31560
+ continue;
31561
+ case 17:
31562
+ if (tag !== 136) {
31563
+ break;
31564
+ }
31565
+ message.frontchannel_logout_session_required = reader.bool();
31566
+ continue;
31567
+ case 18:
31568
+ if (tag !== 146) {
31569
+ break;
31570
+ }
31571
+ message.frontchannel_logout_uri = reader.string();
31572
+ continue;
31573
+ case 19:
31574
+ if (tag !== 154) {
31575
+ break;
31576
+ }
31577
+ message.grant_types.push(reader.string());
31578
+ continue;
31579
+ case 20:
31580
+ if (tag !== 162) {
31581
+ break;
31582
+ }
31583
+ message.implicit_grant_access_token_lifespan = reader.string();
31584
+ continue;
31585
+ case 21:
31586
+ if (tag !== 170) {
31587
+ break;
31588
+ }
31589
+ message.implicit_grant_id_token_lifespan = reader.string();
31590
+ continue;
31591
+ case 22:
31592
+ if (tag !== 178) {
31593
+ break;
31594
+ }
31595
+ message.jwks.push(reader.string());
31596
+ continue;
31597
+ case 23:
31598
+ if (tag !== 186) {
31599
+ break;
31600
+ }
31601
+ message.jwks_uri = reader.string();
31602
+ continue;
31603
+ case 24:
31604
+ if (tag !== 194) {
31605
+ break;
31606
+ }
31607
+ message.jwt_bearer_grant_access_token_lifespan = reader.string();
31608
+ continue;
31609
+ case 25:
31610
+ if (tag !== 202) {
31611
+ break;
31612
+ }
31613
+ message.logo_uri = reader.string();
31614
+ continue;
31615
+ case 26:
31616
+ if (tag !== 210) {
31617
+ break;
31618
+ }
31619
+ message.owner = reader.string();
31620
+ continue;
31621
+ case 27:
31622
+ if (tag !== 218) {
31623
+ break;
31624
+ }
31625
+ message.policy_uri = reader.string();
31626
+ continue;
31627
+ case 28:
31628
+ if (tag !== 226) {
31629
+ break;
31630
+ }
31631
+ message.post_logout_redirect_uris.push(reader.string());
31632
+ continue;
31633
+ case 29:
31634
+ if (tag !== 234) {
31635
+ break;
31636
+ }
31637
+ message.redirect_uris.push(reader.string());
31638
+ continue;
31639
+ case 30:
31640
+ if (tag !== 242) {
31641
+ break;
31642
+ }
31643
+ message.refresh_token_grant_access_token_lifespan = reader.string();
31644
+ continue;
31645
+ case 31:
31646
+ if (tag !== 250) {
31647
+ break;
31648
+ }
31649
+ message.refresh_token_grant_id_token_lifespan = reader.string();
31650
+ continue;
31651
+ case 32:
31652
+ if (tag !== 258) {
31653
+ break;
31654
+ }
31655
+ message.refresh_token_grant_refresh_token_lifespan = reader.string();
31656
+ continue;
31657
+ case 33:
31658
+ if (tag !== 266) {
31659
+ break;
31660
+ }
31661
+ message.registration_access_token = reader.string();
31662
+ continue;
31663
+ case 34:
31664
+ if (tag !== 274) {
31665
+ break;
31666
+ }
31667
+ message.registration_client_uri = reader.string();
31668
+ continue;
31669
+ case 35:
31670
+ if (tag !== 282) {
31671
+ break;
31672
+ }
31673
+ message.request_object_signing_alg = reader.string();
31674
+ continue;
31675
+ case 36:
31676
+ if (tag !== 290) {
31677
+ break;
31678
+ }
31679
+ message.request_uris.push(reader.string());
31680
+ continue;
31681
+ case 37:
31682
+ if (tag !== 298) {
31683
+ break;
31684
+ }
31685
+ message.response_types.push(reader.string());
31686
+ continue;
31687
+ case 38:
31688
+ if (tag !== 306) {
31689
+ break;
31690
+ }
31691
+ message.scope = reader.string();
31692
+ continue;
31693
+ case 39:
31694
+ if (tag !== 314) {
31695
+ break;
31696
+ }
31697
+ message.sector_identifier_uri = reader.string();
31698
+ continue;
31699
+ case 40:
31700
+ if (tag !== 320) {
31701
+ break;
31702
+ }
31703
+ message.skip_consent = reader.bool();
31704
+ continue;
31705
+ case 41:
31706
+ if (tag !== 328) {
31707
+ break;
31708
+ }
31709
+ message.skip_logout_consent = reader.bool();
31710
+ continue;
31711
+ case 42:
31712
+ if (tag !== 338) {
31713
+ break;
31714
+ }
31715
+ message.subject_type = reader.string();
31716
+ continue;
31717
+ case 43:
31718
+ if (tag !== 346) {
31719
+ break;
31720
+ }
31721
+ message.token_endpoint_auth_method = reader.string();
31722
+ continue;
31723
+ case 44:
31724
+ if (tag !== 354) {
31725
+ break;
31726
+ }
31727
+ message.token_endpoint_auth_signing_alg = reader.string();
31728
+ continue;
31729
+ case 45:
31730
+ if (tag !== 362) {
31731
+ break;
31732
+ }
31733
+ message.tos_uri = reader.string();
31734
+ continue;
31735
+ case 46:
31736
+ if (tag !== 370) {
31737
+ break;
31738
+ }
31739
+ message.updated_at = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
31740
+ continue;
31741
+ case 47:
31742
+ if (tag !== 378) {
31743
+ break;
31744
+ }
31745
+ message.userinfo_signed_response_alg = reader.string();
31746
+ continue;
31747
+ }
31748
+ if ((tag & 7) === 4 || tag === 0) {
31749
+ break;
31750
+ }
31751
+ reader.skipType(tag & 7);
31752
+ }
31753
+ return message;
31754
+ },
31755
+ fromJSON(object) {
31756
+ return {
31757
+ access_token_strategy: isSet(object.access_token_strategy) ? globalThis.String(object.access_token_strategy) : "",
31758
+ allowed_cors_origins: globalThis.Array.isArray(object?.allowed_cors_origins)
31759
+ ? object.allowed_cors_origins.map((e) => globalThis.String(e))
31760
+ : [],
31761
+ audience: globalThis.Array.isArray(object?.audience) ? object.audience.map((e) => globalThis.String(e)) : [],
31762
+ authorization_code_grant_access_token_lifespan: isSet(object.authorization_code_grant_access_token_lifespan)
31763
+ ? globalThis.String(object.authorization_code_grant_access_token_lifespan)
31764
+ : "",
31765
+ authorization_code_grant_id_token_lifespan: isSet(object.authorization_code_grant_id_token_lifespan)
31766
+ ? globalThis.String(object.authorization_code_grant_id_token_lifespan)
31767
+ : "",
31768
+ authorization_code_grant_refresh_token_lifespan: isSet(object.authorization_code_grant_refresh_token_lifespan)
31769
+ ? globalThis.String(object.authorization_code_grant_refresh_token_lifespan)
31770
+ : "",
31771
+ backchannel_logout_session_required: isSet(object.backchannel_logout_session_required)
31772
+ ? globalThis.Boolean(object.backchannel_logout_session_required)
31773
+ : false,
31774
+ backchannel_logout_uri: isSet(object.backchannel_logout_uri)
31775
+ ? globalThis.String(object.backchannel_logout_uri)
31776
+ : "",
31777
+ client_credentials_grant_access_token_lifespan: isSet(object.client_credentials_grant_access_token_lifespan)
31778
+ ? globalThis.String(object.client_credentials_grant_access_token_lifespan)
31779
+ : "",
31780
+ client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
31781
+ client_name: isSet(object.client_name) ? globalThis.String(object.client_name) : "",
31782
+ client_secret: isSet(object.client_secret) ? globalThis.String(object.client_secret) : "",
31783
+ client_secret_expires_at: isSet(object.client_secret_expires_at)
31784
+ ? globalThis.Number(object.client_secret_expires_at)
31785
+ : 0,
31786
+ client_uri: isSet(object.client_uri) ? globalThis.String(object.client_uri) : "",
31787
+ contacts: globalThis.Array.isArray(object?.contacts)
31788
+ ? object.contacts.map((e) => globalThis.String(e))
31789
+ : [],
31790
+ created_at: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
31791
+ frontchannel_logout_session_required: isSet(object.frontchannel_logout_session_required)
31792
+ ? globalThis.Boolean(object.frontchannel_logout_session_required)
31793
+ : false,
31794
+ frontchannel_logout_uri: isSet(object.frontchannel_logout_uri)
31795
+ ? globalThis.String(object.frontchannel_logout_uri)
31796
+ : "",
31797
+ grant_types: globalThis.Array.isArray(object?.grant_types)
31798
+ ? object.grant_types.map((e) => globalThis.String(e))
31799
+ : [],
31800
+ implicit_grant_access_token_lifespan: isSet(object.implicit_grant_access_token_lifespan)
31801
+ ? globalThis.String(object.implicit_grant_access_token_lifespan)
31802
+ : "",
31803
+ implicit_grant_id_token_lifespan: isSet(object.implicit_grant_id_token_lifespan)
31804
+ ? globalThis.String(object.implicit_grant_id_token_lifespan)
31805
+ : "",
31806
+ jwks: globalThis.Array.isArray(object?.jwks)
31807
+ ? object.jwks.map((e) => globalThis.String(e))
31808
+ : [],
31809
+ jwks_uri: isSet(object.jwks_uri) ? globalThis.String(object.jwks_uri) : "",
31810
+ jwt_bearer_grant_access_token_lifespan: isSet(object.jwt_bearer_grant_access_token_lifespan)
31811
+ ? globalThis.String(object.jwt_bearer_grant_access_token_lifespan)
31812
+ : "",
31813
+ logo_uri: isSet(object.logo_uri) ? globalThis.String(object.logo_uri) : "",
31814
+ owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
31815
+ policy_uri: isSet(object.policy_uri) ? globalThis.String(object.policy_uri) : "",
31816
+ post_logout_redirect_uris: globalThis.Array.isArray(object?.post_logout_redirect_uris)
31817
+ ? object.post_logout_redirect_uris.map((e) => globalThis.String(e))
31818
+ : [],
31819
+ redirect_uris: globalThis.Array.isArray(object?.redirect_uris)
31820
+ ? object.redirect_uris.map((e) => globalThis.String(e))
31821
+ : [],
31822
+ refresh_token_grant_access_token_lifespan: isSet(object.refresh_token_grant_access_token_lifespan)
31823
+ ? globalThis.String(object.refresh_token_grant_access_token_lifespan)
31824
+ : "",
31825
+ refresh_token_grant_id_token_lifespan: isSet(object.refresh_token_grant_id_token_lifespan)
31826
+ ? globalThis.String(object.refresh_token_grant_id_token_lifespan)
31827
+ : "",
31828
+ refresh_token_grant_refresh_token_lifespan: isSet(object.refresh_token_grant_refresh_token_lifespan)
31829
+ ? globalThis.String(object.refresh_token_grant_refresh_token_lifespan)
31830
+ : "",
31831
+ registration_access_token: isSet(object.registration_access_token)
31832
+ ? globalThis.String(object.registration_access_token)
31833
+ : "",
31834
+ registration_client_uri: isSet(object.registration_client_uri)
31835
+ ? globalThis.String(object.registration_client_uri)
31836
+ : "",
31837
+ request_object_signing_alg: isSet(object.request_object_signing_alg)
31838
+ ? globalThis.String(object.request_object_signing_alg)
31839
+ : "",
31840
+ request_uris: globalThis.Array.isArray(object?.request_uris)
31841
+ ? object.request_uris.map((e) => globalThis.String(e))
31842
+ : [],
31843
+ response_types: globalThis.Array.isArray(object?.response_types)
31844
+ ? object.response_types.map((e) => globalThis.String(e))
31845
+ : [],
31846
+ scope: isSet(object.scope) ? globalThis.String(object.scope) : "",
31847
+ sector_identifier_uri: isSet(object.sector_identifier_uri) ? globalThis.String(object.sector_identifier_uri) : "",
31848
+ skip_consent: isSet(object.skip_consent) ? globalThis.Boolean(object.skip_consent) : false,
31849
+ skip_logout_consent: isSet(object.skip_logout_consent) ? globalThis.Boolean(object.skip_logout_consent) : false,
31850
+ subject_type: isSet(object.subject_type) ? globalThis.String(object.subject_type) : "",
31851
+ token_endpoint_auth_method: isSet(object.token_endpoint_auth_method)
31852
+ ? globalThis.String(object.token_endpoint_auth_method)
31853
+ : "",
31854
+ token_endpoint_auth_signing_alg: isSet(object.token_endpoint_auth_signing_alg)
31855
+ ? globalThis.String(object.token_endpoint_auth_signing_alg)
31856
+ : "",
31857
+ tos_uri: isSet(object.tos_uri) ? globalThis.String(object.tos_uri) : "",
31858
+ updated_at: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
31859
+ userinfo_signed_response_alg: isSet(object.userinfo_signed_response_alg)
31860
+ ? globalThis.String(object.userinfo_signed_response_alg)
31861
+ : "",
31862
+ };
31863
+ },
31864
+ toJSON(message) {
31865
+ const obj = {};
31866
+ if (message.access_token_strategy !== "") {
31867
+ obj.access_token_strategy = message.access_token_strategy;
31868
+ }
31869
+ if (message.allowed_cors_origins?.length) {
31870
+ obj.allowed_cors_origins = message.allowed_cors_origins;
31871
+ }
31872
+ if (message.audience?.length) {
31873
+ obj.audience = message.audience;
31874
+ }
31875
+ if (message.authorization_code_grant_access_token_lifespan !== "") {
31876
+ obj.authorization_code_grant_access_token_lifespan = message.authorization_code_grant_access_token_lifespan;
31877
+ }
31878
+ if (message.authorization_code_grant_id_token_lifespan !== "") {
31879
+ obj.authorization_code_grant_id_token_lifespan = message.authorization_code_grant_id_token_lifespan;
31880
+ }
31881
+ if (message.authorization_code_grant_refresh_token_lifespan !== "") {
31882
+ obj.authorization_code_grant_refresh_token_lifespan = message.authorization_code_grant_refresh_token_lifespan;
31883
+ }
31884
+ if (message.backchannel_logout_session_required !== false) {
31885
+ obj.backchannel_logout_session_required = message.backchannel_logout_session_required;
31886
+ }
31887
+ if (message.backchannel_logout_uri !== "") {
31888
+ obj.backchannel_logout_uri = message.backchannel_logout_uri;
31889
+ }
31890
+ if (message.client_credentials_grant_access_token_lifespan !== "") {
31891
+ obj.client_credentials_grant_access_token_lifespan = message.client_credentials_grant_access_token_lifespan;
31892
+ }
31893
+ if (message.client_id !== "") {
31894
+ obj.client_id = message.client_id;
31895
+ }
31896
+ if (message.client_name !== "") {
31897
+ obj.client_name = message.client_name;
31898
+ }
31899
+ if (message.client_secret !== "") {
31900
+ obj.client_secret = message.client_secret;
31901
+ }
31902
+ if (message.client_secret_expires_at !== 0) {
31903
+ obj.client_secret_expires_at = Math.round(message.client_secret_expires_at);
31904
+ }
31905
+ if (message.client_uri !== "") {
31906
+ obj.client_uri = message.client_uri;
31907
+ }
31908
+ if (message.contacts?.length) {
31909
+ obj.contacts = message.contacts;
31910
+ }
31911
+ if (message.created_at !== undefined) {
31912
+ obj.created_at = message.created_at.toISOString();
31913
+ }
31914
+ if (message.frontchannel_logout_session_required !== false) {
31915
+ obj.frontchannel_logout_session_required = message.frontchannel_logout_session_required;
31916
+ }
31917
+ if (message.frontchannel_logout_uri !== "") {
31918
+ obj.frontchannel_logout_uri = message.frontchannel_logout_uri;
31919
+ }
31920
+ if (message.grant_types?.length) {
31921
+ obj.grant_types = message.grant_types;
31922
+ }
31923
+ if (message.implicit_grant_access_token_lifespan !== "") {
31924
+ obj.implicit_grant_access_token_lifespan = message.implicit_grant_access_token_lifespan;
31925
+ }
31926
+ if (message.implicit_grant_id_token_lifespan !== "") {
31927
+ obj.implicit_grant_id_token_lifespan = message.implicit_grant_id_token_lifespan;
31928
+ }
31929
+ if (message.jwks?.length) {
31930
+ obj.jwks = message.jwks;
31931
+ }
31932
+ if (message.jwks_uri !== "") {
31933
+ obj.jwks_uri = message.jwks_uri;
31934
+ }
31935
+ if (message.jwt_bearer_grant_access_token_lifespan !== "") {
31936
+ obj.jwt_bearer_grant_access_token_lifespan = message.jwt_bearer_grant_access_token_lifespan;
31937
+ }
31938
+ if (message.logo_uri !== "") {
31939
+ obj.logo_uri = message.logo_uri;
31940
+ }
31941
+ if (message.owner !== "") {
31942
+ obj.owner = message.owner;
31943
+ }
31944
+ if (message.policy_uri !== "") {
31945
+ obj.policy_uri = message.policy_uri;
31946
+ }
31947
+ if (message.post_logout_redirect_uris?.length) {
31948
+ obj.post_logout_redirect_uris = message.post_logout_redirect_uris;
31949
+ }
31950
+ if (message.redirect_uris?.length) {
31951
+ obj.redirect_uris = message.redirect_uris;
31952
+ }
31953
+ if (message.refresh_token_grant_access_token_lifespan !== "") {
31954
+ obj.refresh_token_grant_access_token_lifespan = message.refresh_token_grant_access_token_lifespan;
31955
+ }
31956
+ if (message.refresh_token_grant_id_token_lifespan !== "") {
31957
+ obj.refresh_token_grant_id_token_lifespan = message.refresh_token_grant_id_token_lifespan;
31958
+ }
31959
+ if (message.refresh_token_grant_refresh_token_lifespan !== "") {
31960
+ obj.refresh_token_grant_refresh_token_lifespan = message.refresh_token_grant_refresh_token_lifespan;
31961
+ }
31962
+ if (message.registration_access_token !== "") {
31963
+ obj.registration_access_token = message.registration_access_token;
31964
+ }
31965
+ if (message.registration_client_uri !== "") {
31966
+ obj.registration_client_uri = message.registration_client_uri;
31967
+ }
31968
+ if (message.request_object_signing_alg !== "") {
31969
+ obj.request_object_signing_alg = message.request_object_signing_alg;
31970
+ }
31971
+ if (message.request_uris?.length) {
31972
+ obj.request_uris = message.request_uris;
31973
+ }
31974
+ if (message.response_types?.length) {
31975
+ obj.response_types = message.response_types;
31976
+ }
31977
+ if (message.scope !== "") {
31978
+ obj.scope = message.scope;
31979
+ }
31980
+ if (message.sector_identifier_uri !== "") {
31981
+ obj.sector_identifier_uri = message.sector_identifier_uri;
31982
+ }
31983
+ if (message.skip_consent !== false) {
31984
+ obj.skip_consent = message.skip_consent;
31985
+ }
31986
+ if (message.skip_logout_consent !== false) {
31987
+ obj.skip_logout_consent = message.skip_logout_consent;
31988
+ }
31989
+ if (message.subject_type !== "") {
31990
+ obj.subject_type = message.subject_type;
31991
+ }
31992
+ if (message.token_endpoint_auth_method !== "") {
31993
+ obj.token_endpoint_auth_method = message.token_endpoint_auth_method;
31994
+ }
31995
+ if (message.token_endpoint_auth_signing_alg !== "") {
31996
+ obj.token_endpoint_auth_signing_alg = message.token_endpoint_auth_signing_alg;
31997
+ }
31998
+ if (message.tos_uri !== "") {
31999
+ obj.tos_uri = message.tos_uri;
32000
+ }
32001
+ if (message.updated_at !== undefined) {
32002
+ obj.updated_at = message.updated_at.toISOString();
32003
+ }
32004
+ if (message.userinfo_signed_response_alg !== "") {
32005
+ obj.userinfo_signed_response_alg = message.userinfo_signed_response_alg;
32006
+ }
32007
+ return obj;
32008
+ },
32009
+ create(base) {
32010
+ return MezonOauthClient.fromPartial(base ?? {});
32011
+ },
32012
+ fromPartial(object) {
32013
+ const message = createBaseMezonOauthClient();
32014
+ message.access_token_strategy = object.access_token_strategy ?? "";
32015
+ message.allowed_cors_origins = object.allowed_cors_origins?.map((e) => e) || [];
32016
+ message.audience = object.audience?.map((e) => e) || [];
32017
+ message.authorization_code_grant_access_token_lifespan = object.authorization_code_grant_access_token_lifespan ??
32018
+ "";
32019
+ message.authorization_code_grant_id_token_lifespan = object.authorization_code_grant_id_token_lifespan ?? "";
32020
+ message.authorization_code_grant_refresh_token_lifespan = object.authorization_code_grant_refresh_token_lifespan ??
32021
+ "";
32022
+ message.backchannel_logout_session_required = object.backchannel_logout_session_required ?? false;
32023
+ message.backchannel_logout_uri = object.backchannel_logout_uri ?? "";
32024
+ message.client_credentials_grant_access_token_lifespan = object.client_credentials_grant_access_token_lifespan ??
32025
+ "";
32026
+ message.client_id = object.client_id ?? "";
32027
+ message.client_name = object.client_name ?? "";
32028
+ message.client_secret = object.client_secret ?? "";
32029
+ message.client_secret_expires_at = object.client_secret_expires_at ?? 0;
32030
+ message.client_uri = object.client_uri ?? "";
32031
+ message.contacts = object.contacts?.map((e) => e) || [];
32032
+ message.created_at = object.created_at ?? undefined;
32033
+ message.frontchannel_logout_session_required = object.frontchannel_logout_session_required ?? false;
32034
+ message.frontchannel_logout_uri = object.frontchannel_logout_uri ?? "";
32035
+ message.grant_types = object.grant_types?.map((e) => e) || [];
32036
+ message.implicit_grant_access_token_lifespan = object.implicit_grant_access_token_lifespan ?? "";
32037
+ message.implicit_grant_id_token_lifespan = object.implicit_grant_id_token_lifespan ?? "";
32038
+ message.jwks = object.jwks?.map((e) => e) || [];
32039
+ message.jwks_uri = object.jwks_uri ?? "";
32040
+ message.jwt_bearer_grant_access_token_lifespan = object.jwt_bearer_grant_access_token_lifespan ?? "";
32041
+ message.logo_uri = object.logo_uri ?? "";
32042
+ message.owner = object.owner ?? "";
32043
+ message.policy_uri = object.policy_uri ?? "";
32044
+ message.post_logout_redirect_uris = object.post_logout_redirect_uris?.map((e) => e) || [];
32045
+ message.redirect_uris = object.redirect_uris?.map((e) => e) || [];
32046
+ message.refresh_token_grant_access_token_lifespan = object.refresh_token_grant_access_token_lifespan ?? "";
32047
+ message.refresh_token_grant_id_token_lifespan = object.refresh_token_grant_id_token_lifespan ?? "";
32048
+ message.refresh_token_grant_refresh_token_lifespan = object.refresh_token_grant_refresh_token_lifespan ?? "";
32049
+ message.registration_access_token = object.registration_access_token ?? "";
32050
+ message.registration_client_uri = object.registration_client_uri ?? "";
32051
+ message.request_object_signing_alg = object.request_object_signing_alg ?? "";
32052
+ message.request_uris = object.request_uris?.map((e) => e) || [];
32053
+ message.response_types = object.response_types?.map((e) => e) || [];
32054
+ message.scope = object.scope ?? "";
32055
+ message.sector_identifier_uri = object.sector_identifier_uri ?? "";
32056
+ message.skip_consent = object.skip_consent ?? false;
32057
+ message.skip_logout_consent = object.skip_logout_consent ?? false;
32058
+ message.subject_type = object.subject_type ?? "";
32059
+ message.token_endpoint_auth_method = object.token_endpoint_auth_method ?? "";
32060
+ message.token_endpoint_auth_signing_alg = object.token_endpoint_auth_signing_alg ?? "";
32061
+ message.tos_uri = object.tos_uri ?? "";
32062
+ message.updated_at = object.updated_at ?? undefined;
32063
+ message.userinfo_signed_response_alg = object.userinfo_signed_response_alg ?? "";
32064
+ return message;
32065
+ },
32066
+ };
32067
+ function createBaseMezonOauthClientList() {
32068
+ return { listMezonOauthClient: [] };
32069
+ }
32070
+ export const MezonOauthClientList = {
32071
+ encode(message, writer = _m0.Writer.create()) {
32072
+ for (const v of message.listMezonOauthClient) {
32073
+ MezonOauthClient.encode(v, writer.uint32(10).fork()).ldelim();
32074
+ }
32075
+ return writer;
32076
+ },
32077
+ decode(input, length) {
32078
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
32079
+ let end = length === undefined ? reader.len : reader.pos + length;
32080
+ const message = createBaseMezonOauthClientList();
32081
+ while (reader.pos < end) {
32082
+ const tag = reader.uint32();
32083
+ switch (tag >>> 3) {
32084
+ case 1:
32085
+ if (tag !== 10) {
32086
+ break;
32087
+ }
32088
+ message.listMezonOauthClient.push(MezonOauthClient.decode(reader, reader.uint32()));
32089
+ continue;
32090
+ }
32091
+ if ((tag & 7) === 4 || tag === 0) {
32092
+ break;
32093
+ }
32094
+ reader.skipType(tag & 7);
32095
+ }
32096
+ return message;
32097
+ },
32098
+ fromJSON(object) {
32099
+ return {
32100
+ listMezonOauthClient: globalThis.Array.isArray(object?.listMezonOauthClient)
32101
+ ? object.listMezonOauthClient.map((e) => MezonOauthClient.fromJSON(e))
32102
+ : [],
32103
+ };
32104
+ },
32105
+ toJSON(message) {
32106
+ const obj = {};
32107
+ if (message.listMezonOauthClient?.length) {
32108
+ obj.listMezonOauthClient = message.listMezonOauthClient.map((e) => MezonOauthClient.toJSON(e));
32109
+ }
32110
+ return obj;
32111
+ },
32112
+ create(base) {
32113
+ return MezonOauthClientList.fromPartial(base ?? {});
32114
+ },
32115
+ fromPartial(object) {
32116
+ const message = createBaseMezonOauthClientList();
32117
+ message.listMezonOauthClient = object.listMezonOauthClient?.map((e) => MezonOauthClient.fromPartial(e)) || [];
32118
+ return message;
32119
+ },
32120
+ };
30704
32121
  function bytesFromBase64(b64) {
30705
32122
  if (globalThis.Buffer) {
30706
32123
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));