mezon-js-protobuf 1.7.15 → 1.7.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/api.ts +254 -32
- package/dist/mezon-js-protobuf/api/api.d.ts +135 -67
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +86 -86
- package/dist/mezon-js-protobuf.cjs.js +32 -32
- package/dist/mezon-js-protobuf.esm.mjs +32 -32
- package/google/protobuf/struct.ts +554 -554
- package/google/protobuf/timestamp.ts +223 -223
- package/google/protobuf/wrappers.ts +670 -670
- package/package.json +1 -1
- package/rtapi/realtime.ts +11946 -11946
package/api/api.ts
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
|
|
3
|
+
// protoc-gen-ts_proto v1.181.1
|
|
4
|
+
// protoc v5.27.2
|
|
5
5
|
// source: api/api.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -376,6 +376,8 @@ export interface SessionLogoutRequest {
|
|
|
376
376
|
device_id: string;
|
|
377
377
|
/** FCM token from firebase */
|
|
378
378
|
fcm_token: string;
|
|
379
|
+
/** platform */
|
|
380
|
+
platform: string;
|
|
379
381
|
}
|
|
380
382
|
|
|
381
383
|
/** Authenticate against the server with Apple Sign In. */
|
|
@@ -1860,8 +1862,8 @@ export interface ChannelMessageHeader {
|
|
|
1860
1862
|
export interface ChannelDescription {
|
|
1861
1863
|
/** The clan of this channel */
|
|
1862
1864
|
clan_id: string;
|
|
1863
|
-
/** The
|
|
1864
|
-
|
|
1865
|
+
/** The parent channel this message belongs to. */
|
|
1866
|
+
parent_id: string;
|
|
1865
1867
|
/** The channel this message belongs to. */
|
|
1866
1868
|
channel_id: string;
|
|
1867
1869
|
/** The category of channel */
|
|
@@ -1991,8 +1993,8 @@ export interface AddRoleChannelDescRequest {
|
|
|
1991
1993
|
export interface CreateChannelDescRequest {
|
|
1992
1994
|
/** The clan of this channel */
|
|
1993
1995
|
clan_id: string;
|
|
1994
|
-
/** The
|
|
1995
|
-
|
|
1996
|
+
/** The parent channel this message belongs to. */
|
|
1997
|
+
parent_id: string;
|
|
1996
1998
|
/** The channel this message belongs to. */
|
|
1997
1999
|
channel_id: string;
|
|
1998
2000
|
/** The category of channel */
|
|
@@ -2293,7 +2295,7 @@ export interface HashtagDm {
|
|
|
2293
2295
|
/** */
|
|
2294
2296
|
channel_private: number;
|
|
2295
2297
|
/** */
|
|
2296
|
-
|
|
2298
|
+
parent_id: string;
|
|
2297
2299
|
}
|
|
2298
2300
|
|
|
2299
2301
|
export interface NotificationChannelCategorySettingList {
|
|
@@ -3967,12 +3969,25 @@ export interface MezonOauthClientList {
|
|
|
3967
3969
|
listMezonOauthClient: MezonOauthClient[];
|
|
3968
3970
|
}
|
|
3969
3971
|
|
|
3972
|
+
export interface GetMezonOauthClientRequest {
|
|
3973
|
+
client_id: string;
|
|
3974
|
+
}
|
|
3975
|
+
|
|
3970
3976
|
export interface SearchThreadRequest {
|
|
3971
3977
|
clan_id: string;
|
|
3972
3978
|
channel_id: string;
|
|
3973
3979
|
label: string;
|
|
3974
3980
|
}
|
|
3975
3981
|
|
|
3982
|
+
export interface GenerateHashChannelAppsRequest {
|
|
3983
|
+
app_id: string;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
export interface GenerateHashChannelAppsResponse {
|
|
3987
|
+
hash: string;
|
|
3988
|
+
user_id: string;
|
|
3989
|
+
}
|
|
3990
|
+
|
|
3976
3991
|
function createBaseAccount(): Account {
|
|
3977
3992
|
return {
|
|
3978
3993
|
user: undefined,
|
|
@@ -6264,7 +6279,7 @@ export const SessionRefreshRequest_VarsEntry = {
|
|
|
6264
6279
|
};
|
|
6265
6280
|
|
|
6266
6281
|
function createBaseSessionLogoutRequest(): SessionLogoutRequest {
|
|
6267
|
-
return { token: "", refresh_token: "", device_id: "", fcm_token: "" };
|
|
6282
|
+
return { token: "", refresh_token: "", device_id: "", fcm_token: "", platform: "" };
|
|
6268
6283
|
}
|
|
6269
6284
|
|
|
6270
6285
|
export const SessionLogoutRequest = {
|
|
@@ -6281,6 +6296,9 @@ export const SessionLogoutRequest = {
|
|
|
6281
6296
|
if (message.fcm_token !== "") {
|
|
6282
6297
|
writer.uint32(34).string(message.fcm_token);
|
|
6283
6298
|
}
|
|
6299
|
+
if (message.platform !== "") {
|
|
6300
|
+
writer.uint32(42).string(message.platform);
|
|
6301
|
+
}
|
|
6284
6302
|
return writer;
|
|
6285
6303
|
},
|
|
6286
6304
|
|
|
@@ -6319,6 +6337,13 @@ export const SessionLogoutRequest = {
|
|
|
6319
6337
|
|
|
6320
6338
|
message.fcm_token = reader.string();
|
|
6321
6339
|
continue;
|
|
6340
|
+
case 5:
|
|
6341
|
+
if (tag !== 42) {
|
|
6342
|
+
break;
|
|
6343
|
+
}
|
|
6344
|
+
|
|
6345
|
+
message.platform = reader.string();
|
|
6346
|
+
continue;
|
|
6322
6347
|
}
|
|
6323
6348
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6324
6349
|
break;
|
|
@@ -6334,6 +6359,7 @@ export const SessionLogoutRequest = {
|
|
|
6334
6359
|
refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
|
|
6335
6360
|
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
6336
6361
|
fcm_token: isSet(object.fcm_token) ? globalThis.String(object.fcm_token) : "",
|
|
6362
|
+
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
6337
6363
|
};
|
|
6338
6364
|
},
|
|
6339
6365
|
|
|
@@ -6351,6 +6377,9 @@ export const SessionLogoutRequest = {
|
|
|
6351
6377
|
if (message.fcm_token !== "") {
|
|
6352
6378
|
obj.fcm_token = message.fcm_token;
|
|
6353
6379
|
}
|
|
6380
|
+
if (message.platform !== "") {
|
|
6381
|
+
obj.platform = message.platform;
|
|
6382
|
+
}
|
|
6354
6383
|
return obj;
|
|
6355
6384
|
},
|
|
6356
6385
|
|
|
@@ -6363,6 +6392,7 @@ export const SessionLogoutRequest = {
|
|
|
6363
6392
|
message.refresh_token = object.refresh_token ?? "";
|
|
6364
6393
|
message.device_id = object.device_id ?? "";
|
|
6365
6394
|
message.fcm_token = object.fcm_token ?? "";
|
|
6395
|
+
message.platform = object.platform ?? "";
|
|
6366
6396
|
return message;
|
|
6367
6397
|
},
|
|
6368
6398
|
};
|
|
@@ -17031,7 +17061,7 @@ export const ChannelMessageHeader = {
|
|
|
17031
17061
|
function createBaseChannelDescription(): ChannelDescription {
|
|
17032
17062
|
return {
|
|
17033
17063
|
clan_id: "",
|
|
17034
|
-
|
|
17064
|
+
parent_id: "",
|
|
17035
17065
|
channel_id: "",
|
|
17036
17066
|
category_id: "",
|
|
17037
17067
|
category_name: "",
|
|
@@ -17069,8 +17099,8 @@ export const ChannelDescription = {
|
|
|
17069
17099
|
if (message.clan_id !== "") {
|
|
17070
17100
|
writer.uint32(10).string(message.clan_id);
|
|
17071
17101
|
}
|
|
17072
|
-
if (message.
|
|
17073
|
-
writer.uint32(18).string(message.
|
|
17102
|
+
if (message.parent_id !== "") {
|
|
17103
|
+
writer.uint32(18).string(message.parent_id);
|
|
17074
17104
|
}
|
|
17075
17105
|
if (message.channel_id !== "") {
|
|
17076
17106
|
writer.uint32(26).string(message.channel_id);
|
|
@@ -17183,7 +17213,7 @@ export const ChannelDescription = {
|
|
|
17183
17213
|
break;
|
|
17184
17214
|
}
|
|
17185
17215
|
|
|
17186
|
-
message.
|
|
17216
|
+
message.parent_id = reader.string();
|
|
17187
17217
|
continue;
|
|
17188
17218
|
case 3:
|
|
17189
17219
|
if (tag !== 26) {
|
|
@@ -17410,7 +17440,7 @@ export const ChannelDescription = {
|
|
|
17410
17440
|
fromJSON(object: any): ChannelDescription {
|
|
17411
17441
|
return {
|
|
17412
17442
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
17413
|
-
|
|
17443
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
17414
17444
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
17415
17445
|
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
17416
17446
|
category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
@@ -17462,8 +17492,8 @@ export const ChannelDescription = {
|
|
|
17462
17492
|
if (message.clan_id !== "") {
|
|
17463
17493
|
obj.clan_id = message.clan_id;
|
|
17464
17494
|
}
|
|
17465
|
-
if (message.
|
|
17466
|
-
obj.
|
|
17495
|
+
if (message.parent_id !== "") {
|
|
17496
|
+
obj.parent_id = message.parent_id;
|
|
17467
17497
|
}
|
|
17468
17498
|
if (message.channel_id !== "") {
|
|
17469
17499
|
obj.channel_id = message.channel_id;
|
|
@@ -17561,7 +17591,7 @@ export const ChannelDescription = {
|
|
|
17561
17591
|
fromPartial<I extends Exact<DeepPartial<ChannelDescription>, I>>(object: I): ChannelDescription {
|
|
17562
17592
|
const message = createBaseChannelDescription();
|
|
17563
17593
|
message.clan_id = object.clan_id ?? "";
|
|
17564
|
-
message.
|
|
17594
|
+
message.parent_id = object.parent_id ?? "";
|
|
17565
17595
|
message.channel_id = object.channel_id ?? "";
|
|
17566
17596
|
message.category_id = object.category_id ?? "";
|
|
17567
17597
|
message.category_name = object.category_name ?? "";
|
|
@@ -18050,7 +18080,7 @@ export const AddRoleChannelDescRequest = {
|
|
|
18050
18080
|
function createBaseCreateChannelDescRequest(): CreateChannelDescRequest {
|
|
18051
18081
|
return {
|
|
18052
18082
|
clan_id: "",
|
|
18053
|
-
|
|
18083
|
+
parent_id: "",
|
|
18054
18084
|
channel_id: "",
|
|
18055
18085
|
category_id: "",
|
|
18056
18086
|
type: undefined,
|
|
@@ -18066,8 +18096,8 @@ export const CreateChannelDescRequest = {
|
|
|
18066
18096
|
if (message.clan_id !== "") {
|
|
18067
18097
|
writer.uint32(10).string(message.clan_id);
|
|
18068
18098
|
}
|
|
18069
|
-
if (message.
|
|
18070
|
-
writer.uint32(18).string(message.
|
|
18099
|
+
if (message.parent_id !== "") {
|
|
18100
|
+
writer.uint32(18).string(message.parent_id);
|
|
18071
18101
|
}
|
|
18072
18102
|
if (message.channel_id !== "") {
|
|
18073
18103
|
writer.uint32(26).string(message.channel_id);
|
|
@@ -18112,7 +18142,7 @@ export const CreateChannelDescRequest = {
|
|
|
18112
18142
|
break;
|
|
18113
18143
|
}
|
|
18114
18144
|
|
|
18115
|
-
message.
|
|
18145
|
+
message.parent_id = reader.string();
|
|
18116
18146
|
continue;
|
|
18117
18147
|
case 3:
|
|
18118
18148
|
if (tag !== 26) {
|
|
@@ -18175,7 +18205,7 @@ export const CreateChannelDescRequest = {
|
|
|
18175
18205
|
fromJSON(object: any): CreateChannelDescRequest {
|
|
18176
18206
|
return {
|
|
18177
18207
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
18178
|
-
|
|
18208
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
18179
18209
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
18180
18210
|
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
18181
18211
|
type: isSet(object.type) ? Number(object.type) : undefined,
|
|
@@ -18191,8 +18221,8 @@ export const CreateChannelDescRequest = {
|
|
|
18191
18221
|
if (message.clan_id !== "") {
|
|
18192
18222
|
obj.clan_id = message.clan_id;
|
|
18193
18223
|
}
|
|
18194
|
-
if (message.
|
|
18195
|
-
obj.
|
|
18224
|
+
if (message.parent_id !== "") {
|
|
18225
|
+
obj.parent_id = message.parent_id;
|
|
18196
18226
|
}
|
|
18197
18227
|
if (message.channel_id !== "") {
|
|
18198
18228
|
obj.channel_id = message.channel_id;
|
|
@@ -18224,7 +18254,7 @@ export const CreateChannelDescRequest = {
|
|
|
18224
18254
|
fromPartial<I extends Exact<DeepPartial<CreateChannelDescRequest>, I>>(object: I): CreateChannelDescRequest {
|
|
18225
18255
|
const message = createBaseCreateChannelDescRequest();
|
|
18226
18256
|
message.clan_id = object.clan_id ?? "";
|
|
18227
|
-
message.
|
|
18257
|
+
message.parent_id = object.parent_id ?? "";
|
|
18228
18258
|
message.channel_id = object.channel_id ?? "";
|
|
18229
18259
|
message.category_id = object.category_id ?? "";
|
|
18230
18260
|
message.type = object.type ?? undefined;
|
|
@@ -20930,7 +20960,7 @@ function createBaseHashtagDm(): HashtagDm {
|
|
|
20930
20960
|
meeting_code: "",
|
|
20931
20961
|
type: 0,
|
|
20932
20962
|
channel_private: 0,
|
|
20933
|
-
|
|
20963
|
+
parent_id: "",
|
|
20934
20964
|
};
|
|
20935
20965
|
}
|
|
20936
20966
|
|
|
@@ -20957,8 +20987,8 @@ export const HashtagDm = {
|
|
|
20957
20987
|
if (message.channel_private !== 0) {
|
|
20958
20988
|
writer.uint32(56).int32(message.channel_private);
|
|
20959
20989
|
}
|
|
20960
|
-
if (message.
|
|
20961
|
-
writer.uint32(66).string(message.
|
|
20990
|
+
if (message.parent_id !== "") {
|
|
20991
|
+
writer.uint32(66).string(message.parent_id);
|
|
20962
20992
|
}
|
|
20963
20993
|
return writer;
|
|
20964
20994
|
},
|
|
@@ -21024,7 +21054,7 @@ export const HashtagDm = {
|
|
|
21024
21054
|
break;
|
|
21025
21055
|
}
|
|
21026
21056
|
|
|
21027
|
-
message.
|
|
21057
|
+
message.parent_id = reader.string();
|
|
21028
21058
|
continue;
|
|
21029
21059
|
}
|
|
21030
21060
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -21044,7 +21074,7 @@ export const HashtagDm = {
|
|
|
21044
21074
|
meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
21045
21075
|
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
21046
21076
|
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
21047
|
-
|
|
21077
|
+
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
21048
21078
|
};
|
|
21049
21079
|
},
|
|
21050
21080
|
|
|
@@ -21071,8 +21101,8 @@ export const HashtagDm = {
|
|
|
21071
21101
|
if (message.channel_private !== 0) {
|
|
21072
21102
|
obj.channel_private = Math.round(message.channel_private);
|
|
21073
21103
|
}
|
|
21074
|
-
if (message.
|
|
21075
|
-
obj.
|
|
21104
|
+
if (message.parent_id !== "") {
|
|
21105
|
+
obj.parent_id = message.parent_id;
|
|
21076
21106
|
}
|
|
21077
21107
|
return obj;
|
|
21078
21108
|
},
|
|
@@ -21089,7 +21119,7 @@ export const HashtagDm = {
|
|
|
21089
21119
|
message.meeting_code = object.meeting_code ?? "";
|
|
21090
21120
|
message.type = object.type ?? 0;
|
|
21091
21121
|
message.channel_private = object.channel_private ?? 0;
|
|
21092
|
-
message.
|
|
21122
|
+
message.parent_id = object.parent_id ?? "";
|
|
21093
21123
|
return message;
|
|
21094
21124
|
},
|
|
21095
21125
|
};
|
|
@@ -39193,6 +39223,63 @@ export const MezonOauthClientList = {
|
|
|
39193
39223
|
},
|
|
39194
39224
|
};
|
|
39195
39225
|
|
|
39226
|
+
function createBaseGetMezonOauthClientRequest(): GetMezonOauthClientRequest {
|
|
39227
|
+
return { client_id: "" };
|
|
39228
|
+
}
|
|
39229
|
+
|
|
39230
|
+
export const GetMezonOauthClientRequest = {
|
|
39231
|
+
encode(message: GetMezonOauthClientRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
39232
|
+
if (message.client_id !== "") {
|
|
39233
|
+
writer.uint32(10).string(message.client_id);
|
|
39234
|
+
}
|
|
39235
|
+
return writer;
|
|
39236
|
+
},
|
|
39237
|
+
|
|
39238
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetMezonOauthClientRequest {
|
|
39239
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
39240
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39241
|
+
const message = createBaseGetMezonOauthClientRequest();
|
|
39242
|
+
while (reader.pos < end) {
|
|
39243
|
+
const tag = reader.uint32();
|
|
39244
|
+
switch (tag >>> 3) {
|
|
39245
|
+
case 1:
|
|
39246
|
+
if (tag !== 10) {
|
|
39247
|
+
break;
|
|
39248
|
+
}
|
|
39249
|
+
|
|
39250
|
+
message.client_id = reader.string();
|
|
39251
|
+
continue;
|
|
39252
|
+
}
|
|
39253
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39254
|
+
break;
|
|
39255
|
+
}
|
|
39256
|
+
reader.skipType(tag & 7);
|
|
39257
|
+
}
|
|
39258
|
+
return message;
|
|
39259
|
+
},
|
|
39260
|
+
|
|
39261
|
+
fromJSON(object: any): GetMezonOauthClientRequest {
|
|
39262
|
+
return { client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "" };
|
|
39263
|
+
},
|
|
39264
|
+
|
|
39265
|
+
toJSON(message: GetMezonOauthClientRequest): unknown {
|
|
39266
|
+
const obj: any = {};
|
|
39267
|
+
if (message.client_id !== "") {
|
|
39268
|
+
obj.client_id = message.client_id;
|
|
39269
|
+
}
|
|
39270
|
+
return obj;
|
|
39271
|
+
},
|
|
39272
|
+
|
|
39273
|
+
create<I extends Exact<DeepPartial<GetMezonOauthClientRequest>, I>>(base?: I): GetMezonOauthClientRequest {
|
|
39274
|
+
return GetMezonOauthClientRequest.fromPartial(base ?? ({} as any));
|
|
39275
|
+
},
|
|
39276
|
+
fromPartial<I extends Exact<DeepPartial<GetMezonOauthClientRequest>, I>>(object: I): GetMezonOauthClientRequest {
|
|
39277
|
+
const message = createBaseGetMezonOauthClientRequest();
|
|
39278
|
+
message.client_id = object.client_id ?? "";
|
|
39279
|
+
return message;
|
|
39280
|
+
},
|
|
39281
|
+
};
|
|
39282
|
+
|
|
39196
39283
|
function createBaseSearchThreadRequest(): SearchThreadRequest {
|
|
39197
39284
|
return { clan_id: "", channel_id: "", label: "" };
|
|
39198
39285
|
}
|
|
@@ -39282,6 +39369,141 @@ export const SearchThreadRequest = {
|
|
|
39282
39369
|
},
|
|
39283
39370
|
};
|
|
39284
39371
|
|
|
39372
|
+
function createBaseGenerateHashChannelAppsRequest(): GenerateHashChannelAppsRequest {
|
|
39373
|
+
return { app_id: "" };
|
|
39374
|
+
}
|
|
39375
|
+
|
|
39376
|
+
export const GenerateHashChannelAppsRequest = {
|
|
39377
|
+
encode(message: GenerateHashChannelAppsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
39378
|
+
if (message.app_id !== "") {
|
|
39379
|
+
writer.uint32(10).string(message.app_id);
|
|
39380
|
+
}
|
|
39381
|
+
return writer;
|
|
39382
|
+
},
|
|
39383
|
+
|
|
39384
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GenerateHashChannelAppsRequest {
|
|
39385
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
39386
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39387
|
+
const message = createBaseGenerateHashChannelAppsRequest();
|
|
39388
|
+
while (reader.pos < end) {
|
|
39389
|
+
const tag = reader.uint32();
|
|
39390
|
+
switch (tag >>> 3) {
|
|
39391
|
+
case 1:
|
|
39392
|
+
if (tag !== 10) {
|
|
39393
|
+
break;
|
|
39394
|
+
}
|
|
39395
|
+
|
|
39396
|
+
message.app_id = reader.string();
|
|
39397
|
+
continue;
|
|
39398
|
+
}
|
|
39399
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39400
|
+
break;
|
|
39401
|
+
}
|
|
39402
|
+
reader.skipType(tag & 7);
|
|
39403
|
+
}
|
|
39404
|
+
return message;
|
|
39405
|
+
},
|
|
39406
|
+
|
|
39407
|
+
fromJSON(object: any): GenerateHashChannelAppsRequest {
|
|
39408
|
+
return { app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "" };
|
|
39409
|
+
},
|
|
39410
|
+
|
|
39411
|
+
toJSON(message: GenerateHashChannelAppsRequest): unknown {
|
|
39412
|
+
const obj: any = {};
|
|
39413
|
+
if (message.app_id !== "") {
|
|
39414
|
+
obj.app_id = message.app_id;
|
|
39415
|
+
}
|
|
39416
|
+
return obj;
|
|
39417
|
+
},
|
|
39418
|
+
|
|
39419
|
+
create<I extends Exact<DeepPartial<GenerateHashChannelAppsRequest>, I>>(base?: I): GenerateHashChannelAppsRequest {
|
|
39420
|
+
return GenerateHashChannelAppsRequest.fromPartial(base ?? ({} as any));
|
|
39421
|
+
},
|
|
39422
|
+
fromPartial<I extends Exact<DeepPartial<GenerateHashChannelAppsRequest>, I>>(
|
|
39423
|
+
object: I,
|
|
39424
|
+
): GenerateHashChannelAppsRequest {
|
|
39425
|
+
const message = createBaseGenerateHashChannelAppsRequest();
|
|
39426
|
+
message.app_id = object.app_id ?? "";
|
|
39427
|
+
return message;
|
|
39428
|
+
},
|
|
39429
|
+
};
|
|
39430
|
+
|
|
39431
|
+
function createBaseGenerateHashChannelAppsResponse(): GenerateHashChannelAppsResponse {
|
|
39432
|
+
return { hash: "", user_id: "" };
|
|
39433
|
+
}
|
|
39434
|
+
|
|
39435
|
+
export const GenerateHashChannelAppsResponse = {
|
|
39436
|
+
encode(message: GenerateHashChannelAppsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
39437
|
+
if (message.hash !== "") {
|
|
39438
|
+
writer.uint32(10).string(message.hash);
|
|
39439
|
+
}
|
|
39440
|
+
if (message.user_id !== "") {
|
|
39441
|
+
writer.uint32(18).string(message.user_id);
|
|
39442
|
+
}
|
|
39443
|
+
return writer;
|
|
39444
|
+
},
|
|
39445
|
+
|
|
39446
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GenerateHashChannelAppsResponse {
|
|
39447
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
39448
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39449
|
+
const message = createBaseGenerateHashChannelAppsResponse();
|
|
39450
|
+
while (reader.pos < end) {
|
|
39451
|
+
const tag = reader.uint32();
|
|
39452
|
+
switch (tag >>> 3) {
|
|
39453
|
+
case 1:
|
|
39454
|
+
if (tag !== 10) {
|
|
39455
|
+
break;
|
|
39456
|
+
}
|
|
39457
|
+
|
|
39458
|
+
message.hash = reader.string();
|
|
39459
|
+
continue;
|
|
39460
|
+
case 2:
|
|
39461
|
+
if (tag !== 18) {
|
|
39462
|
+
break;
|
|
39463
|
+
}
|
|
39464
|
+
|
|
39465
|
+
message.user_id = reader.string();
|
|
39466
|
+
continue;
|
|
39467
|
+
}
|
|
39468
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39469
|
+
break;
|
|
39470
|
+
}
|
|
39471
|
+
reader.skipType(tag & 7);
|
|
39472
|
+
}
|
|
39473
|
+
return message;
|
|
39474
|
+
},
|
|
39475
|
+
|
|
39476
|
+
fromJSON(object: any): GenerateHashChannelAppsResponse {
|
|
39477
|
+
return {
|
|
39478
|
+
hash: isSet(object.hash) ? globalThis.String(object.hash) : "",
|
|
39479
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
39480
|
+
};
|
|
39481
|
+
},
|
|
39482
|
+
|
|
39483
|
+
toJSON(message: GenerateHashChannelAppsResponse): unknown {
|
|
39484
|
+
const obj: any = {};
|
|
39485
|
+
if (message.hash !== "") {
|
|
39486
|
+
obj.hash = message.hash;
|
|
39487
|
+
}
|
|
39488
|
+
if (message.user_id !== "") {
|
|
39489
|
+
obj.user_id = message.user_id;
|
|
39490
|
+
}
|
|
39491
|
+
return obj;
|
|
39492
|
+
},
|
|
39493
|
+
|
|
39494
|
+
create<I extends Exact<DeepPartial<GenerateHashChannelAppsResponse>, I>>(base?: I): GenerateHashChannelAppsResponse {
|
|
39495
|
+
return GenerateHashChannelAppsResponse.fromPartial(base ?? ({} as any));
|
|
39496
|
+
},
|
|
39497
|
+
fromPartial<I extends Exact<DeepPartial<GenerateHashChannelAppsResponse>, I>>(
|
|
39498
|
+
object: I,
|
|
39499
|
+
): GenerateHashChannelAppsResponse {
|
|
39500
|
+
const message = createBaseGenerateHashChannelAppsResponse();
|
|
39501
|
+
message.hash = object.hash ?? "";
|
|
39502
|
+
message.user_id = object.user_id ?? "";
|
|
39503
|
+
return message;
|
|
39504
|
+
},
|
|
39505
|
+
};
|
|
39506
|
+
|
|
39285
39507
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
39286
39508
|
if ((globalThis as any).Buffer) {
|
|
39287
39509
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|