mezon-js-protobuf 1.6.37 → 1.6.38
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 +75 -1
- package/dist/mezon-js/utils.d.ts +4 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +24 -0
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -184,7 +184,13 @@ export interface Account {
|
|
|
184
184
|
| Date
|
|
185
185
|
| undefined;
|
|
186
186
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's account was disabled/banned. */
|
|
187
|
-
disable_time:
|
|
187
|
+
disable_time:
|
|
188
|
+
| Date
|
|
189
|
+
| undefined;
|
|
190
|
+
/** Logo url */
|
|
191
|
+
logo: string;
|
|
192
|
+
/** Splash screen url */
|
|
193
|
+
splash_screen: string;
|
|
188
194
|
}
|
|
189
195
|
|
|
190
196
|
/** Obtain a new authentication token using a refresh token. */
|
|
@@ -1383,6 +1389,10 @@ export interface UpdateAccountRequest {
|
|
|
1383
1389
|
about_me: string;
|
|
1384
1390
|
/** date of birth */
|
|
1385
1391
|
dob: Date | undefined;
|
|
1392
|
+
/** logo url */
|
|
1393
|
+
logo: string;
|
|
1394
|
+
/** splash screen */
|
|
1395
|
+
splash_screen: string;
|
|
1386
1396
|
}
|
|
1387
1397
|
|
|
1388
1398
|
/** Update fields in a given group. */
|
|
@@ -3765,6 +3775,8 @@ function createBaseAccount(): Account {
|
|
|
3765
3775
|
custom_id: "",
|
|
3766
3776
|
verify_time: undefined,
|
|
3767
3777
|
disable_time: undefined,
|
|
3778
|
+
logo: "",
|
|
3779
|
+
splash_screen: "",
|
|
3768
3780
|
};
|
|
3769
3781
|
}
|
|
3770
3782
|
|
|
@@ -3791,6 +3803,12 @@ export const Account = {
|
|
|
3791
3803
|
if (message.disable_time !== undefined) {
|
|
3792
3804
|
Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(58).fork()).ldelim();
|
|
3793
3805
|
}
|
|
3806
|
+
if (message.logo !== "") {
|
|
3807
|
+
writer.uint32(66).string(message.logo);
|
|
3808
|
+
}
|
|
3809
|
+
if (message.splash_screen !== "") {
|
|
3810
|
+
writer.uint32(74).string(message.splash_screen);
|
|
3811
|
+
}
|
|
3794
3812
|
return writer;
|
|
3795
3813
|
},
|
|
3796
3814
|
|
|
@@ -3850,6 +3868,20 @@ export const Account = {
|
|
|
3850
3868
|
|
|
3851
3869
|
message.disable_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3852
3870
|
continue;
|
|
3871
|
+
case 8:
|
|
3872
|
+
if (tag !== 66) {
|
|
3873
|
+
break;
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
message.logo = reader.string();
|
|
3877
|
+
continue;
|
|
3878
|
+
case 9:
|
|
3879
|
+
if (tag !== 74) {
|
|
3880
|
+
break;
|
|
3881
|
+
}
|
|
3882
|
+
|
|
3883
|
+
message.splash_screen = reader.string();
|
|
3884
|
+
continue;
|
|
3853
3885
|
}
|
|
3854
3886
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3855
3887
|
break;
|
|
@@ -3870,6 +3902,8 @@ export const Account = {
|
|
|
3870
3902
|
custom_id: isSet(object.custom_id) ? globalThis.String(object.custom_id) : "",
|
|
3871
3903
|
verify_time: isSet(object.verify_time) ? fromJsonTimestamp(object.verify_time) : undefined,
|
|
3872
3904
|
disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
|
|
3905
|
+
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
3906
|
+
splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
3873
3907
|
};
|
|
3874
3908
|
},
|
|
3875
3909
|
|
|
@@ -3896,6 +3930,12 @@ export const Account = {
|
|
|
3896
3930
|
if (message.disable_time !== undefined) {
|
|
3897
3931
|
obj.disable_time = message.disable_time.toISOString();
|
|
3898
3932
|
}
|
|
3933
|
+
if (message.logo !== "") {
|
|
3934
|
+
obj.logo = message.logo;
|
|
3935
|
+
}
|
|
3936
|
+
if (message.splash_screen !== "") {
|
|
3937
|
+
obj.splash_screen = message.splash_screen;
|
|
3938
|
+
}
|
|
3899
3939
|
return obj;
|
|
3900
3940
|
},
|
|
3901
3941
|
|
|
@@ -3911,6 +3951,8 @@ export const Account = {
|
|
|
3911
3951
|
message.custom_id = object.custom_id ?? "";
|
|
3912
3952
|
message.verify_time = object.verify_time ?? undefined;
|
|
3913
3953
|
message.disable_time = object.disable_time ?? undefined;
|
|
3954
|
+
message.logo = object.logo ?? "";
|
|
3955
|
+
message.splash_screen = object.splash_screen ?? "";
|
|
3914
3956
|
return message;
|
|
3915
3957
|
},
|
|
3916
3958
|
};
|
|
@@ -13088,6 +13130,8 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
|
|
|
13088
13130
|
timezone: undefined,
|
|
13089
13131
|
about_me: "",
|
|
13090
13132
|
dob: undefined,
|
|
13133
|
+
logo: "",
|
|
13134
|
+
splash_screen: "",
|
|
13091
13135
|
};
|
|
13092
13136
|
}
|
|
13093
13137
|
|
|
@@ -13117,6 +13161,12 @@ export const UpdateAccountRequest = {
|
|
|
13117
13161
|
if (message.dob !== undefined) {
|
|
13118
13162
|
Timestamp.encode(toTimestamp(message.dob), writer.uint32(66).fork()).ldelim();
|
|
13119
13163
|
}
|
|
13164
|
+
if (message.logo !== "") {
|
|
13165
|
+
writer.uint32(74).string(message.logo);
|
|
13166
|
+
}
|
|
13167
|
+
if (message.splash_screen !== "") {
|
|
13168
|
+
writer.uint32(82).string(message.splash_screen);
|
|
13169
|
+
}
|
|
13120
13170
|
return writer;
|
|
13121
13171
|
},
|
|
13122
13172
|
|
|
@@ -13183,6 +13233,20 @@ export const UpdateAccountRequest = {
|
|
|
13183
13233
|
|
|
13184
13234
|
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
13185
13235
|
continue;
|
|
13236
|
+
case 9:
|
|
13237
|
+
if (tag !== 74) {
|
|
13238
|
+
break;
|
|
13239
|
+
}
|
|
13240
|
+
|
|
13241
|
+
message.logo = reader.string();
|
|
13242
|
+
continue;
|
|
13243
|
+
case 10:
|
|
13244
|
+
if (tag !== 82) {
|
|
13245
|
+
break;
|
|
13246
|
+
}
|
|
13247
|
+
|
|
13248
|
+
message.splash_screen = reader.string();
|
|
13249
|
+
continue;
|
|
13186
13250
|
}
|
|
13187
13251
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13188
13252
|
break;
|
|
@@ -13202,6 +13266,8 @@ export const UpdateAccountRequest = {
|
|
|
13202
13266
|
timezone: isSet(object.timezone) ? String(object.timezone) : undefined,
|
|
13203
13267
|
about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
13204
13268
|
dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
|
|
13269
|
+
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
13270
|
+
splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
13205
13271
|
};
|
|
13206
13272
|
},
|
|
13207
13273
|
|
|
@@ -13231,6 +13297,12 @@ export const UpdateAccountRequest = {
|
|
|
13231
13297
|
if (message.dob !== undefined) {
|
|
13232
13298
|
obj.dob = message.dob.toISOString();
|
|
13233
13299
|
}
|
|
13300
|
+
if (message.logo !== "") {
|
|
13301
|
+
obj.logo = message.logo;
|
|
13302
|
+
}
|
|
13303
|
+
if (message.splash_screen !== "") {
|
|
13304
|
+
obj.splash_screen = message.splash_screen;
|
|
13305
|
+
}
|
|
13234
13306
|
return obj;
|
|
13235
13307
|
},
|
|
13236
13308
|
|
|
@@ -13247,6 +13319,8 @@ export const UpdateAccountRequest = {
|
|
|
13247
13319
|
message.timezone = object.timezone ?? undefined;
|
|
13248
13320
|
message.about_me = object.about_me ?? "";
|
|
13249
13321
|
message.dob = object.dob ?? undefined;
|
|
13322
|
+
message.logo = object.logo ?? "";
|
|
13323
|
+
message.splash_screen = object.splash_screen ?? "";
|
|
13250
13324
|
return message;
|
|
13251
13325
|
},
|
|
13252
13326
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function buildFetchOptions(method: string, options: any, bodyJson: string): any;
|
|
2
|
+
export declare function b64EncodeUnicode(str: string): string;
|
|
3
|
+
export declare function b64DecodeUnicode(str: string): string;
|
|
4
|
+
export declare function safeJSONParse(jsonString: string): any;
|
|
@@ -59,6 +59,10 @@ export interface Account {
|
|
|
59
59
|
verify_time: Date | undefined;
|
|
60
60
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's account was disabled/banned. */
|
|
61
61
|
disable_time: Date | undefined;
|
|
62
|
+
/** Logo url */
|
|
63
|
+
logo: string;
|
|
64
|
+
/** Splash screen url */
|
|
65
|
+
splash_screen: string;
|
|
62
66
|
}
|
|
63
67
|
/** Obtain a new authentication token using a refresh token. */
|
|
64
68
|
export interface AccountRefresh {
|
|
@@ -1008,6 +1012,10 @@ export interface UpdateAccountRequest {
|
|
|
1008
1012
|
about_me: string;
|
|
1009
1013
|
/** date of birth */
|
|
1010
1014
|
dob: Date | undefined;
|
|
1015
|
+
/** logo url */
|
|
1016
|
+
logo: string;
|
|
1017
|
+
/** splash screen */
|
|
1018
|
+
splash_screen: string;
|
|
1011
1019
|
}
|
|
1012
1020
|
/** Update fields in a given group. */
|
|
1013
1021
|
export interface UpdateGroupRequest {
|
|
@@ -3057,6 +3065,8 @@ export declare const Account: {
|
|
|
3057
3065
|
custom_id?: string | undefined;
|
|
3058
3066
|
verify_time?: Date | undefined;
|
|
3059
3067
|
disable_time?: Date | undefined;
|
|
3068
|
+
logo?: string | undefined;
|
|
3069
|
+
splash_screen?: string | undefined;
|
|
3060
3070
|
} & {
|
|
3061
3071
|
user?: ({
|
|
3062
3072
|
id?: string | undefined;
|
|
@@ -3131,6 +3141,8 @@ export declare const Account: {
|
|
|
3131
3141
|
custom_id?: string | undefined;
|
|
3132
3142
|
verify_time?: Date | undefined;
|
|
3133
3143
|
disable_time?: Date | undefined;
|
|
3144
|
+
logo?: string | undefined;
|
|
3145
|
+
splash_screen?: string | undefined;
|
|
3134
3146
|
} & { [K_4 in Exclude<keyof I, keyof Account>]: never; }>(base?: I | undefined): Account;
|
|
3135
3147
|
fromPartial<I_1 extends {
|
|
3136
3148
|
user?: {
|
|
@@ -3167,6 +3179,8 @@ export declare const Account: {
|
|
|
3167
3179
|
custom_id?: string | undefined;
|
|
3168
3180
|
verify_time?: Date | undefined;
|
|
3169
3181
|
disable_time?: Date | undefined;
|
|
3182
|
+
logo?: string | undefined;
|
|
3183
|
+
splash_screen?: string | undefined;
|
|
3170
3184
|
} & {
|
|
3171
3185
|
user?: ({
|
|
3172
3186
|
id?: string | undefined;
|
|
@@ -3241,6 +3255,8 @@ export declare const Account: {
|
|
|
3241
3255
|
custom_id?: string | undefined;
|
|
3242
3256
|
verify_time?: Date | undefined;
|
|
3243
3257
|
disable_time?: Date | undefined;
|
|
3258
|
+
logo?: string | undefined;
|
|
3259
|
+
splash_screen?: string | undefined;
|
|
3244
3260
|
} & { [K_9 in Exclude<keyof I_1, keyof Account>]: never; }>(object: I_1): Account;
|
|
3245
3261
|
};
|
|
3246
3262
|
export declare const AccountRefresh: {
|
|
@@ -8395,6 +8411,8 @@ export declare const UpdateAccountRequest: {
|
|
|
8395
8411
|
timezone?: string | undefined;
|
|
8396
8412
|
about_me?: string | undefined;
|
|
8397
8413
|
dob?: Date | undefined;
|
|
8414
|
+
logo?: string | undefined;
|
|
8415
|
+
splash_screen?: string | undefined;
|
|
8398
8416
|
} & {
|
|
8399
8417
|
username?: string | undefined;
|
|
8400
8418
|
display_name?: string | undefined;
|
|
@@ -8404,6 +8422,8 @@ export declare const UpdateAccountRequest: {
|
|
|
8404
8422
|
timezone?: string | undefined;
|
|
8405
8423
|
about_me?: string | undefined;
|
|
8406
8424
|
dob?: Date | undefined;
|
|
8425
|
+
logo?: string | undefined;
|
|
8426
|
+
splash_screen?: string | undefined;
|
|
8407
8427
|
} & { [K in Exclude<keyof I, keyof UpdateAccountRequest>]: never; }>(base?: I | undefined): UpdateAccountRequest;
|
|
8408
8428
|
fromPartial<I_1 extends {
|
|
8409
8429
|
username?: string | undefined;
|
|
@@ -8414,6 +8434,8 @@ export declare const UpdateAccountRequest: {
|
|
|
8414
8434
|
timezone?: string | undefined;
|
|
8415
8435
|
about_me?: string | undefined;
|
|
8416
8436
|
dob?: Date | undefined;
|
|
8437
|
+
logo?: string | undefined;
|
|
8438
|
+
splash_screen?: string | undefined;
|
|
8417
8439
|
} & {
|
|
8418
8440
|
username?: string | undefined;
|
|
8419
8441
|
display_name?: string | undefined;
|
|
@@ -8423,6 +8445,8 @@ export declare const UpdateAccountRequest: {
|
|
|
8423
8445
|
timezone?: string | undefined;
|
|
8424
8446
|
about_me?: string | undefined;
|
|
8425
8447
|
dob?: Date | undefined;
|
|
8448
|
+
logo?: string | undefined;
|
|
8449
|
+
splash_screen?: string | undefined;
|
|
8426
8450
|
} & { [K_1 in Exclude<keyof I_1, keyof UpdateAccountRequest>]: never; }>(object: I_1): UpdateAccountRequest;
|
|
8427
8451
|
};
|
|
8428
8452
|
export declare const UpdateGroupRequest: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.38",
|
|
4
4
|
"description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
|
|
5
5
|
"main": "dist/mezon-js-protobuf.cjs.js",
|
|
6
6
|
"module": "dist/mezon-js-protobuf.esm.mjs",
|