mezon-js 2.10.33 → 2.10.35

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 CHANGED
@@ -506,6 +506,8 @@ export interface ApiAuditLog {
506
506
  action_log?: string;
507
507
  //
508
508
  channel_id?: string;
509
+ //
510
+ channel_label?: string;
509
511
  //
510
512
  clan_id?: string;
511
513
  //
@@ -1697,7 +1699,7 @@ export interface ApiNotificationUserChannel {
1697
1699
  }
1698
1700
 
1699
1701
  /** */
1700
- export interface ApiOssrsHttpCallbackRequest {
1702
+ export interface ApiStreamHttpCallbackRequest {
1701
1703
  //
1702
1704
  action?: string;
1703
1705
  //
@@ -1727,7 +1729,7 @@ export interface ApiOssrsHttpCallbackRequest {
1727
1729
  }
1728
1730
 
1729
1731
  /** */
1730
- export interface ApiOssrsHttpCallbackResponse {
1732
+ export interface ApiStreamHttpCallbackResponse {
1731
1733
  //
1732
1734
  code?: number;
1733
1735
  //
@@ -7803,18 +7805,18 @@ export class MezonApi {
7803
7805
  ]);
7804
7806
  }
7805
7807
 
7806
- /** Ossrs http callback. */
7808
+ /** Stream http callback. */
7807
7809
  streamingServerCallback(
7808
7810
  bearerToken: string,
7809
- body: ApiOssrsHttpCallbackRequest,
7811
+ body: ApiStreamHttpCallbackRequest,
7810
7812
  options: any = {}
7811
- ): Promise<ApiOssrsHttpCallbackResponse> {
7813
+ ): Promise<ApiStreamHttpCallbackResponse> {
7812
7814
  if (body === null || body === undefined) {
7813
7815
  throw new Error(
7814
7816
  "'body' is a required parameter but is null or undefined."
7815
7817
  );
7816
7818
  }
7817
- const urlPath = "/v2/ossrs/callback";
7819
+ const urlPath = "/v2/stream/callback";
7818
7820
  const queryParams = new Map<string, any>();
7819
7821
 
7820
7822
  let bodyJson: string = "";
package/dist/api.gen.d.ts CHANGED
@@ -297,6 +297,7 @@ export interface ApiAppList {
297
297
  export interface ApiAuditLog {
298
298
  action_log?: string;
299
299
  channel_id?: string;
300
+ channel_label?: string;
300
301
  clan_id?: string;
301
302
  details?: string;
302
303
  entity_id?: string;
@@ -986,7 +987,7 @@ export interface ApiNotificationUserChannel {
986
987
  time_mute?: string;
987
988
  }
988
989
  /** */
989
- export interface ApiOssrsHttpCallbackRequest {
990
+ export interface ApiStreamHttpCallbackRequest {
990
991
  action?: string;
991
992
  app?: string;
992
993
  client_id?: string;
@@ -1002,7 +1003,7 @@ export interface ApiOssrsHttpCallbackRequest {
1002
1003
  vhost?: string;
1003
1004
  }
1004
1005
  /** */
1005
- export interface ApiOssrsHttpCallbackResponse {
1006
+ export interface ApiStreamHttpCallbackResponse {
1006
1007
  code?: number;
1007
1008
  msg?: string;
1008
1009
  }
@@ -1857,8 +1858,8 @@ export declare class MezonApi {
1857
1858
  deleteNotiReactMessage(bearerToken: string, channelId?: string, options?: any): Promise<any>;
1858
1859
  /** */
1859
1860
  setNotificationReactMessage(bearerToken: string, body: ApiNotificationChannel, options?: any): Promise<any>;
1860
- /** Ossrs http callback. */
1861
- streamingServerCallback(bearerToken: string, body: ApiOssrsHttpCallbackRequest, options?: any): Promise<ApiOssrsHttpCallbackResponse>;
1861
+ /** Stream http callback. */
1862
+ streamingServerCallback(bearerToken: string, body: ApiStreamHttpCallbackRequest, options?: any): Promise<ApiStreamHttpCallbackResponse>;
1862
1863
  /** set permission role channel. */
1863
1864
  setRoleChannelPermission(bearerToken: string, body: ApiUpdateRoleChannelRequest, options?: any): Promise<any>;
1864
1865
  /** Get permission list */
@@ -4672,14 +4672,14 @@ var MezonApi = class {
4672
4672
  )
4673
4673
  ]);
4674
4674
  }
4675
- /** Ossrs http callback. */
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/ossrs/callback";
4682
+ const urlPath = "/v2/stream/callback";
4683
4683
  const queryParams = /* @__PURE__ */ new Map();
4684
4684
  let bodyJson = "";
4685
4685
  bodyJson = JSON.stringify(body || {});
@@ -4638,14 +4638,14 @@ var MezonApi = class {
4638
4638
  )
4639
4639
  ]);
4640
4640
  }
4641
- /** Ossrs http callback. */
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/ossrs/callback";
4648
+ const urlPath = "/v2/stream/callback";
4649
4649
  const queryParams = /* @__PURE__ */ new Map();
4650
4650
  let bodyJson = "";
4651
4651
  bodyJson = JSON.stringify(body || {});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.33",
4
+ "version": "2.10.35",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"