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.cjs +11 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/services/v4/user.service.d.ts +2 -2
- package/dist/types/v4-user.d.ts +1 -1
- package/dist/types/v4-user.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10855,31 +10855,32 @@ var PlayerService = class {
|
|
|
10855
10855
|
if (params.autoZoomEnabled !== void 0) {
|
|
10856
10856
|
this.validateYNValue(params.autoZoomEnabled, "autoZoomEnabled");
|
|
10857
10857
|
}
|
|
10858
|
-
const
|
|
10858
|
+
const requestParams = {
|
|
10859
|
+
channelId,
|
|
10859
10860
|
antiRecordType: params.antiRecordType,
|
|
10860
10861
|
modelType: params.modelType,
|
|
10861
10862
|
content: params.content,
|
|
10862
10863
|
fontSize: params.fontSize
|
|
10863
10864
|
};
|
|
10864
10865
|
if (params.opacity !== void 0) {
|
|
10865
|
-
|
|
10866
|
+
requestParams.opacity = params.opacity;
|
|
10866
10867
|
}
|
|
10867
10868
|
if (params.fontColor !== void 0) {
|
|
10868
|
-
|
|
10869
|
+
requestParams.fontColor = params.fontColor;
|
|
10869
10870
|
}
|
|
10870
10871
|
if (params.showMode !== void 0) {
|
|
10871
|
-
|
|
10872
|
+
requestParams.showMode = params.showMode;
|
|
10872
10873
|
}
|
|
10873
10874
|
if (params.doubleEnabled !== void 0) {
|
|
10874
|
-
|
|
10875
|
+
requestParams.doubleEnabled = params.doubleEnabled;
|
|
10875
10876
|
}
|
|
10876
10877
|
if (params.autoZoomEnabled !== void 0) {
|
|
10877
|
-
|
|
10878
|
+
requestParams.autoZoomEnabled = params.autoZoomEnabled;
|
|
10878
10879
|
}
|
|
10879
10880
|
const response = await this.client.httpClient.post(
|
|
10880
10881
|
"/live/v3/channel/anti/record/setting",
|
|
10881
|
-
|
|
10882
|
-
{ params:
|
|
10882
|
+
null,
|
|
10883
|
+
{ params: requestParams }
|
|
10883
10884
|
);
|
|
10884
10885
|
return response;
|
|
10885
10886
|
}
|
|
@@ -16705,14 +16706,14 @@ var V4UserService = class {
|
|
|
16705
16706
|
);
|
|
16706
16707
|
}
|
|
16707
16708
|
/**
|
|
16708
|
-
* Add
|
|
16709
|
+
* Add account label refs to channels
|
|
16709
16710
|
*
|
|
16710
16711
|
* @param params - Add parameters
|
|
16711
16712
|
*
|
|
16712
16713
|
* @example
|
|
16713
16714
|
* ```typescript
|
|
16714
16715
|
* await client.v4User.addChannelLabelRefs({
|
|
16715
|
-
* labelIds: ['
|
|
16716
|
+
* labelIds: ['zylw8zzi3p7mrqr4'],
|
|
16716
16717
|
* channelIds: ['123456', '789012'],
|
|
16717
16718
|
* });
|
|
16718
16719
|
* ```
|