mezon-js 2.10.32 → 2.10.34
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 +16 -21
- package/client.ts +2 -3
- package/dist/api.gen.d.ts +6 -7
- package/dist/client.d.ts +1 -1
- package/dist/mezon-js.cjs.js +6 -7
- package/dist/mezon-js.esm.mjs +6 -7
- package/package.json +1 -1
package/api.gen.ts
CHANGED
@@ -1697,7 +1697,7 @@ export interface ApiNotificationUserChannel {
|
|
1697
1697
|
}
|
1698
1698
|
|
1699
1699
|
/** */
|
1700
|
-
export interface
|
1700
|
+
export interface ApiStreamHttpCallbackRequest {
|
1701
1701
|
//
|
1702
1702
|
action?: string;
|
1703
1703
|
//
|
@@ -1727,7 +1727,7 @@ export interface ApiOssrsHttpCallbackRequest {
|
|
1727
1727
|
}
|
1728
1728
|
|
1729
1729
|
/** */
|
1730
|
-
export interface
|
1730
|
+
export interface ApiStreamHttpCallbackResponse {
|
1731
1731
|
//
|
1732
1732
|
code?: number;
|
1733
1733
|
//
|
@@ -2553,13 +2553,11 @@ export interface MezonapiEvent {
|
|
2553
2553
|
|
2554
2554
|
/** */
|
2555
2555
|
export interface MezonapiListAuditLog {
|
2556
|
+
//
|
2557
|
+
date_log?: string;
|
2556
2558
|
//
|
2557
2559
|
logs?: Array<ApiAuditLog>;
|
2558
2560
|
//
|
2559
|
-
page?: number;
|
2560
|
-
//
|
2561
|
-
page_size?: number;
|
2562
|
-
//
|
2563
2561
|
total_count?: number;
|
2564
2562
|
}
|
2565
2563
|
|
@@ -4587,22 +4585,19 @@ export class MezonApi {
|
|
4587
4585
|
}
|
4588
4586
|
|
4589
4587
|
/** */
|
4590
|
-
listAuditLog(
|
4591
|
-
|
4592
|
-
|
4593
|
-
|
4594
|
-
|
4595
|
-
|
4596
|
-
|
4597
|
-
options: any = {}
|
4598
|
-
): Promise<MezonapiListAuditLog> {
|
4588
|
+
listAuditLog(bearerToken: string,
|
4589
|
+
actionLog?:string,
|
4590
|
+
userId?:string,
|
4591
|
+
clanId?:string,
|
4592
|
+
dateLog?:string,
|
4593
|
+
options: any = {}): Promise<MezonapiListAuditLog> {
|
4594
|
+
|
4599
4595
|
const urlPath = "/v2/audit_log";
|
4600
4596
|
const queryParams = new Map<string, any>();
|
4601
4597
|
queryParams.set("action_log", actionLog);
|
4602
4598
|
queryParams.set("user_id", userId);
|
4603
4599
|
queryParams.set("clan_id", clanId);
|
4604
|
-
queryParams.set("
|
4605
|
-
queryParams.set("page_size", pageSize);
|
4600
|
+
queryParams.set("date_log", dateLog);
|
4606
4601
|
|
4607
4602
|
let bodyJson: string = "";
|
4608
4603
|
|
@@ -7808,18 +7803,18 @@ export class MezonApi {
|
|
7808
7803
|
]);
|
7809
7804
|
}
|
7810
7805
|
|
7811
|
-
/**
|
7806
|
+
/** Stream http callback. */
|
7812
7807
|
streamingServerCallback(
|
7813
7808
|
bearerToken: string,
|
7814
|
-
body:
|
7809
|
+
body: ApiStreamHttpCallbackRequest,
|
7815
7810
|
options: any = {}
|
7816
|
-
): Promise<
|
7811
|
+
): Promise<ApiStreamHttpCallbackResponse> {
|
7817
7812
|
if (body === null || body === undefined) {
|
7818
7813
|
throw new Error(
|
7819
7814
|
"'body' is a required parameter but is null or undefined."
|
7820
7815
|
);
|
7821
7816
|
}
|
7822
|
-
const urlPath = "/v2/
|
7817
|
+
const urlPath = "/v2/stream/callback";
|
7823
7818
|
const queryParams = new Map<string, any>();
|
7824
7819
|
|
7825
7820
|
let bodyJson: string = "";
|
package/client.ts
CHANGED
@@ -4456,8 +4456,7 @@ export class Client {
|
|
4456
4456
|
actionLog?: string,
|
4457
4457
|
userId?: string,
|
4458
4458
|
clanId?: string,
|
4459
|
-
|
4460
|
-
pageSize?: number
|
4459
|
+
date_log?: string
|
4461
4460
|
): Promise<MezonapiListAuditLog> {
|
4462
4461
|
if (
|
4463
4462
|
this.autoRefreshSession &&
|
@@ -4468,7 +4467,7 @@ export class Client {
|
|
4468
4467
|
}
|
4469
4468
|
|
4470
4469
|
return this.apiClient
|
4471
|
-
.listAuditLog(session.token, actionLog, userId, clanId,
|
4470
|
+
.listAuditLog(session.token, actionLog, userId, clanId, date_log)
|
4472
4471
|
.then((response: MezonapiListAuditLog) => {
|
4473
4472
|
return response;
|
4474
4473
|
});
|
package/dist/api.gen.d.ts
CHANGED
@@ -986,7 +986,7 @@ export interface ApiNotificationUserChannel {
|
|
986
986
|
time_mute?: string;
|
987
987
|
}
|
988
988
|
/** */
|
989
|
-
export interface
|
989
|
+
export interface ApiStreamHttpCallbackRequest {
|
990
990
|
action?: string;
|
991
991
|
app?: string;
|
992
992
|
client_id?: string;
|
@@ -1002,7 +1002,7 @@ export interface ApiOssrsHttpCallbackRequest {
|
|
1002
1002
|
vhost?: string;
|
1003
1003
|
}
|
1004
1004
|
/** */
|
1005
|
-
export interface
|
1005
|
+
export interface ApiStreamHttpCallbackResponse {
|
1006
1006
|
code?: number;
|
1007
1007
|
msg?: string;
|
1008
1008
|
}
|
@@ -1484,9 +1484,8 @@ export interface MezonapiEvent {
|
|
1484
1484
|
}
|
1485
1485
|
/** */
|
1486
1486
|
export interface MezonapiListAuditLog {
|
1487
|
+
date_log?: string;
|
1487
1488
|
logs?: Array<ApiAuditLog>;
|
1488
|
-
page?: number;
|
1489
|
-
page_size?: number;
|
1490
1489
|
total_count?: number;
|
1491
1490
|
}
|
1492
1491
|
/** */
|
@@ -1699,7 +1698,7 @@ export declare class MezonApi {
|
|
1699
1698
|
/** Unban an app. */
|
1700
1699
|
unbanApp(bearerToken: string, id: string, options?: any): Promise<any>;
|
1701
1700
|
/** */
|
1702
|
-
listAuditLog(bearerToken: string, actionLog?: string, userId?: string, clanId?: string,
|
1701
|
+
listAuditLog(bearerToken: string, actionLog?: string, userId?: string, clanId?: string, dateLog?: string, options?: any): Promise<MezonapiListAuditLog>;
|
1703
1702
|
/** */
|
1704
1703
|
updateCategoryOrder(bearerToken: string, body: ApiUpdateCategoryOrderRequest, options?: any): Promise<any>;
|
1705
1704
|
/** */
|
@@ -1858,8 +1857,8 @@ export declare class MezonApi {
|
|
1858
1857
|
deleteNotiReactMessage(bearerToken: string, channelId?: string, options?: any): Promise<any>;
|
1859
1858
|
/** */
|
1860
1859
|
setNotificationReactMessage(bearerToken: string, body: ApiNotificationChannel, options?: any): Promise<any>;
|
1861
|
-
/**
|
1862
|
-
streamingServerCallback(bearerToken: string, body:
|
1860
|
+
/** Stream http callback. */
|
1861
|
+
streamingServerCallback(bearerToken: string, body: ApiStreamHttpCallbackRequest, options?: any): Promise<ApiStreamHttpCallbackResponse>;
|
1863
1862
|
/** set permission role channel. */
|
1864
1863
|
setRoleChannelPermission(bearerToken: string, body: ApiUpdateRoleChannelRequest, options?: any): Promise<any>;
|
1865
1864
|
/** Get permission list */
|
package/dist/client.d.ts
CHANGED
@@ -615,7 +615,7 @@ export declare class Client {
|
|
615
615
|
getPubKeys(session: Session, userIds: Array<string>): Promise<ApiGetPubKeysResponse>;
|
616
616
|
pushPubKey(session: Session, PK: ApiPubKey): Promise<ApiGetPubKeysResponse>;
|
617
617
|
getKeyServer(session: Session): Promise<ApiGetKeyServerResp>;
|
618
|
-
listAuditLog(session: Session, actionLog?: string, userId?: string, clanId?: string,
|
618
|
+
listAuditLog(session: Session, actionLog?: string, userId?: string, clanId?: string, date_log?: string): Promise<MezonapiListAuditLog>;
|
619
619
|
listOnboarding(session: Session, clanId?: string, guideType?: number, limit?: number, page?: number): Promise<ApiListOnboardingResponse>;
|
620
620
|
getOnboardingDetail(session: Session, id: string, clanId?: string): Promise<ApiOnboardingItem>;
|
621
621
|
createOnboarding(session: Session, request: ApiCreateOnboardingRequest): Promise<any>;
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -2162,14 +2162,13 @@ var MezonApi = class {
|
|
2162
2162
|
]);
|
2163
2163
|
}
|
2164
2164
|
/** */
|
2165
|
-
listAuditLog(bearerToken, actionLog, userId, clanId,
|
2165
|
+
listAuditLog(bearerToken, actionLog, userId, clanId, dateLog, options = {}) {
|
2166
2166
|
const urlPath = "/v2/audit_log";
|
2167
2167
|
const queryParams = /* @__PURE__ */ new Map();
|
2168
2168
|
queryParams.set("action_log", actionLog);
|
2169
2169
|
queryParams.set("user_id", userId);
|
2170
2170
|
queryParams.set("clan_id", clanId);
|
2171
|
-
queryParams.set("
|
2172
|
-
queryParams.set("page_size", pageSize);
|
2171
|
+
queryParams.set("date_log", dateLog);
|
2173
2172
|
let bodyJson = "";
|
2174
2173
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
2175
2174
|
const fetchOptions = buildFetchOptions("GET", options, bodyJson);
|
@@ -4673,14 +4672,14 @@ var MezonApi = class {
|
|
4673
4672
|
)
|
4674
4673
|
]);
|
4675
4674
|
}
|
4676
|
-
/**
|
4675
|
+
/** Stream http callback. */
|
4677
4676
|
streamingServerCallback(bearerToken, body, options = {}) {
|
4678
4677
|
if (body === null || body === void 0) {
|
4679
4678
|
throw new Error(
|
4680
4679
|
"'body' is a required parameter but is null or undefined."
|
4681
4680
|
);
|
4682
4681
|
}
|
4683
|
-
const urlPath = "/v2/
|
4682
|
+
const urlPath = "/v2/stream/callback";
|
4684
4683
|
const queryParams = /* @__PURE__ */ new Map();
|
4685
4684
|
let bodyJson = "";
|
4686
4685
|
bodyJson = JSON.stringify(body || {});
|
@@ -10387,12 +10386,12 @@ var Client = class {
|
|
10387
10386
|
});
|
10388
10387
|
});
|
10389
10388
|
}
|
10390
|
-
listAuditLog(session, actionLog, userId, clanId,
|
10389
|
+
listAuditLog(session, actionLog, userId, clanId, date_log) {
|
10391
10390
|
return __async(this, null, function* () {
|
10392
10391
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
10393
10392
|
yield this.sessionRefresh(session);
|
10394
10393
|
}
|
10395
|
-
return this.apiClient.listAuditLog(session.token, actionLog, userId, clanId,
|
10394
|
+
return this.apiClient.listAuditLog(session.token, actionLog, userId, clanId, date_log).then((response) => {
|
10396
10395
|
return response;
|
10397
10396
|
});
|
10398
10397
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -2128,14 +2128,13 @@ var MezonApi = class {
|
|
2128
2128
|
]);
|
2129
2129
|
}
|
2130
2130
|
/** */
|
2131
|
-
listAuditLog(bearerToken, actionLog, userId, clanId,
|
2131
|
+
listAuditLog(bearerToken, actionLog, userId, clanId, dateLog, options = {}) {
|
2132
2132
|
const urlPath = "/v2/audit_log";
|
2133
2133
|
const queryParams = /* @__PURE__ */ new Map();
|
2134
2134
|
queryParams.set("action_log", actionLog);
|
2135
2135
|
queryParams.set("user_id", userId);
|
2136
2136
|
queryParams.set("clan_id", clanId);
|
2137
|
-
queryParams.set("
|
2138
|
-
queryParams.set("page_size", pageSize);
|
2137
|
+
queryParams.set("date_log", dateLog);
|
2139
2138
|
let bodyJson = "";
|
2140
2139
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
2141
2140
|
const fetchOptions = buildFetchOptions("GET", options, bodyJson);
|
@@ -4639,14 +4638,14 @@ var MezonApi = class {
|
|
4639
4638
|
)
|
4640
4639
|
]);
|
4641
4640
|
}
|
4642
|
-
/**
|
4641
|
+
/** Stream http callback. */
|
4643
4642
|
streamingServerCallback(bearerToken, body, options = {}) {
|
4644
4643
|
if (body === null || body === void 0) {
|
4645
4644
|
throw new Error(
|
4646
4645
|
"'body' is a required parameter but is null or undefined."
|
4647
4646
|
);
|
4648
4647
|
}
|
4649
|
-
const urlPath = "/v2/
|
4648
|
+
const urlPath = "/v2/stream/callback";
|
4650
4649
|
const queryParams = /* @__PURE__ */ new Map();
|
4651
4650
|
let bodyJson = "";
|
4652
4651
|
bodyJson = JSON.stringify(body || {});
|
@@ -10353,12 +10352,12 @@ var Client = class {
|
|
10353
10352
|
});
|
10354
10353
|
});
|
10355
10354
|
}
|
10356
|
-
listAuditLog(session, actionLog, userId, clanId,
|
10355
|
+
listAuditLog(session, actionLog, userId, clanId, date_log) {
|
10357
10356
|
return __async(this, null, function* () {
|
10358
10357
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
10359
10358
|
yield this.sessionRefresh(session);
|
10360
10359
|
}
|
10361
|
-
return this.apiClient.listAuditLog(session.token, actionLog, userId, clanId,
|
10360
|
+
return this.apiClient.listAuditLog(session.token, actionLog, userId, clanId, date_log).then((response) => {
|
10362
10361
|
return response;
|
10363
10362
|
});
|
10364
10363
|
});
|