polyv-live-api-sdk 1.0.17 → 1.0.18

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/dist/index.d.cts CHANGED
@@ -9730,7 +9730,7 @@ interface DeleteLabelParams {
9730
9730
  * Parameters for adding channel label refs
9731
9731
  */
9732
9732
  interface AddChannelLabelRefsParams {
9733
- /** Label IDs */
9733
+ /** Account label IDs from listLabels */
9734
9734
  labelIds: string[];
9735
9735
  /** Channel IDs */
9736
9736
  channelIds: Array<string | number>;
@@ -22384,14 +22384,14 @@ declare class V4UserService {
22384
22384
  */
22385
22385
  deleteLabel(params: DeleteLabelParams): Promise<void>;
22386
22386
  /**
22387
- * Add channel label refs
22387
+ * Add account label refs to channels
22388
22388
  *
22389
22389
  * @param params - Add parameters
22390
22390
  *
22391
22391
  * @example
22392
22392
  * ```typescript
22393
22393
  * await client.v4User.addChannelLabelRefs({
22394
- * labelIds: ['label_001'],
22394
+ * labelIds: ['zylw8zzi3p7mrqr4'],
22395
22395
  * channelIds: ['123456', '789012'],
22396
22396
  * });
22397
22397
  * ```
package/dist/index.js CHANGED
@@ -10848,31 +10848,32 @@ var PlayerService = class {
10848
10848
  if (params.autoZoomEnabled !== void 0) {
10849
10849
  this.validateYNValue(params.autoZoomEnabled, "autoZoomEnabled");
10850
10850
  }
10851
- const body = {
10851
+ const requestParams = {
10852
+ channelId,
10852
10853
  antiRecordType: params.antiRecordType,
10853
10854
  modelType: params.modelType,
10854
10855
  content: params.content,
10855
10856
  fontSize: params.fontSize
10856
10857
  };
10857
10858
  if (params.opacity !== void 0) {
10858
- body.opacity = params.opacity;
10859
+ requestParams.opacity = params.opacity;
10859
10860
  }
10860
10861
  if (params.fontColor !== void 0) {
10861
- body.fontColor = params.fontColor;
10862
+ requestParams.fontColor = params.fontColor;
10862
10863
  }
10863
10864
  if (params.showMode !== void 0) {
10864
- body.showMode = params.showMode;
10865
+ requestParams.showMode = params.showMode;
10865
10866
  }
10866
10867
  if (params.doubleEnabled !== void 0) {
10867
- body.doubleEnabled = params.doubleEnabled;
10868
+ requestParams.doubleEnabled = params.doubleEnabled;
10868
10869
  }
10869
10870
  if (params.autoZoomEnabled !== void 0) {
10870
- body.autoZoomEnabled = params.autoZoomEnabled;
10871
+ requestParams.autoZoomEnabled = params.autoZoomEnabled;
10871
10872
  }
10872
10873
  const response = await this.client.httpClient.post(
10873
10874
  "/live/v3/channel/anti/record/setting",
10874
- body,
10875
- { params: { channelId } }
10875
+ null,
10876
+ { params: requestParams }
10876
10877
  );
10877
10878
  return response;
10878
10879
  }
@@ -16698,14 +16699,14 @@ var V4UserService = class {
16698
16699
  );
16699
16700
  }
16700
16701
  /**
16701
- * Add channel label refs
16702
+ * Add account label refs to channels
16702
16703
  *
16703
16704
  * @param params - Add parameters
16704
16705
  *
16705
16706
  * @example
16706
16707
  * ```typescript
16707
16708
  * await client.v4User.addChannelLabelRefs({
16708
- * labelIds: ['label_001'],
16709
+ * labelIds: ['zylw8zzi3p7mrqr4'],
16709
16710
  * channelIds: ['123456', '789012'],
16710
16711
  * });
16711
16712
  * ```