mezon-js 2.13.82 → 2.13.83
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/client.ts +7 -6
- package/dist/api/api.d.ts +23953 -0
- package/dist/api.gen.d.ts +2401 -0
- package/dist/client.d.ts +4 -4
- package/dist/google/protobuf/struct.d.ts +201 -0
- package/dist/google/protobuf/timestamp.d.ts +139 -0
- package/dist/google/protobuf/wrappers.d.ts +238 -0
- package/dist/mezon-js/client.d.ts +4 -4
- package/dist/mezon-js/proto/gen/api/api_pb.d.ts +235 -201
- package/dist/mezon-js/proto/gen/apigrpc_pb.d.ts +8 -4
- package/dist/mezon-js/proto/gen/rtapi/realtime_pb.d.ts +62 -0
- package/dist/mezon-js.cjs.js +545 -106
- package/dist/mezon-js.esm.mjs +545 -106
- package/dist/mezon-js.esm.mjs.map +1 -1
- package/dist/proto/gen/api/api_pb.d.ts +235 -201
- package/dist/proto/gen/apigrpc_pb.d.ts +8 -4
- package/dist/proto/gen/rtapi/realtime_pb.d.ts +62 -0
- package/package.json +1 -1
- package/proto/gen/api/api_pb.ts +11881 -11853
- package/proto/gen/apigrpc_pb.ts +1692 -1689
- package/proto/gen/google/api/annotations_pb.ts +39 -39
- package/proto/gen/google/api/http_pb.ts +474 -474
- package/proto/gen/google/protobuf/descriptor_pb.ts +2821 -2821
- package/proto/gen/google/protobuf/empty_pb.ts +66 -66
- package/proto/gen/google/protobuf/struct_pb.ts +192 -192
- package/proto/gen/google/protobuf/timestamp_pb.ts +166 -166
- package/proto/gen/google/protobuf/wrappers_pb.ts +295 -295
- package/proto/gen/protoc-gen-openapiv2/options/annotations_pb.ts +83 -83
- package/proto/gen/protoc-gen-openapiv2/options/openapiv2_pb.ts +1623 -1623
- package/proto/gen/rtapi/realtime_pb.ts +4990 -4928
package/client.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { create } from "@bufbuild/protobuf";
|
|
18
|
-
import { createGrpcWebTransport } from "@connectrpc/connect-web";
|
|
18
|
+
import { createConnectTransport, createGrpcWebTransport } from "@connectrpc/connect-web";
|
|
19
19
|
import {
|
|
20
20
|
CallOptions,
|
|
21
21
|
createClient,
|
|
@@ -302,6 +302,7 @@ import {
|
|
|
302
302
|
UpdateRoleRequest,
|
|
303
303
|
DeleteChannelDescRequest,
|
|
304
304
|
ClanEmojiDeleteRequestSchema,
|
|
305
|
+
ChannelDescListNoPool,
|
|
305
306
|
} from "./proto/gen/api/api_pb";
|
|
306
307
|
import { encode } from "js-base64";
|
|
307
308
|
import { DefaultSocket, Socket } from "./socket";
|
|
@@ -390,9 +391,9 @@ export class Client {
|
|
|
390
391
|
const scheme = useSSL ? "https://" : "http://";
|
|
391
392
|
const basePath = `${scheme}${host}:${port}`;
|
|
392
393
|
|
|
393
|
-
this.grpcTransport =
|
|
394
|
+
this.grpcTransport = createConnectTransport({
|
|
394
395
|
baseUrl: basePath,
|
|
395
|
-
useBinaryFormat:
|
|
396
|
+
useBinaryFormat: false,
|
|
396
397
|
});
|
|
397
398
|
|
|
398
399
|
this.gatewayClient = new GatewayMezonApi(
|
|
@@ -3864,7 +3865,7 @@ export class Client {
|
|
|
3864
3865
|
);
|
|
3865
3866
|
}
|
|
3866
3867
|
|
|
3867
|
-
async listChannelByUserId(session: Session): Promise<
|
|
3868
|
+
async listChannelByUserId(session: Session): Promise<ChannelDescListNoPool> {
|
|
3868
3869
|
if (
|
|
3869
3870
|
this.autoRefreshSession &&
|
|
3870
3871
|
session.refreshToken &&
|
|
@@ -4118,7 +4119,7 @@ export class Client {
|
|
|
4118
4119
|
clanId?: string,
|
|
4119
4120
|
threadId?: string,
|
|
4120
4121
|
page?: number
|
|
4121
|
-
): Promise<
|
|
4122
|
+
): Promise<ChannelDescListNoPool> {
|
|
4122
4123
|
if (
|
|
4123
4124
|
this.autoRefreshSession &&
|
|
4124
4125
|
session.refreshToken &&
|
|
@@ -5182,7 +5183,7 @@ export class Client {
|
|
|
5182
5183
|
clanId?: string,
|
|
5183
5184
|
channelId?: string,
|
|
5184
5185
|
label?: string
|
|
5185
|
-
): Promise<
|
|
5186
|
+
): Promise<ChannelDescListNoPool> {
|
|
5186
5187
|
if (
|
|
5187
5188
|
this.autoRefreshSession &&
|
|
5188
5189
|
session.refreshToken &&
|