polyv-live-api-sdk 1.0.15 → 1.0.17

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
@@ -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?: boolean;
8500
+ /** Whether force check-in is enabled (Y/N) */
8501
+ forceCheckInEnabled?: 'Y' | 'N';
8502
8502
  }
8503
8503
  /**
8504
8504
  * Parameters for batch check-in
@@ -21673,7 +21673,7 @@ declare class V4ChatService {
21673
21673
  * channelId: '123456',
21674
21674
  * limitTime: 60,
21675
21675
  * message: 'Please check in',
21676
- * forceCheckInEnabled: true,
21676
+ * forceCheckInEnabled: 'Y',
21677
21677
  * },
21678
21678
  * ],
21679
21679
  * });
package/dist/index.js CHANGED
@@ -9062,15 +9062,14 @@ var WebService = class {
9062
9062
  throw new PolyVValidationError("enabled must be Y or N");
9063
9063
  }
9064
9064
  }
9065
- const body = {
9066
- authSettings: params.authSettings
9067
- };
9065
+ const requestParams = {};
9068
9066
  if (params.channelId) {
9069
- body.channelId = params.channelId;
9067
+ requestParams.channelId = params.channelId;
9070
9068
  }
9071
9069
  const response = await this.client.httpClient.post(
9072
9070
  "/live/v3/channel/auth/update",
9073
- body
9071
+ { authSettings: params.authSettings },
9072
+ { params: requestParams, headers: { "Content-Type": "application/json" } }
9074
9073
  );
9075
9074
  return response;
9076
9075
  }
@@ -15514,7 +15513,7 @@ var V4ChatService = class {
15514
15513
  * channelId: '123456',
15515
15514
  * limitTime: 60,
15516
15515
  * message: 'Please check in',
15517
- * forceCheckInEnabled: true,
15516
+ * forceCheckInEnabled: 'Y',
15518
15517
  * },
15519
15518
  * ],
15520
15519
  * });