mezon-js-protobuf 1.8.25 → 1.8.27
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 +140 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +43 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +381 -331
- package/dist/mezon-js-protobuf.cjs.js +86 -5
- package/dist/mezon-js-protobuf.esm.mjs +86 -5
- package/package.json +1 -1
- package/rtapi/realtime.ts +103 -1
package/api/api.ts
CHANGED
|
@@ -3861,6 +3861,15 @@ export interface ForSaleItemList {
|
|
|
3861
3861
|
for_sale_items: ForSaleItem[];
|
|
3862
3862
|
}
|
|
3863
3863
|
|
|
3864
|
+
export interface IsFollowerRequest {
|
|
3865
|
+
follow_id: string;
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3868
|
+
export interface IsFollowerResponse {
|
|
3869
|
+
follow_id: string;
|
|
3870
|
+
is_follower: boolean;
|
|
3871
|
+
}
|
|
3872
|
+
|
|
3864
3873
|
function createBaseAccount(): Account {
|
|
3865
3874
|
return {
|
|
3866
3875
|
user: undefined,
|
|
@@ -38501,6 +38510,137 @@ export const ForSaleItemList = {
|
|
|
38501
38510
|
},
|
|
38502
38511
|
};
|
|
38503
38512
|
|
|
38513
|
+
function createBaseIsFollowerRequest(): IsFollowerRequest {
|
|
38514
|
+
return { follow_id: "" };
|
|
38515
|
+
}
|
|
38516
|
+
|
|
38517
|
+
export const IsFollowerRequest = {
|
|
38518
|
+
encode(message: IsFollowerRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38519
|
+
if (message.follow_id !== "") {
|
|
38520
|
+
writer.uint32(10).string(message.follow_id);
|
|
38521
|
+
}
|
|
38522
|
+
return writer;
|
|
38523
|
+
},
|
|
38524
|
+
|
|
38525
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): IsFollowerRequest {
|
|
38526
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
38527
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38528
|
+
const message = createBaseIsFollowerRequest();
|
|
38529
|
+
while (reader.pos < end) {
|
|
38530
|
+
const tag = reader.uint32();
|
|
38531
|
+
switch (tag >>> 3) {
|
|
38532
|
+
case 1:
|
|
38533
|
+
if (tag !== 10) {
|
|
38534
|
+
break;
|
|
38535
|
+
}
|
|
38536
|
+
|
|
38537
|
+
message.follow_id = reader.string();
|
|
38538
|
+
continue;
|
|
38539
|
+
}
|
|
38540
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
38541
|
+
break;
|
|
38542
|
+
}
|
|
38543
|
+
reader.skipType(tag & 7);
|
|
38544
|
+
}
|
|
38545
|
+
return message;
|
|
38546
|
+
},
|
|
38547
|
+
|
|
38548
|
+
fromJSON(object: any): IsFollowerRequest {
|
|
38549
|
+
return { follow_id: isSet(object.follow_id) ? globalThis.String(object.follow_id) : "" };
|
|
38550
|
+
},
|
|
38551
|
+
|
|
38552
|
+
toJSON(message: IsFollowerRequest): unknown {
|
|
38553
|
+
const obj: any = {};
|
|
38554
|
+
if (message.follow_id !== "") {
|
|
38555
|
+
obj.follow_id = message.follow_id;
|
|
38556
|
+
}
|
|
38557
|
+
return obj;
|
|
38558
|
+
},
|
|
38559
|
+
|
|
38560
|
+
create<I extends Exact<DeepPartial<IsFollowerRequest>, I>>(base?: I): IsFollowerRequest {
|
|
38561
|
+
return IsFollowerRequest.fromPartial(base ?? ({} as any));
|
|
38562
|
+
},
|
|
38563
|
+
fromPartial<I extends Exact<DeepPartial<IsFollowerRequest>, I>>(object: I): IsFollowerRequest {
|
|
38564
|
+
const message = createBaseIsFollowerRequest();
|
|
38565
|
+
message.follow_id = object.follow_id ?? "";
|
|
38566
|
+
return message;
|
|
38567
|
+
},
|
|
38568
|
+
};
|
|
38569
|
+
|
|
38570
|
+
function createBaseIsFollowerResponse(): IsFollowerResponse {
|
|
38571
|
+
return { follow_id: "", is_follower: false };
|
|
38572
|
+
}
|
|
38573
|
+
|
|
38574
|
+
export const IsFollowerResponse = {
|
|
38575
|
+
encode(message: IsFollowerResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38576
|
+
if (message.follow_id !== "") {
|
|
38577
|
+
writer.uint32(10).string(message.follow_id);
|
|
38578
|
+
}
|
|
38579
|
+
if (message.is_follower !== false) {
|
|
38580
|
+
writer.uint32(16).bool(message.is_follower);
|
|
38581
|
+
}
|
|
38582
|
+
return writer;
|
|
38583
|
+
},
|
|
38584
|
+
|
|
38585
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): IsFollowerResponse {
|
|
38586
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
38587
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38588
|
+
const message = createBaseIsFollowerResponse();
|
|
38589
|
+
while (reader.pos < end) {
|
|
38590
|
+
const tag = reader.uint32();
|
|
38591
|
+
switch (tag >>> 3) {
|
|
38592
|
+
case 1:
|
|
38593
|
+
if (tag !== 10) {
|
|
38594
|
+
break;
|
|
38595
|
+
}
|
|
38596
|
+
|
|
38597
|
+
message.follow_id = reader.string();
|
|
38598
|
+
continue;
|
|
38599
|
+
case 2:
|
|
38600
|
+
if (tag !== 16) {
|
|
38601
|
+
break;
|
|
38602
|
+
}
|
|
38603
|
+
|
|
38604
|
+
message.is_follower = reader.bool();
|
|
38605
|
+
continue;
|
|
38606
|
+
}
|
|
38607
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
38608
|
+
break;
|
|
38609
|
+
}
|
|
38610
|
+
reader.skipType(tag & 7);
|
|
38611
|
+
}
|
|
38612
|
+
return message;
|
|
38613
|
+
},
|
|
38614
|
+
|
|
38615
|
+
fromJSON(object: any): IsFollowerResponse {
|
|
38616
|
+
return {
|
|
38617
|
+
follow_id: isSet(object.follow_id) ? globalThis.String(object.follow_id) : "",
|
|
38618
|
+
is_follower: isSet(object.is_follower) ? globalThis.Boolean(object.is_follower) : false,
|
|
38619
|
+
};
|
|
38620
|
+
},
|
|
38621
|
+
|
|
38622
|
+
toJSON(message: IsFollowerResponse): unknown {
|
|
38623
|
+
const obj: any = {};
|
|
38624
|
+
if (message.follow_id !== "") {
|
|
38625
|
+
obj.follow_id = message.follow_id;
|
|
38626
|
+
}
|
|
38627
|
+
if (message.is_follower !== false) {
|
|
38628
|
+
obj.is_follower = message.is_follower;
|
|
38629
|
+
}
|
|
38630
|
+
return obj;
|
|
38631
|
+
},
|
|
38632
|
+
|
|
38633
|
+
create<I extends Exact<DeepPartial<IsFollowerResponse>, I>>(base?: I): IsFollowerResponse {
|
|
38634
|
+
return IsFollowerResponse.fromPartial(base ?? ({} as any));
|
|
38635
|
+
},
|
|
38636
|
+
fromPartial<I extends Exact<DeepPartial<IsFollowerResponse>, I>>(object: I): IsFollowerResponse {
|
|
38637
|
+
const message = createBaseIsFollowerResponse();
|
|
38638
|
+
message.follow_id = object.follow_id ?? "";
|
|
38639
|
+
message.is_follower = object.is_follower ?? false;
|
|
38640
|
+
return message;
|
|
38641
|
+
},
|
|
38642
|
+
};
|
|
38643
|
+
|
|
38504
38644
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
38505
38645
|
if ((globalThis as any).Buffer) {
|
|
38506
38646
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
@@ -3128,6 +3128,13 @@ export interface ForSaleItem {
|
|
|
3128
3128
|
export interface ForSaleItemList {
|
|
3129
3129
|
for_sale_items: ForSaleItem[];
|
|
3130
3130
|
}
|
|
3131
|
+
export interface IsFollowerRequest {
|
|
3132
|
+
follow_id: string;
|
|
3133
|
+
}
|
|
3134
|
+
export interface IsFollowerResponse {
|
|
3135
|
+
follow_id: string;
|
|
3136
|
+
is_follower: boolean;
|
|
3137
|
+
}
|
|
3131
3138
|
export declare const Account: {
|
|
3132
3139
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
3133
3140
|
decode(input: _m0.Reader | Uint8Array, length?: number): Account;
|
|
@@ -24728,6 +24735,42 @@ export declare const ForSaleItemList: {
|
|
|
24728
24735
|
}[]>]: never; }) | undefined;
|
|
24729
24736
|
} & { [K_5 in Exclude<keyof I_1, "for_sale_items">]: never; }>(object: I_1): ForSaleItemList;
|
|
24730
24737
|
};
|
|
24738
|
+
export declare const IsFollowerRequest: {
|
|
24739
|
+
encode(message: IsFollowerRequest, writer?: _m0.Writer): _m0.Writer;
|
|
24740
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): IsFollowerRequest;
|
|
24741
|
+
fromJSON(object: any): IsFollowerRequest;
|
|
24742
|
+
toJSON(message: IsFollowerRequest): unknown;
|
|
24743
|
+
create<I extends {
|
|
24744
|
+
follow_id?: string | undefined;
|
|
24745
|
+
} & {
|
|
24746
|
+
follow_id?: string | undefined;
|
|
24747
|
+
} & { [K in Exclude<keyof I, "follow_id">]: never; }>(base?: I | undefined): IsFollowerRequest;
|
|
24748
|
+
fromPartial<I_1 extends {
|
|
24749
|
+
follow_id?: string | undefined;
|
|
24750
|
+
} & {
|
|
24751
|
+
follow_id?: string | undefined;
|
|
24752
|
+
} & { [K_1 in Exclude<keyof I_1, "follow_id">]: never; }>(object: I_1): IsFollowerRequest;
|
|
24753
|
+
};
|
|
24754
|
+
export declare const IsFollowerResponse: {
|
|
24755
|
+
encode(message: IsFollowerResponse, writer?: _m0.Writer): _m0.Writer;
|
|
24756
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): IsFollowerResponse;
|
|
24757
|
+
fromJSON(object: any): IsFollowerResponse;
|
|
24758
|
+
toJSON(message: IsFollowerResponse): unknown;
|
|
24759
|
+
create<I extends {
|
|
24760
|
+
follow_id?: string | undefined;
|
|
24761
|
+
is_follower?: boolean | undefined;
|
|
24762
|
+
} & {
|
|
24763
|
+
follow_id?: string | undefined;
|
|
24764
|
+
is_follower?: boolean | undefined;
|
|
24765
|
+
} & { [K in Exclude<keyof I, keyof IsFollowerResponse>]: never; }>(base?: I | undefined): IsFollowerResponse;
|
|
24766
|
+
fromPartial<I_1 extends {
|
|
24767
|
+
follow_id?: string | undefined;
|
|
24768
|
+
is_follower?: boolean | undefined;
|
|
24769
|
+
} & {
|
|
24770
|
+
follow_id?: string | undefined;
|
|
24771
|
+
is_follower?: boolean | undefined;
|
|
24772
|
+
} & { [K_1 in Exclude<keyof I_1, keyof IsFollowerResponse>]: never; }>(object: I_1): IsFollowerResponse;
|
|
24773
|
+
};
|
|
24731
24774
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
24732
24775
|
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 {} ? {
|
|
24733
24776
|
[K in keyof T]?: DeepPartial<T[K]>;
|