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.
Files changed (30) hide show
  1. package/client.ts +7 -6
  2. package/dist/api/api.d.ts +23953 -0
  3. package/dist/api.gen.d.ts +2401 -0
  4. package/dist/client.d.ts +4 -4
  5. package/dist/google/protobuf/struct.d.ts +201 -0
  6. package/dist/google/protobuf/timestamp.d.ts +139 -0
  7. package/dist/google/protobuf/wrappers.d.ts +238 -0
  8. package/dist/mezon-js/client.d.ts +4 -4
  9. package/dist/mezon-js/proto/gen/api/api_pb.d.ts +235 -201
  10. package/dist/mezon-js/proto/gen/apigrpc_pb.d.ts +8 -4
  11. package/dist/mezon-js/proto/gen/rtapi/realtime_pb.d.ts +62 -0
  12. package/dist/mezon-js.cjs.js +545 -106
  13. package/dist/mezon-js.esm.mjs +545 -106
  14. package/dist/mezon-js.esm.mjs.map +1 -1
  15. package/dist/proto/gen/api/api_pb.d.ts +235 -201
  16. package/dist/proto/gen/apigrpc_pb.d.ts +8 -4
  17. package/dist/proto/gen/rtapi/realtime_pb.d.ts +62 -0
  18. package/package.json +1 -1
  19. package/proto/gen/api/api_pb.ts +11881 -11853
  20. package/proto/gen/apigrpc_pb.ts +1692 -1689
  21. package/proto/gen/google/api/annotations_pb.ts +39 -39
  22. package/proto/gen/google/api/http_pb.ts +474 -474
  23. package/proto/gen/google/protobuf/descriptor_pb.ts +2821 -2821
  24. package/proto/gen/google/protobuf/empty_pb.ts +66 -66
  25. package/proto/gen/google/protobuf/struct_pb.ts +192 -192
  26. package/proto/gen/google/protobuf/timestamp_pb.ts +166 -166
  27. package/proto/gen/google/protobuf/wrappers_pb.ts +295 -295
  28. package/proto/gen/protoc-gen-openapiv2/options/annotations_pb.ts +83 -83
  29. package/proto/gen/protoc-gen-openapiv2/options/openapiv2_pb.ts +1623 -1623
  30. 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 = createGrpcWebTransport({
394
+ this.grpcTransport = createConnectTransport({
394
395
  baseUrl: basePath,
395
- useBinaryFormat: true,
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<ChannelDescList> {
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<ChannelDescList> {
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<ChannelDescList> {
5186
+ ): Promise<ChannelDescListNoPool> {
5186
5187
  if (
5187
5188
  this.autoRefreshSession &&
5188
5189
  session.refreshToken &&