mezon-sdk 2.7.79 → 2.7.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/api.d.ts +3285 -465
- package/dist/cjs/api/api.js +2390 -608
- package/dist/cjs/api/api.js.map +1 -1
- package/dist/cjs/client.js +3 -3
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/google/protobuf/struct.js +1 -1
- package/dist/cjs/google/protobuf/timestamp.js +1 -1
- package/dist/cjs/google/protobuf/wrappers.js +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/mezon-client/channel_manager.d.ts +15 -0
- package/dist/cjs/mezon-client/channel_manager.js +70 -0
- package/dist/cjs/mezon-client/channel_manager.js.map +1 -0
- package/dist/cjs/mezon-client/event_manager.d.ts +7 -0
- package/dist/cjs/mezon-client/event_manager.js +37 -0
- package/dist/cjs/mezon-client/event_manager.js.map +1 -0
- package/dist/cjs/mezon-client/message_manager.d.ts +16 -0
- package/dist/cjs/mezon-client/message_manager.js +60 -0
- package/dist/cjs/mezon-client/message_manager.js.map +1 -0
- package/dist/cjs/mezon-client/mezon_client.d.ts +37 -0
- package/dist/cjs/mezon-client/mezon_client.js +87 -0
- package/dist/cjs/mezon-client/mezon_client.js.map +1 -0
- package/dist/cjs/mezon-client/session_manager.d.ts +10 -0
- package/dist/cjs/mezon-client/session_manager.js +35 -0
- package/dist/cjs/mezon-client/session_manager.js.map +1 -0
- package/dist/cjs/mezon-client/socket_manager.d.ts +31 -0
- package/dist/cjs/mezon-client/socket_manager.js +95 -0
- package/dist/cjs/mezon-client/socket_manager.js.map +1 -0
- package/dist/cjs/rtapi/realtime.d.ts +3376 -968
- package/dist/cjs/rtapi/realtime.js +964 -509
- package/dist/cjs/rtapi/realtime.js.map +1 -1
- package/dist/esm/api/api.d.ts +3285 -465
- package/dist/esm/api/api.js +2347 -573
- package/dist/esm/api/api.js.map +1 -1
- package/dist/esm/client.js +3 -3
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/google/protobuf/struct.js +1 -1
- package/dist/esm/google/protobuf/timestamp.js +1 -1
- package/dist/esm/google/protobuf/wrappers.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/mezon-client/channel_manager.d.ts +15 -0
- package/dist/esm/mezon-client/channel_manager.js +69 -0
- package/dist/esm/mezon-client/channel_manager.js.map +1 -0
- package/dist/esm/mezon-client/event_manager.d.ts +7 -0
- package/dist/esm/mezon-client/event_manager.js +31 -0
- package/dist/esm/mezon-client/event_manager.js.map +1 -0
- package/dist/esm/mezon-client/message_manager.d.ts +16 -0
- package/dist/esm/mezon-client/message_manager.js +57 -0
- package/dist/esm/mezon-client/message_manager.js.map +1 -0
- package/dist/esm/mezon-client/mezon_client.d.ts +37 -0
- package/dist/esm/mezon-client/mezon_client.js +94 -0
- package/dist/esm/mezon-client/mezon_client.js.map +1 -0
- package/dist/esm/mezon-client/session_manager.d.ts +10 -0
- package/dist/esm/mezon-client/session_manager.js +33 -0
- package/dist/esm/mezon-client/session_manager.js.map +1 -0
- package/dist/esm/mezon-client/socket_manager.d.ts +31 -0
- package/dist/esm/mezon-client/socket_manager.js +100 -0
- package/dist/esm/mezon-client/socket_manager.js.map +1 -0
- package/dist/esm/rtapi/realtime.d.ts +3376 -968
- package/dist/esm/rtapi/realtime.js +947 -494
- package/dist/esm/rtapi/realtime.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/esm/api/api.js
CHANGED
|
@@ -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.
|
|
4
|
-
// protoc v5.
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc v5.28.3
|
|
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
|
-
|
|
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.
|
|
331
|
-
writer.uint32(42).string(message.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
456
|
-
obj.
|
|
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.
|
|
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
|
|
1785
|
+
function createBaseAccountMezon() {
|
|
1937
1786
|
return { token: "", vars: {} };
|
|
1938
1787
|
}
|
|
1939
|
-
export const
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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
|
|
1856
|
+
return AccountMezon.fromPartial(base ?? {});
|
|
2008
1857
|
},
|
|
2009
1858
|
fromPartial(object) {
|
|
2010
|
-
const message =
|
|
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
|
|
1870
|
+
function createBaseAccountMezon_VarsEntry() {
|
|
2022
1871
|
return { key: "", value: "" };
|
|
2023
1872
|
}
|
|
2024
|
-
export const
|
|
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 =
|
|
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
|
|
1927
|
+
return AccountMezon_VarsEntry.fromPartial(base ?? {});
|
|
2079
1928
|
},
|
|
2080
1929
|
fromPartial(object) {
|
|
2081
|
-
const message =
|
|
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
|
|
2088
|
-
return {
|
|
1936
|
+
function createBaseAccountSteam() {
|
|
1937
|
+
return { token: "", vars: {} };
|
|
2089
1938
|
}
|
|
2090
|
-
export const
|
|
1939
|
+
export const AccountSteam = {
|
|
2091
1940
|
encode(message, writer = _m0.Writer.create()) {
|
|
2092
|
-
|
|
2093
|
-
writer.uint32(10).string(
|
|
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 =
|
|
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.
|
|
1960
|
+
message.token = reader.string();
|
|
2112
1961
|
continue;
|
|
2113
1962
|
case 2:
|
|
2114
1963
|
if (tag !== 18) {
|
|
2115
1964
|
break;
|
|
2116
1965
|
}
|
|
2117
|
-
|
|
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
|
-
|
|
2130
|
-
|
|
2131
|
-
? object.
|
|
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.
|
|
2138
|
-
obj.
|
|
1992
|
+
if (message.token !== "") {
|
|
1993
|
+
obj.token = message.token;
|
|
2139
1994
|
}
|
|
2140
|
-
if (message.
|
|
2141
|
-
|
|
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
|
|
2007
|
+
return AccountSteam.fromPartial(base ?? {});
|
|
2147
2008
|
},
|
|
2148
2009
|
fromPartial(object) {
|
|
2149
|
-
const message =
|
|
2150
|
-
message.
|
|
2151
|
-
message.
|
|
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
|
|
2156
|
-
return {
|
|
2021
|
+
function createBaseAccountSteam_VarsEntry() {
|
|
2022
|
+
return { key: "", value: "" };
|
|
2157
2023
|
}
|
|
2158
|
-
export const
|
|
2024
|
+
export const AccountSteam_VarsEntry = {
|
|
2159
2025
|
encode(message, writer = _m0.Writer.create()) {
|
|
2160
|
-
if (message.
|
|
2161
|
-
writer.uint32(10).string(message.
|
|
2026
|
+
if (message.key !== "") {
|
|
2027
|
+
writer.uint32(10).string(message.key);
|
|
2162
2028
|
}
|
|
2163
|
-
|
|
2164
|
-
writer.uint32(18).string(
|
|
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 =
|
|
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.
|
|
2045
|
+
message.key = reader.string();
|
|
2180
2046
|
continue;
|
|
2181
2047
|
case 2:
|
|
2182
2048
|
if (tag !== 18) {
|
|
2183
2049
|
break;
|
|
2184
2050
|
}
|
|
2185
|
-
message.
|
|
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
|
-
|
|
2198
|
-
|
|
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.
|
|
2204
|
-
obj.
|
|
2069
|
+
if (message.key !== "") {
|
|
2070
|
+
obj.key = message.key;
|
|
2205
2071
|
}
|
|
2206
|
-
if (message.
|
|
2207
|
-
obj.
|
|
2072
|
+
if (message.value !== "") {
|
|
2073
|
+
obj.value = message.value;
|
|
2208
2074
|
}
|
|
2209
2075
|
return obj;
|
|
2210
2076
|
},
|
|
2211
2077
|
create(base) {
|
|
2212
|
-
return
|
|
2078
|
+
return AccountSteam_VarsEntry.fromPartial(base ?? {});
|
|
2213
2079
|
},
|
|
2214
2080
|
fromPartial(object) {
|
|
2215
|
-
const message =
|
|
2216
|
-
message.
|
|
2217
|
-
message.
|
|
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
|
|
2222
|
-
return {
|
|
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()) {
|
|
@@ -2370,7 +2370,7 @@ export const SessionRefreshRequest_VarsEntry = {
|
|
|
2370
2370
|
},
|
|
2371
2371
|
};
|
|
2372
2372
|
function createBaseSessionLogoutRequest() {
|
|
2373
|
-
return { token: "", refresh_token: "", device_id: "", fcm_token: "" };
|
|
2373
|
+
return { token: "", refresh_token: "", device_id: "", fcm_token: "", platform: "" };
|
|
2374
2374
|
}
|
|
2375
2375
|
export const SessionLogoutRequest = {
|
|
2376
2376
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -2386,6 +2386,9 @@ export const SessionLogoutRequest = {
|
|
|
2386
2386
|
if (message.fcm_token !== "") {
|
|
2387
2387
|
writer.uint32(34).string(message.fcm_token);
|
|
2388
2388
|
}
|
|
2389
|
+
if (message.platform !== "") {
|
|
2390
|
+
writer.uint32(42).string(message.platform);
|
|
2391
|
+
}
|
|
2389
2392
|
return writer;
|
|
2390
2393
|
},
|
|
2391
2394
|
decode(input, length) {
|
|
@@ -2419,6 +2422,12 @@ export const SessionLogoutRequest = {
|
|
|
2419
2422
|
}
|
|
2420
2423
|
message.fcm_token = reader.string();
|
|
2421
2424
|
continue;
|
|
2425
|
+
case 5:
|
|
2426
|
+
if (tag !== 42) {
|
|
2427
|
+
break;
|
|
2428
|
+
}
|
|
2429
|
+
message.platform = reader.string();
|
|
2430
|
+
continue;
|
|
2422
2431
|
}
|
|
2423
2432
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2424
2433
|
break;
|
|
@@ -2433,6 +2442,7 @@ export const SessionLogoutRequest = {
|
|
|
2433
2442
|
refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
|
|
2434
2443
|
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
2435
2444
|
fcm_token: isSet(object.fcm_token) ? globalThis.String(object.fcm_token) : "",
|
|
2445
|
+
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
2436
2446
|
};
|
|
2437
2447
|
},
|
|
2438
2448
|
toJSON(message) {
|
|
@@ -2449,6 +2459,9 @@ export const SessionLogoutRequest = {
|
|
|
2449
2459
|
if (message.fcm_token !== "") {
|
|
2450
2460
|
obj.fcm_token = message.fcm_token;
|
|
2451
2461
|
}
|
|
2462
|
+
if (message.platform !== "") {
|
|
2463
|
+
obj.platform = message.platform;
|
|
2464
|
+
}
|
|
2452
2465
|
return obj;
|
|
2453
2466
|
},
|
|
2454
2467
|
create(base) {
|
|
@@ -2460,6 +2473,7 @@ export const SessionLogoutRequest = {
|
|
|
2460
2473
|
message.refresh_token = object.refresh_token ?? "";
|
|
2461
2474
|
message.device_id = object.device_id ?? "";
|
|
2462
2475
|
message.fcm_token = object.fcm_token ?? "";
|
|
2476
|
+
message.platform = object.platform ?? "";
|
|
2463
2477
|
return message;
|
|
2464
2478
|
},
|
|
2465
2479
|
};
|
|
@@ -2545,88 +2559,6 @@ export const AuthenticateAppleRequest = {
|
|
|
2545
2559
|
return message;
|
|
2546
2560
|
},
|
|
2547
2561
|
};
|
|
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
2562
|
function createBaseAuthenticateDeviceRequest() {
|
|
2631
2563
|
return { account: undefined, create: undefined, username: "" };
|
|
2632
2564
|
}
|
|
@@ -3183,13 +3115,13 @@ export const AuthenticateGoogleRequest = {
|
|
|
3183
3115
|
return message;
|
|
3184
3116
|
},
|
|
3185
3117
|
};
|
|
3186
|
-
function
|
|
3187
|
-
return { account: undefined, create: undefined, username: ""
|
|
3118
|
+
function createBaseAuthenticateMezonRequest() {
|
|
3119
|
+
return { account: undefined, create: undefined, username: "" };
|
|
3188
3120
|
}
|
|
3189
|
-
export const
|
|
3121
|
+
export const AuthenticateMezonRequest = {
|
|
3190
3122
|
encode(message, writer = _m0.Writer.create()) {
|
|
3191
3123
|
if (message.account !== undefined) {
|
|
3192
|
-
|
|
3124
|
+
AccountMezon.encode(message.account, writer.uint32(10).fork()).ldelim();
|
|
3193
3125
|
}
|
|
3194
3126
|
if (message.create !== undefined) {
|
|
3195
3127
|
BoolValue.encode({ value: message.create }, writer.uint32(18).fork()).ldelim();
|
|
@@ -3197,15 +3129,12 @@ export const AuthenticateSteamRequest = {
|
|
|
3197
3129
|
if (message.username !== "") {
|
|
3198
3130
|
writer.uint32(26).string(message.username);
|
|
3199
3131
|
}
|
|
3200
|
-
if (message.sync !== undefined) {
|
|
3201
|
-
BoolValue.encode({ value: message.sync }, writer.uint32(34).fork()).ldelim();
|
|
3202
|
-
}
|
|
3203
3132
|
return writer;
|
|
3204
3133
|
},
|
|
3205
3134
|
decode(input, length) {
|
|
3206
3135
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
3207
3136
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3208
|
-
const message =
|
|
3137
|
+
const message = createBaseAuthenticateMezonRequest();
|
|
3209
3138
|
while (reader.pos < end) {
|
|
3210
3139
|
const tag = reader.uint32();
|
|
3211
3140
|
switch (tag >>> 3) {
|
|
@@ -3213,7 +3142,7 @@ export const AuthenticateSteamRequest = {
|
|
|
3213
3142
|
if (tag !== 10) {
|
|
3214
3143
|
break;
|
|
3215
3144
|
}
|
|
3216
|
-
message.account =
|
|
3145
|
+
message.account = AccountMezon.decode(reader, reader.uint32());
|
|
3217
3146
|
continue;
|
|
3218
3147
|
case 2:
|
|
3219
3148
|
if (tag !== 18) {
|
|
@@ -3227,12 +3156,6 @@ export const AuthenticateSteamRequest = {
|
|
|
3227
3156
|
}
|
|
3228
3157
|
message.username = reader.string();
|
|
3229
3158
|
continue;
|
|
3230
|
-
case 4:
|
|
3231
|
-
if (tag !== 34) {
|
|
3232
|
-
break;
|
|
3233
|
-
}
|
|
3234
|
-
message.sync = BoolValue.decode(reader, reader.uint32()).value;
|
|
3235
|
-
continue;
|
|
3236
3159
|
}
|
|
3237
3160
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3238
3161
|
break;
|
|
@@ -3243,16 +3166,15 @@ export const AuthenticateSteamRequest = {
|
|
|
3243
3166
|
},
|
|
3244
3167
|
fromJSON(object) {
|
|
3245
3168
|
return {
|
|
3246
|
-
account: isSet(object.account) ?
|
|
3169
|
+
account: isSet(object.account) ? AccountMezon.fromJSON(object.account) : undefined,
|
|
3247
3170
|
create: isSet(object.create) ? Boolean(object.create) : undefined,
|
|
3248
3171
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
3249
|
-
sync: isSet(object.sync) ? Boolean(object.sync) : undefined,
|
|
3250
3172
|
};
|
|
3251
3173
|
},
|
|
3252
3174
|
toJSON(message) {
|
|
3253
3175
|
const obj = {};
|
|
3254
3176
|
if (message.account !== undefined) {
|
|
3255
|
-
obj.account =
|
|
3177
|
+
obj.account = AccountMezon.toJSON(message.account);
|
|
3256
3178
|
}
|
|
3257
3179
|
if (message.create !== undefined) {
|
|
3258
3180
|
obj.create = message.create;
|
|
@@ -3260,33 +3182,125 @@ export const AuthenticateSteamRequest = {
|
|
|
3260
3182
|
if (message.username !== "") {
|
|
3261
3183
|
obj.username = message.username;
|
|
3262
3184
|
}
|
|
3263
|
-
if (message.sync !== undefined) {
|
|
3264
|
-
obj.sync = message.sync;
|
|
3265
|
-
}
|
|
3266
3185
|
return obj;
|
|
3267
3186
|
},
|
|
3268
3187
|
create(base) {
|
|
3269
|
-
return
|
|
3188
|
+
return AuthenticateMezonRequest.fromPartial(base ?? {});
|
|
3270
3189
|
},
|
|
3271
3190
|
fromPartial(object) {
|
|
3272
|
-
const message =
|
|
3191
|
+
const message = createBaseAuthenticateMezonRequest();
|
|
3273
3192
|
message.account = (object.account !== undefined && object.account !== null)
|
|
3274
|
-
?
|
|
3193
|
+
? AccountMezon.fromPartial(object.account)
|
|
3275
3194
|
: undefined;
|
|
3276
3195
|
message.create = object.create ?? undefined;
|
|
3277
3196
|
message.username = object.username ?? "";
|
|
3278
|
-
message.sync = object.sync ?? undefined;
|
|
3279
3197
|
return message;
|
|
3280
3198
|
},
|
|
3281
3199
|
};
|
|
3282
|
-
function
|
|
3283
|
-
return {
|
|
3200
|
+
function createBaseAuthenticateSteamRequest() {
|
|
3201
|
+
return { account: undefined, create: undefined, username: "", sync: undefined };
|
|
3284
3202
|
}
|
|
3285
|
-
export const
|
|
3203
|
+
export const AuthenticateSteamRequest = {
|
|
3286
3204
|
encode(message, writer = _m0.Writer.create()) {
|
|
3287
|
-
if (message.
|
|
3288
|
-
writer.uint32(10).
|
|
3289
|
-
}
|
|
3205
|
+
if (message.account !== undefined) {
|
|
3206
|
+
AccountSteam.encode(message.account, writer.uint32(10).fork()).ldelim();
|
|
3207
|
+
}
|
|
3208
|
+
if (message.create !== undefined) {
|
|
3209
|
+
BoolValue.encode({ value: message.create }, writer.uint32(18).fork()).ldelim();
|
|
3210
|
+
}
|
|
3211
|
+
if (message.username !== "") {
|
|
3212
|
+
writer.uint32(26).string(message.username);
|
|
3213
|
+
}
|
|
3214
|
+
if (message.sync !== undefined) {
|
|
3215
|
+
BoolValue.encode({ value: message.sync }, writer.uint32(34).fork()).ldelim();
|
|
3216
|
+
}
|
|
3217
|
+
return writer;
|
|
3218
|
+
},
|
|
3219
|
+
decode(input, length) {
|
|
3220
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
3221
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3222
|
+
const message = createBaseAuthenticateSteamRequest();
|
|
3223
|
+
while (reader.pos < end) {
|
|
3224
|
+
const tag = reader.uint32();
|
|
3225
|
+
switch (tag >>> 3) {
|
|
3226
|
+
case 1:
|
|
3227
|
+
if (tag !== 10) {
|
|
3228
|
+
break;
|
|
3229
|
+
}
|
|
3230
|
+
message.account = AccountSteam.decode(reader, reader.uint32());
|
|
3231
|
+
continue;
|
|
3232
|
+
case 2:
|
|
3233
|
+
if (tag !== 18) {
|
|
3234
|
+
break;
|
|
3235
|
+
}
|
|
3236
|
+
message.create = BoolValue.decode(reader, reader.uint32()).value;
|
|
3237
|
+
continue;
|
|
3238
|
+
case 3:
|
|
3239
|
+
if (tag !== 26) {
|
|
3240
|
+
break;
|
|
3241
|
+
}
|
|
3242
|
+
message.username = reader.string();
|
|
3243
|
+
continue;
|
|
3244
|
+
case 4:
|
|
3245
|
+
if (tag !== 34) {
|
|
3246
|
+
break;
|
|
3247
|
+
}
|
|
3248
|
+
message.sync = BoolValue.decode(reader, reader.uint32()).value;
|
|
3249
|
+
continue;
|
|
3250
|
+
}
|
|
3251
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3252
|
+
break;
|
|
3253
|
+
}
|
|
3254
|
+
reader.skipType(tag & 7);
|
|
3255
|
+
}
|
|
3256
|
+
return message;
|
|
3257
|
+
},
|
|
3258
|
+
fromJSON(object) {
|
|
3259
|
+
return {
|
|
3260
|
+
account: isSet(object.account) ? AccountSteam.fromJSON(object.account) : undefined,
|
|
3261
|
+
create: isSet(object.create) ? Boolean(object.create) : undefined,
|
|
3262
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
3263
|
+
sync: isSet(object.sync) ? Boolean(object.sync) : undefined,
|
|
3264
|
+
};
|
|
3265
|
+
},
|
|
3266
|
+
toJSON(message) {
|
|
3267
|
+
const obj = {};
|
|
3268
|
+
if (message.account !== undefined) {
|
|
3269
|
+
obj.account = AccountSteam.toJSON(message.account);
|
|
3270
|
+
}
|
|
3271
|
+
if (message.create !== undefined) {
|
|
3272
|
+
obj.create = message.create;
|
|
3273
|
+
}
|
|
3274
|
+
if (message.username !== "") {
|
|
3275
|
+
obj.username = message.username;
|
|
3276
|
+
}
|
|
3277
|
+
if (message.sync !== undefined) {
|
|
3278
|
+
obj.sync = message.sync;
|
|
3279
|
+
}
|
|
3280
|
+
return obj;
|
|
3281
|
+
},
|
|
3282
|
+
create(base) {
|
|
3283
|
+
return AuthenticateSteamRequest.fromPartial(base ?? {});
|
|
3284
|
+
},
|
|
3285
|
+
fromPartial(object) {
|
|
3286
|
+
const message = createBaseAuthenticateSteamRequest();
|
|
3287
|
+
message.account = (object.account !== undefined && object.account !== null)
|
|
3288
|
+
? AccountSteam.fromPartial(object.account)
|
|
3289
|
+
: undefined;
|
|
3290
|
+
message.create = object.create ?? undefined;
|
|
3291
|
+
message.username = object.username ?? "";
|
|
3292
|
+
message.sync = object.sync ?? undefined;
|
|
3293
|
+
return message;
|
|
3294
|
+
},
|
|
3295
|
+
};
|
|
3296
|
+
function createBaseBanGroupUsersRequest() {
|
|
3297
|
+
return { group_id: "", user_ids: [] };
|
|
3298
|
+
}
|
|
3299
|
+
export const BanGroupUsersRequest = {
|
|
3300
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3301
|
+
if (message.group_id !== "") {
|
|
3302
|
+
writer.uint32(10).string(message.group_id);
|
|
3303
|
+
}
|
|
3290
3304
|
for (const v of message.user_ids) {
|
|
3291
3305
|
writer.uint32(18).string(v);
|
|
3292
3306
|
}
|
|
@@ -4019,6 +4033,7 @@ function createBaseNotificationInfo() {
|
|
|
4019
4033
|
category_name: "",
|
|
4020
4034
|
clan_name: "",
|
|
4021
4035
|
clan_logo: "",
|
|
4036
|
+
channel: undefined,
|
|
4022
4037
|
};
|
|
4023
4038
|
}
|
|
4024
4039
|
export const NotificationInfo = {
|
|
@@ -4053,6 +4068,9 @@ export const NotificationInfo = {
|
|
|
4053
4068
|
if (message.clan_logo !== "") {
|
|
4054
4069
|
writer.uint32(82).string(message.clan_logo);
|
|
4055
4070
|
}
|
|
4071
|
+
if (message.channel !== undefined) {
|
|
4072
|
+
ChannelDescription.encode(message.channel, writer.uint32(90).fork()).ldelim();
|
|
4073
|
+
}
|
|
4056
4074
|
return writer;
|
|
4057
4075
|
},
|
|
4058
4076
|
decode(input, length) {
|
|
@@ -4122,6 +4140,12 @@ export const NotificationInfo = {
|
|
|
4122
4140
|
}
|
|
4123
4141
|
message.clan_logo = reader.string();
|
|
4124
4142
|
continue;
|
|
4143
|
+
case 11:
|
|
4144
|
+
if (tag !== 90) {
|
|
4145
|
+
break;
|
|
4146
|
+
}
|
|
4147
|
+
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
4148
|
+
continue;
|
|
4125
4149
|
}
|
|
4126
4150
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4127
4151
|
break;
|
|
@@ -4142,6 +4166,7 @@ export const NotificationInfo = {
|
|
|
4142
4166
|
category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
4143
4167
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
4144
4168
|
clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
|
|
4169
|
+
channel: isSet(object.channel) ? ChannelDescription.fromJSON(object.channel) : undefined,
|
|
4145
4170
|
};
|
|
4146
4171
|
},
|
|
4147
4172
|
toJSON(message) {
|
|
@@ -4176,6 +4201,9 @@ export const NotificationInfo = {
|
|
|
4176
4201
|
if (message.clan_logo !== "") {
|
|
4177
4202
|
obj.clan_logo = message.clan_logo;
|
|
4178
4203
|
}
|
|
4204
|
+
if (message.channel !== undefined) {
|
|
4205
|
+
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
4206
|
+
}
|
|
4179
4207
|
return obj;
|
|
4180
4208
|
},
|
|
4181
4209
|
create(base) {
|
|
@@ -4193,6 +4221,9 @@ export const NotificationInfo = {
|
|
|
4193
4221
|
message.category_name = object.category_name ?? "";
|
|
4194
4222
|
message.clan_name = object.clan_name ?? "";
|
|
4195
4223
|
message.clan_logo = object.clan_logo ?? "";
|
|
4224
|
+
message.channel = (object.channel !== undefined && object.channel !== null)
|
|
4225
|
+
? ChannelDescription.fromPartial(object.channel)
|
|
4226
|
+
: undefined;
|
|
4196
4227
|
return message;
|
|
4197
4228
|
},
|
|
4198
4229
|
};
|
|
@@ -5174,13 +5205,16 @@ export const DeleteGroupRequest = {
|
|
|
5174
5205
|
},
|
|
5175
5206
|
};
|
|
5176
5207
|
function createBaseDeleteNotificationsRequest() {
|
|
5177
|
-
return { ids: [] };
|
|
5208
|
+
return { ids: [], category: 0 };
|
|
5178
5209
|
}
|
|
5179
5210
|
export const DeleteNotificationsRequest = {
|
|
5180
5211
|
encode(message, writer = _m0.Writer.create()) {
|
|
5181
5212
|
for (const v of message.ids) {
|
|
5182
5213
|
writer.uint32(10).string(v);
|
|
5183
5214
|
}
|
|
5215
|
+
if (message.category !== 0) {
|
|
5216
|
+
writer.uint32(16).int32(message.category);
|
|
5217
|
+
}
|
|
5184
5218
|
return writer;
|
|
5185
5219
|
},
|
|
5186
5220
|
decode(input, length) {
|
|
@@ -5196,6 +5230,12 @@ export const DeleteNotificationsRequest = {
|
|
|
5196
5230
|
}
|
|
5197
5231
|
message.ids.push(reader.string());
|
|
5198
5232
|
continue;
|
|
5233
|
+
case 2:
|
|
5234
|
+
if (tag !== 16) {
|
|
5235
|
+
break;
|
|
5236
|
+
}
|
|
5237
|
+
message.category = reader.int32();
|
|
5238
|
+
continue;
|
|
5199
5239
|
}
|
|
5200
5240
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5201
5241
|
break;
|
|
@@ -5205,13 +5245,19 @@ export const DeleteNotificationsRequest = {
|
|
|
5205
5245
|
return message;
|
|
5206
5246
|
},
|
|
5207
5247
|
fromJSON(object) {
|
|
5208
|
-
return {
|
|
5248
|
+
return {
|
|
5249
|
+
ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e) => globalThis.String(e)) : [],
|
|
5250
|
+
category: isSet(object.category) ? globalThis.Number(object.category) : 0,
|
|
5251
|
+
};
|
|
5209
5252
|
},
|
|
5210
5253
|
toJSON(message) {
|
|
5211
5254
|
const obj = {};
|
|
5212
5255
|
if (message.ids?.length) {
|
|
5213
5256
|
obj.ids = message.ids;
|
|
5214
5257
|
}
|
|
5258
|
+
if (message.category !== 0) {
|
|
5259
|
+
obj.category = Math.round(message.category);
|
|
5260
|
+
}
|
|
5215
5261
|
return obj;
|
|
5216
5262
|
},
|
|
5217
5263
|
create(base) {
|
|
@@ -5220,6 +5266,7 @@ export const DeleteNotificationsRequest = {
|
|
|
5220
5266
|
fromPartial(object) {
|
|
5221
5267
|
const message = createBaseDeleteNotificationsRequest();
|
|
5222
5268
|
message.ids = object.ids?.map((e) => e) || [];
|
|
5269
|
+
message.category = object.category ?? 0;
|
|
5223
5270
|
return message;
|
|
5224
5271
|
},
|
|
5225
5272
|
};
|
|
@@ -8098,7 +8145,7 @@ export const ListClanUsersRequest = {
|
|
|
8098
8145
|
},
|
|
8099
8146
|
};
|
|
8100
8147
|
function createBaseListNotificationsRequest() {
|
|
8101
|
-
return { limit: undefined, clan_id: "", notification_id: "",
|
|
8148
|
+
return { limit: undefined, clan_id: "", notification_id: "", category: 0, direction: undefined };
|
|
8102
8149
|
}
|
|
8103
8150
|
export const ListNotificationsRequest = {
|
|
8104
8151
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -8111,8 +8158,8 @@ export const ListNotificationsRequest = {
|
|
|
8111
8158
|
if (message.notification_id !== "") {
|
|
8112
8159
|
writer.uint32(26).string(message.notification_id);
|
|
8113
8160
|
}
|
|
8114
|
-
if (message.
|
|
8115
|
-
|
|
8161
|
+
if (message.category !== 0) {
|
|
8162
|
+
writer.uint32(32).int32(message.category);
|
|
8116
8163
|
}
|
|
8117
8164
|
if (message.direction !== undefined) {
|
|
8118
8165
|
Int32Value.encode({ value: message.direction }, writer.uint32(42).fork()).ldelim();
|
|
@@ -8145,10 +8192,10 @@ export const ListNotificationsRequest = {
|
|
|
8145
8192
|
message.notification_id = reader.string();
|
|
8146
8193
|
continue;
|
|
8147
8194
|
case 4:
|
|
8148
|
-
if (tag !==
|
|
8195
|
+
if (tag !== 32) {
|
|
8149
8196
|
break;
|
|
8150
8197
|
}
|
|
8151
|
-
message.
|
|
8198
|
+
message.category = reader.int32();
|
|
8152
8199
|
continue;
|
|
8153
8200
|
case 5:
|
|
8154
8201
|
if (tag !== 42) {
|
|
@@ -8169,7 +8216,7 @@ export const ListNotificationsRequest = {
|
|
|
8169
8216
|
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
8170
8217
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
8171
8218
|
notification_id: isSet(object.notification_id) ? globalThis.String(object.notification_id) : "",
|
|
8172
|
-
|
|
8219
|
+
category: isSet(object.category) ? globalThis.Number(object.category) : 0,
|
|
8173
8220
|
direction: isSet(object.direction) ? Number(object.direction) : undefined,
|
|
8174
8221
|
};
|
|
8175
8222
|
},
|
|
@@ -8184,8 +8231,8 @@ export const ListNotificationsRequest = {
|
|
|
8184
8231
|
if (message.notification_id !== "") {
|
|
8185
8232
|
obj.notification_id = message.notification_id;
|
|
8186
8233
|
}
|
|
8187
|
-
if (message.
|
|
8188
|
-
obj.
|
|
8234
|
+
if (message.category !== 0) {
|
|
8235
|
+
obj.category = Math.round(message.category);
|
|
8189
8236
|
}
|
|
8190
8237
|
if (message.direction !== undefined) {
|
|
8191
8238
|
obj.direction = message.direction;
|
|
@@ -8200,7 +8247,7 @@ export const ListNotificationsRequest = {
|
|
|
8200
8247
|
message.limit = object.limit ?? undefined;
|
|
8201
8248
|
message.clan_id = object.clan_id ?? "";
|
|
8202
8249
|
message.notification_id = object.notification_id ?? "";
|
|
8203
|
-
message.
|
|
8250
|
+
message.category = object.category ?? 0;
|
|
8204
8251
|
message.direction = object.direction ?? undefined;
|
|
8205
8252
|
return message;
|
|
8206
8253
|
},
|
|
@@ -8312,6 +8359,9 @@ function createBaseNotification() {
|
|
|
8312
8359
|
channel_id: "",
|
|
8313
8360
|
channel_type: 0,
|
|
8314
8361
|
avatar_url: "",
|
|
8362
|
+
channel: undefined,
|
|
8363
|
+
topic_id: "",
|
|
8364
|
+
category: 0,
|
|
8315
8365
|
};
|
|
8316
8366
|
}
|
|
8317
8367
|
export const Notification = {
|
|
@@ -8349,6 +8399,15 @@ export const Notification = {
|
|
|
8349
8399
|
if (message.avatar_url !== "") {
|
|
8350
8400
|
writer.uint32(90).string(message.avatar_url);
|
|
8351
8401
|
}
|
|
8402
|
+
if (message.channel !== undefined) {
|
|
8403
|
+
ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
|
|
8404
|
+
}
|
|
8405
|
+
if (message.topic_id !== "") {
|
|
8406
|
+
writer.uint32(106).string(message.topic_id);
|
|
8407
|
+
}
|
|
8408
|
+
if (message.category !== 0) {
|
|
8409
|
+
writer.uint32(112).int32(message.category);
|
|
8410
|
+
}
|
|
8352
8411
|
return writer;
|
|
8353
8412
|
},
|
|
8354
8413
|
decode(input, length) {
|
|
@@ -8424,6 +8483,24 @@ export const Notification = {
|
|
|
8424
8483
|
}
|
|
8425
8484
|
message.avatar_url = reader.string();
|
|
8426
8485
|
continue;
|
|
8486
|
+
case 12:
|
|
8487
|
+
if (tag !== 98) {
|
|
8488
|
+
break;
|
|
8489
|
+
}
|
|
8490
|
+
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
8491
|
+
continue;
|
|
8492
|
+
case 13:
|
|
8493
|
+
if (tag !== 106) {
|
|
8494
|
+
break;
|
|
8495
|
+
}
|
|
8496
|
+
message.topic_id = reader.string();
|
|
8497
|
+
continue;
|
|
8498
|
+
case 14:
|
|
8499
|
+
if (tag !== 112) {
|
|
8500
|
+
break;
|
|
8501
|
+
}
|
|
8502
|
+
message.category = reader.int32();
|
|
8503
|
+
continue;
|
|
8427
8504
|
}
|
|
8428
8505
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8429
8506
|
break;
|
|
@@ -8445,6 +8522,9 @@ export const Notification = {
|
|
|
8445
8522
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
8446
8523
|
channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
8447
8524
|
avatar_url: isSet(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
8525
|
+
channel: isSet(object.channel) ? ChannelDescription.fromJSON(object.channel) : undefined,
|
|
8526
|
+
topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
8527
|
+
category: isSet(object.category) ? globalThis.Number(object.category) : 0,
|
|
8448
8528
|
};
|
|
8449
8529
|
},
|
|
8450
8530
|
toJSON(message) {
|
|
@@ -8482,6 +8562,15 @@ export const Notification = {
|
|
|
8482
8562
|
if (message.avatar_url !== "") {
|
|
8483
8563
|
obj.avatar_url = message.avatar_url;
|
|
8484
8564
|
}
|
|
8565
|
+
if (message.channel !== undefined) {
|
|
8566
|
+
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
8567
|
+
}
|
|
8568
|
+
if (message.topic_id !== "") {
|
|
8569
|
+
obj.topic_id = message.topic_id;
|
|
8570
|
+
}
|
|
8571
|
+
if (message.category !== 0) {
|
|
8572
|
+
obj.category = Math.round(message.category);
|
|
8573
|
+
}
|
|
8485
8574
|
return obj;
|
|
8486
8575
|
},
|
|
8487
8576
|
create(base) {
|
|
@@ -8500,6 +8589,11 @@ export const Notification = {
|
|
|
8500
8589
|
message.channel_id = object.channel_id ?? "";
|
|
8501
8590
|
message.channel_type = object.channel_type ?? 0;
|
|
8502
8591
|
message.avatar_url = object.avatar_url ?? "";
|
|
8592
|
+
message.channel = (object.channel !== undefined && object.channel !== null)
|
|
8593
|
+
? ChannelDescription.fromPartial(object.channel)
|
|
8594
|
+
: undefined;
|
|
8595
|
+
message.topic_id = object.topic_id ?? "";
|
|
8596
|
+
message.category = object.category ?? 0;
|
|
8503
8597
|
return message;
|
|
8504
8598
|
},
|
|
8505
8599
|
};
|
|
@@ -10118,6 +10212,7 @@ function createBaseClanDesc() {
|
|
|
10118
10212
|
status: 0,
|
|
10119
10213
|
badge_count: 0,
|
|
10120
10214
|
is_onboarding: false,
|
|
10215
|
+
welcome_channel_id: "",
|
|
10121
10216
|
};
|
|
10122
10217
|
}
|
|
10123
10218
|
export const ClanDesc = {
|
|
@@ -10146,6 +10241,9 @@ export const ClanDesc = {
|
|
|
10146
10241
|
if (message.is_onboarding !== false) {
|
|
10147
10242
|
writer.uint32(64).bool(message.is_onboarding);
|
|
10148
10243
|
}
|
|
10244
|
+
if (message.welcome_channel_id !== "") {
|
|
10245
|
+
writer.uint32(74).string(message.welcome_channel_id);
|
|
10246
|
+
}
|
|
10149
10247
|
return writer;
|
|
10150
10248
|
},
|
|
10151
10249
|
decode(input, length) {
|
|
@@ -10203,6 +10301,12 @@ export const ClanDesc = {
|
|
|
10203
10301
|
}
|
|
10204
10302
|
message.is_onboarding = reader.bool();
|
|
10205
10303
|
continue;
|
|
10304
|
+
case 9:
|
|
10305
|
+
if (tag !== 74) {
|
|
10306
|
+
break;
|
|
10307
|
+
}
|
|
10308
|
+
message.welcome_channel_id = reader.string();
|
|
10309
|
+
continue;
|
|
10206
10310
|
}
|
|
10207
10311
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10208
10312
|
break;
|
|
@@ -10221,6 +10325,7 @@ export const ClanDesc = {
|
|
|
10221
10325
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
10222
10326
|
badge_count: isSet(object.badge_count) ? globalThis.Number(object.badge_count) : 0,
|
|
10223
10327
|
is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
10328
|
+
welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
10224
10329
|
};
|
|
10225
10330
|
},
|
|
10226
10331
|
toJSON(message) {
|
|
@@ -10249,6 +10354,9 @@ export const ClanDesc = {
|
|
|
10249
10354
|
if (message.is_onboarding !== false) {
|
|
10250
10355
|
obj.is_onboarding = message.is_onboarding;
|
|
10251
10356
|
}
|
|
10357
|
+
if (message.welcome_channel_id !== "") {
|
|
10358
|
+
obj.welcome_channel_id = message.welcome_channel_id;
|
|
10359
|
+
}
|
|
10252
10360
|
return obj;
|
|
10253
10361
|
},
|
|
10254
10362
|
create(base) {
|
|
@@ -10264,6 +10372,7 @@ export const ClanDesc = {
|
|
|
10264
10372
|
message.status = object.status ?? 0;
|
|
10265
10373
|
message.badge_count = object.badge_count ?? 0;
|
|
10266
10374
|
message.is_onboarding = object.is_onboarding ?? false;
|
|
10375
|
+
message.welcome_channel_id = object.welcome_channel_id ?? "";
|
|
10267
10376
|
return message;
|
|
10268
10377
|
},
|
|
10269
10378
|
};
|
|
@@ -10348,7 +10457,15 @@ export const CreateClanDescRequest = {
|
|
|
10348
10457
|
},
|
|
10349
10458
|
};
|
|
10350
10459
|
function createBaseUpdateClanDescRequest() {
|
|
10351
|
-
return {
|
|
10460
|
+
return {
|
|
10461
|
+
clan_id: "",
|
|
10462
|
+
clan_name: "",
|
|
10463
|
+
logo: "",
|
|
10464
|
+
banner: "",
|
|
10465
|
+
status: 0,
|
|
10466
|
+
is_onboarding: undefined,
|
|
10467
|
+
welcome_channel_id: "",
|
|
10468
|
+
};
|
|
10352
10469
|
}
|
|
10353
10470
|
export const UpdateClanDescRequest = {
|
|
10354
10471
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10370,6 +10487,9 @@ export const UpdateClanDescRequest = {
|
|
|
10370
10487
|
if (message.is_onboarding !== undefined) {
|
|
10371
10488
|
BoolValue.encode({ value: message.is_onboarding }, writer.uint32(50).fork()).ldelim();
|
|
10372
10489
|
}
|
|
10490
|
+
if (message.welcome_channel_id !== "") {
|
|
10491
|
+
writer.uint32(58).string(message.welcome_channel_id);
|
|
10492
|
+
}
|
|
10373
10493
|
return writer;
|
|
10374
10494
|
},
|
|
10375
10495
|
decode(input, length) {
|
|
@@ -10415,6 +10535,12 @@ export const UpdateClanDescRequest = {
|
|
|
10415
10535
|
}
|
|
10416
10536
|
message.is_onboarding = BoolValue.decode(reader, reader.uint32()).value;
|
|
10417
10537
|
continue;
|
|
10538
|
+
case 7:
|
|
10539
|
+
if (tag !== 58) {
|
|
10540
|
+
break;
|
|
10541
|
+
}
|
|
10542
|
+
message.welcome_channel_id = reader.string();
|
|
10543
|
+
continue;
|
|
10418
10544
|
}
|
|
10419
10545
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10420
10546
|
break;
|
|
@@ -10431,6 +10557,7 @@ export const UpdateClanDescRequest = {
|
|
|
10431
10557
|
banner: isSet(object.banner) ? globalThis.String(object.banner) : "",
|
|
10432
10558
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
10433
10559
|
is_onboarding: isSet(object.is_onboarding) ? Boolean(object.is_onboarding) : undefined,
|
|
10560
|
+
welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
10434
10561
|
};
|
|
10435
10562
|
},
|
|
10436
10563
|
toJSON(message) {
|
|
@@ -10453,6 +10580,9 @@ export const UpdateClanDescRequest = {
|
|
|
10453
10580
|
if (message.is_onboarding !== undefined) {
|
|
10454
10581
|
obj.is_onboarding = message.is_onboarding;
|
|
10455
10582
|
}
|
|
10583
|
+
if (message.welcome_channel_id !== "") {
|
|
10584
|
+
obj.welcome_channel_id = message.welcome_channel_id;
|
|
10585
|
+
}
|
|
10456
10586
|
return obj;
|
|
10457
10587
|
},
|
|
10458
10588
|
create(base) {
|
|
@@ -10466,6 +10596,7 @@ export const UpdateClanDescRequest = {
|
|
|
10466
10596
|
message.banner = object.banner ?? "";
|
|
10467
10597
|
message.status = object.status ?? 0;
|
|
10468
10598
|
message.is_onboarding = object.is_onboarding ?? undefined;
|
|
10599
|
+
message.welcome_channel_id = object.welcome_channel_id ?? "";
|
|
10469
10600
|
return message;
|
|
10470
10601
|
},
|
|
10471
10602
|
};
|
|
@@ -10782,7 +10913,15 @@ export const InviteUserRequest = {
|
|
|
10782
10913
|
},
|
|
10783
10914
|
};
|
|
10784
10915
|
function createBaseInviteUserRes() {
|
|
10785
|
-
return {
|
|
10916
|
+
return {
|
|
10917
|
+
clan_id: "",
|
|
10918
|
+
channel_id: "",
|
|
10919
|
+
clan_name: "",
|
|
10920
|
+
channel_label: "",
|
|
10921
|
+
user_joined: false,
|
|
10922
|
+
expiry_time: undefined,
|
|
10923
|
+
channel_desc: undefined,
|
|
10924
|
+
};
|
|
10786
10925
|
}
|
|
10787
10926
|
export const InviteUserRes = {
|
|
10788
10927
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -10804,6 +10943,9 @@ export const InviteUserRes = {
|
|
|
10804
10943
|
if (message.expiry_time !== undefined) {
|
|
10805
10944
|
Timestamp.encode(toTimestamp(message.expiry_time), writer.uint32(50).fork()).ldelim();
|
|
10806
10945
|
}
|
|
10946
|
+
if (message.channel_desc !== undefined) {
|
|
10947
|
+
ChannelDescription.encode(message.channel_desc, writer.uint32(58).fork()).ldelim();
|
|
10948
|
+
}
|
|
10807
10949
|
return writer;
|
|
10808
10950
|
},
|
|
10809
10951
|
decode(input, length) {
|
|
@@ -10849,6 +10991,12 @@ export const InviteUserRes = {
|
|
|
10849
10991
|
}
|
|
10850
10992
|
message.expiry_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10851
10993
|
continue;
|
|
10994
|
+
case 7:
|
|
10995
|
+
if (tag !== 58) {
|
|
10996
|
+
break;
|
|
10997
|
+
}
|
|
10998
|
+
message.channel_desc = ChannelDescription.decode(reader, reader.uint32());
|
|
10999
|
+
continue;
|
|
10852
11000
|
}
|
|
10853
11001
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10854
11002
|
break;
|
|
@@ -10865,6 +11013,7 @@ export const InviteUserRes = {
|
|
|
10865
11013
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
10866
11014
|
user_joined: isSet(object.user_joined) ? globalThis.Boolean(object.user_joined) : false,
|
|
10867
11015
|
expiry_time: isSet(object.expiry_time) ? fromJsonTimestamp(object.expiry_time) : undefined,
|
|
11016
|
+
channel_desc: isSet(object.channel_desc) ? ChannelDescription.fromJSON(object.channel_desc) : undefined,
|
|
10868
11017
|
};
|
|
10869
11018
|
},
|
|
10870
11019
|
toJSON(message) {
|
|
@@ -10887,6 +11036,9 @@ export const InviteUserRes = {
|
|
|
10887
11036
|
if (message.expiry_time !== undefined) {
|
|
10888
11037
|
obj.expiry_time = message.expiry_time.toISOString();
|
|
10889
11038
|
}
|
|
11039
|
+
if (message.channel_desc !== undefined) {
|
|
11040
|
+
obj.channel_desc = ChannelDescription.toJSON(message.channel_desc);
|
|
11041
|
+
}
|
|
10890
11042
|
return obj;
|
|
10891
11043
|
},
|
|
10892
11044
|
create(base) {
|
|
@@ -10900,6 +11052,9 @@ export const InviteUserRes = {
|
|
|
10900
11052
|
message.channel_label = object.channel_label ?? "";
|
|
10901
11053
|
message.user_joined = object.user_joined ?? false;
|
|
10902
11054
|
message.expiry_time = object.expiry_time ?? undefined;
|
|
11055
|
+
message.channel_desc = (object.channel_desc !== undefined && object.channel_desc !== null)
|
|
11056
|
+
? ChannelDescription.fromPartial(object.channel_desc)
|
|
11057
|
+
: undefined;
|
|
10903
11058
|
return message;
|
|
10904
11059
|
},
|
|
10905
11060
|
};
|
|
@@ -12036,7 +12191,7 @@ export const ChannelMessageHeader = {
|
|
|
12036
12191
|
function createBaseChannelDescription() {
|
|
12037
12192
|
return {
|
|
12038
12193
|
clan_id: "",
|
|
12039
|
-
|
|
12194
|
+
parent_id: "",
|
|
12040
12195
|
channel_id: "",
|
|
12041
12196
|
category_id: "",
|
|
12042
12197
|
category_name: "",
|
|
@@ -12053,7 +12208,7 @@ function createBaseChannelDescription() {
|
|
|
12053
12208
|
count_mess_unread: 0,
|
|
12054
12209
|
active: 0,
|
|
12055
12210
|
last_pin_message: "",
|
|
12056
|
-
usernames:
|
|
12211
|
+
usernames: [],
|
|
12057
12212
|
creator_name: "",
|
|
12058
12213
|
create_time_seconds: 0,
|
|
12059
12214
|
update_time_seconds: 0,
|
|
@@ -12065,6 +12220,7 @@ function createBaseChannelDescription() {
|
|
|
12065
12220
|
age_restricted: 0,
|
|
12066
12221
|
topic: "",
|
|
12067
12222
|
e2ee: 0,
|
|
12223
|
+
display_names: [],
|
|
12068
12224
|
};
|
|
12069
12225
|
}
|
|
12070
12226
|
export const ChannelDescription = {
|
|
@@ -12072,8 +12228,8 @@ export const ChannelDescription = {
|
|
|
12072
12228
|
if (message.clan_id !== "") {
|
|
12073
12229
|
writer.uint32(10).string(message.clan_id);
|
|
12074
12230
|
}
|
|
12075
|
-
if (message.
|
|
12076
|
-
writer.uint32(18).string(message.
|
|
12231
|
+
if (message.parent_id !== "") {
|
|
12232
|
+
writer.uint32(18).string(message.parent_id);
|
|
12077
12233
|
}
|
|
12078
12234
|
if (message.channel_id !== "") {
|
|
12079
12235
|
writer.uint32(26).string(message.channel_id);
|
|
@@ -12125,8 +12281,8 @@ export const ChannelDescription = {
|
|
|
12125
12281
|
if (message.last_pin_message !== "") {
|
|
12126
12282
|
writer.uint32(146).string(message.last_pin_message);
|
|
12127
12283
|
}
|
|
12128
|
-
|
|
12129
|
-
writer.uint32(154).string(
|
|
12284
|
+
for (const v of message.usernames) {
|
|
12285
|
+
writer.uint32(154).string(v);
|
|
12130
12286
|
}
|
|
12131
12287
|
if (message.creator_name !== "") {
|
|
12132
12288
|
writer.uint32(162).string(message.creator_name);
|
|
@@ -12161,6 +12317,9 @@ export const ChannelDescription = {
|
|
|
12161
12317
|
if (message.e2ee !== 0) {
|
|
12162
12318
|
writer.uint32(240).int32(message.e2ee);
|
|
12163
12319
|
}
|
|
12320
|
+
for (const v of message.display_names) {
|
|
12321
|
+
writer.uint32(250).string(v);
|
|
12322
|
+
}
|
|
12164
12323
|
return writer;
|
|
12165
12324
|
},
|
|
12166
12325
|
decode(input, length) {
|
|
@@ -12180,7 +12339,7 @@ export const ChannelDescription = {
|
|
|
12180
12339
|
if (tag !== 18) {
|
|
12181
12340
|
break;
|
|
12182
12341
|
}
|
|
12183
|
-
message.
|
|
12342
|
+
message.parent_id = reader.string();
|
|
12184
12343
|
continue;
|
|
12185
12344
|
case 3:
|
|
12186
12345
|
if (tag !== 26) {
|
|
@@ -12289,7 +12448,7 @@ export const ChannelDescription = {
|
|
|
12289
12448
|
if (tag !== 154) {
|
|
12290
12449
|
break;
|
|
12291
12450
|
}
|
|
12292
|
-
message.usernames
|
|
12451
|
+
message.usernames.push(reader.string());
|
|
12293
12452
|
continue;
|
|
12294
12453
|
case 20:
|
|
12295
12454
|
if (tag !== 162) {
|
|
@@ -12357,6 +12516,12 @@ export const ChannelDescription = {
|
|
|
12357
12516
|
}
|
|
12358
12517
|
message.e2ee = reader.int32();
|
|
12359
12518
|
continue;
|
|
12519
|
+
case 31:
|
|
12520
|
+
if (tag !== 250) {
|
|
12521
|
+
break;
|
|
12522
|
+
}
|
|
12523
|
+
message.display_names.push(reader.string());
|
|
12524
|
+
continue;
|
|
12360
12525
|
}
|
|
12361
12526
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12362
12527
|
break;
|
|
@@ -12368,7 +12533,7 @@ export const ChannelDescription = {
|
|
|
12368
12533
|
fromJSON(object) {
|
|
12369
12534
|
return {
|
|
12370
12535
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
12371
|
-
|
|
12536
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
12372
12537
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
12373
12538
|
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
12374
12539
|
category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
@@ -12393,11 +12558,15 @@ export const ChannelDescription = {
|
|
|
12393
12558
|
count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
12394
12559
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
12395
12560
|
last_pin_message: isSet(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
|
|
12396
|
-
usernames:
|
|
12561
|
+
usernames: globalThis.Array.isArray(object?.usernames)
|
|
12562
|
+
? object.usernames.map((e) => globalThis.String(e))
|
|
12563
|
+
: [],
|
|
12397
12564
|
creator_name: isSet(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
12398
12565
|
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
12399
12566
|
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
12400
|
-
metadata: globalThis.Array.isArray(object?.metadata)
|
|
12567
|
+
metadata: globalThis.Array.isArray(object?.metadata)
|
|
12568
|
+
? object.metadata.map((e) => globalThis.String(e))
|
|
12569
|
+
: [],
|
|
12401
12570
|
about_me: globalThis.Array.isArray(object?.about_me) ? object.about_me.map((e) => globalThis.String(e)) : [],
|
|
12402
12571
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
12403
12572
|
app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
@@ -12405,6 +12574,9 @@ export const ChannelDescription = {
|
|
|
12405
12574
|
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
12406
12575
|
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
12407
12576
|
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
12577
|
+
display_names: globalThis.Array.isArray(object?.display_names)
|
|
12578
|
+
? object.display_names.map((e) => globalThis.String(e))
|
|
12579
|
+
: [],
|
|
12408
12580
|
};
|
|
12409
12581
|
},
|
|
12410
12582
|
toJSON(message) {
|
|
@@ -12412,8 +12584,8 @@ export const ChannelDescription = {
|
|
|
12412
12584
|
if (message.clan_id !== "") {
|
|
12413
12585
|
obj.clan_id = message.clan_id;
|
|
12414
12586
|
}
|
|
12415
|
-
if (message.
|
|
12416
|
-
obj.
|
|
12587
|
+
if (message.parent_id !== "") {
|
|
12588
|
+
obj.parent_id = message.parent_id;
|
|
12417
12589
|
}
|
|
12418
12590
|
if (message.channel_id !== "") {
|
|
12419
12591
|
obj.channel_id = message.channel_id;
|
|
@@ -12463,7 +12635,7 @@ export const ChannelDescription = {
|
|
|
12463
12635
|
if (message.last_pin_message !== "") {
|
|
12464
12636
|
obj.last_pin_message = message.last_pin_message;
|
|
12465
12637
|
}
|
|
12466
|
-
if (message.usernames
|
|
12638
|
+
if (message.usernames?.length) {
|
|
12467
12639
|
obj.usernames = message.usernames;
|
|
12468
12640
|
}
|
|
12469
12641
|
if (message.creator_name !== "") {
|
|
@@ -12499,6 +12671,9 @@ export const ChannelDescription = {
|
|
|
12499
12671
|
if (message.e2ee !== 0) {
|
|
12500
12672
|
obj.e2ee = Math.round(message.e2ee);
|
|
12501
12673
|
}
|
|
12674
|
+
if (message.display_names?.length) {
|
|
12675
|
+
obj.display_names = message.display_names;
|
|
12676
|
+
}
|
|
12502
12677
|
return obj;
|
|
12503
12678
|
},
|
|
12504
12679
|
create(base) {
|
|
@@ -12507,7 +12682,7 @@ export const ChannelDescription = {
|
|
|
12507
12682
|
fromPartial(object) {
|
|
12508
12683
|
const message = createBaseChannelDescription();
|
|
12509
12684
|
message.clan_id = object.clan_id ?? "";
|
|
12510
|
-
message.
|
|
12685
|
+
message.parent_id = object.parent_id ?? "";
|
|
12511
12686
|
message.channel_id = object.channel_id ?? "";
|
|
12512
12687
|
message.category_id = object.category_id ?? "";
|
|
12513
12688
|
message.category_name = object.category_name ?? "";
|
|
@@ -12528,7 +12703,7 @@ export const ChannelDescription = {
|
|
|
12528
12703
|
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
12529
12704
|
message.active = object.active ?? 0;
|
|
12530
12705
|
message.last_pin_message = object.last_pin_message ?? "";
|
|
12531
|
-
message.usernames = object.usernames
|
|
12706
|
+
message.usernames = object.usernames?.map((e) => e) || [];
|
|
12532
12707
|
message.creator_name = object.creator_name ?? "";
|
|
12533
12708
|
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
12534
12709
|
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
@@ -12540,11 +12715,12 @@ export const ChannelDescription = {
|
|
|
12540
12715
|
message.age_restricted = object.age_restricted ?? 0;
|
|
12541
12716
|
message.topic = object.topic ?? "";
|
|
12542
12717
|
message.e2ee = object.e2ee ?? 0;
|
|
12718
|
+
message.display_names = object.display_names?.map((e) => e) || [];
|
|
12543
12719
|
return message;
|
|
12544
12720
|
},
|
|
12545
12721
|
};
|
|
12546
12722
|
function createBaseChannelDescList() {
|
|
12547
|
-
return { channeldesc: [], next_cursor: "", prev_cursor: "", cacheable_cursor: "" };
|
|
12723
|
+
return { channeldesc: [], next_cursor: "", prev_cursor: "", cacheable_cursor: "", page: 0 };
|
|
12548
12724
|
}
|
|
12549
12725
|
export const ChannelDescList = {
|
|
12550
12726
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -12560,6 +12736,9 @@ export const ChannelDescList = {
|
|
|
12560
12736
|
if (message.cacheable_cursor !== "") {
|
|
12561
12737
|
writer.uint32(34).string(message.cacheable_cursor);
|
|
12562
12738
|
}
|
|
12739
|
+
if (message.page !== 0) {
|
|
12740
|
+
writer.uint32(40).int32(message.page);
|
|
12741
|
+
}
|
|
12563
12742
|
return writer;
|
|
12564
12743
|
},
|
|
12565
12744
|
decode(input, length) {
|
|
@@ -12593,6 +12772,12 @@ export const ChannelDescList = {
|
|
|
12593
12772
|
}
|
|
12594
12773
|
message.cacheable_cursor = reader.string();
|
|
12595
12774
|
continue;
|
|
12775
|
+
case 5:
|
|
12776
|
+
if (tag !== 40) {
|
|
12777
|
+
break;
|
|
12778
|
+
}
|
|
12779
|
+
message.page = reader.int32();
|
|
12780
|
+
continue;
|
|
12596
12781
|
}
|
|
12597
12782
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12598
12783
|
break;
|
|
@@ -12609,6 +12794,7 @@ export const ChannelDescList = {
|
|
|
12609
12794
|
next_cursor: isSet(object.next_cursor) ? globalThis.String(object.next_cursor) : "",
|
|
12610
12795
|
prev_cursor: isSet(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
|
|
12611
12796
|
cacheable_cursor: isSet(object.cacheable_cursor) ? globalThis.String(object.cacheable_cursor) : "",
|
|
12797
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
12612
12798
|
};
|
|
12613
12799
|
},
|
|
12614
12800
|
toJSON(message) {
|
|
@@ -12625,6 +12811,9 @@ export const ChannelDescList = {
|
|
|
12625
12811
|
if (message.cacheable_cursor !== "") {
|
|
12626
12812
|
obj.cacheable_cursor = message.cacheable_cursor;
|
|
12627
12813
|
}
|
|
12814
|
+
if (message.page !== 0) {
|
|
12815
|
+
obj.page = Math.round(message.page);
|
|
12816
|
+
}
|
|
12628
12817
|
return obj;
|
|
12629
12818
|
},
|
|
12630
12819
|
create(base) {
|
|
@@ -12636,11 +12825,12 @@ export const ChannelDescList = {
|
|
|
12636
12825
|
message.next_cursor = object.next_cursor ?? "";
|
|
12637
12826
|
message.prev_cursor = object.prev_cursor ?? "";
|
|
12638
12827
|
message.cacheable_cursor = object.cacheable_cursor ?? "";
|
|
12828
|
+
message.page = object.page ?? 0;
|
|
12639
12829
|
return message;
|
|
12640
12830
|
},
|
|
12641
12831
|
};
|
|
12642
12832
|
function createBaseListThreadRequest() {
|
|
12643
|
-
return { limit: undefined, state: undefined, clan_id: "", channel_id: "", thread_id: "" };
|
|
12833
|
+
return { limit: undefined, state: undefined, clan_id: "", channel_id: "", thread_id: "", page: undefined };
|
|
12644
12834
|
}
|
|
12645
12835
|
export const ListThreadRequest = {
|
|
12646
12836
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -12659,6 +12849,9 @@ export const ListThreadRequest = {
|
|
|
12659
12849
|
if (message.thread_id !== "") {
|
|
12660
12850
|
writer.uint32(42).string(message.thread_id);
|
|
12661
12851
|
}
|
|
12852
|
+
if (message.page !== undefined) {
|
|
12853
|
+
Int32Value.encode({ value: message.page }, writer.uint32(50).fork()).ldelim();
|
|
12854
|
+
}
|
|
12662
12855
|
return writer;
|
|
12663
12856
|
},
|
|
12664
12857
|
decode(input, length) {
|
|
@@ -12698,6 +12891,12 @@ export const ListThreadRequest = {
|
|
|
12698
12891
|
}
|
|
12699
12892
|
message.thread_id = reader.string();
|
|
12700
12893
|
continue;
|
|
12894
|
+
case 6:
|
|
12895
|
+
if (tag !== 50) {
|
|
12896
|
+
break;
|
|
12897
|
+
}
|
|
12898
|
+
message.page = Int32Value.decode(reader, reader.uint32()).value;
|
|
12899
|
+
continue;
|
|
12701
12900
|
}
|
|
12702
12901
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12703
12902
|
break;
|
|
@@ -12713,6 +12912,7 @@ export const ListThreadRequest = {
|
|
|
12713
12912
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
12714
12913
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
12715
12914
|
thread_id: isSet(object.thread_id) ? globalThis.String(object.thread_id) : "",
|
|
12915
|
+
page: isSet(object.page) ? Number(object.page) : undefined,
|
|
12716
12916
|
};
|
|
12717
12917
|
},
|
|
12718
12918
|
toJSON(message) {
|
|
@@ -12732,6 +12932,9 @@ export const ListThreadRequest = {
|
|
|
12732
12932
|
if (message.thread_id !== "") {
|
|
12733
12933
|
obj.thread_id = message.thread_id;
|
|
12734
12934
|
}
|
|
12935
|
+
if (message.page !== undefined) {
|
|
12936
|
+
obj.page = message.page;
|
|
12937
|
+
}
|
|
12735
12938
|
return obj;
|
|
12736
12939
|
},
|
|
12737
12940
|
create(base) {
|
|
@@ -12744,6 +12947,7 @@ export const ListThreadRequest = {
|
|
|
12744
12947
|
message.clan_id = object.clan_id ?? "";
|
|
12745
12948
|
message.channel_id = object.channel_id ?? "";
|
|
12746
12949
|
message.thread_id = object.thread_id ?? "";
|
|
12950
|
+
message.page = object.page ?? undefined;
|
|
12747
12951
|
return message;
|
|
12748
12952
|
},
|
|
12749
12953
|
};
|
|
@@ -12924,7 +13128,7 @@ export const AddRoleChannelDescRequest = {
|
|
|
12924
13128
|
function createBaseCreateChannelDescRequest() {
|
|
12925
13129
|
return {
|
|
12926
13130
|
clan_id: "",
|
|
12927
|
-
|
|
13131
|
+
parent_id: "",
|
|
12928
13132
|
channel_id: "",
|
|
12929
13133
|
category_id: "",
|
|
12930
13134
|
type: undefined,
|
|
@@ -12939,8 +13143,8 @@ export const CreateChannelDescRequest = {
|
|
|
12939
13143
|
if (message.clan_id !== "") {
|
|
12940
13144
|
writer.uint32(10).string(message.clan_id);
|
|
12941
13145
|
}
|
|
12942
|
-
if (message.
|
|
12943
|
-
writer.uint32(18).string(message.
|
|
13146
|
+
if (message.parent_id !== "") {
|
|
13147
|
+
writer.uint32(18).string(message.parent_id);
|
|
12944
13148
|
}
|
|
12945
13149
|
if (message.channel_id !== "") {
|
|
12946
13150
|
writer.uint32(26).string(message.channel_id);
|
|
@@ -12982,7 +13186,7 @@ export const CreateChannelDescRequest = {
|
|
|
12982
13186
|
if (tag !== 18) {
|
|
12983
13187
|
break;
|
|
12984
13188
|
}
|
|
12985
|
-
message.
|
|
13189
|
+
message.parent_id = reader.string();
|
|
12986
13190
|
continue;
|
|
12987
13191
|
case 3:
|
|
12988
13192
|
if (tag !== 26) {
|
|
@@ -13037,7 +13241,7 @@ export const CreateChannelDescRequest = {
|
|
|
13037
13241
|
fromJSON(object) {
|
|
13038
13242
|
return {
|
|
13039
13243
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
13040
|
-
|
|
13244
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
13041
13245
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
13042
13246
|
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
13043
13247
|
type: isSet(object.type) ? Number(object.type) : undefined,
|
|
@@ -13052,8 +13256,8 @@ export const CreateChannelDescRequest = {
|
|
|
13052
13256
|
if (message.clan_id !== "") {
|
|
13053
13257
|
obj.clan_id = message.clan_id;
|
|
13054
13258
|
}
|
|
13055
|
-
if (message.
|
|
13056
|
-
obj.
|
|
13259
|
+
if (message.parent_id !== "") {
|
|
13260
|
+
obj.parent_id = message.parent_id;
|
|
13057
13261
|
}
|
|
13058
13262
|
if (message.channel_id !== "") {
|
|
13059
13263
|
obj.channel_id = message.channel_id;
|
|
@@ -13084,7 +13288,7 @@ export const CreateChannelDescRequest = {
|
|
|
13084
13288
|
fromPartial(object) {
|
|
13085
13289
|
const message = createBaseCreateChannelDescRequest();
|
|
13086
13290
|
message.clan_id = object.clan_id ?? "";
|
|
13087
|
-
message.
|
|
13291
|
+
message.parent_id = object.parent_id ?? "";
|
|
13088
13292
|
message.channel_id = object.channel_id ?? "";
|
|
13089
13293
|
message.category_id = object.category_id ?? "";
|
|
13090
13294
|
message.type = object.type ?? undefined;
|
|
@@ -14708,7 +14912,7 @@ export const PinMessagesList = {
|
|
|
14708
14912
|
},
|
|
14709
14913
|
};
|
|
14710
14914
|
function createBaseNotificationUserChannel() {
|
|
14711
|
-
return { id: "", notification_setting_type: 0, time_mute: undefined, active: 0 };
|
|
14915
|
+
return { id: "", notification_setting_type: 0, time_mute: undefined, active: 0, channel_id: "" };
|
|
14712
14916
|
}
|
|
14713
14917
|
export const NotificationUserChannel = {
|
|
14714
14918
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -14724,6 +14928,9 @@ export const NotificationUserChannel = {
|
|
|
14724
14928
|
if (message.active !== 0) {
|
|
14725
14929
|
writer.uint32(32).int32(message.active);
|
|
14726
14930
|
}
|
|
14931
|
+
if (message.channel_id !== "") {
|
|
14932
|
+
writer.uint32(42).string(message.channel_id);
|
|
14933
|
+
}
|
|
14727
14934
|
return writer;
|
|
14728
14935
|
},
|
|
14729
14936
|
decode(input, length) {
|
|
@@ -14757,6 +14964,12 @@ export const NotificationUserChannel = {
|
|
|
14757
14964
|
}
|
|
14758
14965
|
message.active = reader.int32();
|
|
14759
14966
|
continue;
|
|
14967
|
+
case 5:
|
|
14968
|
+
if (tag !== 42) {
|
|
14969
|
+
break;
|
|
14970
|
+
}
|
|
14971
|
+
message.channel_id = reader.string();
|
|
14972
|
+
continue;
|
|
14760
14973
|
}
|
|
14761
14974
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14762
14975
|
break;
|
|
@@ -14773,6 +14986,7 @@ export const NotificationUserChannel = {
|
|
|
14773
14986
|
: 0,
|
|
14774
14987
|
time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
|
|
14775
14988
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
14989
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
14776
14990
|
};
|
|
14777
14991
|
},
|
|
14778
14992
|
toJSON(message) {
|
|
@@ -14789,6 +15003,9 @@ export const NotificationUserChannel = {
|
|
|
14789
15003
|
if (message.active !== 0) {
|
|
14790
15004
|
obj.active = Math.round(message.active);
|
|
14791
15005
|
}
|
|
15006
|
+
if (message.channel_id !== "") {
|
|
15007
|
+
obj.channel_id = message.channel_id;
|
|
15008
|
+
}
|
|
14792
15009
|
return obj;
|
|
14793
15010
|
},
|
|
14794
15011
|
create(base) {
|
|
@@ -14800,6 +15017,7 @@ export const NotificationUserChannel = {
|
|
|
14800
15017
|
message.notification_setting_type = object.notification_setting_type ?? 0;
|
|
14801
15018
|
message.time_mute = object.time_mute ?? undefined;
|
|
14802
15019
|
message.active = object.active ?? 0;
|
|
15020
|
+
message.channel_id = object.channel_id ?? "";
|
|
14803
15021
|
return message;
|
|
14804
15022
|
},
|
|
14805
15023
|
};
|
|
@@ -15520,7 +15738,7 @@ function createBaseHashtagDm() {
|
|
|
15520
15738
|
meeting_code: "",
|
|
15521
15739
|
type: 0,
|
|
15522
15740
|
channel_private: 0,
|
|
15523
|
-
|
|
15741
|
+
parent_id: "",
|
|
15524
15742
|
};
|
|
15525
15743
|
}
|
|
15526
15744
|
export const HashtagDm = {
|
|
@@ -15546,8 +15764,8 @@ export const HashtagDm = {
|
|
|
15546
15764
|
if (message.channel_private !== 0) {
|
|
15547
15765
|
writer.uint32(56).int32(message.channel_private);
|
|
15548
15766
|
}
|
|
15549
|
-
if (message.
|
|
15550
|
-
writer.uint32(66).string(message.
|
|
15767
|
+
if (message.parent_id !== "") {
|
|
15768
|
+
writer.uint32(66).string(message.parent_id);
|
|
15551
15769
|
}
|
|
15552
15770
|
return writer;
|
|
15553
15771
|
},
|
|
@@ -15604,7 +15822,7 @@ export const HashtagDm = {
|
|
|
15604
15822
|
if (tag !== 66) {
|
|
15605
15823
|
break;
|
|
15606
15824
|
}
|
|
15607
|
-
message.
|
|
15825
|
+
message.parent_id = reader.string();
|
|
15608
15826
|
continue;
|
|
15609
15827
|
}
|
|
15610
15828
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -15623,7 +15841,7 @@ export const HashtagDm = {
|
|
|
15623
15841
|
meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
15624
15842
|
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
15625
15843
|
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
15626
|
-
|
|
15844
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
15627
15845
|
};
|
|
15628
15846
|
},
|
|
15629
15847
|
toJSON(message) {
|
|
@@ -15649,8 +15867,8 @@ export const HashtagDm = {
|
|
|
15649
15867
|
if (message.channel_private !== 0) {
|
|
15650
15868
|
obj.channel_private = Math.round(message.channel_private);
|
|
15651
15869
|
}
|
|
15652
|
-
if (message.
|
|
15653
|
-
obj.
|
|
15870
|
+
if (message.parent_id !== "") {
|
|
15871
|
+
obj.parent_id = message.parent_id;
|
|
15654
15872
|
}
|
|
15655
15873
|
return obj;
|
|
15656
15874
|
},
|
|
@@ -15666,7 +15884,7 @@ export const HashtagDm = {
|
|
|
15666
15884
|
message.meeting_code = object.meeting_code ?? "";
|
|
15667
15885
|
message.type = object.type ?? 0;
|
|
15668
15886
|
message.channel_private = object.channel_private ?? 0;
|
|
15669
|
-
message.
|
|
15887
|
+
message.parent_id = object.parent_id ?? "";
|
|
15670
15888
|
return message;
|
|
15671
15889
|
},
|
|
15672
15890
|
};
|
|
@@ -18544,10 +18762,10 @@ function createBaseSearchMessageDocument() {
|
|
|
18544
18762
|
clan_id: 0,
|
|
18545
18763
|
sender_id: 0,
|
|
18546
18764
|
content: "",
|
|
18547
|
-
|
|
18548
|
-
|
|
18765
|
+
mentions: "",
|
|
18766
|
+
reactions: "",
|
|
18549
18767
|
attachments: [],
|
|
18550
|
-
|
|
18768
|
+
references: "",
|
|
18551
18769
|
create_time: "",
|
|
18552
18770
|
update_time: "",
|
|
18553
18771
|
channel_label: "",
|
|
@@ -18575,17 +18793,17 @@ export const SearchMessageDocument = {
|
|
|
18575
18793
|
if (message.content !== "") {
|
|
18576
18794
|
writer.uint32(42).string(message.content);
|
|
18577
18795
|
}
|
|
18578
|
-
if (message.
|
|
18579
|
-
writer.uint32(50).string(message.
|
|
18796
|
+
if (message.mentions !== "") {
|
|
18797
|
+
writer.uint32(50).string(message.mentions);
|
|
18580
18798
|
}
|
|
18581
|
-
if (message.
|
|
18582
|
-
writer.uint32(58).string(message.
|
|
18799
|
+
if (message.reactions !== "") {
|
|
18800
|
+
writer.uint32(58).string(message.reactions);
|
|
18583
18801
|
}
|
|
18584
18802
|
for (const v of message.attachments) {
|
|
18585
18803
|
MessageAttachment.encode(v, writer.uint32(66).fork()).ldelim();
|
|
18586
18804
|
}
|
|
18587
|
-
if (message.
|
|
18588
|
-
writer.uint32(74).string(message.
|
|
18805
|
+
if (message.references !== "") {
|
|
18806
|
+
writer.uint32(74).string(message.references);
|
|
18589
18807
|
}
|
|
18590
18808
|
if (message.create_time !== "") {
|
|
18591
18809
|
writer.uint32(82).string(message.create_time);
|
|
@@ -18654,13 +18872,13 @@ export const SearchMessageDocument = {
|
|
|
18654
18872
|
if (tag !== 50) {
|
|
18655
18873
|
break;
|
|
18656
18874
|
}
|
|
18657
|
-
message.
|
|
18875
|
+
message.mentions = reader.string();
|
|
18658
18876
|
continue;
|
|
18659
18877
|
case 7:
|
|
18660
18878
|
if (tag !== 58) {
|
|
18661
18879
|
break;
|
|
18662
18880
|
}
|
|
18663
|
-
message.
|
|
18881
|
+
message.reactions = reader.string();
|
|
18664
18882
|
continue;
|
|
18665
18883
|
case 8:
|
|
18666
18884
|
if (tag !== 66) {
|
|
@@ -18672,7 +18890,7 @@ export const SearchMessageDocument = {
|
|
|
18672
18890
|
if (tag !== 74) {
|
|
18673
18891
|
break;
|
|
18674
18892
|
}
|
|
18675
|
-
message.
|
|
18893
|
+
message.references = reader.string();
|
|
18676
18894
|
continue;
|
|
18677
18895
|
case 10:
|
|
18678
18896
|
if (tag !== 82) {
|
|
@@ -18737,12 +18955,12 @@ export const SearchMessageDocument = {
|
|
|
18737
18955
|
clan_id: isSet(object.clan_id) ? globalThis.Number(object.clan_id) : 0,
|
|
18738
18956
|
sender_id: isSet(object.sender_id) ? globalThis.Number(object.sender_id) : 0,
|
|
18739
18957
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
18740
|
-
|
|
18741
|
-
|
|
18958
|
+
mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
|
|
18959
|
+
reactions: isSet(object.reactions) ? globalThis.String(object.reactions) : "",
|
|
18742
18960
|
attachments: globalThis.Array.isArray(object?.attachments)
|
|
18743
18961
|
? object.attachments.map((e) => MessageAttachment.fromJSON(e))
|
|
18744
18962
|
: [],
|
|
18745
|
-
|
|
18963
|
+
references: isSet(object.references) ? globalThis.String(object.references) : "",
|
|
18746
18964
|
create_time: isSet(object.create_time) ? globalThis.String(object.create_time) : "",
|
|
18747
18965
|
update_time: isSet(object.update_time) ? globalThis.String(object.update_time) : "",
|
|
18748
18966
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
@@ -18770,17 +18988,17 @@ export const SearchMessageDocument = {
|
|
|
18770
18988
|
if (message.content !== "") {
|
|
18771
18989
|
obj.content = message.content;
|
|
18772
18990
|
}
|
|
18773
|
-
if (message.
|
|
18774
|
-
obj.
|
|
18991
|
+
if (message.mentions !== "") {
|
|
18992
|
+
obj.mentions = message.mentions;
|
|
18775
18993
|
}
|
|
18776
|
-
if (message.
|
|
18777
|
-
obj.
|
|
18994
|
+
if (message.reactions !== "") {
|
|
18995
|
+
obj.reactions = message.reactions;
|
|
18778
18996
|
}
|
|
18779
18997
|
if (message.attachments?.length) {
|
|
18780
18998
|
obj.attachments = message.attachments.map((e) => MessageAttachment.toJSON(e));
|
|
18781
18999
|
}
|
|
18782
|
-
if (message.
|
|
18783
|
-
obj.
|
|
19000
|
+
if (message.references !== "") {
|
|
19001
|
+
obj.references = message.references;
|
|
18784
19002
|
}
|
|
18785
19003
|
if (message.create_time !== "") {
|
|
18786
19004
|
obj.create_time = message.create_time;
|
|
@@ -18818,10 +19036,10 @@ export const SearchMessageDocument = {
|
|
|
18818
19036
|
message.clan_id = object.clan_id ?? 0;
|
|
18819
19037
|
message.sender_id = object.sender_id ?? 0;
|
|
18820
19038
|
message.content = object.content ?? "";
|
|
18821
|
-
message.
|
|
18822
|
-
message.
|
|
19039
|
+
message.mentions = object.mentions ?? "";
|
|
19040
|
+
message.reactions = object.reactions ?? "";
|
|
18823
19041
|
message.attachments = object.attachments?.map((e) => MessageAttachment.fromPartial(e)) || [];
|
|
18824
|
-
message.
|
|
19042
|
+
message.references = object.references ?? "";
|
|
18825
19043
|
message.create_time = object.create_time ?? "";
|
|
18826
19044
|
message.update_time = object.update_time ?? "";
|
|
18827
19045
|
message.channel_label = object.channel_label ?? "";
|
|
@@ -20029,6 +20247,7 @@ function createBaseWebhook() {
|
|
|
20029
20247
|
create_time: "",
|
|
20030
20248
|
update_time: "",
|
|
20031
20249
|
avatar: "",
|
|
20250
|
+
status: 0,
|
|
20032
20251
|
};
|
|
20033
20252
|
}
|
|
20034
20253
|
export const Webhook = {
|
|
@@ -20060,6 +20279,9 @@ export const Webhook = {
|
|
|
20060
20279
|
if (message.avatar !== "") {
|
|
20061
20280
|
writer.uint32(74).string(message.avatar);
|
|
20062
20281
|
}
|
|
20282
|
+
if (message.status !== 0) {
|
|
20283
|
+
writer.uint32(80).int32(message.status);
|
|
20284
|
+
}
|
|
20063
20285
|
return writer;
|
|
20064
20286
|
},
|
|
20065
20287
|
decode(input, length) {
|
|
@@ -20123,6 +20345,12 @@ export const Webhook = {
|
|
|
20123
20345
|
}
|
|
20124
20346
|
message.avatar = reader.string();
|
|
20125
20347
|
continue;
|
|
20348
|
+
case 10:
|
|
20349
|
+
if (tag !== 80) {
|
|
20350
|
+
break;
|
|
20351
|
+
}
|
|
20352
|
+
message.status = reader.int32();
|
|
20353
|
+
continue;
|
|
20126
20354
|
}
|
|
20127
20355
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20128
20356
|
break;
|
|
@@ -20142,6 +20370,7 @@ export const Webhook = {
|
|
|
20142
20370
|
create_time: isSet(object.create_time) ? globalThis.String(object.create_time) : "",
|
|
20143
20371
|
update_time: isSet(object.update_time) ? globalThis.String(object.update_time) : "",
|
|
20144
20372
|
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
20373
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
20145
20374
|
};
|
|
20146
20375
|
},
|
|
20147
20376
|
toJSON(message) {
|
|
@@ -20173,6 +20402,9 @@ export const Webhook = {
|
|
|
20173
20402
|
if (message.avatar !== "") {
|
|
20174
20403
|
obj.avatar = message.avatar;
|
|
20175
20404
|
}
|
|
20405
|
+
if (message.status !== 0) {
|
|
20406
|
+
obj.status = Math.round(message.status);
|
|
20407
|
+
}
|
|
20176
20408
|
return obj;
|
|
20177
20409
|
},
|
|
20178
20410
|
create(base) {
|
|
@@ -20189,6 +20421,7 @@ export const Webhook = {
|
|
|
20189
20421
|
message.create_time = object.create_time ?? "";
|
|
20190
20422
|
message.update_time = object.update_time ?? "";
|
|
20191
20423
|
message.avatar = object.avatar ?? "";
|
|
20424
|
+
message.status = object.status ?? 0;
|
|
20192
20425
|
return message;
|
|
20193
20426
|
},
|
|
20194
20427
|
};
|
|
@@ -21277,15 +21510,18 @@ export const ClanStickerDeleteRequest = {
|
|
|
21277
21510
|
},
|
|
21278
21511
|
};
|
|
21279
21512
|
function createBaseChangeChannelCategoryRequest() {
|
|
21280
|
-
return { channel_id: "", new_category_id: "" };
|
|
21513
|
+
return { clan_id: "", channel_id: "", new_category_id: "" };
|
|
21281
21514
|
}
|
|
21282
21515
|
export const ChangeChannelCategoryRequest = {
|
|
21283
21516
|
encode(message, writer = _m0.Writer.create()) {
|
|
21517
|
+
if (message.clan_id !== "") {
|
|
21518
|
+
writer.uint32(10).string(message.clan_id);
|
|
21519
|
+
}
|
|
21284
21520
|
if (message.channel_id !== "") {
|
|
21285
|
-
writer.uint32(
|
|
21521
|
+
writer.uint32(18).string(message.channel_id);
|
|
21286
21522
|
}
|
|
21287
21523
|
if (message.new_category_id !== "") {
|
|
21288
|
-
writer.uint32(
|
|
21524
|
+
writer.uint32(26).string(message.new_category_id);
|
|
21289
21525
|
}
|
|
21290
21526
|
return writer;
|
|
21291
21527
|
},
|
|
@@ -21300,12 +21536,18 @@ export const ChangeChannelCategoryRequest = {
|
|
|
21300
21536
|
if (tag !== 10) {
|
|
21301
21537
|
break;
|
|
21302
21538
|
}
|
|
21303
|
-
message.
|
|
21539
|
+
message.clan_id = reader.string();
|
|
21304
21540
|
continue;
|
|
21305
21541
|
case 2:
|
|
21306
21542
|
if (tag !== 18) {
|
|
21307
21543
|
break;
|
|
21308
21544
|
}
|
|
21545
|
+
message.channel_id = reader.string();
|
|
21546
|
+
continue;
|
|
21547
|
+
case 3:
|
|
21548
|
+
if (tag !== 26) {
|
|
21549
|
+
break;
|
|
21550
|
+
}
|
|
21309
21551
|
message.new_category_id = reader.string();
|
|
21310
21552
|
continue;
|
|
21311
21553
|
}
|
|
@@ -21318,12 +21560,16 @@ export const ChangeChannelCategoryRequest = {
|
|
|
21318
21560
|
},
|
|
21319
21561
|
fromJSON(object) {
|
|
21320
21562
|
return {
|
|
21563
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
21321
21564
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
21322
21565
|
new_category_id: isSet(object.new_category_id) ? globalThis.String(object.new_category_id) : "",
|
|
21323
21566
|
};
|
|
21324
21567
|
},
|
|
21325
21568
|
toJSON(message) {
|
|
21326
21569
|
const obj = {};
|
|
21570
|
+
if (message.clan_id !== "") {
|
|
21571
|
+
obj.clan_id = message.clan_id;
|
|
21572
|
+
}
|
|
21327
21573
|
if (message.channel_id !== "") {
|
|
21328
21574
|
obj.channel_id = message.channel_id;
|
|
21329
21575
|
}
|
|
@@ -21337,6 +21583,7 @@ export const ChangeChannelCategoryRequest = {
|
|
|
21337
21583
|
},
|
|
21338
21584
|
fromPartial(object) {
|
|
21339
21585
|
const message = createBaseChangeChannelCategoryRequest();
|
|
21586
|
+
message.clan_id = object.clan_id ?? "";
|
|
21340
21587
|
message.channel_id = object.channel_id ?? "";
|
|
21341
21588
|
message.new_category_id = object.new_category_id ?? "";
|
|
21342
21589
|
return message;
|
|
@@ -25021,7 +25268,7 @@ export const MarkAsReadRequest = {
|
|
|
25021
25268
|
},
|
|
25022
25269
|
};
|
|
25023
25270
|
function createBaseEditChannelCanvasRequest() {
|
|
25024
|
-
return { id: undefined, channel_id: "", clan_id: "", title: "", content: "", is_default: false };
|
|
25271
|
+
return { id: undefined, channel_id: "", clan_id: "", title: "", content: "", is_default: false, status: 0 };
|
|
25025
25272
|
}
|
|
25026
25273
|
export const EditChannelCanvasRequest = {
|
|
25027
25274
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -25043,6 +25290,9 @@ export const EditChannelCanvasRequest = {
|
|
|
25043
25290
|
if (message.is_default !== false) {
|
|
25044
25291
|
writer.uint32(48).bool(message.is_default);
|
|
25045
25292
|
}
|
|
25293
|
+
if (message.status !== 0) {
|
|
25294
|
+
writer.uint32(56).int32(message.status);
|
|
25295
|
+
}
|
|
25046
25296
|
return writer;
|
|
25047
25297
|
},
|
|
25048
25298
|
decode(input, length) {
|
|
@@ -25088,6 +25338,12 @@ export const EditChannelCanvasRequest = {
|
|
|
25088
25338
|
}
|
|
25089
25339
|
message.is_default = reader.bool();
|
|
25090
25340
|
continue;
|
|
25341
|
+
case 7:
|
|
25342
|
+
if (tag !== 56) {
|
|
25343
|
+
break;
|
|
25344
|
+
}
|
|
25345
|
+
message.status = reader.int32();
|
|
25346
|
+
continue;
|
|
25091
25347
|
}
|
|
25092
25348
|
if ((tag & 7) === 4 || tag === 0) {
|
|
25093
25349
|
break;
|
|
@@ -25104,6 +25360,7 @@ export const EditChannelCanvasRequest = {
|
|
|
25104
25360
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
25105
25361
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
25106
25362
|
is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
|
|
25363
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
25107
25364
|
};
|
|
25108
25365
|
},
|
|
25109
25366
|
toJSON(message) {
|
|
@@ -25126,6 +25383,9 @@ export const EditChannelCanvasRequest = {
|
|
|
25126
25383
|
if (message.is_default !== false) {
|
|
25127
25384
|
obj.is_default = message.is_default;
|
|
25128
25385
|
}
|
|
25386
|
+
if (message.status !== 0) {
|
|
25387
|
+
obj.status = Math.round(message.status);
|
|
25388
|
+
}
|
|
25129
25389
|
return obj;
|
|
25130
25390
|
},
|
|
25131
25391
|
create(base) {
|
|
@@ -25139,6 +25399,7 @@ export const EditChannelCanvasRequest = {
|
|
|
25139
25399
|
message.title = object.title ?? "";
|
|
25140
25400
|
message.content = object.content ?? "";
|
|
25141
25401
|
message.is_default = object.is_default ?? false;
|
|
25402
|
+
message.status = object.status ?? 0;
|
|
25142
25403
|
return message;
|
|
25143
25404
|
},
|
|
25144
25405
|
};
|
|
@@ -25273,7 +25534,7 @@ export const DeleteChannelCanvasRequest = {
|
|
|
25273
25534
|
},
|
|
25274
25535
|
};
|
|
25275
25536
|
function createBaseChannelCanvasListRequest() {
|
|
25276
|
-
return { clan_id: "", channel_id: "", limit: undefined, page: undefined };
|
|
25537
|
+
return { clan_id: "", channel_id: "", limit: undefined, page: undefined, cursor: "" };
|
|
25277
25538
|
}
|
|
25278
25539
|
export const ChannelCanvasListRequest = {
|
|
25279
25540
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -25289,6 +25550,9 @@ export const ChannelCanvasListRequest = {
|
|
|
25289
25550
|
if (message.page !== undefined) {
|
|
25290
25551
|
Int32Value.encode({ value: message.page }, writer.uint32(34).fork()).ldelim();
|
|
25291
25552
|
}
|
|
25553
|
+
if (message.cursor !== "") {
|
|
25554
|
+
writer.uint32(42).string(message.cursor);
|
|
25555
|
+
}
|
|
25292
25556
|
return writer;
|
|
25293
25557
|
},
|
|
25294
25558
|
decode(input, length) {
|
|
@@ -25322,6 +25586,12 @@ export const ChannelCanvasListRequest = {
|
|
|
25322
25586
|
}
|
|
25323
25587
|
message.page = Int32Value.decode(reader, reader.uint32()).value;
|
|
25324
25588
|
continue;
|
|
25589
|
+
case 5:
|
|
25590
|
+
if (tag !== 42) {
|
|
25591
|
+
break;
|
|
25592
|
+
}
|
|
25593
|
+
message.cursor = reader.string();
|
|
25594
|
+
continue;
|
|
25325
25595
|
}
|
|
25326
25596
|
if ((tag & 7) === 4 || tag === 0) {
|
|
25327
25597
|
break;
|
|
@@ -25336,6 +25606,7 @@ export const ChannelCanvasListRequest = {
|
|
|
25336
25606
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
25337
25607
|
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
25338
25608
|
page: isSet(object.page) ? Number(object.page) : undefined,
|
|
25609
|
+
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
25339
25610
|
};
|
|
25340
25611
|
},
|
|
25341
25612
|
toJSON(message) {
|
|
@@ -25352,6 +25623,9 @@ export const ChannelCanvasListRequest = {
|
|
|
25352
25623
|
if (message.page !== undefined) {
|
|
25353
25624
|
obj.page = message.page;
|
|
25354
25625
|
}
|
|
25626
|
+
if (message.cursor !== "") {
|
|
25627
|
+
obj.cursor = message.cursor;
|
|
25628
|
+
}
|
|
25355
25629
|
return obj;
|
|
25356
25630
|
},
|
|
25357
25631
|
create(base) {
|
|
@@ -25363,11 +25637,12 @@ export const ChannelCanvasListRequest = {
|
|
|
25363
25637
|
message.channel_id = object.channel_id ?? "";
|
|
25364
25638
|
message.limit = object.limit ?? undefined;
|
|
25365
25639
|
message.page = object.page ?? undefined;
|
|
25640
|
+
message.cursor = object.cursor ?? "";
|
|
25366
25641
|
return message;
|
|
25367
25642
|
},
|
|
25368
25643
|
};
|
|
25369
25644
|
function createBaseChannelCanvasItem() {
|
|
25370
|
-
return { id: "", title: "", is_default: false, content: "", creator_id: "" };
|
|
25645
|
+
return { id: "", title: "", is_default: false, content: "", creator_id: "", update_time: undefined };
|
|
25371
25646
|
}
|
|
25372
25647
|
export const ChannelCanvasItem = {
|
|
25373
25648
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -25386,6 +25661,9 @@ export const ChannelCanvasItem = {
|
|
|
25386
25661
|
if (message.creator_id !== "") {
|
|
25387
25662
|
writer.uint32(42).string(message.creator_id);
|
|
25388
25663
|
}
|
|
25664
|
+
if (message.update_time !== undefined) {
|
|
25665
|
+
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(50).fork()).ldelim();
|
|
25666
|
+
}
|
|
25389
25667
|
return writer;
|
|
25390
25668
|
},
|
|
25391
25669
|
decode(input, length) {
|
|
@@ -25425,6 +25703,12 @@ export const ChannelCanvasItem = {
|
|
|
25425
25703
|
}
|
|
25426
25704
|
message.creator_id = reader.string();
|
|
25427
25705
|
continue;
|
|
25706
|
+
case 6:
|
|
25707
|
+
if (tag !== 50) {
|
|
25708
|
+
break;
|
|
25709
|
+
}
|
|
25710
|
+
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
25711
|
+
continue;
|
|
25428
25712
|
}
|
|
25429
25713
|
if ((tag & 7) === 4 || tag === 0) {
|
|
25430
25714
|
break;
|
|
@@ -25440,6 +25724,7 @@ export const ChannelCanvasItem = {
|
|
|
25440
25724
|
is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
|
|
25441
25725
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
25442
25726
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
25727
|
+
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
25443
25728
|
};
|
|
25444
25729
|
},
|
|
25445
25730
|
toJSON(message) {
|
|
@@ -25459,6 +25744,9 @@ export const ChannelCanvasItem = {
|
|
|
25459
25744
|
if (message.creator_id !== "") {
|
|
25460
25745
|
obj.creator_id = message.creator_id;
|
|
25461
25746
|
}
|
|
25747
|
+
if (message.update_time !== undefined) {
|
|
25748
|
+
obj.update_time = message.update_time.toISOString();
|
|
25749
|
+
}
|
|
25462
25750
|
return obj;
|
|
25463
25751
|
},
|
|
25464
25752
|
create(base) {
|
|
@@ -25471,11 +25759,12 @@ export const ChannelCanvasItem = {
|
|
|
25471
25759
|
message.is_default = object.is_default ?? false;
|
|
25472
25760
|
message.content = object.content ?? "";
|
|
25473
25761
|
message.creator_id = object.creator_id ?? "";
|
|
25762
|
+
message.update_time = object.update_time ?? undefined;
|
|
25474
25763
|
return message;
|
|
25475
25764
|
},
|
|
25476
25765
|
};
|
|
25477
25766
|
function createBaseChannelCanvasListResponse() {
|
|
25478
|
-
return { clan_id: "", channel_id: "", channel_canvases: [] };
|
|
25767
|
+
return { clan_id: "", channel_id: "", channel_canvases: [], count: 0 };
|
|
25479
25768
|
}
|
|
25480
25769
|
export const ChannelCanvasListResponse = {
|
|
25481
25770
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -25488,6 +25777,9 @@ export const ChannelCanvasListResponse = {
|
|
|
25488
25777
|
for (const v of message.channel_canvases) {
|
|
25489
25778
|
ChannelCanvasItem.encode(v, writer.uint32(26).fork()).ldelim();
|
|
25490
25779
|
}
|
|
25780
|
+
if (message.count !== 0) {
|
|
25781
|
+
writer.uint32(32).int64(message.count);
|
|
25782
|
+
}
|
|
25491
25783
|
return writer;
|
|
25492
25784
|
},
|
|
25493
25785
|
decode(input, length) {
|
|
@@ -25515,6 +25807,12 @@ export const ChannelCanvasListResponse = {
|
|
|
25515
25807
|
}
|
|
25516
25808
|
message.channel_canvases.push(ChannelCanvasItem.decode(reader, reader.uint32()));
|
|
25517
25809
|
continue;
|
|
25810
|
+
case 4:
|
|
25811
|
+
if (tag !== 32) {
|
|
25812
|
+
break;
|
|
25813
|
+
}
|
|
25814
|
+
message.count = longToNumber(reader.int64());
|
|
25815
|
+
continue;
|
|
25518
25816
|
}
|
|
25519
25817
|
if ((tag & 7) === 4 || tag === 0) {
|
|
25520
25818
|
break;
|
|
@@ -25530,6 +25828,7 @@ export const ChannelCanvasListResponse = {
|
|
|
25530
25828
|
channel_canvases: globalThis.Array.isArray(object?.channel_canvases)
|
|
25531
25829
|
? object.channel_canvases.map((e) => ChannelCanvasItem.fromJSON(e))
|
|
25532
25830
|
: [],
|
|
25831
|
+
count: isSet(object.count) ? globalThis.Number(object.count) : 0,
|
|
25533
25832
|
};
|
|
25534
25833
|
},
|
|
25535
25834
|
toJSON(message) {
|
|
@@ -25543,6 +25842,9 @@ export const ChannelCanvasListResponse = {
|
|
|
25543
25842
|
if (message.channel_canvases?.length) {
|
|
25544
25843
|
obj.channel_canvases = message.channel_canvases.map((e) => ChannelCanvasItem.toJSON(e));
|
|
25545
25844
|
}
|
|
25845
|
+
if (message.count !== 0) {
|
|
25846
|
+
obj.count = Math.round(message.count);
|
|
25847
|
+
}
|
|
25546
25848
|
return obj;
|
|
25547
25849
|
},
|
|
25548
25850
|
create(base) {
|
|
@@ -25553,6 +25855,7 @@ export const ChannelCanvasListResponse = {
|
|
|
25553
25855
|
message.clan_id = object.clan_id ?? "";
|
|
25554
25856
|
message.channel_id = object.channel_id ?? "";
|
|
25555
25857
|
message.channel_canvases = object.channel_canvases?.map((e) => ChannelCanvasItem.fromPartial(e)) || [];
|
|
25858
|
+
message.count = object.count ?? 0;
|
|
25556
25859
|
return message;
|
|
25557
25860
|
},
|
|
25558
25861
|
};
|
|
@@ -26371,7 +26674,7 @@ export const CreateActivityRequest = {
|
|
|
26371
26674
|
},
|
|
26372
26675
|
};
|
|
26373
26676
|
function createBaseLoginIDResponse() {
|
|
26374
|
-
return { login_id: "", status: 0, create_time_second: 0, platform: "", user_id: 0,
|
|
26677
|
+
return { login_id: "", status: 0, create_time_second: 0, platform: "", user_id: 0, username: "", address: "" };
|
|
26375
26678
|
}
|
|
26376
26679
|
export const LoginIDResponse = {
|
|
26377
26680
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -26390,8 +26693,8 @@ export const LoginIDResponse = {
|
|
|
26390
26693
|
if (message.user_id !== 0) {
|
|
26391
26694
|
writer.uint32(40).int64(message.user_id);
|
|
26392
26695
|
}
|
|
26393
|
-
if (message.
|
|
26394
|
-
writer.uint32(50).string(message.
|
|
26696
|
+
if (message.username !== "") {
|
|
26697
|
+
writer.uint32(50).string(message.username);
|
|
26395
26698
|
}
|
|
26396
26699
|
if (message.address !== "") {
|
|
26397
26700
|
writer.uint32(58).string(message.address);
|
|
@@ -26439,7 +26742,7 @@ export const LoginIDResponse = {
|
|
|
26439
26742
|
if (tag !== 50) {
|
|
26440
26743
|
break;
|
|
26441
26744
|
}
|
|
26442
|
-
message.
|
|
26745
|
+
message.username = reader.string();
|
|
26443
26746
|
continue;
|
|
26444
26747
|
case 7:
|
|
26445
26748
|
if (tag !== 58) {
|
|
@@ -26462,7 +26765,7 @@ export const LoginIDResponse = {
|
|
|
26462
26765
|
create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
26463
26766
|
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
26464
26767
|
user_id: isSet(object.user_id) ? globalThis.Number(object.user_id) : 0,
|
|
26465
|
-
|
|
26768
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
26466
26769
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
26467
26770
|
};
|
|
26468
26771
|
},
|
|
@@ -26483,8 +26786,8 @@ export const LoginIDResponse = {
|
|
|
26483
26786
|
if (message.user_id !== 0) {
|
|
26484
26787
|
obj.user_id = Math.round(message.user_id);
|
|
26485
26788
|
}
|
|
26486
|
-
if (message.
|
|
26487
|
-
obj.
|
|
26789
|
+
if (message.username !== "") {
|
|
26790
|
+
obj.username = message.username;
|
|
26488
26791
|
}
|
|
26489
26792
|
if (message.address !== "") {
|
|
26490
26793
|
obj.address = message.address;
|
|
@@ -26501,7 +26804,7 @@ export const LoginIDResponse = {
|
|
|
26501
26804
|
message.create_time_second = object.create_time_second ?? 0;
|
|
26502
26805
|
message.platform = object.platform ?? "";
|
|
26503
26806
|
message.user_id = object.user_id ?? 0;
|
|
26504
|
-
message.
|
|
26807
|
+
message.username = object.username ?? "";
|
|
26505
26808
|
message.address = object.address ?? "";
|
|
26506
26809
|
return message;
|
|
26507
26810
|
},
|
|
@@ -29746,10 +30049,10 @@ export const UpdateOnboardingStepRequest = {
|
|
|
29746
30049
|
return message;
|
|
29747
30050
|
},
|
|
29748
30051
|
};
|
|
29749
|
-
function
|
|
29750
|
-
return { id: "", user_id: "",
|
|
30052
|
+
function createBaseWalletLedger() {
|
|
30053
|
+
return { id: "", user_id: "", create_time: undefined, value: 0, transaction_id: "" };
|
|
29751
30054
|
}
|
|
29752
|
-
export const
|
|
30055
|
+
export const WalletLedger = {
|
|
29753
30056
|
encode(message, writer = _m0.Writer.create()) {
|
|
29754
30057
|
if (message.id !== "") {
|
|
29755
30058
|
writer.uint32(10).string(message.id);
|
|
@@ -29757,18 +30060,21 @@ export const PTTChannelUser = {
|
|
|
29757
30060
|
if (message.user_id !== "") {
|
|
29758
30061
|
writer.uint32(18).string(message.user_id);
|
|
29759
30062
|
}
|
|
29760
|
-
if (message.
|
|
29761
|
-
writer.uint32(26).
|
|
30063
|
+
if (message.create_time !== undefined) {
|
|
30064
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(26).fork()).ldelim();
|
|
29762
30065
|
}
|
|
29763
|
-
if (message.
|
|
29764
|
-
writer.uint32(
|
|
30066
|
+
if (message.value !== 0) {
|
|
30067
|
+
writer.uint32(32).int32(message.value);
|
|
30068
|
+
}
|
|
30069
|
+
if (message.transaction_id !== "") {
|
|
30070
|
+
writer.uint32(42).string(message.transaction_id);
|
|
29765
30071
|
}
|
|
29766
30072
|
return writer;
|
|
29767
30073
|
},
|
|
29768
30074
|
decode(input, length) {
|
|
29769
30075
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
29770
30076
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29771
|
-
const message =
|
|
30077
|
+
const message = createBaseWalletLedger();
|
|
29772
30078
|
while (reader.pos < end) {
|
|
29773
30079
|
const tag = reader.uint32();
|
|
29774
30080
|
switch (tag >>> 3) {
|
|
@@ -29788,13 +30094,19 @@ export const PTTChannelUser = {
|
|
|
29788
30094
|
if (tag !== 26) {
|
|
29789
30095
|
break;
|
|
29790
30096
|
}
|
|
29791
|
-
message.
|
|
30097
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
29792
30098
|
continue;
|
|
29793
30099
|
case 4:
|
|
29794
|
-
if (tag !==
|
|
30100
|
+
if (tag !== 32) {
|
|
29795
30101
|
break;
|
|
29796
30102
|
}
|
|
29797
|
-
message.
|
|
30103
|
+
message.value = reader.int32();
|
|
30104
|
+
continue;
|
|
30105
|
+
case 5:
|
|
30106
|
+
if (tag !== 42) {
|
|
30107
|
+
break;
|
|
30108
|
+
}
|
|
30109
|
+
message.transaction_id = reader.string();
|
|
29798
30110
|
continue;
|
|
29799
30111
|
}
|
|
29800
30112
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -29808,8 +30120,9 @@ export const PTTChannelUser = {
|
|
|
29808
30120
|
return {
|
|
29809
30121
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
29810
30122
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
29811
|
-
|
|
29812
|
-
|
|
30123
|
+
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
30124
|
+
value: isSet(object.value) ? globalThis.Number(object.value) : 0,
|
|
30125
|
+
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
29813
30126
|
};
|
|
29814
30127
|
},
|
|
29815
30128
|
toJSON(message) {
|
|
@@ -29820,40 +30133,47 @@ export const PTTChannelUser = {
|
|
|
29820
30133
|
if (message.user_id !== "") {
|
|
29821
30134
|
obj.user_id = message.user_id;
|
|
29822
30135
|
}
|
|
29823
|
-
if (message.
|
|
29824
|
-
obj.
|
|
30136
|
+
if (message.create_time !== undefined) {
|
|
30137
|
+
obj.create_time = message.create_time.toISOString();
|
|
29825
30138
|
}
|
|
29826
|
-
if (message.
|
|
29827
|
-
obj.
|
|
30139
|
+
if (message.value !== 0) {
|
|
30140
|
+
obj.value = Math.round(message.value);
|
|
30141
|
+
}
|
|
30142
|
+
if (message.transaction_id !== "") {
|
|
30143
|
+
obj.transaction_id = message.transaction_id;
|
|
29828
30144
|
}
|
|
29829
30145
|
return obj;
|
|
29830
30146
|
},
|
|
29831
30147
|
create(base) {
|
|
29832
|
-
return
|
|
30148
|
+
return WalletLedger.fromPartial(base ?? {});
|
|
29833
30149
|
},
|
|
29834
30150
|
fromPartial(object) {
|
|
29835
|
-
const message =
|
|
30151
|
+
const message = createBaseWalletLedger();
|
|
29836
30152
|
message.id = object.id ?? "";
|
|
29837
30153
|
message.user_id = object.user_id ?? "";
|
|
29838
|
-
message.
|
|
29839
|
-
message.
|
|
30154
|
+
message.create_time = object.create_time ?? undefined;
|
|
30155
|
+
message.value = object.value ?? 0;
|
|
30156
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
29840
30157
|
return message;
|
|
29841
30158
|
},
|
|
29842
30159
|
};
|
|
29843
|
-
function
|
|
29844
|
-
return {
|
|
30160
|
+
function createBaseWalletLedgerList() {
|
|
30161
|
+
return { wallet_ledger: [], count: 0 };
|
|
29845
30162
|
}
|
|
29846
|
-
export const
|
|
30163
|
+
export const WalletLedgerList = {
|
|
29847
30164
|
encode(message, writer = _m0.Writer.create()) {
|
|
29848
|
-
for (const v of message.
|
|
29849
|
-
|
|
30165
|
+
for (const v of message.wallet_ledger) {
|
|
30166
|
+
WalletLedger.encode(v, writer.uint32(10).fork()).ldelim();
|
|
30167
|
+
}
|
|
30168
|
+
if (message.count !== 0) {
|
|
30169
|
+
writer.uint32(16).int32(message.count);
|
|
29850
30170
|
}
|
|
29851
30171
|
return writer;
|
|
29852
30172
|
},
|
|
29853
30173
|
decode(input, length) {
|
|
29854
30174
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
29855
30175
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29856
|
-
const message =
|
|
30176
|
+
const message = createBaseWalletLedgerList();
|
|
29857
30177
|
while (reader.pos < end) {
|
|
29858
30178
|
const tag = reader.uint32();
|
|
29859
30179
|
switch (tag >>> 3) {
|
|
@@ -29861,7 +30181,13 @@ export const PTTChannelUserList = {
|
|
|
29861
30181
|
if (tag !== 10) {
|
|
29862
30182
|
break;
|
|
29863
30183
|
}
|
|
29864
|
-
message.
|
|
30184
|
+
message.wallet_ledger.push(WalletLedger.decode(reader, reader.uint32()));
|
|
30185
|
+
continue;
|
|
30186
|
+
case 2:
|
|
30187
|
+
if (tag !== 16) {
|
|
30188
|
+
break;
|
|
30189
|
+
}
|
|
30190
|
+
message.count = reader.int32();
|
|
29865
30191
|
continue;
|
|
29866
30192
|
}
|
|
29867
30193
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -29873,53 +30199,55 @@ export const PTTChannelUserList = {
|
|
|
29873
30199
|
},
|
|
29874
30200
|
fromJSON(object) {
|
|
29875
30201
|
return {
|
|
29876
|
-
|
|
29877
|
-
? object.
|
|
30202
|
+
wallet_ledger: globalThis.Array.isArray(object?.wallet_ledger)
|
|
30203
|
+
? object.wallet_ledger.map((e) => WalletLedger.fromJSON(e))
|
|
29878
30204
|
: [],
|
|
30205
|
+
count: isSet(object.count) ? globalThis.Number(object.count) : 0,
|
|
29879
30206
|
};
|
|
29880
30207
|
},
|
|
29881
30208
|
toJSON(message) {
|
|
29882
30209
|
const obj = {};
|
|
29883
|
-
if (message.
|
|
29884
|
-
obj.
|
|
30210
|
+
if (message.wallet_ledger?.length) {
|
|
30211
|
+
obj.wallet_ledger = message.wallet_ledger.map((e) => WalletLedger.toJSON(e));
|
|
30212
|
+
}
|
|
30213
|
+
if (message.count !== 0) {
|
|
30214
|
+
obj.count = Math.round(message.count);
|
|
29885
30215
|
}
|
|
29886
30216
|
return obj;
|
|
29887
30217
|
},
|
|
29888
30218
|
create(base) {
|
|
29889
|
-
return
|
|
30219
|
+
return WalletLedgerList.fromPartial(base ?? {});
|
|
29890
30220
|
},
|
|
29891
30221
|
fromPartial(object) {
|
|
29892
|
-
const message =
|
|
29893
|
-
message.
|
|
30222
|
+
const message = createBaseWalletLedgerList();
|
|
30223
|
+
message.wallet_ledger = object.wallet_ledger?.map((e) => WalletLedger.fromPartial(e)) || [];
|
|
30224
|
+
message.count = object.count ?? 0;
|
|
29894
30225
|
return message;
|
|
29895
30226
|
},
|
|
29896
30227
|
};
|
|
29897
|
-
function
|
|
29898
|
-
return {
|
|
30228
|
+
function createBaseWalletLedgerListReq() {
|
|
30229
|
+
return { limit: undefined, cursor: "", transaction_id: "", page: undefined };
|
|
29899
30230
|
}
|
|
29900
|
-
export const
|
|
30231
|
+
export const WalletLedgerListReq = {
|
|
29901
30232
|
encode(message, writer = _m0.Writer.create()) {
|
|
29902
|
-
if (message.
|
|
29903
|
-
writer.uint32(10).
|
|
29904
|
-
}
|
|
29905
|
-
if (message.user_id !== "") {
|
|
29906
|
-
writer.uint32(18).string(message.user_id);
|
|
29907
|
-
}
|
|
29908
|
-
if (message.create_time !== undefined) {
|
|
29909
|
-
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(26).fork()).ldelim();
|
|
30233
|
+
if (message.limit !== undefined) {
|
|
30234
|
+
Int32Value.encode({ value: message.limit }, writer.uint32(10).fork()).ldelim();
|
|
29910
30235
|
}
|
|
29911
|
-
if (message.
|
|
29912
|
-
writer.uint32(
|
|
30236
|
+
if (message.cursor !== "") {
|
|
30237
|
+
writer.uint32(18).string(message.cursor);
|
|
29913
30238
|
}
|
|
29914
30239
|
if (message.transaction_id !== "") {
|
|
29915
|
-
writer.uint32(
|
|
30240
|
+
writer.uint32(26).string(message.transaction_id);
|
|
30241
|
+
}
|
|
30242
|
+
if (message.page !== undefined) {
|
|
30243
|
+
Int32Value.encode({ value: message.page }, writer.uint32(34).fork()).ldelim();
|
|
29916
30244
|
}
|
|
29917
30245
|
return writer;
|
|
29918
30246
|
},
|
|
29919
30247
|
decode(input, length) {
|
|
29920
30248
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
29921
30249
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29922
|
-
const message =
|
|
30250
|
+
const message = createBaseWalletLedgerListReq();
|
|
29923
30251
|
while (reader.pos < end) {
|
|
29924
30252
|
const tag = reader.uint32();
|
|
29925
30253
|
switch (tag >>> 3) {
|
|
@@ -29927,31 +30255,25 @@ export const WalletLedger = {
|
|
|
29927
30255
|
if (tag !== 10) {
|
|
29928
30256
|
break;
|
|
29929
30257
|
}
|
|
29930
|
-
message.
|
|
30258
|
+
message.limit = Int32Value.decode(reader, reader.uint32()).value;
|
|
29931
30259
|
continue;
|
|
29932
30260
|
case 2:
|
|
29933
30261
|
if (tag !== 18) {
|
|
29934
30262
|
break;
|
|
29935
30263
|
}
|
|
29936
|
-
message.
|
|
30264
|
+
message.cursor = reader.string();
|
|
29937
30265
|
continue;
|
|
29938
30266
|
case 3:
|
|
29939
30267
|
if (tag !== 26) {
|
|
29940
30268
|
break;
|
|
29941
30269
|
}
|
|
29942
|
-
message.
|
|
30270
|
+
message.transaction_id = reader.string();
|
|
29943
30271
|
continue;
|
|
29944
30272
|
case 4:
|
|
29945
|
-
if (tag !==
|
|
29946
|
-
break;
|
|
29947
|
-
}
|
|
29948
|
-
message.value = reader.int32();
|
|
29949
|
-
continue;
|
|
29950
|
-
case 5:
|
|
29951
|
-
if (tag !== 42) {
|
|
30273
|
+
if (tag !== 34) {
|
|
29952
30274
|
break;
|
|
29953
30275
|
}
|
|
29954
|
-
message.
|
|
30276
|
+
message.page = Int32Value.decode(reader, reader.uint32()).value;
|
|
29955
30277
|
continue;
|
|
29956
30278
|
}
|
|
29957
30279
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -29963,65 +30285,54 @@ export const WalletLedger = {
|
|
|
29963
30285
|
},
|
|
29964
30286
|
fromJSON(object) {
|
|
29965
30287
|
return {
|
|
29966
|
-
|
|
29967
|
-
|
|
29968
|
-
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
29969
|
-
value: isSet(object.value) ? globalThis.Number(object.value) : 0,
|
|
30288
|
+
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
30289
|
+
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
29970
30290
|
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
30291
|
+
page: isSet(object.page) ? Number(object.page) : undefined,
|
|
29971
30292
|
};
|
|
29972
30293
|
},
|
|
29973
30294
|
toJSON(message) {
|
|
29974
30295
|
const obj = {};
|
|
29975
|
-
if (message.
|
|
29976
|
-
obj.
|
|
29977
|
-
}
|
|
29978
|
-
if (message.user_id !== "") {
|
|
29979
|
-
obj.user_id = message.user_id;
|
|
29980
|
-
}
|
|
29981
|
-
if (message.create_time !== undefined) {
|
|
29982
|
-
obj.create_time = message.create_time.toISOString();
|
|
30296
|
+
if (message.limit !== undefined) {
|
|
30297
|
+
obj.limit = message.limit;
|
|
29983
30298
|
}
|
|
29984
|
-
if (message.
|
|
29985
|
-
obj.
|
|
30299
|
+
if (message.cursor !== "") {
|
|
30300
|
+
obj.cursor = message.cursor;
|
|
29986
30301
|
}
|
|
29987
30302
|
if (message.transaction_id !== "") {
|
|
29988
30303
|
obj.transaction_id = message.transaction_id;
|
|
29989
30304
|
}
|
|
30305
|
+
if (message.page !== undefined) {
|
|
30306
|
+
obj.page = message.page;
|
|
30307
|
+
}
|
|
29990
30308
|
return obj;
|
|
29991
30309
|
},
|
|
29992
30310
|
create(base) {
|
|
29993
|
-
return
|
|
30311
|
+
return WalletLedgerListReq.fromPartial(base ?? {});
|
|
29994
30312
|
},
|
|
29995
30313
|
fromPartial(object) {
|
|
29996
|
-
const message =
|
|
29997
|
-
message.
|
|
29998
|
-
message.
|
|
29999
|
-
message.create_time = object.create_time ?? undefined;
|
|
30000
|
-
message.value = object.value ?? 0;
|
|
30314
|
+
const message = createBaseWalletLedgerListReq();
|
|
30315
|
+
message.limit = object.limit ?? undefined;
|
|
30316
|
+
message.cursor = object.cursor ?? "";
|
|
30001
30317
|
message.transaction_id = object.transaction_id ?? "";
|
|
30318
|
+
message.page = object.page ?? undefined;
|
|
30002
30319
|
return message;
|
|
30003
30320
|
},
|
|
30004
30321
|
};
|
|
30005
|
-
function
|
|
30006
|
-
return {
|
|
30322
|
+
function createBaseTransactionDetailReq() {
|
|
30323
|
+
return { trans_id: "" };
|
|
30007
30324
|
}
|
|
30008
|
-
export const
|
|
30325
|
+
export const TransactionDetailReq = {
|
|
30009
30326
|
encode(message, writer = _m0.Writer.create()) {
|
|
30010
|
-
|
|
30011
|
-
|
|
30012
|
-
}
|
|
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);
|
|
30327
|
+
if (message.trans_id !== "") {
|
|
30328
|
+
writer.uint32(10).string(message.trans_id);
|
|
30018
30329
|
}
|
|
30019
30330
|
return writer;
|
|
30020
30331
|
},
|
|
30021
30332
|
decode(input, length) {
|
|
30022
30333
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
30023
30334
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30024
|
-
const message =
|
|
30335
|
+
const message = createBaseTransactionDetailReq();
|
|
30025
30336
|
while (reader.pos < end) {
|
|
30026
30337
|
const tag = reader.uint32();
|
|
30027
30338
|
switch (tag >>> 3) {
|
|
@@ -30029,19 +30340,7 @@ export const WalletLedgerList = {
|
|
|
30029
30340
|
if (tag !== 10) {
|
|
30030
30341
|
break;
|
|
30031
30342
|
}
|
|
30032
|
-
message.
|
|
30033
|
-
continue;
|
|
30034
|
-
case 2:
|
|
30035
|
-
if (tag !== 18) {
|
|
30036
|
-
break;
|
|
30037
|
-
}
|
|
30038
|
-
message.prev_cursor = reader.string();
|
|
30039
|
-
continue;
|
|
30040
|
-
case 3:
|
|
30041
|
-
if (tag !== 26) {
|
|
30042
|
-
break;
|
|
30043
|
-
}
|
|
30044
|
-
message.next_cursor = reader.string();
|
|
30343
|
+
message.trans_id = reader.string();
|
|
30045
30344
|
continue;
|
|
30046
30345
|
}
|
|
30047
30346
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -30052,58 +30351,72 @@ export const WalletLedgerList = {
|
|
|
30052
30351
|
return message;
|
|
30053
30352
|
},
|
|
30054
30353
|
fromJSON(object) {
|
|
30055
|
-
return {
|
|
30056
|
-
wallet_ledger: globalThis.Array.isArray(object?.wallet_ledger)
|
|
30057
|
-
? object.wallet_ledger.map((e) => WalletLedger.fromJSON(e))
|
|
30058
|
-
: [],
|
|
30059
|
-
prev_cursor: isSet(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
|
|
30060
|
-
next_cursor: isSet(object.next_cursor) ? globalThis.String(object.next_cursor) : "",
|
|
30061
|
-
};
|
|
30354
|
+
return { trans_id: isSet(object.trans_id) ? globalThis.String(object.trans_id) : "" };
|
|
30062
30355
|
},
|
|
30063
30356
|
toJSON(message) {
|
|
30064
30357
|
const obj = {};
|
|
30065
|
-
if (message.
|
|
30066
|
-
obj.
|
|
30067
|
-
}
|
|
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;
|
|
30358
|
+
if (message.trans_id !== "") {
|
|
30359
|
+
obj.trans_id = message.trans_id;
|
|
30073
30360
|
}
|
|
30074
30361
|
return obj;
|
|
30075
30362
|
},
|
|
30076
30363
|
create(base) {
|
|
30077
|
-
return
|
|
30364
|
+
return TransactionDetailReq.fromPartial(base ?? {});
|
|
30078
30365
|
},
|
|
30079
30366
|
fromPartial(object) {
|
|
30080
|
-
const message =
|
|
30081
|
-
message.
|
|
30082
|
-
message.prev_cursor = object.prev_cursor ?? "";
|
|
30083
|
-
message.next_cursor = object.next_cursor ?? "";
|
|
30367
|
+
const message = createBaseTransactionDetailReq();
|
|
30368
|
+
message.trans_id = object.trans_id ?? "";
|
|
30084
30369
|
return message;
|
|
30085
30370
|
},
|
|
30086
30371
|
};
|
|
30087
|
-
function
|
|
30088
|
-
return {
|
|
30372
|
+
function createBaseTransactionDetail() {
|
|
30373
|
+
return {
|
|
30374
|
+
sender_id: "",
|
|
30375
|
+
sender_username: "",
|
|
30376
|
+
receiver_id: "",
|
|
30377
|
+
receiver_username: "",
|
|
30378
|
+
amount: 0,
|
|
30379
|
+
trans_id: "",
|
|
30380
|
+
metadata: "",
|
|
30381
|
+
create_time: undefined,
|
|
30382
|
+
update_time: undefined,
|
|
30383
|
+
};
|
|
30089
30384
|
}
|
|
30090
|
-
export const
|
|
30385
|
+
export const TransactionDetail = {
|
|
30091
30386
|
encode(message, writer = _m0.Writer.create()) {
|
|
30092
|
-
if (message.
|
|
30093
|
-
|
|
30387
|
+
if (message.sender_id !== "") {
|
|
30388
|
+
writer.uint32(10).string(message.sender_id);
|
|
30094
30389
|
}
|
|
30095
|
-
if (message.
|
|
30096
|
-
writer.uint32(18).string(message.
|
|
30390
|
+
if (message.sender_username !== "") {
|
|
30391
|
+
writer.uint32(18).string(message.sender_username);
|
|
30097
30392
|
}
|
|
30098
|
-
if (message.
|
|
30099
|
-
writer.uint32(26).string(message.
|
|
30393
|
+
if (message.receiver_id !== "") {
|
|
30394
|
+
writer.uint32(26).string(message.receiver_id);
|
|
30395
|
+
}
|
|
30396
|
+
if (message.receiver_username !== "") {
|
|
30397
|
+
writer.uint32(34).string(message.receiver_username);
|
|
30398
|
+
}
|
|
30399
|
+
if (message.amount !== 0) {
|
|
30400
|
+
writer.uint32(40).int32(message.amount);
|
|
30401
|
+
}
|
|
30402
|
+
if (message.trans_id !== "") {
|
|
30403
|
+
writer.uint32(50).string(message.trans_id);
|
|
30404
|
+
}
|
|
30405
|
+
if (message.metadata !== "") {
|
|
30406
|
+
writer.uint32(58).string(message.metadata);
|
|
30407
|
+
}
|
|
30408
|
+
if (message.create_time !== undefined) {
|
|
30409
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(66).fork()).ldelim();
|
|
30410
|
+
}
|
|
30411
|
+
if (message.update_time !== undefined) {
|
|
30412
|
+
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(74).fork()).ldelim();
|
|
30100
30413
|
}
|
|
30101
30414
|
return writer;
|
|
30102
30415
|
},
|
|
30103
30416
|
decode(input, length) {
|
|
30104
30417
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
30105
30418
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30106
|
-
const message =
|
|
30419
|
+
const message = createBaseTransactionDetail();
|
|
30107
30420
|
while (reader.pos < end) {
|
|
30108
30421
|
const tag = reader.uint32();
|
|
30109
30422
|
switch (tag >>> 3) {
|
|
@@ -30111,19 +30424,55 @@ export const WalletLedgerListReq = {
|
|
|
30111
30424
|
if (tag !== 10) {
|
|
30112
30425
|
break;
|
|
30113
30426
|
}
|
|
30114
|
-
message.
|
|
30427
|
+
message.sender_id = reader.string();
|
|
30115
30428
|
continue;
|
|
30116
30429
|
case 2:
|
|
30117
30430
|
if (tag !== 18) {
|
|
30118
30431
|
break;
|
|
30119
30432
|
}
|
|
30120
|
-
message.
|
|
30433
|
+
message.sender_username = reader.string();
|
|
30121
30434
|
continue;
|
|
30122
30435
|
case 3:
|
|
30123
30436
|
if (tag !== 26) {
|
|
30124
30437
|
break;
|
|
30125
30438
|
}
|
|
30126
|
-
message.
|
|
30439
|
+
message.receiver_id = reader.string();
|
|
30440
|
+
continue;
|
|
30441
|
+
case 4:
|
|
30442
|
+
if (tag !== 34) {
|
|
30443
|
+
break;
|
|
30444
|
+
}
|
|
30445
|
+
message.receiver_username = reader.string();
|
|
30446
|
+
continue;
|
|
30447
|
+
case 5:
|
|
30448
|
+
if (tag !== 40) {
|
|
30449
|
+
break;
|
|
30450
|
+
}
|
|
30451
|
+
message.amount = reader.int32();
|
|
30452
|
+
continue;
|
|
30453
|
+
case 6:
|
|
30454
|
+
if (tag !== 50) {
|
|
30455
|
+
break;
|
|
30456
|
+
}
|
|
30457
|
+
message.trans_id = reader.string();
|
|
30458
|
+
continue;
|
|
30459
|
+
case 7:
|
|
30460
|
+
if (tag !== 58) {
|
|
30461
|
+
break;
|
|
30462
|
+
}
|
|
30463
|
+
message.metadata = reader.string();
|
|
30464
|
+
continue;
|
|
30465
|
+
case 8:
|
|
30466
|
+
if (tag !== 66) {
|
|
30467
|
+
break;
|
|
30468
|
+
}
|
|
30469
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
30470
|
+
continue;
|
|
30471
|
+
case 9:
|
|
30472
|
+
if (tag !== 74) {
|
|
30473
|
+
break;
|
|
30474
|
+
}
|
|
30475
|
+
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
30127
30476
|
continue;
|
|
30128
30477
|
}
|
|
30129
30478
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -30135,32 +30484,62 @@ export const WalletLedgerListReq = {
|
|
|
30135
30484
|
},
|
|
30136
30485
|
fromJSON(object) {
|
|
30137
30486
|
return {
|
|
30138
|
-
|
|
30139
|
-
|
|
30140
|
-
|
|
30487
|
+
sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
30488
|
+
sender_username: isSet(object.sender_username) ? globalThis.String(object.sender_username) : "",
|
|
30489
|
+
receiver_id: isSet(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
|
|
30490
|
+
receiver_username: isSet(object.receiver_username) ? globalThis.String(object.receiver_username) : "",
|
|
30491
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
30492
|
+
trans_id: isSet(object.trans_id) ? globalThis.String(object.trans_id) : "",
|
|
30493
|
+
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
|
|
30494
|
+
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
30495
|
+
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
30141
30496
|
};
|
|
30142
30497
|
},
|
|
30143
30498
|
toJSON(message) {
|
|
30144
30499
|
const obj = {};
|
|
30145
|
-
if (message.
|
|
30146
|
-
obj.
|
|
30500
|
+
if (message.sender_id !== "") {
|
|
30501
|
+
obj.sender_id = message.sender_id;
|
|
30147
30502
|
}
|
|
30148
|
-
if (message.
|
|
30149
|
-
obj.
|
|
30503
|
+
if (message.sender_username !== "") {
|
|
30504
|
+
obj.sender_username = message.sender_username;
|
|
30150
30505
|
}
|
|
30151
|
-
if (message.
|
|
30152
|
-
obj.
|
|
30506
|
+
if (message.receiver_id !== "") {
|
|
30507
|
+
obj.receiver_id = message.receiver_id;
|
|
30508
|
+
}
|
|
30509
|
+
if (message.receiver_username !== "") {
|
|
30510
|
+
obj.receiver_username = message.receiver_username;
|
|
30511
|
+
}
|
|
30512
|
+
if (message.amount !== 0) {
|
|
30513
|
+
obj.amount = Math.round(message.amount);
|
|
30514
|
+
}
|
|
30515
|
+
if (message.trans_id !== "") {
|
|
30516
|
+
obj.trans_id = message.trans_id;
|
|
30517
|
+
}
|
|
30518
|
+
if (message.metadata !== "") {
|
|
30519
|
+
obj.metadata = message.metadata;
|
|
30520
|
+
}
|
|
30521
|
+
if (message.create_time !== undefined) {
|
|
30522
|
+
obj.create_time = message.create_time.toISOString();
|
|
30523
|
+
}
|
|
30524
|
+
if (message.update_time !== undefined) {
|
|
30525
|
+
obj.update_time = message.update_time.toISOString();
|
|
30153
30526
|
}
|
|
30154
30527
|
return obj;
|
|
30155
30528
|
},
|
|
30156
30529
|
create(base) {
|
|
30157
|
-
return
|
|
30530
|
+
return TransactionDetail.fromPartial(base ?? {});
|
|
30158
30531
|
},
|
|
30159
30532
|
fromPartial(object) {
|
|
30160
|
-
const message =
|
|
30161
|
-
message.
|
|
30162
|
-
message.
|
|
30163
|
-
message.
|
|
30533
|
+
const message = createBaseTransactionDetail();
|
|
30534
|
+
message.sender_id = object.sender_id ?? "";
|
|
30535
|
+
message.sender_username = object.sender_username ?? "";
|
|
30536
|
+
message.receiver_id = object.receiver_id ?? "";
|
|
30537
|
+
message.receiver_username = object.receiver_username ?? "";
|
|
30538
|
+
message.amount = object.amount ?? 0;
|
|
30539
|
+
message.trans_id = object.trans_id ?? "";
|
|
30540
|
+
message.metadata = object.metadata ?? "";
|
|
30541
|
+
message.create_time = object.create_time ?? undefined;
|
|
30542
|
+
message.update_time = object.update_time ?? undefined;
|
|
30164
30543
|
return message;
|
|
30165
30544
|
},
|
|
30166
30545
|
};
|
|
@@ -30701,6 +31080,1401 @@ export const DeleteSdTopicRequest = {
|
|
|
30701
31080
|
return message;
|
|
30702
31081
|
},
|
|
30703
31082
|
};
|
|
31083
|
+
function createBaseGenerateMeetTokenRequest() {
|
|
31084
|
+
return { channel_id: "", room_name: "" };
|
|
31085
|
+
}
|
|
31086
|
+
export const GenerateMeetTokenRequest = {
|
|
31087
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31088
|
+
if (message.channel_id !== "") {
|
|
31089
|
+
writer.uint32(10).string(message.channel_id);
|
|
31090
|
+
}
|
|
31091
|
+
if (message.room_name !== "") {
|
|
31092
|
+
writer.uint32(18).string(message.room_name);
|
|
31093
|
+
}
|
|
31094
|
+
return writer;
|
|
31095
|
+
},
|
|
31096
|
+
decode(input, length) {
|
|
31097
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31098
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31099
|
+
const message = createBaseGenerateMeetTokenRequest();
|
|
31100
|
+
while (reader.pos < end) {
|
|
31101
|
+
const tag = reader.uint32();
|
|
31102
|
+
switch (tag >>> 3) {
|
|
31103
|
+
case 1:
|
|
31104
|
+
if (tag !== 10) {
|
|
31105
|
+
break;
|
|
31106
|
+
}
|
|
31107
|
+
message.channel_id = reader.string();
|
|
31108
|
+
continue;
|
|
31109
|
+
case 2:
|
|
31110
|
+
if (tag !== 18) {
|
|
31111
|
+
break;
|
|
31112
|
+
}
|
|
31113
|
+
message.room_name = reader.string();
|
|
31114
|
+
continue;
|
|
31115
|
+
}
|
|
31116
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31117
|
+
break;
|
|
31118
|
+
}
|
|
31119
|
+
reader.skipType(tag & 7);
|
|
31120
|
+
}
|
|
31121
|
+
return message;
|
|
31122
|
+
},
|
|
31123
|
+
fromJSON(object) {
|
|
31124
|
+
return {
|
|
31125
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
31126
|
+
room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
|
|
31127
|
+
};
|
|
31128
|
+
},
|
|
31129
|
+
toJSON(message) {
|
|
31130
|
+
const obj = {};
|
|
31131
|
+
if (message.channel_id !== "") {
|
|
31132
|
+
obj.channel_id = message.channel_id;
|
|
31133
|
+
}
|
|
31134
|
+
if (message.room_name !== "") {
|
|
31135
|
+
obj.room_name = message.room_name;
|
|
31136
|
+
}
|
|
31137
|
+
return obj;
|
|
31138
|
+
},
|
|
31139
|
+
create(base) {
|
|
31140
|
+
return GenerateMeetTokenRequest.fromPartial(base ?? {});
|
|
31141
|
+
},
|
|
31142
|
+
fromPartial(object) {
|
|
31143
|
+
const message = createBaseGenerateMeetTokenRequest();
|
|
31144
|
+
message.channel_id = object.channel_id ?? "";
|
|
31145
|
+
message.room_name = object.room_name ?? "";
|
|
31146
|
+
return message;
|
|
31147
|
+
},
|
|
31148
|
+
};
|
|
31149
|
+
function createBaseGenerateMeetTokenResponse() {
|
|
31150
|
+
return { token: "" };
|
|
31151
|
+
}
|
|
31152
|
+
export const GenerateMeetTokenResponse = {
|
|
31153
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31154
|
+
if (message.token !== "") {
|
|
31155
|
+
writer.uint32(10).string(message.token);
|
|
31156
|
+
}
|
|
31157
|
+
return writer;
|
|
31158
|
+
},
|
|
31159
|
+
decode(input, length) {
|
|
31160
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31161
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31162
|
+
const message = createBaseGenerateMeetTokenResponse();
|
|
31163
|
+
while (reader.pos < end) {
|
|
31164
|
+
const tag = reader.uint32();
|
|
31165
|
+
switch (tag >>> 3) {
|
|
31166
|
+
case 1:
|
|
31167
|
+
if (tag !== 10) {
|
|
31168
|
+
break;
|
|
31169
|
+
}
|
|
31170
|
+
message.token = reader.string();
|
|
31171
|
+
continue;
|
|
31172
|
+
}
|
|
31173
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31174
|
+
break;
|
|
31175
|
+
}
|
|
31176
|
+
reader.skipType(tag & 7);
|
|
31177
|
+
}
|
|
31178
|
+
return message;
|
|
31179
|
+
},
|
|
31180
|
+
fromJSON(object) {
|
|
31181
|
+
return { token: isSet(object.token) ? globalThis.String(object.token) : "" };
|
|
31182
|
+
},
|
|
31183
|
+
toJSON(message) {
|
|
31184
|
+
const obj = {};
|
|
31185
|
+
if (message.token !== "") {
|
|
31186
|
+
obj.token = message.token;
|
|
31187
|
+
}
|
|
31188
|
+
return obj;
|
|
31189
|
+
},
|
|
31190
|
+
create(base) {
|
|
31191
|
+
return GenerateMeetTokenResponse.fromPartial(base ?? {});
|
|
31192
|
+
},
|
|
31193
|
+
fromPartial(object) {
|
|
31194
|
+
const message = createBaseGenerateMeetTokenResponse();
|
|
31195
|
+
message.token = object.token ?? "";
|
|
31196
|
+
return message;
|
|
31197
|
+
},
|
|
31198
|
+
};
|
|
31199
|
+
function createBaseCreateRoomChannelApps() {
|
|
31200
|
+
return { channel_id: "", room_name: "" };
|
|
31201
|
+
}
|
|
31202
|
+
export const CreateRoomChannelApps = {
|
|
31203
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31204
|
+
if (message.channel_id !== "") {
|
|
31205
|
+
writer.uint32(10).string(message.channel_id);
|
|
31206
|
+
}
|
|
31207
|
+
if (message.room_name !== "") {
|
|
31208
|
+
writer.uint32(18).string(message.room_name);
|
|
31209
|
+
}
|
|
31210
|
+
return writer;
|
|
31211
|
+
},
|
|
31212
|
+
decode(input, length) {
|
|
31213
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31214
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31215
|
+
const message = createBaseCreateRoomChannelApps();
|
|
31216
|
+
while (reader.pos < end) {
|
|
31217
|
+
const tag = reader.uint32();
|
|
31218
|
+
switch (tag >>> 3) {
|
|
31219
|
+
case 1:
|
|
31220
|
+
if (tag !== 10) {
|
|
31221
|
+
break;
|
|
31222
|
+
}
|
|
31223
|
+
message.channel_id = reader.string();
|
|
31224
|
+
continue;
|
|
31225
|
+
case 2:
|
|
31226
|
+
if (tag !== 18) {
|
|
31227
|
+
break;
|
|
31228
|
+
}
|
|
31229
|
+
message.room_name = reader.string();
|
|
31230
|
+
continue;
|
|
31231
|
+
}
|
|
31232
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31233
|
+
break;
|
|
31234
|
+
}
|
|
31235
|
+
reader.skipType(tag & 7);
|
|
31236
|
+
}
|
|
31237
|
+
return message;
|
|
31238
|
+
},
|
|
31239
|
+
fromJSON(object) {
|
|
31240
|
+
return {
|
|
31241
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
31242
|
+
room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
|
|
31243
|
+
};
|
|
31244
|
+
},
|
|
31245
|
+
toJSON(message) {
|
|
31246
|
+
const obj = {};
|
|
31247
|
+
if (message.channel_id !== "") {
|
|
31248
|
+
obj.channel_id = message.channel_id;
|
|
31249
|
+
}
|
|
31250
|
+
if (message.room_name !== "") {
|
|
31251
|
+
obj.room_name = message.room_name;
|
|
31252
|
+
}
|
|
31253
|
+
return obj;
|
|
31254
|
+
},
|
|
31255
|
+
create(base) {
|
|
31256
|
+
return CreateRoomChannelApps.fromPartial(base ?? {});
|
|
31257
|
+
},
|
|
31258
|
+
fromPartial(object) {
|
|
31259
|
+
const message = createBaseCreateRoomChannelApps();
|
|
31260
|
+
message.channel_id = object.channel_id ?? "";
|
|
31261
|
+
message.room_name = object.room_name ?? "";
|
|
31262
|
+
return message;
|
|
31263
|
+
},
|
|
31264
|
+
};
|
|
31265
|
+
function createBaseHandleParticipantMeetStateRequest() {
|
|
31266
|
+
return { clan_id: "", channel_id: "", user_id: "", display_name: "", state: 0 };
|
|
31267
|
+
}
|
|
31268
|
+
export const HandleParticipantMeetStateRequest = {
|
|
31269
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31270
|
+
if (message.clan_id !== "") {
|
|
31271
|
+
writer.uint32(10).string(message.clan_id);
|
|
31272
|
+
}
|
|
31273
|
+
if (message.channel_id !== "") {
|
|
31274
|
+
writer.uint32(18).string(message.channel_id);
|
|
31275
|
+
}
|
|
31276
|
+
if (message.user_id !== "") {
|
|
31277
|
+
writer.uint32(26).string(message.user_id);
|
|
31278
|
+
}
|
|
31279
|
+
if (message.display_name !== "") {
|
|
31280
|
+
writer.uint32(34).string(message.display_name);
|
|
31281
|
+
}
|
|
31282
|
+
if (message.state !== 0) {
|
|
31283
|
+
writer.uint32(40).int32(message.state);
|
|
31284
|
+
}
|
|
31285
|
+
return writer;
|
|
31286
|
+
},
|
|
31287
|
+
decode(input, length) {
|
|
31288
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31289
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31290
|
+
const message = createBaseHandleParticipantMeetStateRequest();
|
|
31291
|
+
while (reader.pos < end) {
|
|
31292
|
+
const tag = reader.uint32();
|
|
31293
|
+
switch (tag >>> 3) {
|
|
31294
|
+
case 1:
|
|
31295
|
+
if (tag !== 10) {
|
|
31296
|
+
break;
|
|
31297
|
+
}
|
|
31298
|
+
message.clan_id = reader.string();
|
|
31299
|
+
continue;
|
|
31300
|
+
case 2:
|
|
31301
|
+
if (tag !== 18) {
|
|
31302
|
+
break;
|
|
31303
|
+
}
|
|
31304
|
+
message.channel_id = reader.string();
|
|
31305
|
+
continue;
|
|
31306
|
+
case 3:
|
|
31307
|
+
if (tag !== 26) {
|
|
31308
|
+
break;
|
|
31309
|
+
}
|
|
31310
|
+
message.user_id = reader.string();
|
|
31311
|
+
continue;
|
|
31312
|
+
case 4:
|
|
31313
|
+
if (tag !== 34) {
|
|
31314
|
+
break;
|
|
31315
|
+
}
|
|
31316
|
+
message.display_name = reader.string();
|
|
31317
|
+
continue;
|
|
31318
|
+
case 5:
|
|
31319
|
+
if (tag !== 40) {
|
|
31320
|
+
break;
|
|
31321
|
+
}
|
|
31322
|
+
message.state = reader.int32();
|
|
31323
|
+
continue;
|
|
31324
|
+
}
|
|
31325
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31326
|
+
break;
|
|
31327
|
+
}
|
|
31328
|
+
reader.skipType(tag & 7);
|
|
31329
|
+
}
|
|
31330
|
+
return message;
|
|
31331
|
+
},
|
|
31332
|
+
fromJSON(object) {
|
|
31333
|
+
return {
|
|
31334
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
31335
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
31336
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
31337
|
+
display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
31338
|
+
state: isSet(object.state) ? globalThis.Number(object.state) : 0,
|
|
31339
|
+
};
|
|
31340
|
+
},
|
|
31341
|
+
toJSON(message) {
|
|
31342
|
+
const obj = {};
|
|
31343
|
+
if (message.clan_id !== "") {
|
|
31344
|
+
obj.clan_id = message.clan_id;
|
|
31345
|
+
}
|
|
31346
|
+
if (message.channel_id !== "") {
|
|
31347
|
+
obj.channel_id = message.channel_id;
|
|
31348
|
+
}
|
|
31349
|
+
if (message.user_id !== "") {
|
|
31350
|
+
obj.user_id = message.user_id;
|
|
31351
|
+
}
|
|
31352
|
+
if (message.display_name !== "") {
|
|
31353
|
+
obj.display_name = message.display_name;
|
|
31354
|
+
}
|
|
31355
|
+
if (message.state !== 0) {
|
|
31356
|
+
obj.state = Math.round(message.state);
|
|
31357
|
+
}
|
|
31358
|
+
return obj;
|
|
31359
|
+
},
|
|
31360
|
+
create(base) {
|
|
31361
|
+
return HandleParticipantMeetStateRequest.fromPartial(base ?? {});
|
|
31362
|
+
},
|
|
31363
|
+
fromPartial(object) {
|
|
31364
|
+
const message = createBaseHandleParticipantMeetStateRequest();
|
|
31365
|
+
message.clan_id = object.clan_id ?? "";
|
|
31366
|
+
message.channel_id = object.channel_id ?? "";
|
|
31367
|
+
message.user_id = object.user_id ?? "";
|
|
31368
|
+
message.display_name = object.display_name ?? "";
|
|
31369
|
+
message.state = object.state ?? 0;
|
|
31370
|
+
return message;
|
|
31371
|
+
},
|
|
31372
|
+
};
|
|
31373
|
+
function createBaseMezonOauthClient() {
|
|
31374
|
+
return {
|
|
31375
|
+
access_token_strategy: "",
|
|
31376
|
+
allowed_cors_origins: [],
|
|
31377
|
+
audience: [],
|
|
31378
|
+
authorization_code_grant_access_token_lifespan: "",
|
|
31379
|
+
authorization_code_grant_id_token_lifespan: "",
|
|
31380
|
+
authorization_code_grant_refresh_token_lifespan: "",
|
|
31381
|
+
backchannel_logout_session_required: false,
|
|
31382
|
+
backchannel_logout_uri: "",
|
|
31383
|
+
client_credentials_grant_access_token_lifespan: "",
|
|
31384
|
+
client_id: "",
|
|
31385
|
+
client_name: "",
|
|
31386
|
+
client_secret: "",
|
|
31387
|
+
client_secret_expires_at: 0,
|
|
31388
|
+
client_uri: "",
|
|
31389
|
+
contacts: [],
|
|
31390
|
+
created_at: undefined,
|
|
31391
|
+
frontchannel_logout_session_required: false,
|
|
31392
|
+
frontchannel_logout_uri: "",
|
|
31393
|
+
grant_types: [],
|
|
31394
|
+
implicit_grant_access_token_lifespan: "",
|
|
31395
|
+
implicit_grant_id_token_lifespan: "",
|
|
31396
|
+
jwks: [],
|
|
31397
|
+
jwks_uri: "",
|
|
31398
|
+
jwt_bearer_grant_access_token_lifespan: "",
|
|
31399
|
+
logo_uri: "",
|
|
31400
|
+
owner: "",
|
|
31401
|
+
policy_uri: "",
|
|
31402
|
+
post_logout_redirect_uris: [],
|
|
31403
|
+
redirect_uris: [],
|
|
31404
|
+
refresh_token_grant_access_token_lifespan: "",
|
|
31405
|
+
refresh_token_grant_id_token_lifespan: "",
|
|
31406
|
+
refresh_token_grant_refresh_token_lifespan: "",
|
|
31407
|
+
registration_access_token: "",
|
|
31408
|
+
registration_client_uri: "",
|
|
31409
|
+
request_object_signing_alg: "",
|
|
31410
|
+
request_uris: [],
|
|
31411
|
+
response_types: [],
|
|
31412
|
+
scope: "",
|
|
31413
|
+
sector_identifier_uri: "",
|
|
31414
|
+
skip_consent: false,
|
|
31415
|
+
skip_logout_consent: false,
|
|
31416
|
+
subject_type: "",
|
|
31417
|
+
token_endpoint_auth_method: "",
|
|
31418
|
+
token_endpoint_auth_signing_alg: "",
|
|
31419
|
+
tos_uri: "",
|
|
31420
|
+
updated_at: undefined,
|
|
31421
|
+
userinfo_signed_response_alg: "",
|
|
31422
|
+
};
|
|
31423
|
+
}
|
|
31424
|
+
export const MezonOauthClient = {
|
|
31425
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31426
|
+
if (message.access_token_strategy !== "") {
|
|
31427
|
+
writer.uint32(10).string(message.access_token_strategy);
|
|
31428
|
+
}
|
|
31429
|
+
for (const v of message.allowed_cors_origins) {
|
|
31430
|
+
writer.uint32(18).string(v);
|
|
31431
|
+
}
|
|
31432
|
+
for (const v of message.audience) {
|
|
31433
|
+
writer.uint32(26).string(v);
|
|
31434
|
+
}
|
|
31435
|
+
if (message.authorization_code_grant_access_token_lifespan !== "") {
|
|
31436
|
+
writer.uint32(34).string(message.authorization_code_grant_access_token_lifespan);
|
|
31437
|
+
}
|
|
31438
|
+
if (message.authorization_code_grant_id_token_lifespan !== "") {
|
|
31439
|
+
writer.uint32(42).string(message.authorization_code_grant_id_token_lifespan);
|
|
31440
|
+
}
|
|
31441
|
+
if (message.authorization_code_grant_refresh_token_lifespan !== "") {
|
|
31442
|
+
writer.uint32(50).string(message.authorization_code_grant_refresh_token_lifespan);
|
|
31443
|
+
}
|
|
31444
|
+
if (message.backchannel_logout_session_required !== false) {
|
|
31445
|
+
writer.uint32(56).bool(message.backchannel_logout_session_required);
|
|
31446
|
+
}
|
|
31447
|
+
if (message.backchannel_logout_uri !== "") {
|
|
31448
|
+
writer.uint32(66).string(message.backchannel_logout_uri);
|
|
31449
|
+
}
|
|
31450
|
+
if (message.client_credentials_grant_access_token_lifespan !== "") {
|
|
31451
|
+
writer.uint32(74).string(message.client_credentials_grant_access_token_lifespan);
|
|
31452
|
+
}
|
|
31453
|
+
if (message.client_id !== "") {
|
|
31454
|
+
writer.uint32(82).string(message.client_id);
|
|
31455
|
+
}
|
|
31456
|
+
if (message.client_name !== "") {
|
|
31457
|
+
writer.uint32(90).string(message.client_name);
|
|
31458
|
+
}
|
|
31459
|
+
if (message.client_secret !== "") {
|
|
31460
|
+
writer.uint32(98).string(message.client_secret);
|
|
31461
|
+
}
|
|
31462
|
+
if (message.client_secret_expires_at !== 0) {
|
|
31463
|
+
writer.uint32(104).int32(message.client_secret_expires_at);
|
|
31464
|
+
}
|
|
31465
|
+
if (message.client_uri !== "") {
|
|
31466
|
+
writer.uint32(114).string(message.client_uri);
|
|
31467
|
+
}
|
|
31468
|
+
for (const v of message.contacts) {
|
|
31469
|
+
writer.uint32(122).string(v);
|
|
31470
|
+
}
|
|
31471
|
+
if (message.created_at !== undefined) {
|
|
31472
|
+
Timestamp.encode(toTimestamp(message.created_at), writer.uint32(130).fork()).ldelim();
|
|
31473
|
+
}
|
|
31474
|
+
if (message.frontchannel_logout_session_required !== false) {
|
|
31475
|
+
writer.uint32(136).bool(message.frontchannel_logout_session_required);
|
|
31476
|
+
}
|
|
31477
|
+
if (message.frontchannel_logout_uri !== "") {
|
|
31478
|
+
writer.uint32(146).string(message.frontchannel_logout_uri);
|
|
31479
|
+
}
|
|
31480
|
+
for (const v of message.grant_types) {
|
|
31481
|
+
writer.uint32(154).string(v);
|
|
31482
|
+
}
|
|
31483
|
+
if (message.implicit_grant_access_token_lifespan !== "") {
|
|
31484
|
+
writer.uint32(162).string(message.implicit_grant_access_token_lifespan);
|
|
31485
|
+
}
|
|
31486
|
+
if (message.implicit_grant_id_token_lifespan !== "") {
|
|
31487
|
+
writer.uint32(170).string(message.implicit_grant_id_token_lifespan);
|
|
31488
|
+
}
|
|
31489
|
+
for (const v of message.jwks) {
|
|
31490
|
+
writer.uint32(178).string(v);
|
|
31491
|
+
}
|
|
31492
|
+
if (message.jwks_uri !== "") {
|
|
31493
|
+
writer.uint32(186).string(message.jwks_uri);
|
|
31494
|
+
}
|
|
31495
|
+
if (message.jwt_bearer_grant_access_token_lifespan !== "") {
|
|
31496
|
+
writer.uint32(194).string(message.jwt_bearer_grant_access_token_lifespan);
|
|
31497
|
+
}
|
|
31498
|
+
if (message.logo_uri !== "") {
|
|
31499
|
+
writer.uint32(202).string(message.logo_uri);
|
|
31500
|
+
}
|
|
31501
|
+
if (message.owner !== "") {
|
|
31502
|
+
writer.uint32(210).string(message.owner);
|
|
31503
|
+
}
|
|
31504
|
+
if (message.policy_uri !== "") {
|
|
31505
|
+
writer.uint32(218).string(message.policy_uri);
|
|
31506
|
+
}
|
|
31507
|
+
for (const v of message.post_logout_redirect_uris) {
|
|
31508
|
+
writer.uint32(226).string(v);
|
|
31509
|
+
}
|
|
31510
|
+
for (const v of message.redirect_uris) {
|
|
31511
|
+
writer.uint32(234).string(v);
|
|
31512
|
+
}
|
|
31513
|
+
if (message.refresh_token_grant_access_token_lifespan !== "") {
|
|
31514
|
+
writer.uint32(242).string(message.refresh_token_grant_access_token_lifespan);
|
|
31515
|
+
}
|
|
31516
|
+
if (message.refresh_token_grant_id_token_lifespan !== "") {
|
|
31517
|
+
writer.uint32(250).string(message.refresh_token_grant_id_token_lifespan);
|
|
31518
|
+
}
|
|
31519
|
+
if (message.refresh_token_grant_refresh_token_lifespan !== "") {
|
|
31520
|
+
writer.uint32(258).string(message.refresh_token_grant_refresh_token_lifespan);
|
|
31521
|
+
}
|
|
31522
|
+
if (message.registration_access_token !== "") {
|
|
31523
|
+
writer.uint32(266).string(message.registration_access_token);
|
|
31524
|
+
}
|
|
31525
|
+
if (message.registration_client_uri !== "") {
|
|
31526
|
+
writer.uint32(274).string(message.registration_client_uri);
|
|
31527
|
+
}
|
|
31528
|
+
if (message.request_object_signing_alg !== "") {
|
|
31529
|
+
writer.uint32(282).string(message.request_object_signing_alg);
|
|
31530
|
+
}
|
|
31531
|
+
for (const v of message.request_uris) {
|
|
31532
|
+
writer.uint32(290).string(v);
|
|
31533
|
+
}
|
|
31534
|
+
for (const v of message.response_types) {
|
|
31535
|
+
writer.uint32(298).string(v);
|
|
31536
|
+
}
|
|
31537
|
+
if (message.scope !== "") {
|
|
31538
|
+
writer.uint32(306).string(message.scope);
|
|
31539
|
+
}
|
|
31540
|
+
if (message.sector_identifier_uri !== "") {
|
|
31541
|
+
writer.uint32(314).string(message.sector_identifier_uri);
|
|
31542
|
+
}
|
|
31543
|
+
if (message.skip_consent !== false) {
|
|
31544
|
+
writer.uint32(320).bool(message.skip_consent);
|
|
31545
|
+
}
|
|
31546
|
+
if (message.skip_logout_consent !== false) {
|
|
31547
|
+
writer.uint32(328).bool(message.skip_logout_consent);
|
|
31548
|
+
}
|
|
31549
|
+
if (message.subject_type !== "") {
|
|
31550
|
+
writer.uint32(338).string(message.subject_type);
|
|
31551
|
+
}
|
|
31552
|
+
if (message.token_endpoint_auth_method !== "") {
|
|
31553
|
+
writer.uint32(346).string(message.token_endpoint_auth_method);
|
|
31554
|
+
}
|
|
31555
|
+
if (message.token_endpoint_auth_signing_alg !== "") {
|
|
31556
|
+
writer.uint32(354).string(message.token_endpoint_auth_signing_alg);
|
|
31557
|
+
}
|
|
31558
|
+
if (message.tos_uri !== "") {
|
|
31559
|
+
writer.uint32(362).string(message.tos_uri);
|
|
31560
|
+
}
|
|
31561
|
+
if (message.updated_at !== undefined) {
|
|
31562
|
+
Timestamp.encode(toTimestamp(message.updated_at), writer.uint32(370).fork()).ldelim();
|
|
31563
|
+
}
|
|
31564
|
+
if (message.userinfo_signed_response_alg !== "") {
|
|
31565
|
+
writer.uint32(378).string(message.userinfo_signed_response_alg);
|
|
31566
|
+
}
|
|
31567
|
+
return writer;
|
|
31568
|
+
},
|
|
31569
|
+
decode(input, length) {
|
|
31570
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31571
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31572
|
+
const message = createBaseMezonOauthClient();
|
|
31573
|
+
while (reader.pos < end) {
|
|
31574
|
+
const tag = reader.uint32();
|
|
31575
|
+
switch (tag >>> 3) {
|
|
31576
|
+
case 1:
|
|
31577
|
+
if (tag !== 10) {
|
|
31578
|
+
break;
|
|
31579
|
+
}
|
|
31580
|
+
message.access_token_strategy = reader.string();
|
|
31581
|
+
continue;
|
|
31582
|
+
case 2:
|
|
31583
|
+
if (tag !== 18) {
|
|
31584
|
+
break;
|
|
31585
|
+
}
|
|
31586
|
+
message.allowed_cors_origins.push(reader.string());
|
|
31587
|
+
continue;
|
|
31588
|
+
case 3:
|
|
31589
|
+
if (tag !== 26) {
|
|
31590
|
+
break;
|
|
31591
|
+
}
|
|
31592
|
+
message.audience.push(reader.string());
|
|
31593
|
+
continue;
|
|
31594
|
+
case 4:
|
|
31595
|
+
if (tag !== 34) {
|
|
31596
|
+
break;
|
|
31597
|
+
}
|
|
31598
|
+
message.authorization_code_grant_access_token_lifespan = reader.string();
|
|
31599
|
+
continue;
|
|
31600
|
+
case 5:
|
|
31601
|
+
if (tag !== 42) {
|
|
31602
|
+
break;
|
|
31603
|
+
}
|
|
31604
|
+
message.authorization_code_grant_id_token_lifespan = reader.string();
|
|
31605
|
+
continue;
|
|
31606
|
+
case 6:
|
|
31607
|
+
if (tag !== 50) {
|
|
31608
|
+
break;
|
|
31609
|
+
}
|
|
31610
|
+
message.authorization_code_grant_refresh_token_lifespan = reader.string();
|
|
31611
|
+
continue;
|
|
31612
|
+
case 7:
|
|
31613
|
+
if (tag !== 56) {
|
|
31614
|
+
break;
|
|
31615
|
+
}
|
|
31616
|
+
message.backchannel_logout_session_required = reader.bool();
|
|
31617
|
+
continue;
|
|
31618
|
+
case 8:
|
|
31619
|
+
if (tag !== 66) {
|
|
31620
|
+
break;
|
|
31621
|
+
}
|
|
31622
|
+
message.backchannel_logout_uri = reader.string();
|
|
31623
|
+
continue;
|
|
31624
|
+
case 9:
|
|
31625
|
+
if (tag !== 74) {
|
|
31626
|
+
break;
|
|
31627
|
+
}
|
|
31628
|
+
message.client_credentials_grant_access_token_lifespan = reader.string();
|
|
31629
|
+
continue;
|
|
31630
|
+
case 10:
|
|
31631
|
+
if (tag !== 82) {
|
|
31632
|
+
break;
|
|
31633
|
+
}
|
|
31634
|
+
message.client_id = reader.string();
|
|
31635
|
+
continue;
|
|
31636
|
+
case 11:
|
|
31637
|
+
if (tag !== 90) {
|
|
31638
|
+
break;
|
|
31639
|
+
}
|
|
31640
|
+
message.client_name = reader.string();
|
|
31641
|
+
continue;
|
|
31642
|
+
case 12:
|
|
31643
|
+
if (tag !== 98) {
|
|
31644
|
+
break;
|
|
31645
|
+
}
|
|
31646
|
+
message.client_secret = reader.string();
|
|
31647
|
+
continue;
|
|
31648
|
+
case 13:
|
|
31649
|
+
if (tag !== 104) {
|
|
31650
|
+
break;
|
|
31651
|
+
}
|
|
31652
|
+
message.client_secret_expires_at = reader.int32();
|
|
31653
|
+
continue;
|
|
31654
|
+
case 14:
|
|
31655
|
+
if (tag !== 114) {
|
|
31656
|
+
break;
|
|
31657
|
+
}
|
|
31658
|
+
message.client_uri = reader.string();
|
|
31659
|
+
continue;
|
|
31660
|
+
case 15:
|
|
31661
|
+
if (tag !== 122) {
|
|
31662
|
+
break;
|
|
31663
|
+
}
|
|
31664
|
+
message.contacts.push(reader.string());
|
|
31665
|
+
continue;
|
|
31666
|
+
case 16:
|
|
31667
|
+
if (tag !== 130) {
|
|
31668
|
+
break;
|
|
31669
|
+
}
|
|
31670
|
+
message.created_at = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
31671
|
+
continue;
|
|
31672
|
+
case 17:
|
|
31673
|
+
if (tag !== 136) {
|
|
31674
|
+
break;
|
|
31675
|
+
}
|
|
31676
|
+
message.frontchannel_logout_session_required = reader.bool();
|
|
31677
|
+
continue;
|
|
31678
|
+
case 18:
|
|
31679
|
+
if (tag !== 146) {
|
|
31680
|
+
break;
|
|
31681
|
+
}
|
|
31682
|
+
message.frontchannel_logout_uri = reader.string();
|
|
31683
|
+
continue;
|
|
31684
|
+
case 19:
|
|
31685
|
+
if (tag !== 154) {
|
|
31686
|
+
break;
|
|
31687
|
+
}
|
|
31688
|
+
message.grant_types.push(reader.string());
|
|
31689
|
+
continue;
|
|
31690
|
+
case 20:
|
|
31691
|
+
if (tag !== 162) {
|
|
31692
|
+
break;
|
|
31693
|
+
}
|
|
31694
|
+
message.implicit_grant_access_token_lifespan = reader.string();
|
|
31695
|
+
continue;
|
|
31696
|
+
case 21:
|
|
31697
|
+
if (tag !== 170) {
|
|
31698
|
+
break;
|
|
31699
|
+
}
|
|
31700
|
+
message.implicit_grant_id_token_lifespan = reader.string();
|
|
31701
|
+
continue;
|
|
31702
|
+
case 22:
|
|
31703
|
+
if (tag !== 178) {
|
|
31704
|
+
break;
|
|
31705
|
+
}
|
|
31706
|
+
message.jwks.push(reader.string());
|
|
31707
|
+
continue;
|
|
31708
|
+
case 23:
|
|
31709
|
+
if (tag !== 186) {
|
|
31710
|
+
break;
|
|
31711
|
+
}
|
|
31712
|
+
message.jwks_uri = reader.string();
|
|
31713
|
+
continue;
|
|
31714
|
+
case 24:
|
|
31715
|
+
if (tag !== 194) {
|
|
31716
|
+
break;
|
|
31717
|
+
}
|
|
31718
|
+
message.jwt_bearer_grant_access_token_lifespan = reader.string();
|
|
31719
|
+
continue;
|
|
31720
|
+
case 25:
|
|
31721
|
+
if (tag !== 202) {
|
|
31722
|
+
break;
|
|
31723
|
+
}
|
|
31724
|
+
message.logo_uri = reader.string();
|
|
31725
|
+
continue;
|
|
31726
|
+
case 26:
|
|
31727
|
+
if (tag !== 210) {
|
|
31728
|
+
break;
|
|
31729
|
+
}
|
|
31730
|
+
message.owner = reader.string();
|
|
31731
|
+
continue;
|
|
31732
|
+
case 27:
|
|
31733
|
+
if (tag !== 218) {
|
|
31734
|
+
break;
|
|
31735
|
+
}
|
|
31736
|
+
message.policy_uri = reader.string();
|
|
31737
|
+
continue;
|
|
31738
|
+
case 28:
|
|
31739
|
+
if (tag !== 226) {
|
|
31740
|
+
break;
|
|
31741
|
+
}
|
|
31742
|
+
message.post_logout_redirect_uris.push(reader.string());
|
|
31743
|
+
continue;
|
|
31744
|
+
case 29:
|
|
31745
|
+
if (tag !== 234) {
|
|
31746
|
+
break;
|
|
31747
|
+
}
|
|
31748
|
+
message.redirect_uris.push(reader.string());
|
|
31749
|
+
continue;
|
|
31750
|
+
case 30:
|
|
31751
|
+
if (tag !== 242) {
|
|
31752
|
+
break;
|
|
31753
|
+
}
|
|
31754
|
+
message.refresh_token_grant_access_token_lifespan = reader.string();
|
|
31755
|
+
continue;
|
|
31756
|
+
case 31:
|
|
31757
|
+
if (tag !== 250) {
|
|
31758
|
+
break;
|
|
31759
|
+
}
|
|
31760
|
+
message.refresh_token_grant_id_token_lifespan = reader.string();
|
|
31761
|
+
continue;
|
|
31762
|
+
case 32:
|
|
31763
|
+
if (tag !== 258) {
|
|
31764
|
+
break;
|
|
31765
|
+
}
|
|
31766
|
+
message.refresh_token_grant_refresh_token_lifespan = reader.string();
|
|
31767
|
+
continue;
|
|
31768
|
+
case 33:
|
|
31769
|
+
if (tag !== 266) {
|
|
31770
|
+
break;
|
|
31771
|
+
}
|
|
31772
|
+
message.registration_access_token = reader.string();
|
|
31773
|
+
continue;
|
|
31774
|
+
case 34:
|
|
31775
|
+
if (tag !== 274) {
|
|
31776
|
+
break;
|
|
31777
|
+
}
|
|
31778
|
+
message.registration_client_uri = reader.string();
|
|
31779
|
+
continue;
|
|
31780
|
+
case 35:
|
|
31781
|
+
if (tag !== 282) {
|
|
31782
|
+
break;
|
|
31783
|
+
}
|
|
31784
|
+
message.request_object_signing_alg = reader.string();
|
|
31785
|
+
continue;
|
|
31786
|
+
case 36:
|
|
31787
|
+
if (tag !== 290) {
|
|
31788
|
+
break;
|
|
31789
|
+
}
|
|
31790
|
+
message.request_uris.push(reader.string());
|
|
31791
|
+
continue;
|
|
31792
|
+
case 37:
|
|
31793
|
+
if (tag !== 298) {
|
|
31794
|
+
break;
|
|
31795
|
+
}
|
|
31796
|
+
message.response_types.push(reader.string());
|
|
31797
|
+
continue;
|
|
31798
|
+
case 38:
|
|
31799
|
+
if (tag !== 306) {
|
|
31800
|
+
break;
|
|
31801
|
+
}
|
|
31802
|
+
message.scope = reader.string();
|
|
31803
|
+
continue;
|
|
31804
|
+
case 39:
|
|
31805
|
+
if (tag !== 314) {
|
|
31806
|
+
break;
|
|
31807
|
+
}
|
|
31808
|
+
message.sector_identifier_uri = reader.string();
|
|
31809
|
+
continue;
|
|
31810
|
+
case 40:
|
|
31811
|
+
if (tag !== 320) {
|
|
31812
|
+
break;
|
|
31813
|
+
}
|
|
31814
|
+
message.skip_consent = reader.bool();
|
|
31815
|
+
continue;
|
|
31816
|
+
case 41:
|
|
31817
|
+
if (tag !== 328) {
|
|
31818
|
+
break;
|
|
31819
|
+
}
|
|
31820
|
+
message.skip_logout_consent = reader.bool();
|
|
31821
|
+
continue;
|
|
31822
|
+
case 42:
|
|
31823
|
+
if (tag !== 338) {
|
|
31824
|
+
break;
|
|
31825
|
+
}
|
|
31826
|
+
message.subject_type = reader.string();
|
|
31827
|
+
continue;
|
|
31828
|
+
case 43:
|
|
31829
|
+
if (tag !== 346) {
|
|
31830
|
+
break;
|
|
31831
|
+
}
|
|
31832
|
+
message.token_endpoint_auth_method = reader.string();
|
|
31833
|
+
continue;
|
|
31834
|
+
case 44:
|
|
31835
|
+
if (tag !== 354) {
|
|
31836
|
+
break;
|
|
31837
|
+
}
|
|
31838
|
+
message.token_endpoint_auth_signing_alg = reader.string();
|
|
31839
|
+
continue;
|
|
31840
|
+
case 45:
|
|
31841
|
+
if (tag !== 362) {
|
|
31842
|
+
break;
|
|
31843
|
+
}
|
|
31844
|
+
message.tos_uri = reader.string();
|
|
31845
|
+
continue;
|
|
31846
|
+
case 46:
|
|
31847
|
+
if (tag !== 370) {
|
|
31848
|
+
break;
|
|
31849
|
+
}
|
|
31850
|
+
message.updated_at = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
31851
|
+
continue;
|
|
31852
|
+
case 47:
|
|
31853
|
+
if (tag !== 378) {
|
|
31854
|
+
break;
|
|
31855
|
+
}
|
|
31856
|
+
message.userinfo_signed_response_alg = reader.string();
|
|
31857
|
+
continue;
|
|
31858
|
+
}
|
|
31859
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31860
|
+
break;
|
|
31861
|
+
}
|
|
31862
|
+
reader.skipType(tag & 7);
|
|
31863
|
+
}
|
|
31864
|
+
return message;
|
|
31865
|
+
},
|
|
31866
|
+
fromJSON(object) {
|
|
31867
|
+
return {
|
|
31868
|
+
access_token_strategy: isSet(object.access_token_strategy) ? globalThis.String(object.access_token_strategy) : "",
|
|
31869
|
+
allowed_cors_origins: globalThis.Array.isArray(object?.allowed_cors_origins)
|
|
31870
|
+
? object.allowed_cors_origins.map((e) => globalThis.String(e))
|
|
31871
|
+
: [],
|
|
31872
|
+
audience: globalThis.Array.isArray(object?.audience) ? object.audience.map((e) => globalThis.String(e)) : [],
|
|
31873
|
+
authorization_code_grant_access_token_lifespan: isSet(object.authorization_code_grant_access_token_lifespan)
|
|
31874
|
+
? globalThis.String(object.authorization_code_grant_access_token_lifespan)
|
|
31875
|
+
: "",
|
|
31876
|
+
authorization_code_grant_id_token_lifespan: isSet(object.authorization_code_grant_id_token_lifespan)
|
|
31877
|
+
? globalThis.String(object.authorization_code_grant_id_token_lifespan)
|
|
31878
|
+
: "",
|
|
31879
|
+
authorization_code_grant_refresh_token_lifespan: isSet(object.authorization_code_grant_refresh_token_lifespan)
|
|
31880
|
+
? globalThis.String(object.authorization_code_grant_refresh_token_lifespan)
|
|
31881
|
+
: "",
|
|
31882
|
+
backchannel_logout_session_required: isSet(object.backchannel_logout_session_required)
|
|
31883
|
+
? globalThis.Boolean(object.backchannel_logout_session_required)
|
|
31884
|
+
: false,
|
|
31885
|
+
backchannel_logout_uri: isSet(object.backchannel_logout_uri)
|
|
31886
|
+
? globalThis.String(object.backchannel_logout_uri)
|
|
31887
|
+
: "",
|
|
31888
|
+
client_credentials_grant_access_token_lifespan: isSet(object.client_credentials_grant_access_token_lifespan)
|
|
31889
|
+
? globalThis.String(object.client_credentials_grant_access_token_lifespan)
|
|
31890
|
+
: "",
|
|
31891
|
+
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
31892
|
+
client_name: isSet(object.client_name) ? globalThis.String(object.client_name) : "",
|
|
31893
|
+
client_secret: isSet(object.client_secret) ? globalThis.String(object.client_secret) : "",
|
|
31894
|
+
client_secret_expires_at: isSet(object.client_secret_expires_at)
|
|
31895
|
+
? globalThis.Number(object.client_secret_expires_at)
|
|
31896
|
+
: 0,
|
|
31897
|
+
client_uri: isSet(object.client_uri) ? globalThis.String(object.client_uri) : "",
|
|
31898
|
+
contacts: globalThis.Array.isArray(object?.contacts)
|
|
31899
|
+
? object.contacts.map((e) => globalThis.String(e))
|
|
31900
|
+
: [],
|
|
31901
|
+
created_at: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
31902
|
+
frontchannel_logout_session_required: isSet(object.frontchannel_logout_session_required)
|
|
31903
|
+
? globalThis.Boolean(object.frontchannel_logout_session_required)
|
|
31904
|
+
: false,
|
|
31905
|
+
frontchannel_logout_uri: isSet(object.frontchannel_logout_uri)
|
|
31906
|
+
? globalThis.String(object.frontchannel_logout_uri)
|
|
31907
|
+
: "",
|
|
31908
|
+
grant_types: globalThis.Array.isArray(object?.grant_types)
|
|
31909
|
+
? object.grant_types.map((e) => globalThis.String(e))
|
|
31910
|
+
: [],
|
|
31911
|
+
implicit_grant_access_token_lifespan: isSet(object.implicit_grant_access_token_lifespan)
|
|
31912
|
+
? globalThis.String(object.implicit_grant_access_token_lifespan)
|
|
31913
|
+
: "",
|
|
31914
|
+
implicit_grant_id_token_lifespan: isSet(object.implicit_grant_id_token_lifespan)
|
|
31915
|
+
? globalThis.String(object.implicit_grant_id_token_lifespan)
|
|
31916
|
+
: "",
|
|
31917
|
+
jwks: globalThis.Array.isArray(object?.jwks)
|
|
31918
|
+
? object.jwks.map((e) => globalThis.String(e))
|
|
31919
|
+
: [],
|
|
31920
|
+
jwks_uri: isSet(object.jwks_uri) ? globalThis.String(object.jwks_uri) : "",
|
|
31921
|
+
jwt_bearer_grant_access_token_lifespan: isSet(object.jwt_bearer_grant_access_token_lifespan)
|
|
31922
|
+
? globalThis.String(object.jwt_bearer_grant_access_token_lifespan)
|
|
31923
|
+
: "",
|
|
31924
|
+
logo_uri: isSet(object.logo_uri) ? globalThis.String(object.logo_uri) : "",
|
|
31925
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
31926
|
+
policy_uri: isSet(object.policy_uri) ? globalThis.String(object.policy_uri) : "",
|
|
31927
|
+
post_logout_redirect_uris: globalThis.Array.isArray(object?.post_logout_redirect_uris)
|
|
31928
|
+
? object.post_logout_redirect_uris.map((e) => globalThis.String(e))
|
|
31929
|
+
: [],
|
|
31930
|
+
redirect_uris: globalThis.Array.isArray(object?.redirect_uris)
|
|
31931
|
+
? object.redirect_uris.map((e) => globalThis.String(e))
|
|
31932
|
+
: [],
|
|
31933
|
+
refresh_token_grant_access_token_lifespan: isSet(object.refresh_token_grant_access_token_lifespan)
|
|
31934
|
+
? globalThis.String(object.refresh_token_grant_access_token_lifespan)
|
|
31935
|
+
: "",
|
|
31936
|
+
refresh_token_grant_id_token_lifespan: isSet(object.refresh_token_grant_id_token_lifespan)
|
|
31937
|
+
? globalThis.String(object.refresh_token_grant_id_token_lifespan)
|
|
31938
|
+
: "",
|
|
31939
|
+
refresh_token_grant_refresh_token_lifespan: isSet(object.refresh_token_grant_refresh_token_lifespan)
|
|
31940
|
+
? globalThis.String(object.refresh_token_grant_refresh_token_lifespan)
|
|
31941
|
+
: "",
|
|
31942
|
+
registration_access_token: isSet(object.registration_access_token)
|
|
31943
|
+
? globalThis.String(object.registration_access_token)
|
|
31944
|
+
: "",
|
|
31945
|
+
registration_client_uri: isSet(object.registration_client_uri)
|
|
31946
|
+
? globalThis.String(object.registration_client_uri)
|
|
31947
|
+
: "",
|
|
31948
|
+
request_object_signing_alg: isSet(object.request_object_signing_alg)
|
|
31949
|
+
? globalThis.String(object.request_object_signing_alg)
|
|
31950
|
+
: "",
|
|
31951
|
+
request_uris: globalThis.Array.isArray(object?.request_uris)
|
|
31952
|
+
? object.request_uris.map((e) => globalThis.String(e))
|
|
31953
|
+
: [],
|
|
31954
|
+
response_types: globalThis.Array.isArray(object?.response_types)
|
|
31955
|
+
? object.response_types.map((e) => globalThis.String(e))
|
|
31956
|
+
: [],
|
|
31957
|
+
scope: isSet(object.scope) ? globalThis.String(object.scope) : "",
|
|
31958
|
+
sector_identifier_uri: isSet(object.sector_identifier_uri) ? globalThis.String(object.sector_identifier_uri) : "",
|
|
31959
|
+
skip_consent: isSet(object.skip_consent) ? globalThis.Boolean(object.skip_consent) : false,
|
|
31960
|
+
skip_logout_consent: isSet(object.skip_logout_consent) ? globalThis.Boolean(object.skip_logout_consent) : false,
|
|
31961
|
+
subject_type: isSet(object.subject_type) ? globalThis.String(object.subject_type) : "",
|
|
31962
|
+
token_endpoint_auth_method: isSet(object.token_endpoint_auth_method)
|
|
31963
|
+
? globalThis.String(object.token_endpoint_auth_method)
|
|
31964
|
+
: "",
|
|
31965
|
+
token_endpoint_auth_signing_alg: isSet(object.token_endpoint_auth_signing_alg)
|
|
31966
|
+
? globalThis.String(object.token_endpoint_auth_signing_alg)
|
|
31967
|
+
: "",
|
|
31968
|
+
tos_uri: isSet(object.tos_uri) ? globalThis.String(object.tos_uri) : "",
|
|
31969
|
+
updated_at: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
31970
|
+
userinfo_signed_response_alg: isSet(object.userinfo_signed_response_alg)
|
|
31971
|
+
? globalThis.String(object.userinfo_signed_response_alg)
|
|
31972
|
+
: "",
|
|
31973
|
+
};
|
|
31974
|
+
},
|
|
31975
|
+
toJSON(message) {
|
|
31976
|
+
const obj = {};
|
|
31977
|
+
if (message.access_token_strategy !== "") {
|
|
31978
|
+
obj.access_token_strategy = message.access_token_strategy;
|
|
31979
|
+
}
|
|
31980
|
+
if (message.allowed_cors_origins?.length) {
|
|
31981
|
+
obj.allowed_cors_origins = message.allowed_cors_origins;
|
|
31982
|
+
}
|
|
31983
|
+
if (message.audience?.length) {
|
|
31984
|
+
obj.audience = message.audience;
|
|
31985
|
+
}
|
|
31986
|
+
if (message.authorization_code_grant_access_token_lifespan !== "") {
|
|
31987
|
+
obj.authorization_code_grant_access_token_lifespan = message.authorization_code_grant_access_token_lifespan;
|
|
31988
|
+
}
|
|
31989
|
+
if (message.authorization_code_grant_id_token_lifespan !== "") {
|
|
31990
|
+
obj.authorization_code_grant_id_token_lifespan = message.authorization_code_grant_id_token_lifespan;
|
|
31991
|
+
}
|
|
31992
|
+
if (message.authorization_code_grant_refresh_token_lifespan !== "") {
|
|
31993
|
+
obj.authorization_code_grant_refresh_token_lifespan = message.authorization_code_grant_refresh_token_lifespan;
|
|
31994
|
+
}
|
|
31995
|
+
if (message.backchannel_logout_session_required !== false) {
|
|
31996
|
+
obj.backchannel_logout_session_required = message.backchannel_logout_session_required;
|
|
31997
|
+
}
|
|
31998
|
+
if (message.backchannel_logout_uri !== "") {
|
|
31999
|
+
obj.backchannel_logout_uri = message.backchannel_logout_uri;
|
|
32000
|
+
}
|
|
32001
|
+
if (message.client_credentials_grant_access_token_lifespan !== "") {
|
|
32002
|
+
obj.client_credentials_grant_access_token_lifespan = message.client_credentials_grant_access_token_lifespan;
|
|
32003
|
+
}
|
|
32004
|
+
if (message.client_id !== "") {
|
|
32005
|
+
obj.client_id = message.client_id;
|
|
32006
|
+
}
|
|
32007
|
+
if (message.client_name !== "") {
|
|
32008
|
+
obj.client_name = message.client_name;
|
|
32009
|
+
}
|
|
32010
|
+
if (message.client_secret !== "") {
|
|
32011
|
+
obj.client_secret = message.client_secret;
|
|
32012
|
+
}
|
|
32013
|
+
if (message.client_secret_expires_at !== 0) {
|
|
32014
|
+
obj.client_secret_expires_at = Math.round(message.client_secret_expires_at);
|
|
32015
|
+
}
|
|
32016
|
+
if (message.client_uri !== "") {
|
|
32017
|
+
obj.client_uri = message.client_uri;
|
|
32018
|
+
}
|
|
32019
|
+
if (message.contacts?.length) {
|
|
32020
|
+
obj.contacts = message.contacts;
|
|
32021
|
+
}
|
|
32022
|
+
if (message.created_at !== undefined) {
|
|
32023
|
+
obj.created_at = message.created_at.toISOString();
|
|
32024
|
+
}
|
|
32025
|
+
if (message.frontchannel_logout_session_required !== false) {
|
|
32026
|
+
obj.frontchannel_logout_session_required = message.frontchannel_logout_session_required;
|
|
32027
|
+
}
|
|
32028
|
+
if (message.frontchannel_logout_uri !== "") {
|
|
32029
|
+
obj.frontchannel_logout_uri = message.frontchannel_logout_uri;
|
|
32030
|
+
}
|
|
32031
|
+
if (message.grant_types?.length) {
|
|
32032
|
+
obj.grant_types = message.grant_types;
|
|
32033
|
+
}
|
|
32034
|
+
if (message.implicit_grant_access_token_lifespan !== "") {
|
|
32035
|
+
obj.implicit_grant_access_token_lifespan = message.implicit_grant_access_token_lifespan;
|
|
32036
|
+
}
|
|
32037
|
+
if (message.implicit_grant_id_token_lifespan !== "") {
|
|
32038
|
+
obj.implicit_grant_id_token_lifespan = message.implicit_grant_id_token_lifespan;
|
|
32039
|
+
}
|
|
32040
|
+
if (message.jwks?.length) {
|
|
32041
|
+
obj.jwks = message.jwks;
|
|
32042
|
+
}
|
|
32043
|
+
if (message.jwks_uri !== "") {
|
|
32044
|
+
obj.jwks_uri = message.jwks_uri;
|
|
32045
|
+
}
|
|
32046
|
+
if (message.jwt_bearer_grant_access_token_lifespan !== "") {
|
|
32047
|
+
obj.jwt_bearer_grant_access_token_lifespan = message.jwt_bearer_grant_access_token_lifespan;
|
|
32048
|
+
}
|
|
32049
|
+
if (message.logo_uri !== "") {
|
|
32050
|
+
obj.logo_uri = message.logo_uri;
|
|
32051
|
+
}
|
|
32052
|
+
if (message.owner !== "") {
|
|
32053
|
+
obj.owner = message.owner;
|
|
32054
|
+
}
|
|
32055
|
+
if (message.policy_uri !== "") {
|
|
32056
|
+
obj.policy_uri = message.policy_uri;
|
|
32057
|
+
}
|
|
32058
|
+
if (message.post_logout_redirect_uris?.length) {
|
|
32059
|
+
obj.post_logout_redirect_uris = message.post_logout_redirect_uris;
|
|
32060
|
+
}
|
|
32061
|
+
if (message.redirect_uris?.length) {
|
|
32062
|
+
obj.redirect_uris = message.redirect_uris;
|
|
32063
|
+
}
|
|
32064
|
+
if (message.refresh_token_grant_access_token_lifespan !== "") {
|
|
32065
|
+
obj.refresh_token_grant_access_token_lifespan = message.refresh_token_grant_access_token_lifespan;
|
|
32066
|
+
}
|
|
32067
|
+
if (message.refresh_token_grant_id_token_lifespan !== "") {
|
|
32068
|
+
obj.refresh_token_grant_id_token_lifespan = message.refresh_token_grant_id_token_lifespan;
|
|
32069
|
+
}
|
|
32070
|
+
if (message.refresh_token_grant_refresh_token_lifespan !== "") {
|
|
32071
|
+
obj.refresh_token_grant_refresh_token_lifespan = message.refresh_token_grant_refresh_token_lifespan;
|
|
32072
|
+
}
|
|
32073
|
+
if (message.registration_access_token !== "") {
|
|
32074
|
+
obj.registration_access_token = message.registration_access_token;
|
|
32075
|
+
}
|
|
32076
|
+
if (message.registration_client_uri !== "") {
|
|
32077
|
+
obj.registration_client_uri = message.registration_client_uri;
|
|
32078
|
+
}
|
|
32079
|
+
if (message.request_object_signing_alg !== "") {
|
|
32080
|
+
obj.request_object_signing_alg = message.request_object_signing_alg;
|
|
32081
|
+
}
|
|
32082
|
+
if (message.request_uris?.length) {
|
|
32083
|
+
obj.request_uris = message.request_uris;
|
|
32084
|
+
}
|
|
32085
|
+
if (message.response_types?.length) {
|
|
32086
|
+
obj.response_types = message.response_types;
|
|
32087
|
+
}
|
|
32088
|
+
if (message.scope !== "") {
|
|
32089
|
+
obj.scope = message.scope;
|
|
32090
|
+
}
|
|
32091
|
+
if (message.sector_identifier_uri !== "") {
|
|
32092
|
+
obj.sector_identifier_uri = message.sector_identifier_uri;
|
|
32093
|
+
}
|
|
32094
|
+
if (message.skip_consent !== false) {
|
|
32095
|
+
obj.skip_consent = message.skip_consent;
|
|
32096
|
+
}
|
|
32097
|
+
if (message.skip_logout_consent !== false) {
|
|
32098
|
+
obj.skip_logout_consent = message.skip_logout_consent;
|
|
32099
|
+
}
|
|
32100
|
+
if (message.subject_type !== "") {
|
|
32101
|
+
obj.subject_type = message.subject_type;
|
|
32102
|
+
}
|
|
32103
|
+
if (message.token_endpoint_auth_method !== "") {
|
|
32104
|
+
obj.token_endpoint_auth_method = message.token_endpoint_auth_method;
|
|
32105
|
+
}
|
|
32106
|
+
if (message.token_endpoint_auth_signing_alg !== "") {
|
|
32107
|
+
obj.token_endpoint_auth_signing_alg = message.token_endpoint_auth_signing_alg;
|
|
32108
|
+
}
|
|
32109
|
+
if (message.tos_uri !== "") {
|
|
32110
|
+
obj.tos_uri = message.tos_uri;
|
|
32111
|
+
}
|
|
32112
|
+
if (message.updated_at !== undefined) {
|
|
32113
|
+
obj.updated_at = message.updated_at.toISOString();
|
|
32114
|
+
}
|
|
32115
|
+
if (message.userinfo_signed_response_alg !== "") {
|
|
32116
|
+
obj.userinfo_signed_response_alg = message.userinfo_signed_response_alg;
|
|
32117
|
+
}
|
|
32118
|
+
return obj;
|
|
32119
|
+
},
|
|
32120
|
+
create(base) {
|
|
32121
|
+
return MezonOauthClient.fromPartial(base ?? {});
|
|
32122
|
+
},
|
|
32123
|
+
fromPartial(object) {
|
|
32124
|
+
const message = createBaseMezonOauthClient();
|
|
32125
|
+
message.access_token_strategy = object.access_token_strategy ?? "";
|
|
32126
|
+
message.allowed_cors_origins = object.allowed_cors_origins?.map((e) => e) || [];
|
|
32127
|
+
message.audience = object.audience?.map((e) => e) || [];
|
|
32128
|
+
message.authorization_code_grant_access_token_lifespan = object.authorization_code_grant_access_token_lifespan ??
|
|
32129
|
+
"";
|
|
32130
|
+
message.authorization_code_grant_id_token_lifespan = object.authorization_code_grant_id_token_lifespan ?? "";
|
|
32131
|
+
message.authorization_code_grant_refresh_token_lifespan = object.authorization_code_grant_refresh_token_lifespan ??
|
|
32132
|
+
"";
|
|
32133
|
+
message.backchannel_logout_session_required = object.backchannel_logout_session_required ?? false;
|
|
32134
|
+
message.backchannel_logout_uri = object.backchannel_logout_uri ?? "";
|
|
32135
|
+
message.client_credentials_grant_access_token_lifespan = object.client_credentials_grant_access_token_lifespan ??
|
|
32136
|
+
"";
|
|
32137
|
+
message.client_id = object.client_id ?? "";
|
|
32138
|
+
message.client_name = object.client_name ?? "";
|
|
32139
|
+
message.client_secret = object.client_secret ?? "";
|
|
32140
|
+
message.client_secret_expires_at = object.client_secret_expires_at ?? 0;
|
|
32141
|
+
message.client_uri = object.client_uri ?? "";
|
|
32142
|
+
message.contacts = object.contacts?.map((e) => e) || [];
|
|
32143
|
+
message.created_at = object.created_at ?? undefined;
|
|
32144
|
+
message.frontchannel_logout_session_required = object.frontchannel_logout_session_required ?? false;
|
|
32145
|
+
message.frontchannel_logout_uri = object.frontchannel_logout_uri ?? "";
|
|
32146
|
+
message.grant_types = object.grant_types?.map((e) => e) || [];
|
|
32147
|
+
message.implicit_grant_access_token_lifespan = object.implicit_grant_access_token_lifespan ?? "";
|
|
32148
|
+
message.implicit_grant_id_token_lifespan = object.implicit_grant_id_token_lifespan ?? "";
|
|
32149
|
+
message.jwks = object.jwks?.map((e) => e) || [];
|
|
32150
|
+
message.jwks_uri = object.jwks_uri ?? "";
|
|
32151
|
+
message.jwt_bearer_grant_access_token_lifespan = object.jwt_bearer_grant_access_token_lifespan ?? "";
|
|
32152
|
+
message.logo_uri = object.logo_uri ?? "";
|
|
32153
|
+
message.owner = object.owner ?? "";
|
|
32154
|
+
message.policy_uri = object.policy_uri ?? "";
|
|
32155
|
+
message.post_logout_redirect_uris = object.post_logout_redirect_uris?.map((e) => e) || [];
|
|
32156
|
+
message.redirect_uris = object.redirect_uris?.map((e) => e) || [];
|
|
32157
|
+
message.refresh_token_grant_access_token_lifespan = object.refresh_token_grant_access_token_lifespan ?? "";
|
|
32158
|
+
message.refresh_token_grant_id_token_lifespan = object.refresh_token_grant_id_token_lifespan ?? "";
|
|
32159
|
+
message.refresh_token_grant_refresh_token_lifespan = object.refresh_token_grant_refresh_token_lifespan ?? "";
|
|
32160
|
+
message.registration_access_token = object.registration_access_token ?? "";
|
|
32161
|
+
message.registration_client_uri = object.registration_client_uri ?? "";
|
|
32162
|
+
message.request_object_signing_alg = object.request_object_signing_alg ?? "";
|
|
32163
|
+
message.request_uris = object.request_uris?.map((e) => e) || [];
|
|
32164
|
+
message.response_types = object.response_types?.map((e) => e) || [];
|
|
32165
|
+
message.scope = object.scope ?? "";
|
|
32166
|
+
message.sector_identifier_uri = object.sector_identifier_uri ?? "";
|
|
32167
|
+
message.skip_consent = object.skip_consent ?? false;
|
|
32168
|
+
message.skip_logout_consent = object.skip_logout_consent ?? false;
|
|
32169
|
+
message.subject_type = object.subject_type ?? "";
|
|
32170
|
+
message.token_endpoint_auth_method = object.token_endpoint_auth_method ?? "";
|
|
32171
|
+
message.token_endpoint_auth_signing_alg = object.token_endpoint_auth_signing_alg ?? "";
|
|
32172
|
+
message.tos_uri = object.tos_uri ?? "";
|
|
32173
|
+
message.updated_at = object.updated_at ?? undefined;
|
|
32174
|
+
message.userinfo_signed_response_alg = object.userinfo_signed_response_alg ?? "";
|
|
32175
|
+
return message;
|
|
32176
|
+
},
|
|
32177
|
+
};
|
|
32178
|
+
function createBaseMezonOauthClientList() {
|
|
32179
|
+
return { listMezonOauthClient: [] };
|
|
32180
|
+
}
|
|
32181
|
+
export const MezonOauthClientList = {
|
|
32182
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
32183
|
+
for (const v of message.listMezonOauthClient) {
|
|
32184
|
+
MezonOauthClient.encode(v, writer.uint32(10).fork()).ldelim();
|
|
32185
|
+
}
|
|
32186
|
+
return writer;
|
|
32187
|
+
},
|
|
32188
|
+
decode(input, length) {
|
|
32189
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
32190
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32191
|
+
const message = createBaseMezonOauthClientList();
|
|
32192
|
+
while (reader.pos < end) {
|
|
32193
|
+
const tag = reader.uint32();
|
|
32194
|
+
switch (tag >>> 3) {
|
|
32195
|
+
case 1:
|
|
32196
|
+
if (tag !== 10) {
|
|
32197
|
+
break;
|
|
32198
|
+
}
|
|
32199
|
+
message.listMezonOauthClient.push(MezonOauthClient.decode(reader, reader.uint32()));
|
|
32200
|
+
continue;
|
|
32201
|
+
}
|
|
32202
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
32203
|
+
break;
|
|
32204
|
+
}
|
|
32205
|
+
reader.skipType(tag & 7);
|
|
32206
|
+
}
|
|
32207
|
+
return message;
|
|
32208
|
+
},
|
|
32209
|
+
fromJSON(object) {
|
|
32210
|
+
return {
|
|
32211
|
+
listMezonOauthClient: globalThis.Array.isArray(object?.listMezonOauthClient)
|
|
32212
|
+
? object.listMezonOauthClient.map((e) => MezonOauthClient.fromJSON(e))
|
|
32213
|
+
: [],
|
|
32214
|
+
};
|
|
32215
|
+
},
|
|
32216
|
+
toJSON(message) {
|
|
32217
|
+
const obj = {};
|
|
32218
|
+
if (message.listMezonOauthClient?.length) {
|
|
32219
|
+
obj.listMezonOauthClient = message.listMezonOauthClient.map((e) => MezonOauthClient.toJSON(e));
|
|
32220
|
+
}
|
|
32221
|
+
return obj;
|
|
32222
|
+
},
|
|
32223
|
+
create(base) {
|
|
32224
|
+
return MezonOauthClientList.fromPartial(base ?? {});
|
|
32225
|
+
},
|
|
32226
|
+
fromPartial(object) {
|
|
32227
|
+
const message = createBaseMezonOauthClientList();
|
|
32228
|
+
message.listMezonOauthClient = object.listMezonOauthClient?.map((e) => MezonOauthClient.fromPartial(e)) || [];
|
|
32229
|
+
return message;
|
|
32230
|
+
},
|
|
32231
|
+
};
|
|
32232
|
+
function createBaseGetMezonOauthClientRequest() {
|
|
32233
|
+
return { client_id: "" };
|
|
32234
|
+
}
|
|
32235
|
+
export const GetMezonOauthClientRequest = {
|
|
32236
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
32237
|
+
if (message.client_id !== "") {
|
|
32238
|
+
writer.uint32(10).string(message.client_id);
|
|
32239
|
+
}
|
|
32240
|
+
return writer;
|
|
32241
|
+
},
|
|
32242
|
+
decode(input, length) {
|
|
32243
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
32244
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32245
|
+
const message = createBaseGetMezonOauthClientRequest();
|
|
32246
|
+
while (reader.pos < end) {
|
|
32247
|
+
const tag = reader.uint32();
|
|
32248
|
+
switch (tag >>> 3) {
|
|
32249
|
+
case 1:
|
|
32250
|
+
if (tag !== 10) {
|
|
32251
|
+
break;
|
|
32252
|
+
}
|
|
32253
|
+
message.client_id = reader.string();
|
|
32254
|
+
continue;
|
|
32255
|
+
}
|
|
32256
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
32257
|
+
break;
|
|
32258
|
+
}
|
|
32259
|
+
reader.skipType(tag & 7);
|
|
32260
|
+
}
|
|
32261
|
+
return message;
|
|
32262
|
+
},
|
|
32263
|
+
fromJSON(object) {
|
|
32264
|
+
return { client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "" };
|
|
32265
|
+
},
|
|
32266
|
+
toJSON(message) {
|
|
32267
|
+
const obj = {};
|
|
32268
|
+
if (message.client_id !== "") {
|
|
32269
|
+
obj.client_id = message.client_id;
|
|
32270
|
+
}
|
|
32271
|
+
return obj;
|
|
32272
|
+
},
|
|
32273
|
+
create(base) {
|
|
32274
|
+
return GetMezonOauthClientRequest.fromPartial(base ?? {});
|
|
32275
|
+
},
|
|
32276
|
+
fromPartial(object) {
|
|
32277
|
+
const message = createBaseGetMezonOauthClientRequest();
|
|
32278
|
+
message.client_id = object.client_id ?? "";
|
|
32279
|
+
return message;
|
|
32280
|
+
},
|
|
32281
|
+
};
|
|
32282
|
+
function createBaseSearchThreadRequest() {
|
|
32283
|
+
return { clan_id: "", channel_id: "", label: "" };
|
|
32284
|
+
}
|
|
32285
|
+
export const SearchThreadRequest = {
|
|
32286
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
32287
|
+
if (message.clan_id !== "") {
|
|
32288
|
+
writer.uint32(10).string(message.clan_id);
|
|
32289
|
+
}
|
|
32290
|
+
if (message.channel_id !== "") {
|
|
32291
|
+
writer.uint32(18).string(message.channel_id);
|
|
32292
|
+
}
|
|
32293
|
+
if (message.label !== "") {
|
|
32294
|
+
writer.uint32(26).string(message.label);
|
|
32295
|
+
}
|
|
32296
|
+
return writer;
|
|
32297
|
+
},
|
|
32298
|
+
decode(input, length) {
|
|
32299
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
32300
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32301
|
+
const message = createBaseSearchThreadRequest();
|
|
32302
|
+
while (reader.pos < end) {
|
|
32303
|
+
const tag = reader.uint32();
|
|
32304
|
+
switch (tag >>> 3) {
|
|
32305
|
+
case 1:
|
|
32306
|
+
if (tag !== 10) {
|
|
32307
|
+
break;
|
|
32308
|
+
}
|
|
32309
|
+
message.clan_id = reader.string();
|
|
32310
|
+
continue;
|
|
32311
|
+
case 2:
|
|
32312
|
+
if (tag !== 18) {
|
|
32313
|
+
break;
|
|
32314
|
+
}
|
|
32315
|
+
message.channel_id = reader.string();
|
|
32316
|
+
continue;
|
|
32317
|
+
case 3:
|
|
32318
|
+
if (tag !== 26) {
|
|
32319
|
+
break;
|
|
32320
|
+
}
|
|
32321
|
+
message.label = reader.string();
|
|
32322
|
+
continue;
|
|
32323
|
+
}
|
|
32324
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
32325
|
+
break;
|
|
32326
|
+
}
|
|
32327
|
+
reader.skipType(tag & 7);
|
|
32328
|
+
}
|
|
32329
|
+
return message;
|
|
32330
|
+
},
|
|
32331
|
+
fromJSON(object) {
|
|
32332
|
+
return {
|
|
32333
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
32334
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
32335
|
+
label: isSet(object.label) ? globalThis.String(object.label) : "",
|
|
32336
|
+
};
|
|
32337
|
+
},
|
|
32338
|
+
toJSON(message) {
|
|
32339
|
+
const obj = {};
|
|
32340
|
+
if (message.clan_id !== "") {
|
|
32341
|
+
obj.clan_id = message.clan_id;
|
|
32342
|
+
}
|
|
32343
|
+
if (message.channel_id !== "") {
|
|
32344
|
+
obj.channel_id = message.channel_id;
|
|
32345
|
+
}
|
|
32346
|
+
if (message.label !== "") {
|
|
32347
|
+
obj.label = message.label;
|
|
32348
|
+
}
|
|
32349
|
+
return obj;
|
|
32350
|
+
},
|
|
32351
|
+
create(base) {
|
|
32352
|
+
return SearchThreadRequest.fromPartial(base ?? {});
|
|
32353
|
+
},
|
|
32354
|
+
fromPartial(object) {
|
|
32355
|
+
const message = createBaseSearchThreadRequest();
|
|
32356
|
+
message.clan_id = object.clan_id ?? "";
|
|
32357
|
+
message.channel_id = object.channel_id ?? "";
|
|
32358
|
+
message.label = object.label ?? "";
|
|
32359
|
+
return message;
|
|
32360
|
+
},
|
|
32361
|
+
};
|
|
32362
|
+
function createBaseGenerateHashChannelAppsRequest() {
|
|
32363
|
+
return { app_id: "" };
|
|
32364
|
+
}
|
|
32365
|
+
export const GenerateHashChannelAppsRequest = {
|
|
32366
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
32367
|
+
if (message.app_id !== "") {
|
|
32368
|
+
writer.uint32(10).string(message.app_id);
|
|
32369
|
+
}
|
|
32370
|
+
return writer;
|
|
32371
|
+
},
|
|
32372
|
+
decode(input, length) {
|
|
32373
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
32374
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32375
|
+
const message = createBaseGenerateHashChannelAppsRequest();
|
|
32376
|
+
while (reader.pos < end) {
|
|
32377
|
+
const tag = reader.uint32();
|
|
32378
|
+
switch (tag >>> 3) {
|
|
32379
|
+
case 1:
|
|
32380
|
+
if (tag !== 10) {
|
|
32381
|
+
break;
|
|
32382
|
+
}
|
|
32383
|
+
message.app_id = reader.string();
|
|
32384
|
+
continue;
|
|
32385
|
+
}
|
|
32386
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
32387
|
+
break;
|
|
32388
|
+
}
|
|
32389
|
+
reader.skipType(tag & 7);
|
|
32390
|
+
}
|
|
32391
|
+
return message;
|
|
32392
|
+
},
|
|
32393
|
+
fromJSON(object) {
|
|
32394
|
+
return { app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "" };
|
|
32395
|
+
},
|
|
32396
|
+
toJSON(message) {
|
|
32397
|
+
const obj = {};
|
|
32398
|
+
if (message.app_id !== "") {
|
|
32399
|
+
obj.app_id = message.app_id;
|
|
32400
|
+
}
|
|
32401
|
+
return obj;
|
|
32402
|
+
},
|
|
32403
|
+
create(base) {
|
|
32404
|
+
return GenerateHashChannelAppsRequest.fromPartial(base ?? {});
|
|
32405
|
+
},
|
|
32406
|
+
fromPartial(object) {
|
|
32407
|
+
const message = createBaseGenerateHashChannelAppsRequest();
|
|
32408
|
+
message.app_id = object.app_id ?? "";
|
|
32409
|
+
return message;
|
|
32410
|
+
},
|
|
32411
|
+
};
|
|
32412
|
+
function createBaseGenerateHashChannelAppsResponse() {
|
|
32413
|
+
return { hash: "", user_id: "" };
|
|
32414
|
+
}
|
|
32415
|
+
export const GenerateHashChannelAppsResponse = {
|
|
32416
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
32417
|
+
if (message.hash !== "") {
|
|
32418
|
+
writer.uint32(10).string(message.hash);
|
|
32419
|
+
}
|
|
32420
|
+
if (message.user_id !== "") {
|
|
32421
|
+
writer.uint32(18).string(message.user_id);
|
|
32422
|
+
}
|
|
32423
|
+
return writer;
|
|
32424
|
+
},
|
|
32425
|
+
decode(input, length) {
|
|
32426
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
32427
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32428
|
+
const message = createBaseGenerateHashChannelAppsResponse();
|
|
32429
|
+
while (reader.pos < end) {
|
|
32430
|
+
const tag = reader.uint32();
|
|
32431
|
+
switch (tag >>> 3) {
|
|
32432
|
+
case 1:
|
|
32433
|
+
if (tag !== 10) {
|
|
32434
|
+
break;
|
|
32435
|
+
}
|
|
32436
|
+
message.hash = reader.string();
|
|
32437
|
+
continue;
|
|
32438
|
+
case 2:
|
|
32439
|
+
if (tag !== 18) {
|
|
32440
|
+
break;
|
|
32441
|
+
}
|
|
32442
|
+
message.user_id = reader.string();
|
|
32443
|
+
continue;
|
|
32444
|
+
}
|
|
32445
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
32446
|
+
break;
|
|
32447
|
+
}
|
|
32448
|
+
reader.skipType(tag & 7);
|
|
32449
|
+
}
|
|
32450
|
+
return message;
|
|
32451
|
+
},
|
|
32452
|
+
fromJSON(object) {
|
|
32453
|
+
return {
|
|
32454
|
+
hash: isSet(object.hash) ? globalThis.String(object.hash) : "",
|
|
32455
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
32456
|
+
};
|
|
32457
|
+
},
|
|
32458
|
+
toJSON(message) {
|
|
32459
|
+
const obj = {};
|
|
32460
|
+
if (message.hash !== "") {
|
|
32461
|
+
obj.hash = message.hash;
|
|
32462
|
+
}
|
|
32463
|
+
if (message.user_id !== "") {
|
|
32464
|
+
obj.user_id = message.user_id;
|
|
32465
|
+
}
|
|
32466
|
+
return obj;
|
|
32467
|
+
},
|
|
32468
|
+
create(base) {
|
|
32469
|
+
return GenerateHashChannelAppsResponse.fromPartial(base ?? {});
|
|
32470
|
+
},
|
|
32471
|
+
fromPartial(object) {
|
|
32472
|
+
const message = createBaseGenerateHashChannelAppsResponse();
|
|
32473
|
+
message.hash = object.hash ?? "";
|
|
32474
|
+
message.user_id = object.user_id ?? "";
|
|
32475
|
+
return message;
|
|
32476
|
+
},
|
|
32477
|
+
};
|
|
30704
32478
|
function bytesFromBase64(b64) {
|
|
30705
32479
|
if (globalThis.Buffer) {
|
|
30706
32480
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|