Socket
Socket
Sign inDemoInstall

@twurple/api

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twurple/api - npm Package Compare versions

Comparing version 7.0.0-pre.2 to 7.0.0-pre.3

es/endpoints/user/extensions/HelixBaseExtension.mjs

4

lib/client/ApiClient.d.ts

@@ -32,5 +32,3 @@ import { type LoggerOptions } from '@d-fischer/logger';

}
/**
* @private
*/
/** @private */
export interface TwitchApiCallOptionsInternal {

@@ -37,0 +35,0 @@ options: ContextApiCallOptions;

@@ -41,4 +41,2 @@ import { type Response } from '@d-fischer/cross-fetch';

readonly onRequest: import("@d-fischer/typed-event-emitter").EventBinder<[request: ApiReportedRequest]>;
/** @private */
constructor(config: ApiConfig, logger: Logger, rateLimiter: RateLimiter<TwitchApiCallOptionsInternal, Response>);
/**

@@ -45,0 +43,0 @@ * Requests scopes from the auth provider for the given user.

@@ -40,3 +40,3 @@ "use strict";

let BaseApiClient = class BaseApiClient extends typed_event_emitter_1.EventEmitter {
/** @private */
/** @internal */
constructor(config, logger, rateLimiter) {

@@ -43,0 +43,0 @@ super();

@@ -1,5 +0,1 @@

import { type Response } from '@d-fischer/cross-fetch';
import { type Logger } from '@d-fischer/logger';
import { type RateLimiter } from '@d-fischer/rate-limiter';
import { type ApiConfig, type TwitchApiCallOptionsInternal } from './ApiClient';
import { BaseApiClient } from './BaseApiClient';

@@ -9,4 +5,3 @@ /** @private */

private readonly _userId;
constructor(config: ApiConfig, logger: Logger, rateLimiter: RateLimiter<TwitchApiCallOptionsInternal, Response>, _userId: string);
}
//# sourceMappingURL=UserContextApiClient.d.ts.map

@@ -9,2 +9,3 @@ "use strict";

let UserContextApiClient = class UserContextApiClient extends BaseApiClient_1.BaseApiClient {
/** @internal */
constructor(config, logger, rateLimiter, _userId) {

@@ -11,0 +12,0 @@ super(config, logger, rateLimiter);

@@ -1,9 +0,4 @@

import { type BaseApiClient } from '../client/BaseApiClient';
/** @private */
export declare class BaseApi {
/** @private */
protected readonly _client: BaseApiClient;
/** @private */
constructor(client: BaseApiClient);
}
//# sourceMappingURL=BaseApi.d.ts.map

@@ -8,3 +8,3 @@ "use strict";

class BaseApi {
/** @private */
/** @internal */
constructor(client) {

@@ -11,0 +11,0 @@ this._client = client;

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixBitsLeaderboardResponse } from '../../interfaces/endpoints/bits.external';

@@ -9,5 +8,2 @@ import { HelixBitsLeaderboardEntry } from './HelixBitsLeaderboardEntry';

export declare class HelixBitsLeaderboard extends DataObject<HelixBitsLeaderboardResponse> {
private readonly _client;
/** @private */
constructor(data: HelixBitsLeaderboardResponse, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The entries of the leaderboard.

@@ -13,3 +13,3 @@ "use strict";

let HelixBitsLeaderboard = class HelixBitsLeaderboard extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -16,0 +16,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixBitsLeaderboardEntryData } from '../../interfaces/endpoints/bits.external';

@@ -9,5 +8,2 @@ import { type HelixUser } from '../user/HelixUser';

export declare class HelixBitsLeaderboardEntry extends DataObject<HelixBitsLeaderboardEntryData> {
private readonly _client;
/** @private */
constructor(data: HelixBitsLeaderboardEntryData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the user on the leaderboard.

@@ -11,3 +11,3 @@ "use strict";

let HelixBitsLeaderboardEntry = class HelixBitsLeaderboardEntry extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -10,4 +10,2 @@ import { DataObject } from '@twurple/common';

export declare class HelixCheermoteList extends DataObject<Record<string, HelixCheermoteData>> {
/** @private */
constructor(data: HelixCheermoteData[]);
/**

@@ -14,0 +12,0 @@ * Gets the URL and color needed to properly represent a cheer of the given amount of bits with the given prefix.

@@ -13,3 +13,3 @@ "use strict";

let HelixCheermoteList = class HelixCheermoteList extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data) {

@@ -16,0 +16,0 @@ super((0, shared_utils_1.indexBy)(data, action => action.prefix.toLowerCase()));

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixChannelData } from '../../interfaces/endpoints/channel.external';

@@ -10,5 +9,2 @@ import type { HelixGame } from '../game/HelixGame';

export declare class HelixChannel extends DataObject<HelixChannelData> {
private readonly _client;
/** @private */
constructor(data: HelixChannelData, client: BaseApiClient);
/**

@@ -15,0 +11,0 @@ * The ID of the channel.

@@ -11,3 +11,3 @@ "use strict";

let HelixChannel = class HelixChannel extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -30,3 +30,2 @@ import type { CommercialLength, UserIdResolvable } from '@twurple/common';

export declare class HelixChannelApi extends BaseApi {
private readonly _getChannelByIdBatcher;
/**

@@ -33,0 +32,0 @@ * Gets the channel data for the given user.

@@ -38,2 +38,3 @@ "use strict";

super(...arguments);
/** @internal */
this._getChannelByIdBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({

@@ -40,0 +41,0 @@ url: 'channels'

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixChannelEditorData } from '../../interfaces/endpoints/channel.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixChannelEditor extends DataObject<HelixChannelEditorData> {
private readonly _client;
/** @private */
constructor(data: HelixChannelEditorData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the user.

@@ -11,3 +11,3 @@ "use strict";

let HelixChannelEditor = class HelixChannelEditor extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import type { BaseApiClient } from '../../client/BaseApiClient';
import type { HelixChannelFollowerData } from '../../interfaces/endpoints/channel.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixChannelFollower extends DataObject<HelixChannelFollowerData> {
private readonly _client;
/** @private */
constructor(data: HelixChannelFollowerData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the user.

@@ -11,3 +11,3 @@ "use strict";

let HelixChannelFollower = class HelixChannelFollower extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixChannelReferenceData } from '../../interfaces/endpoints/channel.external';

@@ -11,5 +10,2 @@ import type { HelixGame } from '../game/HelixGame';

export declare class HelixChannelReference extends DataObject<HelixChannelReferenceData> {
private readonly _client;
/** @private */
constructor(data: HelixChannelReferenceData, client: BaseApiClient);
/**

@@ -16,0 +12,0 @@ * The ID of the channel.

@@ -11,3 +11,3 @@ "use strict";

let HelixChannelReference = class HelixChannelReference extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import type { BaseApiClient } from '../../client/BaseApiClient';
import type { HelixFollowedChannelData } from '../../interfaces/endpoints/channel.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixFollowedChannel extends DataObject<HelixFollowedChannelData> {
private readonly _client;
/** @private */
constructor(data: HelixFollowedChannelData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the broadcaster.

@@ -11,3 +11,3 @@ "use strict";

let HelixFollowedChannel = class HelixFollowedChannel extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixCustomRewardData } from '../../interfaces/endpoints/channelPoints.external';

@@ -10,5 +9,2 @@ import { type HelixCustomRewardImageScale } from '../../interfaces/endpoints/channelPoints.input';

export declare class HelixCustomReward extends DataObject<HelixCustomRewardData> {
private readonly _client;
/** @private */
constructor(data: HelixCustomRewardData, client: BaseApiClient);
/**

@@ -15,0 +11,0 @@ * The ID of the reward.

@@ -11,3 +11,3 @@ "use strict";

let HelixCustomReward = class HelixCustomReward extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixCustomRewardRedemptionData, type HelixCustomRewardRedemptionTargetStatus } from '../../interfaces/endpoints/channelPoints.external';

@@ -10,5 +9,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixCustomRewardRedemption extends DataObject<HelixCustomRewardRedemptionData> {
private readonly _client;
/** @private */
constructor(data: HelixCustomRewardRedemptionData, client: BaseApiClient);
/**

@@ -15,0 +11,0 @@ * The ID of the redemption.

@@ -11,3 +11,3 @@ "use strict";

let HelixCustomRewardRedemption = class HelixCustomRewardRedemption extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixCharityCampaignData } from '../../interfaces/endpoints/charity.external';

@@ -10,5 +9,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixCharityCampaign extends DataObject<HelixCharityCampaignData> {
private readonly _client;
/** @private */
constructor(data: HelixCharityCampaignData, client: BaseApiClient);
/**

@@ -15,0 +11,0 @@ * An ID that identifies the charity campaign.

@@ -12,3 +12,3 @@ "use strict";

let HelixCharityCampaign = class HelixCharityCampaign extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -15,0 +15,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixCharityCampaignDonationData } from '../../interfaces/endpoints/charity.external';

@@ -10,5 +9,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixCharityCampaignDonation extends DataObject<HelixCharityCampaignDonationData> {
private readonly _client;
/** @private */
constructor(data: HelixCharityCampaignDonationData, client: BaseApiClient);
/**

@@ -15,0 +11,0 @@ * An ID that identifies the charity campaign.

@@ -12,3 +12,3 @@ "use strict";

let HelixCharityCampaignDonation = class HelixCharityCampaignDonation extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -15,0 +15,0 @@ super(data);

@@ -1,2 +0,1 @@

import { rawDataSymbol } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';

@@ -12,4 +11,2 @@ import { type HelixChannelEmoteData, type HelixChannelEmoteSubscriptionTier } from '../../interfaces/endpoints/chat.external';

export declare class HelixChannelEmote extends HelixEmote {
/** @private */ readonly [rawDataSymbol]: HelixChannelEmoteData;
private readonly _client;
constructor(data: HelixChannelEmoteData, client: BaseApiClient);

@@ -16,0 +13,0 @@ /**

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixChatChatterData } from '../../interfaces/endpoints/chat.external';

@@ -9,5 +8,2 @@ import { type HelixUser } from '../user/HelixUser';

export declare class HelixChatChatter extends DataObject<HelixChatChatterData> {
private readonly _client;
/** @private */
constructor(data: HelixChatChatterData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the user.

@@ -11,3 +11,3 @@ "use strict";

let HelixChatChatter = class HelixChatChatter extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -1,2 +0,1 @@

import { rawDataSymbol } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';

@@ -12,4 +11,2 @@ import { type HelixEmoteFromSetData } from '../../interfaces/endpoints/chat.external';

export declare class HelixEmoteFromSet extends HelixEmote {
/** @private */ readonly [rawDataSymbol]: HelixEmoteFromSetData;
private readonly _client;
constructor(data: HelixEmoteFromSetData, client: BaseApiClient);

@@ -16,0 +13,0 @@ /**

@@ -1,3 +0,1 @@

import { rawDataSymbol } from '@twurple/common';
import { type HelixPrivilegedChatSettingsData } from '../../interfaces/endpoints/chat.external';
import { HelixChatSettings } from './HelixChatSettings';

@@ -8,3 +6,2 @@ /**

export declare class HelixPrivilegedChatSettings extends HelixChatSettings {
/** @private */ readonly [rawDataSymbol]: HelixPrivilegedChatSettingsData;
/**

@@ -11,0 +8,0 @@ * Whether non-moderator messages are delayed.

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixClipData } from '../../interfaces/endpoints/clip.external';

@@ -8,5 +7,2 @@ import type { HelixGame } from '../game/HelixGame';

export declare class HelixClip extends DataObject<HelixClipData> {
private readonly _client;
/** @private */
constructor(data: HelixClipData, client: BaseApiClient);
/**

@@ -13,0 +9,0 @@ * The clip ID.

@@ -8,3 +8,3 @@ "use strict";

let HelixClip = class HelixClip extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -11,0 +11,0 @@ super(data);

@@ -23,3 +23,2 @@ import type { UserIdResolvable } from '@twurple/common';

export declare class HelixClipApi extends BaseApi {
private readonly _getClipByIdBatcher;
/**

@@ -26,0 +25,0 @@ * Gets clips for the specified broadcaster in descending order of views.

@@ -31,2 +31,3 @@ "use strict";

super(...arguments);
/** @internal */
this._getClipByIdBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({

@@ -33,0 +34,0 @@ url: 'clips'

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixDropsEntitlementData, type HelixDropsEntitlementFulfillmentStatus } from '../../interfaces/endpoints/entitlement.external';

@@ -10,5 +9,2 @@ import { type HelixGame } from '../game/HelixGame';

export declare class HelixDropsEntitlement extends DataObject<HelixDropsEntitlementData> {
private readonly _client;
/** @private */
constructor(data: HelixDropsEntitlementData, client: BaseApiClient);
/**

@@ -15,0 +11,0 @@ * The ID of the entitlement.

@@ -11,3 +11,3 @@ "use strict";

let HelixDropsEntitlement = class HelixDropsEntitlement extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -22,3 +22,2 @@ import { type HelixDropsEntitlementData, type HelixDropsEntitlementFulfillmentStatus, type HelixDropsEntitlementUpdateStatus } from '../../interfaces/endpoints/entitlement.external';

export declare class HelixEntitlementApi extends BaseApi {
private readonly _getDropsEntitlementByIdBatcher;
/**

@@ -25,0 +24,0 @@ * Gets the drops entitlements for the given filter.

@@ -31,3 +31,3 @@ "use strict";

super(...arguments);
this._getDropsEntitlementByIdBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({
/** @internal */ this._getDropsEntitlementByIdBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({
url: 'entitlements/drops'

@@ -34,0 +34,0 @@ }, 'id', 'id', this._client, (data) => new HelixDropsEntitlement_1.HelixDropsEntitlement(data, this._client));

import { DataObject } from '@twurple/common';
import type { BaseApiClient } from '../../client/BaseApiClient';
import { type HelixEventSubSubscriptionData, type HelixEventSubSubscriptionStatus, type HelixEventSubTransportData } from '../../interfaces/endpoints/eventSub.external';

@@ -8,5 +7,2 @@ /**

export declare class HelixEventSubSubscription extends DataObject<HelixEventSubSubscriptionData> {
private readonly _client;
/** @private */
constructor(data: HelixEventSubSubscriptionData, client: BaseApiClient);
/**

@@ -13,0 +9,0 @@ * The ID of the subscription.

@@ -11,3 +11,3 @@ "use strict";

let HelixEventSubSubscription = class HelixEventSubSubscription extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -1,3 +0,2 @@

import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixEventSubSubscriptionData, type HelixPaginatedEventSubSubscriptionsResponse } from '../../interfaces/endpoints/eventSub.external';
import { type HelixEventSubSubscriptionData } from '../../interfaces/endpoints/eventSub.external';
import { HelixPaginatedRequestWithTotal } from '../../utils/pagination/HelixPaginatedRequestWithTotal';

@@ -12,6 +11,2 @@ import { HelixEventSubSubscription } from './HelixEventSubSubscription';

export declare class HelixPaginatedEventSubSubscriptionsRequest extends HelixPaginatedRequestWithTotal<HelixEventSubSubscriptionData, HelixEventSubSubscription> {
/** @private */
protected _currentData?: HelixPaginatedEventSubSubscriptionsResponse;
/** @private */
constructor(query: Record<string, string>, userId: string | undefined, client: BaseApiClient);
/**

@@ -18,0 +13,0 @@ * Gets the total cost of EventSub subscriptions.

@@ -15,3 +15,3 @@ "use strict";

let HelixPaginatedEventSubSubscriptionsRequest = class HelixPaginatedEventSubSubscriptionsRequest extends HelixPaginatedRequestWithTotal_1.HelixPaginatedRequestWithTotal {
/** @private */
/** @internal */
constructor(query, userId, client) {

@@ -18,0 +18,0 @@ super({

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixExtensionProductType, type HelixExtensionTransactionData } from '../../interfaces/endpoints/extensions.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixExtensionTransaction extends DataObject<HelixExtensionTransactionData> {
private readonly _client;
/** @private */
constructor(data: HelixExtensionTransactionData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the transaction.

@@ -11,3 +11,3 @@ "use strict";

let HelixExtensionTransaction = class HelixExtensionTransaction extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixGameData } from '../../interfaces/endpoints/game.external';

@@ -13,5 +12,2 @@ import { type HelixStreamData } from '../../interfaces/endpoints/stream.external';

export declare class HelixGame extends DataObject<HelixGameData> {
private readonly _client;
/** @private */
constructor(data: HelixGameData, client: BaseApiClient);
/**

@@ -18,0 +14,0 @@ * The ID of the game.

@@ -11,3 +11,3 @@ "use strict";

let HelixGame = class HelixGame extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -22,5 +22,2 @@ import { type HelixGameData } from '../../interfaces/endpoints/game.external';

export declare class HelixGameApi extends BaseApi {
private readonly _getGameByIdBatcher;
private readonly _getGameByNameBatcher;
private readonly _getGameByIgdbIdBatcher;
/**

@@ -92,4 +89,3 @@ * Gets the game data for the given list of game IDs.

getTopGamesPaginated(): HelixPaginatedRequest<HelixGameData, HelixGame>;
private _getGames;
}
//# sourceMappingURL=HelixGameApi.d.ts.map

@@ -30,8 +30,11 @@ "use strict";

super(...arguments);
/** @internal */
this._getGameByIdBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({
url: 'games'
}, 'id', 'id', this._client, (data) => new HelixGame_1.HelixGame(data, this._client));
/** @internal */
this._getGameByNameBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({
url: 'games'
}, 'name', 'name', this._client, (data) => new HelixGame_1.HelixGame(data, this._client));
/** @internal */
this._getGameByIgdbIdBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({

@@ -142,2 +145,3 @@ url: 'games'

}
/** @internal */
async _getGames(filterType, filterValues) {

@@ -144,0 +148,0 @@ if (!filterValues.length) {

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixGoalData, type HelixGoalType } from '../../interfaces/endpoints/goal.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixGoal extends DataObject<HelixGoalData> {
private readonly _client;
/** @private */
constructor(data: HelixGoalData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the goal.

@@ -11,3 +11,3 @@ "use strict";

let HelixGoal = class HelixGoal extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixHypeTrainContributionData, type HelixHypeTrainContributionType } from '../../interfaces/endpoints/hypeTrain.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixHypeTrainContribution extends DataObject<HelixHypeTrainContributionData> {
private readonly _client;
/** @private */
constructor(data: HelixHypeTrainContributionData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the user contributing to the Hype Train.

@@ -11,3 +11,3 @@ "use strict";

let HelixHypeTrainContribution = class HelixHypeTrainContribution extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixEventData } from '../../interfaces/endpoints/generic.external';

@@ -11,5 +10,2 @@ import { type HelixHypeTrainEventData, type HelixHypeTrainEventType } from '../../interfaces/endpoints/hypeTrain.external';

export declare class HelixHypeTrainEvent extends DataObject<HelixEventData<HelixHypeTrainEventData, HelixHypeTrainEventType>> {
private readonly _client;
/** @private */
constructor(data: HelixEventData<HelixHypeTrainEventData, HelixHypeTrainEventType>, client: BaseApiClient);
/**

@@ -16,0 +12,0 @@ * The unique ID of the Hype Train event.

@@ -12,3 +12,3 @@ "use strict";

let HelixHypeTrainEvent = class HelixHypeTrainEvent extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -15,0 +15,0 @@ super(data);

@@ -1,4 +0,1 @@

import { rawDataSymbol } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixBanData } from '../../interfaces/endpoints/moderation.external';
import { HelixBanUser } from './HelixBanUser';

@@ -11,5 +8,2 @@ /**

export declare class HelixBan extends HelixBanUser {
/** @private */ readonly [rawDataSymbol]: HelixBanData;
/** @private */
constructor(data: HelixBanData, client: BaseApiClient);
/**

@@ -16,0 +10,0 @@ * The name of the user that was banned or put in a timeout.

@@ -13,3 +13,3 @@ "use strict";

let HelixBan = class HelixBan extends HelixBanUser_1.HelixBanUser {
/** @private */
/** @internal */
constructor(data, client) {

@@ -16,0 +16,0 @@ super(data, data.expires_at || null, client);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixCommonBanUserData } from '../../interfaces/endpoints/moderation.external';

@@ -11,6 +10,2 @@ import { type HelixUser } from '../user/HelixUser';

export declare class HelixBanUser extends DataObject<HelixCommonBanUserData> {
private readonly _client;
private readonly _expiryTimestamp;
/** @private */
constructor(data: HelixCommonBanUserData, expiryTimestamp: string | null, client: BaseApiClient);
/**

@@ -17,0 +12,0 @@ * The date and time that the ban/timeout was created.

@@ -13,3 +13,3 @@ "use strict";

let HelixBanUser = class HelixBanUser extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, expiryTimestamp, client) {

@@ -16,0 +16,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixModeratorData } from '../../interfaces/endpoints/moderation.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixModerator extends DataObject<HelixModeratorData> {
private readonly _client;
/** @private */
constructor(data: HelixModeratorData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the user.

@@ -11,3 +11,3 @@ "use strict";

let HelixModerator = class HelixModerator extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import type { HelixShieldModeStatusData } from '../../interfaces/endpoints/moderation.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixShieldModeStatus extends DataObject<HelixShieldModeStatusData> {
private readonly _client;
/** @private */
constructor(data: HelixShieldModeStatusData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * Whether Shield Mode is active.

@@ -11,3 +11,3 @@ "use strict";

let HelixShieldModeStatus = class HelixShieldModeStatus extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixPollData, type HelixPollStatus } from '../../interfaces/endpoints/poll.external';

@@ -10,5 +9,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixPoll extends DataObject<HelixPollData> {
private readonly _client;
/** @private */
constructor(data: HelixPollData, client: BaseApiClient);
/**

@@ -15,0 +11,0 @@ * The ID of the poll.

@@ -12,3 +12,3 @@ "use strict";

let HelixPoll = class HelixPoll extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -15,0 +15,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixPredictionData, type HelixPredictionStatus } from '../../interfaces/endpoints/prediction.external';

@@ -10,5 +9,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixPrediction extends DataObject<HelixPredictionData> {
private readonly _client;
/** @private */
constructor(data: HelixPredictionData, client: BaseApiClient);
/**

@@ -15,0 +11,0 @@ * The ID of the prediction.

@@ -12,3 +12,3 @@ "use strict";

let HelixPrediction = class HelixPrediction extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -15,0 +15,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixPredictionOutcomeColor, type HelixPredictionOutcomeData } from '../../interfaces/endpoints/prediction.external';

@@ -9,5 +8,2 @@ import { HelixPredictor } from './HelixPredictor';

export declare class HelixPredictionOutcome extends DataObject<HelixPredictionOutcomeData> {
private readonly _client;
/** @private */
constructor(data: HelixPredictionOutcomeData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the outcome.

@@ -12,3 +12,3 @@ "use strict";

let HelixPredictionOutcome = class HelixPredictionOutcome extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -15,0 +15,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixPredictorData } from '../../interfaces/endpoints/prediction.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixPredictor extends DataObject<HelixPredictorData> {
private readonly _client;
/** @private */
constructor(data: HelixPredictorData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The user ID of the predictor.

@@ -11,3 +11,3 @@ "use strict";

let HelixPredictor = class HelixPredictor extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -1,6 +0,2 @@

import type { HelixPaginatedResponse, TwitchApiCallOptions } from '@twurple/api-call';
import type { UserIdResolvable } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixScheduleSegmentData } from '../../interfaces/endpoints/schedule.external';
import { type HelixScheduleFilter } from '../../interfaces/endpoints/schedule.input';
import { HelixPaginatedRequest } from '../../utils/pagination/HelixPaginatedRequest';

@@ -12,7 +8,3 @@ import { HelixScheduleSegment } from './HelixScheduleSegment';

export declare class HelixPaginatedScheduleSegmentRequest extends HelixPaginatedRequest<HelixScheduleSegmentData, HelixScheduleSegment> {
/** @private */
constructor(broadcaster: UserIdResolvable, client: BaseApiClient, filter?: HelixScheduleFilter);
/** @private */
protected _fetchData(additionalOptions?: Partial<TwitchApiCallOptions>): Promise<HelixPaginatedResponse<HelixScheduleSegmentData>>;
}
//# sourceMappingURL=HelixPaginatedScheduleSegmentRequest.d.ts.map

@@ -13,3 +13,3 @@ "use strict";

let HelixPaginatedScheduleSegmentRequest = class HelixPaginatedScheduleSegmentRequest extends HelixPaginatedRequest_1.HelixPaginatedRequest {
/** @private */
/** @internal */
constructor(broadcaster, client, filter) {

@@ -23,3 +23,3 @@ super({

// while still keeping the pagination code as generic as possible
/** @private */
/** @internal */
async _fetchData(additionalOptions = {}) {

@@ -26,0 +26,0 @@ var _a;

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixScheduleData } from '../../interfaces/endpoints/schedule.external';

@@ -10,5 +9,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixSchedule extends DataObject<HelixScheduleData> {
private readonly _client;
/** @private */
constructor(data: HelixScheduleData, client: BaseApiClient);
/**

@@ -15,0 +11,0 @@ * The segments of the schedule.

@@ -12,3 +12,3 @@ "use strict";

let HelixSchedule = class HelixSchedule extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -15,0 +15,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixScheduleSegmentData } from '../../interfaces/endpoints/schedule.external';

@@ -9,5 +8,2 @@ import type { HelixGame } from '../game/HelixGame';

export declare class HelixScheduleSegment extends DataObject<HelixScheduleSegmentData> {
private readonly _client;
/** @private */
constructor(data: HelixScheduleSegmentData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the segment.

@@ -11,3 +11,3 @@ "use strict";

let HelixScheduleSegment = class HelixScheduleSegment extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixChannelSearchResultData } from '../../interfaces/endpoints/search.external';

@@ -10,5 +9,2 @@ import type { HelixGame } from '../game/HelixGame';

export declare class HelixChannelSearchResult extends DataObject<HelixChannelSearchResultData> {
private readonly _client;
/** @private */
constructor(data: HelixChannelSearchResultData, client: BaseApiClient);
/**

@@ -15,0 +11,0 @@ * The language of the channel.

@@ -11,3 +11,3 @@ "use strict";

let HelixChannelSearchResult = class HelixChannelSearchResult extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixStreamData, type HelixStreamType } from '../../interfaces/endpoints/stream.external';

@@ -10,5 +9,2 @@ import type { HelixGame } from '../game/HelixGame';

export declare class HelixStream extends DataObject<HelixStreamData> {
private readonly _client;
/** @private */
constructor(data: HelixStreamData, client: BaseApiClient);
/**

@@ -15,0 +11,0 @@ * The stream ID.

@@ -11,3 +11,3 @@ "use strict";

let HelixStream = class HelixStream extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -26,4 +26,2 @@ import type { UserIdResolvable, UserNameResolvable } from '@twurple/common';

export declare class HelixStreamApi extends BaseApi {
private readonly _getStreamByUserIdBatcher;
private readonly _getStreamByUserNameBatcher;
/**

@@ -30,0 +28,0 @@ * Gets a list of streams.

@@ -37,5 +37,7 @@ "use strict";

super(...arguments);
/** @internal */
this._getStreamByUserIdBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({
url: 'streams'
}, 'user_id', 'user_id', this._client, (data) => new HelixStream_1.HelixStream(data, this._client));
/** @internal */
this._getStreamByUserNameBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({

@@ -42,0 +44,0 @@ url: 'streams'

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixStreamMarkerData } from '../../interfaces/endpoints/stream.external';

@@ -8,5 +7,2 @@ /**

export declare class HelixStreamMarker extends DataObject<HelixStreamMarkerData> {
/** @private */ protected readonly _client: BaseApiClient;
/** @private */
constructor(data: HelixStreamMarkerData, client: BaseApiClient);
/**

@@ -13,0 +9,0 @@ * The ID of the marker.

@@ -11,3 +11,3 @@ "use strict";

let HelixStreamMarker = class HelixStreamMarker extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -1,4 +0,1 @@

import { rawDataSymbol } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixStreamMarkerVideoData } from '../../interfaces/endpoints/stream.external';
import type { HelixVideo } from '../video/HelixVideo';

@@ -13,5 +10,2 @@ import { HelixStreamMarker } from './HelixStreamMarker';

private readonly _videoId;
/** @private */ readonly [rawDataSymbol]: HelixStreamMarkerVideoData;
/** @private */
constructor(data: HelixStreamMarkerVideoData, _videoId: string, client: BaseApiClient);
/**

@@ -18,0 +12,0 @@ * The URL of the video, which will start playing at the position of the stream marker.

@@ -13,3 +13,3 @@ "use strict";

let HelixStreamMarkerWithVideo = class HelixStreamMarkerWithVideo extends HelixStreamMarker_1.HelixStreamMarker {
/** @private */
/** @internal */
constructor(data, _videoId, client) {

@@ -16,0 +16,0 @@ super(data, client);

@@ -1,4 +0,2 @@

import { type UserIdResolvable } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixPaginatedSubscriptionsResponse, type HelixSubscriptionData } from '../../interfaces/endpoints/subscription.external';
import { type HelixSubscriptionData } from '../../interfaces/endpoints/subscription.external';
import { HelixPaginatedRequestWithTotal } from '../../utils/pagination/HelixPaginatedRequestWithTotal';

@@ -13,6 +11,2 @@ import { HelixSubscription } from './HelixSubscription';

export declare class HelixPaginatedSubscriptionsRequest extends HelixPaginatedRequestWithTotal<HelixSubscriptionData, HelixSubscription> {
/** @private */
protected _currentData?: HelixPaginatedSubscriptionsResponse;
/** @private */
constructor(broadcaster: UserIdResolvable, client: BaseApiClient);
/**

@@ -19,0 +13,0 @@ * Gets the total sub points of the broadcaster.

@@ -16,3 +16,3 @@ "use strict";

let HelixPaginatedSubscriptionsRequest = class HelixPaginatedSubscriptionsRequest extends HelixPaginatedRequestWithTotal_1.HelixPaginatedRequestWithTotal {
/** @private */
/** @internal */
constructor(broadcaster, client) {

@@ -19,0 +19,0 @@ super({

@@ -1,3 +0,1 @@

import { rawDataSymbol } from '@twurple/common';
import { type HelixSubscriptionData } from '../../interfaces/endpoints/subscription.external';
import type { HelixUser } from '../user/HelixUser';

@@ -11,3 +9,2 @@ import { HelixUserSubscription } from './HelixUserSubscription';

export declare class HelixSubscription extends HelixUserSubscription {
/** @private */ readonly [rawDataSymbol]: HelixSubscriptionData;
/**

@@ -14,0 +11,0 @@ * The user ID of the broadcaster.

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixUserSubscriptionData } from '../../interfaces/endpoints/subscription.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixUserSubscription extends DataObject<HelixUserSubscriptionData> {
/** @private */ protected readonly _client: BaseApiClient;
/** @private */
constructor(data: HelixUserSubscriptionData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The user ID of the broadcaster.

@@ -11,3 +11,3 @@ "use strict";

let HelixUserSubscription = class HelixUserSubscription extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixTeamData } from '../../interfaces/endpoints/team.external';

@@ -9,5 +8,2 @@ import type { HelixUserRelation } from '../../relations/HelixUserRelation';

export declare class HelixTeam extends DataObject<HelixTeamData> {
/** @private */ protected readonly _client: BaseApiClient;
/** @private */
constructor(data: HelixTeamData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the team.

@@ -11,3 +11,3 @@ "use strict";

let HelixTeam = class HelixTeam extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -1,3 +0,1 @@

import { rawDataSymbol } from '@twurple/common';
import { type HelixTeamWithUsersData } from '../../interfaces/endpoints/team.external';
import { HelixUserRelation } from '../../relations/HelixUserRelation';

@@ -11,3 +9,2 @@ import { HelixTeam } from './HelixTeam';

export declare class HelixTeamWithUsers extends HelixTeam {
/** @private */ readonly [rawDataSymbol]: HelixTeamWithUsersData;
/**

@@ -14,0 +11,0 @@ * The relations to the members of the team.

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixFollowData } from '../../interfaces/endpoints/user.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from './HelixUser';

export declare class HelixFollow extends DataObject<HelixFollowData> {
private readonly _client;
/** @private */
constructor(data: HelixFollowData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The user ID of the following user.

@@ -11,3 +11,3 @@ "use strict";

let HelixFollow = class HelixFollow extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -1,3 +0,1 @@

import { rawDataSymbol } from '@twurple/common';
import { type HelixPrivilegedUserData } from '../../interfaces/endpoints/user.external';
import { HelixUser } from './HelixUser';

@@ -10,3 +8,2 @@ /**

export declare class HelixPrivilegedUser extends HelixUser {
/** @private */ readonly [rawDataSymbol]: HelixPrivilegedUserData;
/**

@@ -13,0 +10,0 @@ * The email address of the user.

import type { HelixUserType, UserIdResolvable, UserIdResolvableType, UserNameResolveableType } from '@twurple/common';
import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixBroadcasterType, type HelixUserData } from '../../interfaces/endpoints/user.external';

@@ -14,7 +13,2 @@ import type { HelixPaginatedResultWithTotal } from '../../utils/pagination/HelixPaginatedResult';

export declare class HelixUser extends DataObject<HelixUserData> implements UserIdResolvableType, UserNameResolveableType {
/** @private */ protected readonly _client: BaseApiClient;
/** @private */
constructor(data: HelixUserData, client: BaseApiClient);
/** @private */
get cacheKey(): string;
/**

@@ -21,0 +15,0 @@ * The ID of the user.

@@ -11,3 +11,3 @@ "use strict";

let HelixUser = class HelixUser extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -17,6 +17,2 @@ super(data);

}
/** @private */
get cacheKey() {
return this[common_1.rawDataSymbol].id;
}
/**

@@ -23,0 +19,0 @@ * The ID of the user.

@@ -9,4 +9,4 @@ import type { UserIdResolvable, UserNameResolvable } from '@twurple/common';

import { BaseApi } from '../BaseApi';
import { HelixInstalledExtensionList } from './Extensions/HelixInstalledExtensionList';
import { HelixUserExtension } from './Extensions/HelixUserExtension';
import { HelixInstalledExtensionList } from './extensions/HelixInstalledExtensionList';
import { HelixUserExtension } from './extensions/HelixUserExtension';
import { HelixPrivilegedUser } from './HelixPrivilegedUser';

@@ -30,4 +30,2 @@ import { HelixUser } from './HelixUser';

export declare class HelixUserApi extends BaseApi {
private readonly _getUserByIdBatcher;
private readonly _getUserByNameBatcher;
/**

@@ -34,0 +32,0 @@ * Gets the user data for the given list of user IDs.

@@ -15,4 +15,4 @@ "use strict";

const BaseApi_1 = require("../BaseApi");
const HelixInstalledExtensionList_1 = require("./Extensions/HelixInstalledExtensionList");
const HelixUserExtension_1 = require("./Extensions/HelixUserExtension");
const HelixInstalledExtensionList_1 = require("./extensions/HelixInstalledExtensionList");
const HelixUserExtension_1 = require("./extensions/HelixUserExtension");
const HelixPrivilegedUser_1 = require("./HelixPrivilegedUser");

@@ -38,5 +38,7 @@ const HelixUser_1 = require("./HelixUser");

super(...arguments);
/** @internal */
this._getUserByIdBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({
url: 'users'
}, 'id', 'id', this._client, (data) => new HelixUser_1.HelixUser(data, this._client));
/** @internal */
this._getUserByNameBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({

@@ -43,0 +45,0 @@ url: 'users'

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixUserBlockData } from '../../interfaces/endpoints/user.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from './HelixUser';

export declare class HelixUserBlock extends DataObject<HelixUserBlockData> {
private readonly _client;
/** @private */
constructor(data: HelixUserBlockData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the blocked user.

@@ -11,3 +11,3 @@ "use strict";

let HelixUserBlock = class HelixUserBlock extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type HelixVideoData, type HelixVideoMutedSegmentData, type HelixVideoType } from '../../interfaces/endpoints/video.external';

@@ -9,5 +8,2 @@ import type { HelixUser } from '../user/HelixUser';

export declare class HelixVideo extends DataObject<HelixVideoData> {
private readonly _client;
/** @private */
constructor(data: HelixVideoData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the video.

@@ -12,3 +12,3 @@ "use strict";

let HelixVideo = class HelixVideo extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -15,0 +15,0 @@ super(data);

@@ -8,4 +8,2 @@ import type { UserIdResolvable } from '@twurple/common';

import { HelixVideo } from './HelixVideo';
/** @private */
export type HelixVideoFilterType = 'id' | 'user_id' | 'game_id';
/**

@@ -26,3 +24,2 @@ * The Helix API methods that deal with videos.

export declare class HelixVideoApi extends BaseApi {
private readonly _getVideoByIdBatcher;
/**

@@ -89,6 +86,3 @@ * Gets the video data for the given list of video IDs.

deleteVideosByIds(broadcaster: UserIdResolvable, ids: string[]): Promise<void>;
private _getVideos;
private _getVideosPaginated;
private static _makeVideosQuery;
}
//# sourceMappingURL=HelixVideoApi.d.ts.map

@@ -31,2 +31,3 @@ "use strict";

super(...arguments);
/** @internal */
this._getVideoByIdBatcher = new HelixRequestBatcher_1.HelixRequestBatcher({

@@ -126,2 +127,3 @@ url: 'videos'

}
/** @internal */
async _getVideos(filterType, filterValues, filter = {}) {

@@ -142,2 +144,3 @@ if (!filterValues.length) {

}
/** @internal */
_getVideosPaginated(filterType, filterValues, filter = {}) {

@@ -150,2 +153,3 @@ return new HelixPaginatedRequest_1.HelixPaginatedRequest({

}
/** @internal */
static _makeVideosQuery(filterType, filterValues, filter = {}) {

@@ -152,0 +156,0 @@ const { language, period, orderBy, type } = filter;

@@ -110,6 +110,6 @@ export { ApiClient } from './client/ApiClient';

export type { HelixUserBlockAdditionalInfo, HelixUserUpdate } from './interfaces/endpoints/user.input';
export { HelixBaseExtension } from './endpoints/user/Extensions/HelixBaseExtension';
export { HelixInstalledExtension } from './endpoints/user/Extensions/HelixInstalledExtension';
export { HelixInstalledExtensionList } from './endpoints/user/Extensions/HelixInstalledExtensionList';
export { HelixUserExtension } from './endpoints/user/Extensions/HelixUserExtension';
export { HelixBaseExtension } from './endpoints/user/extensions/HelixBaseExtension';
export { HelixInstalledExtension } from './endpoints/user/extensions/HelixInstalledExtension';
export { HelixInstalledExtensionList } from './endpoints/user/extensions/HelixInstalledExtensionList';
export { HelixUserExtension } from './endpoints/user/extensions/HelixUserExtension';
export type { HelixExtensionSlotType } from './interfaces/endpoints/userExtension.external';

@@ -116,0 +116,0 @@ export type { HelixUserExtensionUpdatePayload, HelixUserExtensionUpdatePayloadSlot, HelixUserExtensionUpdatePayloadActiveSlot, HelixUserExtensionUpdatePayloadInactiveSlot } from './interfaces/endpoints/userExtension.input';

@@ -167,9 +167,9 @@ "use strict";

Object.defineProperty(exports, "HelixUser", { enumerable: true, get: function () { return HelixUser_1.HelixUser; } });
var HelixBaseExtension_1 = require("./endpoints/user/Extensions/HelixBaseExtension");
var HelixBaseExtension_1 = require("./endpoints/user/extensions/HelixBaseExtension");
Object.defineProperty(exports, "HelixBaseExtension", { enumerable: true, get: function () { return HelixBaseExtension_1.HelixBaseExtension; } });
var HelixInstalledExtension_1 = require("./endpoints/user/Extensions/HelixInstalledExtension");
var HelixInstalledExtension_1 = require("./endpoints/user/extensions/HelixInstalledExtension");
Object.defineProperty(exports, "HelixInstalledExtension", { enumerable: true, get: function () { return HelixInstalledExtension_1.HelixInstalledExtension; } });
var HelixInstalledExtensionList_1 = require("./endpoints/user/Extensions/HelixInstalledExtensionList");
var HelixInstalledExtensionList_1 = require("./endpoints/user/extensions/HelixInstalledExtensionList");
Object.defineProperty(exports, "HelixInstalledExtensionList", { enumerable: true, get: function () { return HelixInstalledExtensionList_1.HelixInstalledExtensionList; } });
var HelixUserExtension_1 = require("./endpoints/user/Extensions/HelixUserExtension");
var HelixUserExtension_1 = require("./endpoints/user/extensions/HelixUserExtension");
Object.defineProperty(exports, "HelixUserExtension", { enumerable: true, get: function () { return HelixUserExtension_1.HelixUserExtension; } });

@@ -176,0 +176,0 @@ var HelixVideoApi_1 = require("./endpoints/video/HelixVideoApi");

import { type HelixResponse } from '@twurple/api-call';
import { type CheermoteBackground, type CheermoteScale, type CheermoteState } from '../../endpoints/bits/CheermoteDisplayInfo';
import { type HelixBitsLeaderboardQuery } from './bits.input';
import { type HelixDateRangeData } from './generic.external';

@@ -43,10 +42,3 @@ /** @private */

}
/** @private */
export declare function createBitsLeaderboardQuery(params?: HelixBitsLeaderboardQuery): {
count: string;
period: import("./bits.input").HelixBitsLeaderboardPeriod;
started_at: string | undefined;
user_id: string | undefined;
};
export {};
//# sourceMappingURL=bits.external.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createBitsLeaderboardQuery = void 0;
/** @private */
/** @internal */
function createBitsLeaderboardQuery(params = {}) {

@@ -6,0 +6,0 @@ const { count = 10, period = 'all', startDate, contextUserId } = params;

@@ -1,3 +0,1 @@

import { type CommercialLength, type UserIdResolvable } from '@twurple/common';
import { type HelixChannelUpdate } from './channel.input';
/** @private */

@@ -43,30 +41,2 @@ export interface HelixChannelData {

}
/** @private */
export declare function createChannelUpdateBody(data: HelixChannelUpdate): {
game_id: string | undefined;
broadcaster_language: string | undefined;
title: string | undefined;
delay: string | undefined;
tags: string[] | undefined;
};
/** @private */
export declare function createChannelCommercialBody(broadcaster: UserIdResolvable, length: CommercialLength): {
broadcaster_id: string;
length: CommercialLength;
};
/** @private */
export declare function createChannelVipUpdateQuery(broadcaster: UserIdResolvable, user: UserIdResolvable): {
broadcaster_id: string;
user_id: string;
};
/** @private */
export declare function createChannelFollowerQuery(broadcaster: UserIdResolvable, user?: UserIdResolvable): {
broadcaster_id: string;
user_id: string | undefined;
};
/** @private */
export declare function createFollowedChannelQuery(user: UserIdResolvable, broadcaster?: UserIdResolvable): {
broadcaster_id: string | undefined;
user_id: string;
};
//# sourceMappingURL=channel.external.d.ts.map

@@ -6,3 +6,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createChannelUpdateBody(data) {

@@ -19,3 +19,3 @@ var _a;

exports.createChannelUpdateBody = createChannelUpdateBody;
/** @private */
/** @internal */
function createChannelCommercialBody(broadcaster, length) {

@@ -28,3 +28,3 @@ return {

exports.createChannelCommercialBody = createChannelCommercialBody;
/** @private */
/** @internal */
function createChannelVipUpdateQuery(broadcaster, user) {

@@ -37,3 +37,3 @@ return {

exports.createChannelVipUpdateQuery = createChannelVipUpdateQuery;
/** @private */
/** @internal */
function createChannelFollowerQuery(broadcaster, user) {

@@ -46,3 +46,3 @@ return {

exports.createChannelFollowerQuery = createChannelFollowerQuery;
/** @private */
/** @internal */
function createFollowedChannelQuery(user, broadcaster) {

@@ -49,0 +49,0 @@ return {

@@ -1,3 +0,1 @@

import { type UserIdResolvable } from '@twurple/common';
import { type HelixCreateCustomRewardData, type HelixCustomRewardRedemptionFilter, type HelixUpdateCustomRewardData } from './channelPoints.input';
/**

@@ -76,27 +74,2 @@ * The possible statuses of a custom Channel Points reward redemption you can set.

}
/** @private */
export declare function createCustomRewardsQuery(broadcaster: UserIdResolvable, onlyManageable?: boolean): {
broadcaster_id: string;
only_manageable_rewards: string | undefined;
};
/** @private */
export declare function createCustomRewardChangeQuery(broadcaster: UserIdResolvable, rewardId: string): {
broadcaster_id: string;
id: string;
};
/** @private */
export declare function createCustomRewardBody(data: HelixCreateCustomRewardData | HelixUpdateCustomRewardData): Record<string, unknown>;
/** @private */
export declare function createRewardRedemptionsByIdsQuery(broadcaster: UserIdResolvable, rewardId: string, redemptionIds: string[]): {
broadcaster_id: string;
reward_id: string;
id: string[];
};
/** @private */
export declare function createRedemptionsForBroadcasterQuery(broadcaster: UserIdResolvable, rewardId: string, status: HelixCustomRewardRedemptionStatus, filter: HelixCustomRewardRedemptionFilter): {
broadcaster_id: string;
reward_id: string;
status: HelixCustomRewardRedemptionStatus;
sort: string;
};
//# sourceMappingURL=channelPoints.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createCustomRewardsQuery(broadcaster, onlyManageable) {

@@ -14,3 +14,3 @@ return {

exports.createCustomRewardsQuery = createCustomRewardsQuery;
/** @private */
/** @internal */
function createCustomRewardChangeQuery(broadcaster, rewardId) {

@@ -23,3 +23,3 @@ return {

exports.createCustomRewardChangeQuery = createCustomRewardChangeQuery;
/** @private */
/** @internal */
function createCustomRewardBody(data) {

@@ -54,3 +54,3 @@ var _a, _b, _c;

exports.createCustomRewardBody = createCustomRewardBody;
/** @private */
/** @internal */
function createRewardRedemptionsByIdsQuery(broadcaster, rewardId, redemptionIds) {

@@ -64,3 +64,3 @@ return {

exports.createRewardRedemptionsByIdsQuery = createRewardRedemptionsByIdsQuery;
/** @private */
/** @internal */
function createRedemptionsForBroadcasterQuery(broadcaster, rewardId, status, filter) {

@@ -67,0 +67,0 @@ return {

@@ -74,4 +74,6 @@ import { type HelixForwardPagination } from '../../utils/pagination/HelixPagination';

}
/** @private */
/**
* The scale multiplier for a custom reward image.
*/
export type HelixCustomRewardImageScale = 1 | 2 | 4;
//# sourceMappingURL=channelPoints.input.d.ts.map

@@ -1,3 +0,1 @@

import { type UserIdResolvable } from '@twurple/common';
import { type HelixUpdateChatSettingsParams } from './chat.input';
/**

@@ -98,25 +96,2 @@ * The subscription tier necessary to unlock an emote. 1000 means tier 1, and so on.

}
/** @private */
export declare function createChatSettingsUpdateBody(settings: HelixUpdateChatSettingsParams): {
slow_mode: boolean | undefined;
slow_mode_wait_time: number | undefined;
follower_mode: boolean | undefined;
follower_mode_duration: number | undefined;
subscriber_mode: boolean | undefined;
emote_mode: boolean | undefined;
unique_chat_mode: boolean | undefined;
non_moderator_chat_delay: boolean | undefined;
non_moderator_chat_delay_duration: number | undefined;
};
/** @private */
export declare function createChatColorUpdateQuery(user: UserIdResolvable, color: HelixChatUserColor): {
user_id: string;
color: HelixChatUserColor;
};
/** @private */
export declare function createShoutoutQuery(from: UserIdResolvable, to: UserIdResolvable, moderatorId: string): {
from_broadcaster_id: string;
to_broadcaster_id: string;
moderator_id: string;
};
//# sourceMappingURL=chat.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createChatSettingsUpdateBody(settings) {

@@ -21,3 +21,3 @@ return {

exports.createChatSettingsUpdateBody = createChatSettingsUpdateBody;
/** @private */
/** @internal */
function createChatColorUpdateQuery(user, color) {

@@ -30,3 +30,3 @@ return {

exports.createChatColorUpdateQuery = createChatColorUpdateQuery;
/** @private */
/** @internal */
function createShoutoutQuery(from, to, moderatorId) {

@@ -33,0 +33,0 @@ return {

@@ -1,3 +0,1 @@

import { type UserIdResolvable } from '@twurple/common';
import { type HelixClipIdFilter } from './clip.input';
/** @private */

@@ -29,13 +27,2 @@ export interface HelixClipData {

}
/** @private */
export declare function createClipCreateQuery(channel: UserIdResolvable, createAfterDelay: boolean): {
broadcaster_id: string;
has_delay: string;
};
/** @private */
export declare function createClipQuery(params: HelixClipIdFilter): {
[x: string]: string | string[] | undefined;
started_at: string | undefined;
ended_at: string | undefined;
};
//# sourceMappingURL=clip.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createClipCreateQuery(channel, createAfterDelay) {

@@ -14,3 +14,3 @@ return {

exports.createClipCreateQuery = createClipCreateQuery;
/** @private */
/** @internal */
function createClipQuery(params) {

@@ -17,0 +17,0 @@ const { filterType, ids, startDate, endDate } = params;

@@ -1,2 +0,1 @@

import { type HelixDropsEntitlementFilter } from './entitlement.input';
/**

@@ -21,4 +20,2 @@ * The fulfillment status of a drop entitlement.

/** @private */
export declare function createDropsEntitlementQuery(filters: HelixDropsEntitlementFilter, alwaysApp: boolean): Record<string, string | undefined>;
/** @private */
export interface HelixDropsEntitlementUpdateData {

@@ -28,3 +25,2 @@ status: HelixDropsEntitlementUpdateStatus;

}
export declare function createDropsEntitlementUpdateBody(ids: string[], fulfillmentStatus: HelixDropsEntitlementFulfillmentStatus): Record<string, string | string[]>;
//# sourceMappingURL=entitlement.external.d.ts.map

@@ -6,3 +6,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createDropsEntitlementQuery(filters, alwaysApp) {

@@ -16,2 +16,3 @@ return {

exports.createDropsEntitlementQuery = createDropsEntitlementQuery;
/** @internal */
function createDropsEntitlementUpdateBody(ids, fulfillmentStatus) {

@@ -18,0 +19,0 @@ return {

import { type HelixPaginatedResponseWithTotal } from '@twurple/api-call';
import { type UserIdResolvable } from '@twurple/common';
import { type HelixEventSubDropEntitlementGrantFilter } from './eventSub.input';
export type HelixEventSubSubscriptionStatus = 'enabled' | 'webhook_callback_verification_pending' | 'webhook_callback_verification_failed' | 'websocket_disconnected' | 'notification_failures_exceeded' | 'authorization_revoked' | 'user_removed';

@@ -49,18 +47,2 @@ /** @private */

}
/** @private */
export declare function createEventSubBroadcasterCondition(broadcaster: UserIdResolvable): {
broadcaster_user_id: string;
};
/** @private */
export declare function createEventSubRewardCondition(broadcaster: UserIdResolvable, rewardId: string): {
broadcaster_user_id: string;
reward_id: string;
};
/** @private */
export declare function createEventSubModeratorCondition(broadcasterId: string, moderatorId: string): {
broadcaster_user_id: string;
moderator_user_id: string;
};
/** @private */
export declare function createEventSubDropEntitlementGrantCondition(filter: HelixEventSubDropEntitlementGrantFilter): Record<string, string | undefined>;
//# sourceMappingURL=eventSub.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createEventSubBroadcasterCondition(broadcaster) {

@@ -13,3 +13,3 @@ return {

exports.createEventSubBroadcasterCondition = createEventSubBroadcasterCondition;
/** @private */
/** @internal */
function createEventSubRewardCondition(broadcaster, rewardId) {

@@ -19,3 +19,3 @@ return { broadcaster_user_id: (0, common_1.extractUserId)(broadcaster), reward_id: rewardId };

exports.createEventSubRewardCondition = createEventSubRewardCondition;
/** @private */
/** @internal */
function createEventSubModeratorCondition(broadcasterId, moderatorId) {

@@ -28,3 +28,3 @@ return {

exports.createEventSubModeratorCondition = createEventSubModeratorCondition;
/** @private */
/** @internal */
function createEventSubDropEntitlementGrantCondition(filter) {

@@ -31,0 +31,0 @@ return {

@@ -1,2 +0,1 @@

import { type HelixExtensionBitsProductUpdatePayload, type HelixExtensionTransactionsFilter } from './extensions.input';
/** @private */

@@ -43,24 +42,2 @@ export interface HelixExtensionBitsProductCostData {

}
/** @private */
export declare function createReleasedExtensionFilter(extensionId: string, version: string | undefined): {
extension_id: string;
extension_version: string | undefined;
};
/** @private */
export declare function createExtensionProductBody(data: HelixExtensionBitsProductUpdatePayload): {
sku: string;
cost: {
amount: number;
type: string;
};
display_name: string;
in_development: boolean | undefined;
expiration: string | undefined;
is_broadcast: boolean | undefined;
};
/** @private */
export declare function createExtensionTransactionQuery(extensionId: string, filter: HelixExtensionTransactionsFilter): {
extension_id: string;
id: string[] | undefined;
};
//# sourceMappingURL=extensions.external.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createExtensionTransactionQuery = exports.createExtensionProductBody = exports.createReleasedExtensionFilter = void 0;
/** @private */
/** @internal */
function createReleasedExtensionFilter(extensionId, version) {

@@ -12,3 +12,3 @@ return {

exports.createReleasedExtensionFilter = createReleasedExtensionFilter;
/** @private */
/** @internal */
function createExtensionProductBody(data) {

@@ -28,3 +28,3 @@ return {

exports.createExtensionProductBody = createExtensionProductBody;
/** @private */
/** @internal */
function createExtensionTransactionQuery(extensionId, filter) {

@@ -31,0 +31,0 @@ return {

@@ -1,2 +0,1 @@

import { type UserIdResolvable } from '@twurple/common';
/** @private */

@@ -21,23 +20,2 @@ export interface HelixUserRelationData {

}
/** @private */
export declare function createSingleKeyQuery(key: string, value: string | string[] | undefined): Record<string, string | string[] | undefined>;
/** @private */
export declare function createUserQuery(user: UserIdResolvable): {
user_id: string;
};
/** @private */
export declare function createModeratorActionQuery(broadcaster: string, moderatorId: string): {
broadcaster_id: string;
moderator_id: string;
};
/** @private */
export declare function createGetByIdsQuery(broadcaster: UserIdResolvable, rewardIds: string[]): {
broadcaster_id: string;
id: string[];
};
/** @private */
export declare function createChannelUsersCheckQuery(broadcaster: UserIdResolvable, users: UserIdResolvable[]): {
broadcaster_id: string;
user_id: string[];
};
//# sourceMappingURL=generic.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createSingleKeyQuery(key, value) {

@@ -11,3 +11,3 @@ return { [key]: value };

exports.createSingleKeyQuery = createSingleKeyQuery;
/** @private */
/** @internal */
function createUserQuery(user) {

@@ -19,3 +19,3 @@ return {

exports.createUserQuery = createUserQuery;
/** @private */
/** @internal */
function createModeratorActionQuery(broadcaster, moderatorId) {

@@ -28,3 +28,3 @@ return {

exports.createModeratorActionQuery = createModeratorActionQuery;
/** @private */
/** @internal */
function createGetByIdsQuery(broadcaster, rewardIds) {

@@ -37,3 +37,3 @@ return {

exports.createGetByIdsQuery = createGetByIdsQuery;
/** @private */
/** @internal */
function createChannelUsersCheckQuery(broadcaster, users) {

@@ -40,0 +40,0 @@ return {

@@ -1,4 +0,1 @@

import { type UserIdResolvable } from '@twurple/common';
import { type HelixAutoModSettings } from '../../endpoints/moderation/HelixAutoModSettings';
import { type HelixBanFilter, type HelixBanUserRequest, type HelixModeratorFilter } from './moderation.input';
/** @private */

@@ -67,42 +64,2 @@ export interface HelixAutoModSettingsData {

}
/** @private */
export declare function createModerationUserListQuery(channel: UserIdResolvable, filter?: HelixModeratorFilter | HelixBanFilter): {
broadcaster_id: string;
user_id: string | string[] | undefined;
};
/** @private */
export declare function createModeratorModifyQuery(broadcaster: UserIdResolvable, user: UserIdResolvable): {
broadcaster_id: string;
user_id: string;
};
/** @private */
export declare function createAutoModProcessBody(user: UserIdResolvable, msgId: string, allow: boolean): {
user_id: string;
msg_id: string;
action: string;
};
/** @private */
export declare function createAutoModSettingsBody(data: HelixAutoModSettings): {
overall_level: number | null;
aggression: number;
bullying: number;
disability: number;
misogyny: number;
race_ethnicity_or_religion: number;
sex_based_terms: number;
sexuality_sex_or_gender: number;
swearing: number;
};
/** @private */
export declare function createBanUserBody(data: HelixBanUserRequest): {
data: {
duration: number | undefined;
reason: string;
user_id: string;
};
};
/** @private */
export declare function createUpdateShieldModeStatusBody(activate: boolean): {
is_active: boolean;
};
//# sourceMappingURL=moderation.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createModerationUserListQuery(channel, filter) {

@@ -14,3 +14,3 @@ return {

exports.createModerationUserListQuery = createModerationUserListQuery;
/** @private */
/** @internal */
function createModeratorModifyQuery(broadcaster, user) {

@@ -23,3 +23,3 @@ return {

exports.createModeratorModifyQuery = createModeratorModifyQuery;
/** @private */
/** @internal */
function createAutoModProcessBody(user, msgId, allow) {

@@ -33,3 +33,3 @@ return {

exports.createAutoModProcessBody = createAutoModProcessBody;
/** @private */
/** @internal */
function createAutoModSettingsBody(data) {

@@ -49,3 +49,3 @@ return {

exports.createAutoModSettingsBody = createAutoModSettingsBody;
/** @private */
/** @internal */
function createBanUserBody(data) {

@@ -61,3 +61,3 @@ return {

exports.createBanUserBody = createBanUserBody;
/** @private */
/** @internal */
function createUpdateShieldModeStatusBody(activate) {

@@ -64,0 +64,0 @@ return {

@@ -1,3 +0,1 @@

import { type UserIdResolvable } from '@twurple/common';
import { type HelixCreatePollData } from './poll.input';
/**

@@ -31,19 +29,2 @@ * The different statuses a poll can have.

}
/** @private */
export declare function createPollBody(broadcaster: UserIdResolvable, data: HelixCreatePollData): {
broadcaster_id: string;
title: string;
choices: {
title: string;
}[];
duration: number;
channel_points_voting_enabled: boolean;
channel_points_per_vote: number;
};
/** @private */
export declare function createPollEndBody(broadcaster: UserIdResolvable, id: string, showResult: boolean): {
broadcaster_id: string;
id: string;
status: string;
};
//# sourceMappingURL=poll.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createPollBody(broadcaster, data) {

@@ -19,3 +19,3 @@ var _a;

exports.createPollBody = createPollBody;
/** @private */
/** @internal */
function createPollEndBody(broadcaster, id, showResult) {

@@ -22,0 +22,0 @@ return {

@@ -1,3 +0,1 @@

import { type UserIdResolvable } from '@twurple/common';
import { type HelixCreatePredictionData } from './prediction.input';
/**

@@ -40,18 +38,2 @@ * The different statuses a prediction can have.

}
/** @private */
export declare function createPredictionBody(broadcaster: UserIdResolvable, data: HelixCreatePredictionData): {
broadcaster_id: string;
title: string;
outcomes: {
title: string;
}[];
prediction_window: number;
};
/** @private */
export declare function createEndPredictionBody(broadcaster: UserIdResolvable, id: string, status: HelixPredictionStatus, outcomeId?: string): {
broadcaster_id: string;
id: string;
status: HelixPredictionStatus;
winning_outcome_id: string | undefined;
};
//# sourceMappingURL=prediction.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createPredictionBody(broadcaster, data) {

@@ -16,3 +16,3 @@ return {

exports.createPredictionBody = createPredictionBody;
/** @private */
/** @internal */
function createEndPredictionBody(broadcaster, id, status, outcomeId) {

@@ -19,0 +19,0 @@ return {

@@ -1,2 +0,1 @@

import { type UserIdResolvable } from '@twurple/common';
/** @private */

@@ -7,7 +6,2 @@ export interface HelixRaidData {

}
/** @private */
export declare function createRaidStartQuery(from: UserIdResolvable, to: UserIdResolvable): {
from_broadcaster_id: string;
to_broadcaster_id: string;
};
//# sourceMappingURL=raid.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createRaidStartQuery(from, to) {

@@ -8,0 +8,0 @@ return {

@@ -1,3 +0,1 @@

import { type UserIdResolvable } from '@twurple/common';
import { type HelixCreateScheduleSegmentData, type HelixScheduleFilter, type HelixScheduleSettingsUpdate, type HelixUpdateScheduleSegmentData } from './schedule.input';
/** @private */

@@ -38,45 +36,2 @@ export interface HelixScheduleVacationData {

}
/** @private */
export declare function createScheduleQuery(broadcaster: UserIdResolvable, filter?: HelixScheduleFilter): {
broadcaster_id: string;
start_time: string | undefined;
utc_offset: string | undefined;
};
/** @private */
export declare function createScheduleSettingsUpdateQuery(broadcaster: UserIdResolvable, settings: HelixScheduleSettingsUpdate): {
broadcaster_id: string;
is_vacation_enabled: string;
vacation_start_time: string;
vacation_end_time: string;
timezone: string;
} | {
broadcaster_id: string;
is_vacation_enabled: string;
vacation_start_time?: undefined;
vacation_end_time?: undefined;
timezone?: undefined;
};
/** @private */
export declare function createScheduleSegmentBody(data: HelixCreateScheduleSegmentData): {
start_time: string;
timezone: string;
is_recurring: boolean;
duration: number | undefined;
category_id: string | undefined;
title: string | undefined;
};
/** @private */
export declare function createScheduleSegmentModifyQuery(broadcaster: UserIdResolvable, segmentId: string): {
broadcaster_id: string;
id: string;
};
/** @private */
export declare function createScheduleSegmentUpdateBody(data: HelixUpdateScheduleSegmentData): {
start_time: string | undefined;
timezone: string | undefined;
is_canceled: boolean | undefined;
duration: number | undefined;
category_id: string | undefined;
title: string | undefined;
};
//# sourceMappingURL=schedule.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createScheduleQuery(broadcaster, filter) {

@@ -16,3 +16,3 @@ var _a;

exports.createScheduleQuery = createScheduleQuery;
/** @private */
/** @internal */
function createScheduleSettingsUpdateQuery(broadcaster, settings) {

@@ -36,3 +36,3 @@ if (settings.vacation) {

exports.createScheduleSettingsUpdateQuery = createScheduleSettingsUpdateQuery;
/** @private */
/** @internal */
function createScheduleSegmentBody(data) {

@@ -49,3 +49,3 @@ return {

exports.createScheduleSegmentBody = createScheduleSegmentBody;
/** @private */
/** @internal */
function createScheduleSegmentModifyQuery(broadcaster, segmentId) {

@@ -58,3 +58,3 @@ return {

exports.createScheduleSegmentModifyQuery = createScheduleSegmentModifyQuery;
/** @private */
/** @internal */
function createScheduleSegmentUpdateBody(data) {

@@ -61,0 +61,0 @@ return {

@@ -1,2 +0,1 @@

import { type HelixChannelSearchFilter } from './search.input';
/** @private */

@@ -16,7 +15,2 @@ export interface HelixChannelSearchResultData {

}
/** @private */
export declare function createSearchChannelsQuery(query: string, filter: HelixChannelSearchFilter): {
query: string;
live_only: string | undefined;
};
//# sourceMappingURL=search.external.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSearchChannelsQuery = void 0;
/** @private */
/** @internal */
function createSearchChannelsQuery(query, filter) {

@@ -6,0 +6,0 @@ var _a;

@@ -1,3 +0,1 @@

import { type UserIdResolvable } from '@twurple/common';
import { type HelixStreamFilter } from './stream.input';
/**

@@ -53,20 +51,3 @@ * The type of a stream.

}
/** @private */
export declare function createStreamQuery(filter: HelixStreamFilter): {
game_id: string | string[] | undefined;
language: string | string[] | undefined;
type: HelixStreamType | undefined;
user_id: string | string[] | undefined;
user_login: string | string[] | undefined;
};
/** @private */
export declare function createStreamMarkerBody(broadcaster: UserIdResolvable, description?: string): {
user_id: string;
description: string | undefined;
};
/** @private */
export declare function createVideoQuery(id: string): {
video_id: string;
};
export {};
//# sourceMappingURL=stream.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createStreamQuery(filter) {

@@ -17,3 +17,3 @@ return {

exports.createStreamQuery = createStreamQuery;
/** @private */
/** @internal */
function createStreamMarkerBody(broadcaster, description) {

@@ -26,3 +26,3 @@ return {

exports.createStreamMarkerBody = createStreamMarkerBody;
/** @private */
/** @internal */
function createVideoQuery(id) {

@@ -29,0 +29,0 @@ return {

import { type HelixPaginatedResponseWithTotal } from '@twurple/api-call';
import { type UserIdResolvable } from '@twurple/common';
/** @private */

@@ -26,7 +25,2 @@ export interface HelixUserSubscriptionData {

}
/** @private */
export declare function createSubscriptionCheckQuery(broadcaster: UserIdResolvable, user: UserIdResolvable): {
broadcaster_id: string;
user_id: string;
};
//# sourceMappingURL=subscription.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createSubscriptionCheckQuery(broadcaster, user) {

@@ -8,0 +8,0 @@ return {

@@ -1,3 +0,2 @@

import { type HelixUserType, type UserIdResolvable } from '@twurple/common';
import { type HelixUserBlockAdditionalInfo } from './user.input';
import { type HelixUserType } from '@twurple/common';
/** @private */

@@ -42,12 +41,2 @@ export interface HelixFollowData {

export type UserLookupType = 'id' | 'login';
/** @private */
export declare function createUserBlockCreateQuery(target: UserIdResolvable, additionalInfo: HelixUserBlockAdditionalInfo): {
target_user_id: string;
source_context: "chat" | "whisper" | undefined;
reason: "other" | "spam" | "harassment" | undefined;
};
/** @private */
export declare function createUserBlockDeleteQuery(target: UserIdResolvable): {
target_user_id: string;
};
//# sourceMappingURL=user.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createUserBlockCreateQuery(target, additionalInfo) {

@@ -15,3 +15,3 @@ return {

exports.createUserBlockCreateQuery = createUserBlockCreateQuery;
/** @private */
/** @internal */
function createUserBlockDeleteQuery(target) {

@@ -18,0 +18,0 @@ return {

@@ -1,7 +0,2 @@

import { type UserIdResolvable } from '@twurple/common';
/** @private */
export declare function createWhisperQuery(from: UserIdResolvable, to: UserIdResolvable): {
from_user_id: string;
to_user_id: string;
};
export {};
//# sourceMappingURL=whisper.external.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

const common_1 = require("@twurple/common");
/** @private */
/** @internal */
function createWhisperQuery(from, to) {

@@ -8,0 +8,0 @@ return {

import { DataObject } from '@twurple/common';
import { type BaseApiClient } from '../client/BaseApiClient';
import type { HelixUser } from '../endpoints/user/HelixUser';

@@ -9,5 +8,2 @@ import { type HelixUserRelationData } from '../interfaces/endpoints/generic.external';

export declare class HelixUserRelation extends DataObject<HelixUserRelationData> {
private readonly _client;
/** @private */
constructor(data: HelixUserRelationData, client: BaseApiClient);
/**

@@ -14,0 +10,0 @@ * The ID of the user.

@@ -11,3 +11,3 @@ "use strict";

let HelixUserRelation = class HelixUserRelation extends common_1.DataObject {
/** @private */
/** @internal */
constructor(data, client) {

@@ -14,0 +14,0 @@ super(data);

@@ -1,11 +0,2 @@

import { type Response } from '@d-fischer/cross-fetch';
import type { RateLimiterResponseParameters } from '@d-fischer/rate-limiter';
import { ResponseBasedRateLimiter } from '@d-fischer/rate-limiter';
import type { TwitchApiCallOptionsInternal } from '../client/ApiClient';
/** @private */
export declare class HelixRateLimiter extends ResponseBasedRateLimiter<TwitchApiCallOptionsInternal, Response> {
protected doRequest({ options, clientId, accessToken, authorizationType, fetchOptions }: TwitchApiCallOptionsInternal): Promise<Response>;
protected needsToRetryAfter(res: Response): number | null;
protected getParametersFromResponse(res: Response): RateLimiterResponseParameters;
}
export {};
//# sourceMappingURL=HelixRateLimiter.d.ts.map

@@ -6,3 +6,3 @@ "use strict";

const api_call_1 = require("@twurple/api-call");
/** @private */
/** @internal */
class HelixRateLimiter extends rate_limiter_1.ResponseBasedRateLimiter {

@@ -9,0 +9,0 @@ async doRequest({ options, clientId, accessToken, authorizationType, fetchOptions }) {

@@ -1,20 +0,2 @@

import { type BaseApiClient } from '../client/BaseApiClient';
import { type ContextApiCallOptions } from '../client/ContextApiCallOptions';
/** @private */
export declare class HelixRequestBatcher<D, T> {
private readonly _callOptions;
private readonly _queryParamName;
private readonly _matchKey;
private readonly _mapper;
private readonly _limitPerRequest;
private readonly _client;
private readonly _requestedIds;
private readonly _requestResolversById;
private readonly _delay;
private _waitTimer;
constructor(_callOptions: Omit<ContextApiCallOptions, 'type'>, _queryParamName: string, _matchKey: Extract<keyof D, string>, client: BaseApiClient, _mapper: (data: D) => T, _limitPerRequest?: number);
request(id: string): Promise<T | null>;
private _handleBatch;
private _doRequest;
}
export {};
//# sourceMappingURL=HelixRequestBatcher.d.ts.map

@@ -6,3 +6,3 @@ "use strict";

const shared_utils_1 = require("@d-fischer/shared-utils");
/** @private */
/** @internal */
class HelixRequestBatcher {

@@ -9,0 +9,0 @@ constructor(_callOptions, _queryParamName, _matchKey, client, _mapper, _limitPerRequest = 100) {

@@ -1,4 +0,1 @@

import type { HelixPaginatedResponse, TwitchApiCallOptions } from '@twurple/api-call';
import { type BaseApiClient } from '../../client/BaseApiClient';
import { type ContextApiCallOptions } from '../../client/ContextApiCallOptions';
/**

@@ -20,11 +17,2 @@ * Represents a request to the new Twitch API (Helix) that utilizes a cursor to paginate through its results.

private readonly _limitPerPage;
private readonly _client;
/** @private */
protected _currentCursor?: string;
/** @private */
protected _isFinished: boolean;
/** @private */
protected _currentData?: HelixPaginatedResponse<D>;
/** @private */
constructor(_callOptions: Omit<ContextApiCallOptions, 'type'>, client: BaseApiClient, _mapper: (data: D) => T | T[], _limitPerPage?: number);
/**

@@ -61,7 +49,3 @@ * The last fetched page of data associated to the requested resource.

[Symbol.asyncIterator](): AsyncGenerator<T, void, undefined>;
/** @private */
protected _fetchData(additionalOptions?: Partial<TwitchApiCallOptions>): Promise<HelixPaginatedResponse<D>>;
/** @private */
protected _processResult(result: HelixPaginatedResponse<D>): T[];
}
//# sourceMappingURL=HelixPaginatedRequest.d.ts.map

@@ -25,3 +25,3 @@ "use strict";

let HelixPaginatedRequest = class HelixPaginatedRequest {
/** @private */
/** @internal */
constructor(_callOptions, client, _mapper, _limitPerPage = 100) {

@@ -31,4 +31,3 @@ this._callOptions = _callOptions;

this._limitPerPage = _limitPerPage;
/** @private */
this._isFinished = false;
/** @internal */ this._isFinished = false;
this._client = client;

@@ -110,3 +109,3 @@ }

}
/** @private */
/** @internal */
async _fetchData(additionalOptions = {}) {

@@ -125,3 +124,3 @@ return await this._client.callApi({

}
/** @private */
/** @internal */
_processResult(result) {

@@ -128,0 +127,0 @@ this._currentCursor = result.pagination ? result.pagination.cursor : undefined;

@@ -1,2 +0,1 @@

import type { HelixPaginatedResponseWithTotal } from '@twurple/api-call';
import { HelixPaginatedRequest } from './HelixPaginatedRequest';

@@ -9,4 +8,2 @@ /**

export declare class HelixPaginatedRequestWithTotal<D, T> extends HelixPaginatedRequest<D, T> {
/** @private */
protected _currentData?: HelixPaginatedResponseWithTotal<D>;
/**

@@ -13,0 +10,0 @@ * Gets the total number of entities existing in the queried result set.

@@ -1,4 +0,1 @@

import type { ConstructedType } from '@d-fischer/shared-utils';
import type { HelixPaginatedResponse, HelixPaginatedResponseWithTotal } from '@twurple/api-call';
import { type BaseApiClient } from '../../client/BaseApiClient';
/**

@@ -34,6 +31,2 @@ * A result coming from a Helix resource that is paginated using a cursor.

}
/** @private */ export declare function createPaginatedResult<I, O extends new (data: I, client: BaseApiClient) => ConstructedType<O>>(response: HelixPaginatedResponse<I>, type: O, client: BaseApiClient): HelixPaginatedResult<ConstructedType<O>>;
/** @private */ export declare function createPaginatedResult<I, O extends new (data: I) => ConstructedType<O>>(response: HelixPaginatedResponse<I>, type: O): HelixPaginatedResult<ConstructedType<O>>;
/** @private */ export declare function createPaginatedResultWithTotal<I, O extends new (data: I, client: BaseApiClient) => ConstructedType<O>>(response: HelixPaginatedResponseWithTotal<I>, type: O, client: BaseApiClient): HelixPaginatedResultWithTotal<ConstructedType<O>>;
/** @private */ export declare function createPaginatedResultWithTotal<I, O extends new (data: I) => ConstructedType<O>>(response: HelixPaginatedResponseWithTotal<I>, type: O): HelixPaginatedResultWithTotal<ConstructedType<O>>;
//# sourceMappingURL=HelixPaginatedResult.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createPaginatedResultWithTotal = exports.createPaginatedResult = void 0;
/** @private */ function createPaginatedResult(response, type, client) {
/** @internal */ function createPaginatedResult(response, type, client) {
var _a;

@@ -16,3 +16,3 @@ let dataCache = undefined;

exports.createPaginatedResult = createPaginatedResult;
/** @private */ function createPaginatedResultWithTotal(response, type, client) {
/** @internal */ function createPaginatedResultWithTotal(response, type, client) {
let dataCache = undefined;

@@ -19,0 +19,0 @@ return {

@@ -25,4 +25,2 @@ /**

}
/** @private */
export declare function createPaginationQuery({ after, before, limit }?: HelixPagination): Record<string, string | undefined>;
//# sourceMappingURL=HelixPagination.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createPaginationQuery = void 0;
/** @private */
/** @internal */
function createPaginationQuery({ after, before, limit } = {}) {

@@ -6,0 +6,0 @@ return {

{
"name": "@twurple/api",
"version": "7.0.0-pre.2",
"version": "7.0.0-pre.3",
"publishConfig": {

@@ -43,4 +43,4 @@ "access": "public"

"@d-fischer/typed-event-emitter": "^3.3.1",
"@twurple/api-call": "7.0.0-pre.2",
"@twurple/common": "7.0.0-pre.2",
"@twurple/api-call": "7.0.0-pre.3",
"@twurple/common": "7.0.0-pre.3",
"retry": "^0.13.1",

@@ -50,7 +50,7 @@ "tslib": "^2.0.3"

"devDependencies": {
"@twurple/auth": "7.0.0-pre.2",
"@twurple/auth": "7.0.0-pre.3",
"@types/retry": "^0.12.2"
},
"peerDependencies": {
"@twurple/auth": "7.0.0-pre.2"
"@twurple/auth": "7.0.0-pre.3"
},

@@ -57,0 +57,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc