mezon-js-protobuf 1.7.44 → 1.7.46
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 +79 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +24 -0
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -4063,6 +4063,11 @@ export interface GenerateHashChannelAppsResponse {
|
|
|
4063
4063
|
web_app_data: string;
|
|
4064
4064
|
}
|
|
4065
4065
|
|
|
4066
|
+
export interface GetMezonAccountRequest {
|
|
4067
|
+
secret: string;
|
|
4068
|
+
email: string;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4066
4071
|
function createBaseAccount(): Account {
|
|
4067
4072
|
return {
|
|
4068
4073
|
user: undefined,
|
|
@@ -40466,6 +40471,80 @@ export const GenerateHashChannelAppsResponse = {
|
|
|
40466
40471
|
},
|
|
40467
40472
|
};
|
|
40468
40473
|
|
|
40474
|
+
function createBaseGetMezonAccountRequest(): GetMezonAccountRequest {
|
|
40475
|
+
return { secret: "", email: "" };
|
|
40476
|
+
}
|
|
40477
|
+
|
|
40478
|
+
export const GetMezonAccountRequest = {
|
|
40479
|
+
encode(message: GetMezonAccountRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
40480
|
+
if (message.secret !== "") {
|
|
40481
|
+
writer.uint32(10).string(message.secret);
|
|
40482
|
+
}
|
|
40483
|
+
if (message.email !== "") {
|
|
40484
|
+
writer.uint32(18).string(message.email);
|
|
40485
|
+
}
|
|
40486
|
+
return writer;
|
|
40487
|
+
},
|
|
40488
|
+
|
|
40489
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetMezonAccountRequest {
|
|
40490
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
40491
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
40492
|
+
const message = createBaseGetMezonAccountRequest();
|
|
40493
|
+
while (reader.pos < end) {
|
|
40494
|
+
const tag = reader.uint32();
|
|
40495
|
+
switch (tag >>> 3) {
|
|
40496
|
+
case 1:
|
|
40497
|
+
if (tag !== 10) {
|
|
40498
|
+
break;
|
|
40499
|
+
}
|
|
40500
|
+
|
|
40501
|
+
message.secret = reader.string();
|
|
40502
|
+
continue;
|
|
40503
|
+
case 2:
|
|
40504
|
+
if (tag !== 18) {
|
|
40505
|
+
break;
|
|
40506
|
+
}
|
|
40507
|
+
|
|
40508
|
+
message.email = reader.string();
|
|
40509
|
+
continue;
|
|
40510
|
+
}
|
|
40511
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40512
|
+
break;
|
|
40513
|
+
}
|
|
40514
|
+
reader.skipType(tag & 7);
|
|
40515
|
+
}
|
|
40516
|
+
return message;
|
|
40517
|
+
},
|
|
40518
|
+
|
|
40519
|
+
fromJSON(object: any): GetMezonAccountRequest {
|
|
40520
|
+
return {
|
|
40521
|
+
secret: isSet(object.secret) ? globalThis.String(object.secret) : "",
|
|
40522
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
40523
|
+
};
|
|
40524
|
+
},
|
|
40525
|
+
|
|
40526
|
+
toJSON(message: GetMezonAccountRequest): unknown {
|
|
40527
|
+
const obj: any = {};
|
|
40528
|
+
if (message.secret !== "") {
|
|
40529
|
+
obj.secret = message.secret;
|
|
40530
|
+
}
|
|
40531
|
+
if (message.email !== "") {
|
|
40532
|
+
obj.email = message.email;
|
|
40533
|
+
}
|
|
40534
|
+
return obj;
|
|
40535
|
+
},
|
|
40536
|
+
|
|
40537
|
+
create<I extends Exact<DeepPartial<GetMezonAccountRequest>, I>>(base?: I): GetMezonAccountRequest {
|
|
40538
|
+
return GetMezonAccountRequest.fromPartial(base ?? ({} as any));
|
|
40539
|
+
},
|
|
40540
|
+
fromPartial<I extends Exact<DeepPartial<GetMezonAccountRequest>, I>>(object: I): GetMezonAccountRequest {
|
|
40541
|
+
const message = createBaseGetMezonAccountRequest();
|
|
40542
|
+
message.secret = object.secret ?? "";
|
|
40543
|
+
message.email = object.email ?? "";
|
|
40544
|
+
return message;
|
|
40545
|
+
},
|
|
40546
|
+
};
|
|
40547
|
+
|
|
40469
40548
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
40470
40549
|
if ((globalThis as any).Buffer) {
|
|
40471
40550
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
@@ -3292,6 +3292,10 @@ export interface GenerateHashChannelAppsRequest {
|
|
|
3292
3292
|
export interface GenerateHashChannelAppsResponse {
|
|
3293
3293
|
web_app_data: string;
|
|
3294
3294
|
}
|
|
3295
|
+
export interface GetMezonAccountRequest {
|
|
3296
|
+
secret: string;
|
|
3297
|
+
email: string;
|
|
3298
|
+
}
|
|
3295
3299
|
export declare const Account: {
|
|
3296
3300
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
3297
3301
|
decode(input: _m0.Reader | Uint8Array, length?: number): Account;
|
|
@@ -25744,6 +25748,26 @@ export declare const GenerateHashChannelAppsResponse: {
|
|
|
25744
25748
|
web_app_data?: string | undefined;
|
|
25745
25749
|
} & { [K_1 in Exclude<keyof I_1, "web_app_data">]: never; }>(object: I_1): GenerateHashChannelAppsResponse;
|
|
25746
25750
|
};
|
|
25751
|
+
export declare const GetMezonAccountRequest: {
|
|
25752
|
+
encode(message: GetMezonAccountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
25753
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetMezonAccountRequest;
|
|
25754
|
+
fromJSON(object: any): GetMezonAccountRequest;
|
|
25755
|
+
toJSON(message: GetMezonAccountRequest): unknown;
|
|
25756
|
+
create<I extends {
|
|
25757
|
+
secret?: string | undefined;
|
|
25758
|
+
email?: string | undefined;
|
|
25759
|
+
} & {
|
|
25760
|
+
secret?: string | undefined;
|
|
25761
|
+
email?: string | undefined;
|
|
25762
|
+
} & { [K in Exclude<keyof I, keyof GetMezonAccountRequest>]: never; }>(base?: I | undefined): GetMezonAccountRequest;
|
|
25763
|
+
fromPartial<I_1 extends {
|
|
25764
|
+
secret?: string | undefined;
|
|
25765
|
+
email?: string | undefined;
|
|
25766
|
+
} & {
|
|
25767
|
+
secret?: string | undefined;
|
|
25768
|
+
email?: string | undefined;
|
|
25769
|
+
} & { [K_1 in Exclude<keyof I_1, keyof GetMezonAccountRequest>]: never; }>(object: I_1): GetMezonAccountRequest;
|
|
25770
|
+
};
|
|
25747
25771
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25748
25772
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
25749
25773
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.46",
|
|
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",
|