mezon-js 2.10.33 → 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 +6 -6
- package/dist/api.gen.d.ts +4 -4
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- 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
|
//
|
@@ -7803,18 +7803,18 @@ export class MezonApi {
|
|
7803
7803
|
]);
|
7804
7804
|
}
|
7805
7805
|
|
7806
|
-
/**
|
7806
|
+
/** Stream http callback. */
|
7807
7807
|
streamingServerCallback(
|
7808
7808
|
bearerToken: string,
|
7809
|
-
body:
|
7809
|
+
body: ApiStreamHttpCallbackRequest,
|
7810
7810
|
options: any = {}
|
7811
|
-
): Promise<
|
7811
|
+
): Promise<ApiStreamHttpCallbackResponse> {
|
7812
7812
|
if (body === null || body === undefined) {
|
7813
7813
|
throw new Error(
|
7814
7814
|
"'body' is a required parameter but is null or undefined."
|
7815
7815
|
);
|
7816
7816
|
}
|
7817
|
-
const urlPath = "/v2/
|
7817
|
+
const urlPath = "/v2/stream/callback";
|
7818
7818
|
const queryParams = new Map<string, any>();
|
7819
7819
|
|
7820
7820
|
let bodyJson: string = "";
|
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
|
}
|
@@ -1857,8 +1857,8 @@ export declare class MezonApi {
|
|
1857
1857
|
deleteNotiReactMessage(bearerToken: string, channelId?: string, options?: any): Promise<any>;
|
1858
1858
|
/** */
|
1859
1859
|
setNotificationReactMessage(bearerToken: string, body: ApiNotificationChannel, options?: any): Promise<any>;
|
1860
|
-
/**
|
1861
|
-
streamingServerCallback(bearerToken: string, body:
|
1860
|
+
/** Stream http callback. */
|
1861
|
+
streamingServerCallback(bearerToken: string, body: ApiStreamHttpCallbackRequest, options?: any): Promise<ApiStreamHttpCallbackResponse>;
|
1862
1862
|
/** set permission role channel. */
|
1863
1863
|
setRoleChannelPermission(bearerToken: string, body: ApiUpdateRoleChannelRequest, options?: any): Promise<any>;
|
1864
1864
|
/** Get permission list */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -4672,14 +4672,14 @@ var MezonApi = class {
|
|
4672
4672
|
)
|
4673
4673
|
]);
|
4674
4674
|
}
|
4675
|
-
/**
|
4675
|
+
/** Stream http callback. */
|
4676
4676
|
streamingServerCallback(bearerToken, body, options = {}) {
|
4677
4677
|
if (body === null || body === void 0) {
|
4678
4678
|
throw new Error(
|
4679
4679
|
"'body' is a required parameter but is null or undefined."
|
4680
4680
|
);
|
4681
4681
|
}
|
4682
|
-
const urlPath = "/v2/
|
4682
|
+
const urlPath = "/v2/stream/callback";
|
4683
4683
|
const queryParams = /* @__PURE__ */ new Map();
|
4684
4684
|
let bodyJson = "";
|
4685
4685
|
bodyJson = JSON.stringify(body || {});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -4638,14 +4638,14 @@ var MezonApi = class {
|
|
4638
4638
|
)
|
4639
4639
|
]);
|
4640
4640
|
}
|
4641
|
-
/**
|
4641
|
+
/** Stream http callback. */
|
4642
4642
|
streamingServerCallback(bearerToken, body, options = {}) {
|
4643
4643
|
if (body === null || body === void 0) {
|
4644
4644
|
throw new Error(
|
4645
4645
|
"'body' is a required parameter but is null or undefined."
|
4646
4646
|
);
|
4647
4647
|
}
|
4648
|
-
const urlPath = "/v2/
|
4648
|
+
const urlPath = "/v2/stream/callback";
|
4649
4649
|
const queryParams = /* @__PURE__ */ new Map();
|
4650
4650
|
let bodyJson = "";
|
4651
4651
|
bodyJson = JSON.stringify(body || {});
|