mezon-js 2.13.4 → 2.13.6
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.gen.ts +10 -0
- package/client.ts +4 -2
- package/dist/api.gen.d.ts +5 -1
- package/dist/client.d.ts +1 -1
- package/dist/mezon-js.cjs.js +5 -3
- package/dist/mezon-js.esm.mjs +5 -3
- package/package.json +1 -1
package/api.gen.ts
CHANGED
@@ -455,6 +455,14 @@ export interface ApiAllUsersAddChannelResponse {
|
|
455
455
|
limit?: number;
|
456
456
|
//
|
457
457
|
user_ids?: Array<string>;
|
458
|
+
//
|
459
|
+
usernames?: Array<string>;
|
460
|
+
//
|
461
|
+
display_names?: Array<string>;
|
462
|
+
//
|
463
|
+
avatars?: Array<string>;
|
464
|
+
//
|
465
|
+
onlines?: Array<boolean>;
|
458
466
|
}
|
459
467
|
|
460
468
|
/** */
|
@@ -5188,6 +5196,7 @@ export class MezonApi {
|
|
5188
5196
|
cursor?: string,
|
5189
5197
|
clanId?: string,
|
5190
5198
|
channelType?: number,
|
5199
|
+
isMobile?: boolean,
|
5191
5200
|
options: any = {}
|
5192
5201
|
): Promise<ApiChannelDescList> {
|
5193
5202
|
const urlPath = "/v2/channeldesc";
|
@@ -5197,6 +5206,7 @@ export class MezonApi {
|
|
5197
5206
|
queryParams.set("cursor", cursor);
|
5198
5207
|
queryParams.set("clan_id", clanId);
|
5199
5208
|
queryParams.set("channel_type", channelType);
|
5209
|
+
queryParams.set("is_mobile", isMobile);
|
5200
5210
|
|
5201
5211
|
let bodyJson: string = "";
|
5202
5212
|
|
package/client.ts
CHANGED
@@ -1557,7 +1557,8 @@ export class Client {
|
|
1557
1557
|
state?: number,
|
1558
1558
|
cursor?: string,
|
1559
1559
|
clanId?: string,
|
1560
|
-
channelType?: number
|
1560
|
+
channelType?: number,
|
1561
|
+
isMobile?: boolean
|
1561
1562
|
): Promise<ApiChannelDescList> {
|
1562
1563
|
if (
|
1563
1564
|
this.autoRefreshSession &&
|
@@ -1574,7 +1575,8 @@ export class Client {
|
|
1574
1575
|
state,
|
1575
1576
|
cursor,
|
1576
1577
|
clanId,
|
1577
|
-
channelType
|
1578
|
+
channelType,
|
1579
|
+
isMobile
|
1578
1580
|
)
|
1579
1581
|
.then((response: ApiChannelDescList) => {
|
1580
1582
|
var result: ApiChannelDescList = {
|
package/dist/api.gen.d.ts
CHANGED
@@ -262,6 +262,10 @@ export interface ApiAllUsersAddChannelResponse {
|
|
262
262
|
channel_id?: string;
|
263
263
|
limit?: number;
|
264
264
|
user_ids?: Array<string>;
|
265
|
+
usernames?: Array<string>;
|
266
|
+
display_names?: Array<string>;
|
267
|
+
avatars?: Array<string>;
|
268
|
+
onlines?: Array<boolean>;
|
265
269
|
}
|
266
270
|
/** */
|
267
271
|
export interface ApiAllUserClans {
|
@@ -2035,7 +2039,7 @@ export declare class MezonApi {
|
|
2035
2039
|
/** List all users that are part of a channel. */
|
2036
2040
|
listChannelUsers(bearerToken: string, clanId: string, channelId: string, channelType?: number, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiChannelUserList>;
|
2037
2041
|
/** List user channels */
|
2038
|
-
listChannelDescs(bearerToken: string, limit?: number, state?: number, cursor?: string, clanId?: string, channelType?: number, options?: any): Promise<ApiChannelDescList>;
|
2042
|
+
listChannelDescs(bearerToken: string, limit?: number, state?: number, cursor?: string, clanId?: string, channelType?: number, isMobile?: boolean, options?: any): Promise<ApiChannelDescList>;
|
2039
2043
|
/** Create a new channel with the current user as the owner. */
|
2040
2044
|
createChannelDesc(bearerToken: string, body: ApiCreateChannelDescRequest, options?: any): Promise<ApiChannelDescription>;
|
2041
2045
|
/** list user add channel by channel ids */
|
package/dist/client.d.ts
CHANGED
@@ -412,7 +412,7 @@ export declare class Client {
|
|
412
412
|
/** List a channel's users. */
|
413
413
|
listClanUsers(session: Session, clanId: string): Promise<ApiClanUserList>;
|
414
414
|
/** List channels. */
|
415
|
-
listChannelDescs(session: Session, limit?: number, state?: number, cursor?: string, clanId?: string, channelType?: number): Promise<ApiChannelDescList>;
|
415
|
+
listChannelDescs(session: Session, limit?: number, state?: number, cursor?: string, clanId?: string, channelType?: number, isMobile?: boolean): Promise<ApiChannelDescList>;
|
416
416
|
/** List clans */
|
417
417
|
listClanDescs(session: Session, limit?: number, state?: number, cursor?: string): Promise<ApiClanDescList>;
|
418
418
|
/** List categories. */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -2134,7 +2134,7 @@ var MezonApi = class {
|
|
2134
2134
|
]);
|
2135
2135
|
}
|
2136
2136
|
/** List user channels */
|
2137
|
-
listChannelDescs(bearerToken, limit, state, cursor, clanId, channelType, options = {}) {
|
2137
|
+
listChannelDescs(bearerToken, limit, state, cursor, clanId, channelType, isMobile, options = {}) {
|
2138
2138
|
const urlPath = "/v2/channeldesc";
|
2139
2139
|
const queryParams = /* @__PURE__ */ new Map();
|
2140
2140
|
queryParams.set("limit", limit);
|
@@ -2142,6 +2142,7 @@ var MezonApi = class {
|
|
2142
2142
|
queryParams.set("cursor", cursor);
|
2143
2143
|
queryParams.set("clan_id", clanId);
|
2144
2144
|
queryParams.set("channel_type", channelType);
|
2145
|
+
queryParams.set("is_mobile", isMobile);
|
2145
2146
|
let bodyJson = "";
|
2146
2147
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
2147
2148
|
const fetchOptions = buildFetchOptions("GET", options, bodyJson);
|
@@ -8961,7 +8962,7 @@ var Client = class {
|
|
8961
8962
|
});
|
8962
8963
|
}
|
8963
8964
|
/** List channels. */
|
8964
|
-
listChannelDescs(session, limit, state, cursor, clanId, channelType) {
|
8965
|
+
listChannelDescs(session, limit, state, cursor, clanId, channelType, isMobile) {
|
8965
8966
|
return __async(this, null, function* () {
|
8966
8967
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
|
8967
8968
|
yield this.sessionRefresh(session);
|
@@ -8972,7 +8973,8 @@ var Client = class {
|
|
8972
8973
|
state,
|
8973
8974
|
cursor,
|
8974
8975
|
clanId,
|
8975
|
-
channelType
|
8976
|
+
channelType,
|
8977
|
+
isMobile
|
8976
8978
|
).then((response) => {
|
8977
8979
|
var result = {
|
8978
8980
|
channeldesc: [],
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -2100,7 +2100,7 @@ var MezonApi = class {
|
|
2100
2100
|
]);
|
2101
2101
|
}
|
2102
2102
|
/** List user channels */
|
2103
|
-
listChannelDescs(bearerToken, limit, state, cursor, clanId, channelType, options = {}) {
|
2103
|
+
listChannelDescs(bearerToken, limit, state, cursor, clanId, channelType, isMobile, options = {}) {
|
2104
2104
|
const urlPath = "/v2/channeldesc";
|
2105
2105
|
const queryParams = /* @__PURE__ */ new Map();
|
2106
2106
|
queryParams.set("limit", limit);
|
@@ -2108,6 +2108,7 @@ var MezonApi = class {
|
|
2108
2108
|
queryParams.set("cursor", cursor);
|
2109
2109
|
queryParams.set("clan_id", clanId);
|
2110
2110
|
queryParams.set("channel_type", channelType);
|
2111
|
+
queryParams.set("is_mobile", isMobile);
|
2111
2112
|
let bodyJson = "";
|
2112
2113
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
2113
2114
|
const fetchOptions = buildFetchOptions("GET", options, bodyJson);
|
@@ -8927,7 +8928,7 @@ var Client = class {
|
|
8927
8928
|
});
|
8928
8929
|
}
|
8929
8930
|
/** List channels. */
|
8930
|
-
listChannelDescs(session, limit, state, cursor, clanId, channelType) {
|
8931
|
+
listChannelDescs(session, limit, state, cursor, clanId, channelType, isMobile) {
|
8931
8932
|
return __async(this, null, function* () {
|
8932
8933
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
|
8933
8934
|
yield this.sessionRefresh(session);
|
@@ -8938,7 +8939,8 @@ var Client = class {
|
|
8938
8939
|
state,
|
8939
8940
|
cursor,
|
8940
8941
|
clanId,
|
8941
|
-
channelType
|
8942
|
+
channelType,
|
8943
|
+
isMobile
|
8942
8944
|
).then((response) => {
|
8943
8945
|
var result = {
|
8944
8946
|
channeldesc: [],
|