polyv-live-api-sdk 1.0.16 → 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 +12 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/services/v4/chat.service.d.ts +1 -1
- package/dist/services/v4/user.service.d.ts +2 -2
- package/dist/types/v4-chat.d.ts +2 -2
- package/dist/types/v4-chat.d.ts.map +1 -1
- 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.d.cts
CHANGED
|
@@ -8497,8 +8497,8 @@ interface BatchCheckinItem {
|
|
|
8497
8497
|
delayTime?: number;
|
|
8498
8498
|
/** Check-in message */
|
|
8499
8499
|
message?: string;
|
|
8500
|
-
/** Whether force check-in is enabled */
|
|
8501
|
-
forceCheckInEnabled?:
|
|
8500
|
+
/** Whether force check-in is enabled (Y/N) */
|
|
8501
|
+
forceCheckInEnabled?: 'Y' | 'N';
|
|
8502
8502
|
}
|
|
8503
8503
|
/**
|
|
8504
8504
|
* Parameters for batch check-in
|
|
@@ -9730,7 +9730,7 @@ interface DeleteLabelParams {
|
|
|
9730
9730
|
* Parameters for adding channel label refs
|
|
9731
9731
|
*/
|
|
9732
9732
|
interface AddChannelLabelRefsParams {
|
|
9733
|
-
/**
|
|
9733
|
+
/** Account label IDs from listLabels */
|
|
9734
9734
|
labelIds: string[];
|
|
9735
9735
|
/** Channel IDs */
|
|
9736
9736
|
channelIds: Array<string | number>;
|
|
@@ -21673,7 +21673,7 @@ declare class V4ChatService {
|
|
|
21673
21673
|
* channelId: '123456',
|
|
21674
21674
|
* limitTime: 60,
|
|
21675
21675
|
* message: 'Please check in',
|
|
21676
|
-
* forceCheckInEnabled:
|
|
21676
|
+
* forceCheckInEnabled: 'Y',
|
|
21677
21677
|
* },
|
|
21678
21678
|
* ],
|
|
21679
21679
|
* });
|
|
@@ -22384,14 +22384,14 @@ declare class V4UserService {
|
|
|
22384
22384
|
*/
|
|
22385
22385
|
deleteLabel(params: DeleteLabelParams): Promise<void>;
|
|
22386
22386
|
/**
|
|
22387
|
-
* Add
|
|
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: ['
|
|
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
|
|
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
|
-
|
|
10859
|
+
requestParams.opacity = params.opacity;
|
|
10859
10860
|
}
|
|
10860
10861
|
if (params.fontColor !== void 0) {
|
|
10861
|
-
|
|
10862
|
+
requestParams.fontColor = params.fontColor;
|
|
10862
10863
|
}
|
|
10863
10864
|
if (params.showMode !== void 0) {
|
|
10864
|
-
|
|
10865
|
+
requestParams.showMode = params.showMode;
|
|
10865
10866
|
}
|
|
10866
10867
|
if (params.doubleEnabled !== void 0) {
|
|
10867
|
-
|
|
10868
|
+
requestParams.doubleEnabled = params.doubleEnabled;
|
|
10868
10869
|
}
|
|
10869
10870
|
if (params.autoZoomEnabled !== void 0) {
|
|
10870
|
-
|
|
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
|
-
|
|
10875
|
-
{ params:
|
|
10875
|
+
null,
|
|
10876
|
+
{ params: requestParams }
|
|
10876
10877
|
);
|
|
10877
10878
|
return response;
|
|
10878
10879
|
}
|
|
@@ -15513,7 +15514,7 @@ var V4ChatService = class {
|
|
|
15513
15514
|
* channelId: '123456',
|
|
15514
15515
|
* limitTime: 60,
|
|
15515
15516
|
* message: 'Please check in',
|
|
15516
|
-
* forceCheckInEnabled:
|
|
15517
|
+
* forceCheckInEnabled: 'Y',
|
|
15517
15518
|
* },
|
|
15518
15519
|
* ],
|
|
15519
15520
|
* });
|
|
@@ -16698,14 +16699,14 @@ var V4UserService = class {
|
|
|
16698
16699
|
);
|
|
16699
16700
|
}
|
|
16700
16701
|
/**
|
|
16701
|
-
* Add
|
|
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: ['
|
|
16709
|
+
* labelIds: ['zylw8zzi3p7mrqr4'],
|
|
16709
16710
|
* channelIds: ['123456', '789012'],
|
|
16710
16711
|
* });
|
|
16711
16712
|
* ```
|