New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bitbar/cloud-api-client

Package Overview
Dependencies
Maintainers
0
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitbar/cloud-api-client - npm Package Compare versions

Comparing version

to
1.4.0

.nvmrc

44

dist/api/admin.d.ts

@@ -23,23 +23,23 @@ import { APIAdminListDevices as OriginAPIAdminListDevices } from './APIAdminListDevices';

import { APIAdminResourceUserAccount as OriginAPIAdminResourceUserAccount } from './APIAdminResourceUserAccount';
export declare type APIAdminListDevices = InstanceType<typeof OriginAPIAdminListDevices>;
export declare type APIAdminListNotificationPlans = InstanceType<typeof OriginAPIAdminListNotificationPlans>;
export declare type APIAdminListRuns = InstanceType<typeof OriginAPIAdminListRuns>;
export declare type APIAdminListServices = InstanceType<typeof OriginAPIAdminListServices>;
export declare type APIAdminListStatistics = InstanceType<typeof OriginAPIAdminListStatistics>;
export declare type APIAdminResource = InstanceType<typeof OriginAPIAdminResource>;
export declare type APIAdminResourceAccount = InstanceType<typeof OriginAPIAdminResourceAccount>;
export declare type APIAdminResourceAccountService = InstanceType<typeof OriginAPIAdminResourceAccountService>;
export declare type APIAdminResourceCluster = InstanceType<typeof OriginAPIAdminResourceCluster>;
export declare type APIAdminResourceDevice = InstanceType<typeof OriginAPIAdminResourceDevice>;
export declare type APIAdminResourceDeviceModel = InstanceType<typeof OriginAPIAdminResourceDeviceModel>;
export declare type APIAdminResourceDeviceSession = InstanceType<typeof OriginAPIAdminResourceDeviceSession>;
export declare type APIAdminResourceDeviceSessionStandalone = InstanceType<typeof OriginAPIAdminResourceDeviceSessionStandalone>;
export declare type APIAdminResourceDeviceTime = InstanceType<typeof OriginAPIAdminResourceDeviceTime>;
export declare type APIAdminResourceFramework = InstanceType<typeof OriginAPIAdminResourceFramework>;
export declare type APIAdminResourceLicense = InstanceType<typeof OriginAPIAdminResourceLicense>;
export declare type APIAdminResourceNotificationPlan = InstanceType<typeof OriginAPIAdminResourceNotificationPlan>;
export declare type APIAdminResourceRun = InstanceType<typeof OriginAPIAdminResourceRun>;
export declare type APIAdminResourceRunStandalone = InstanceType<typeof OriginAPIAdminResourceRunStandalone>;
export declare type APIAdminResourceService = InstanceType<typeof OriginAPIAdminResourceService>;
export declare type APIAdminResourceUser = InstanceType<typeof OriginAPIAdminResourceUser>;
export declare type APIAdminResourceUserAccount = InstanceType<typeof OriginAPIAdminResourceUserAccount>;
export type APIAdminListDevices = InstanceType<typeof OriginAPIAdminListDevices>;
export type APIAdminListNotificationPlans = InstanceType<typeof OriginAPIAdminListNotificationPlans>;
export type APIAdminListRuns = InstanceType<typeof OriginAPIAdminListRuns>;
export type APIAdminListServices = InstanceType<typeof OriginAPIAdminListServices>;
export type APIAdminListStatistics = InstanceType<typeof OriginAPIAdminListStatistics>;
export type APIAdminResource = InstanceType<typeof OriginAPIAdminResource>;
export type APIAdminResourceAccount = InstanceType<typeof OriginAPIAdminResourceAccount>;
export type APIAdminResourceAccountService = InstanceType<typeof OriginAPIAdminResourceAccountService>;
export type APIAdminResourceCluster = InstanceType<typeof OriginAPIAdminResourceCluster>;
export type APIAdminResourceDevice = InstanceType<typeof OriginAPIAdminResourceDevice>;
export type APIAdminResourceDeviceModel = InstanceType<typeof OriginAPIAdminResourceDeviceModel>;
export type APIAdminResourceDeviceSession = InstanceType<typeof OriginAPIAdminResourceDeviceSession>;
export type APIAdminResourceDeviceSessionStandalone = InstanceType<typeof OriginAPIAdminResourceDeviceSessionStandalone>;
export type APIAdminResourceDeviceTime = InstanceType<typeof OriginAPIAdminResourceDeviceTime>;
export type APIAdminResourceFramework = InstanceType<typeof OriginAPIAdminResourceFramework>;
export type APIAdminResourceLicense = InstanceType<typeof OriginAPIAdminResourceLicense>;
export type APIAdminResourceNotificationPlan = InstanceType<typeof OriginAPIAdminResourceNotificationPlan>;
export type APIAdminResourceRun = InstanceType<typeof OriginAPIAdminResourceRun>;
export type APIAdminResourceRunStandalone = InstanceType<typeof OriginAPIAdminResourceRunStandalone>;
export type APIAdminResourceService = InstanceType<typeof OriginAPIAdminResourceService>;
export type APIAdminResourceUser = InstanceType<typeof OriginAPIAdminResourceUser>;
export type APIAdminResourceUserAccount = InstanceType<typeof OriginAPIAdminResourceUserAccount>;

@@ -6,3 +6,4 @@ import { API } from '../API';

import { FileData, UploadObj, UserFile } from './models/UserFile';
export declare class APIListFiles extends APIList<UserFile, FilesQueryParams, FileData> {
import FormData from 'form-data';
export declare class APIListFiles extends APIList<UserFile, FilesQueryParams, FileData | FormData> {
constructor(parent: APIEntity | API);

@@ -9,0 +10,0 @@ upload(obj: UploadObj): this;

import { APIEntity as OriginAPIEntity } from './APIEntity';
export declare type APIEntity = InstanceType<typeof OriginAPIEntity>;
export type APIEntity = InstanceType<typeof OriginAPIEntity>;
export * from './class';

@@ -4,0 +4,0 @@ export * from './admin';

@@ -11,11 +11,11 @@ import { APIList as OriginAPIList } from './APIList';

import { APIListUsers as OriginAPIListUsers } from './APIListUsers';
export declare type APIList = InstanceType<typeof OriginAPIList>;
export declare type APIListCleanupConfigurations = InstanceType<typeof OriginAPIListCleanupConfigurations>;
export declare type APIListDevices = InstanceType<typeof OriginAPIListDevices>;
export declare type APIListFiles = InstanceType<typeof OriginAPIListFiles>;
export declare type APIListNotifications = InstanceType<typeof OriginAPIListNotifications>;
export declare type APIListProperties = InstanceType<typeof OriginAPIListProperties>;
export declare type APIListRuns = InstanceType<typeof OriginAPIListRuns>;
export declare type APIListServices = InstanceType<typeof OriginAPIListServices>;
export declare type APIListSmartbearTunnels = InstanceType<typeof OriginAPIListSmartbearTunnels>;
export declare type APIListUsers = InstanceType<typeof OriginAPIListUsers>;
export type APIList = InstanceType<typeof OriginAPIList>;
export type APIListCleanupConfigurations = InstanceType<typeof OriginAPIListCleanupConfigurations>;
export type APIListDevices = InstanceType<typeof OriginAPIListDevices>;
export type APIListFiles = InstanceType<typeof OriginAPIListFiles>;
export type APIListNotifications = InstanceType<typeof OriginAPIListNotifications>;
export type APIListProperties = InstanceType<typeof OriginAPIListProperties>;
export type APIListRuns = InstanceType<typeof OriginAPIListRuns>;
export type APIListServices = InstanceType<typeof OriginAPIListServices>;
export type APIListSmartbearTunnels = InstanceType<typeof OriginAPIListSmartbearTunnels>;
export type APIListUsers = InstanceType<typeof OriginAPIListUsers>;

@@ -6,3 +6,3 @@ export declare enum AccessGroupScope {

}
export declare type AccessGroup = {
export type AccessGroup = {
id: number;

@@ -14,3 +14,3 @@ name: string;

};
export declare type AccessGroupData = Pick<AccessGroup, 'name' | 'scope' | 'userId'>;
export declare type AccessGroupsData = Omit<AccessGroupData, 'userId'>;
export type AccessGroupData = Pick<AccessGroup, 'name' | 'scope' | 'userId'>;
export type AccessGroupsData = Omit<AccessGroupData, 'userId'>;

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

export declare type Account = {
export type Account = {
activeServiceName: string;

@@ -12,3 +12,3 @@ comment: string;

};
export declare type Invoice = {
export type Invoice = {
address: string;

@@ -21,3 +21,3 @@ city: string;

};
export declare type AccountData = Partial<{
export type AccountData = Partial<{
comment: string;

@@ -24,0 +24,0 @@ invoiceDetails: Invoice;

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

declare type ConcurrencyDetails = {
type ConcurrencyDetails = {
accountConcurrency: number;

@@ -9,3 +9,3 @@ runningSessions: number;

};
export declare type AccountConcurrencyStatusMap = {
export type AccountConcurrencyStatusMap = {
id: number;

@@ -12,0 +12,0 @@ AUTOMATIC: ConcurrencyDetails;

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

export declare type AccountPreferences = {
export type AccountPreferences = {
allowedFileExtensions: Array<string>;

@@ -7,2 +7,2 @@ id: number;

};
export declare type AccountPreferencesData = Partial<Omit<AccountPreferences, 'id'>>;
export type AccountPreferencesData = Partial<Omit<AccountPreferences, 'id'>>;

@@ -28,3 +28,3 @@ import { ServiceUnit } from './Service';

}
export declare type ServicePaymentStatus = {
export type ServicePaymentStatus = {
accountService: AccountService;

@@ -35,3 +35,3 @@ message: string;

};
export declare type AccountService = {
export type AccountService = {
accountId: number;

@@ -66,4 +66,4 @@ accountName: string;

};
export declare type AccountServiceData = Pick<AccountService, 'endTime' | 'serviceId' | 'slmLicenseId'> & {
export type AccountServiceData = Pick<AccountService, 'endTime' | 'serviceId' | 'slmLicenseId'> & {
count: number;
};

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

export declare type AccountServicePayment = {
export type AccountServicePayment = {
accountId: number;

@@ -3,0 +3,0 @@ additionalTime: number;

import { Method } from 'axios';
export declare type Activity = {
export type Activity = {
body: string;

@@ -4,0 +4,0 @@ createTime: number;

@@ -20,3 +20,3 @@ import { DevicesQueryParams, Platform, SoftwareVersion } from './Device';

}
export declare type AdminDevice = {
export type AdminDevice = {
accountId: number;

@@ -51,6 +51,6 @@ accountName: string;

};
export declare type AdminDevicesQueryParams = Pick<DevicesQueryParams, 'withDisabled'> & CollectionQueryParams;
export declare type AdminDeviceData = Pick<AdminDevice, 'accountId' | 'enabled' | 'initStep' | 'ipAddress' | 'name' | 'serialId' | 'testTimeLimit' | 'unlockGesture'> & {
export type AdminDevicesQueryParams = Pick<DevicesQueryParams, 'withDisabled'> & CollectionQueryParams;
export type AdminDeviceData = Pick<AdminDevice, 'accountId' | 'enabled' | 'initStep' | 'ipAddress' | 'name' | 'serialId' | 'testTimeLimit' | 'unlockGesture'> & {
apiLevel: number;
releaseVersion: string;
};
import { DeviceSessionState, DeviceSessionStepType } from './DeviceSession';
export declare type AdminDeviceSession = {
export type AdminDeviceSession = {
billable: boolean;

@@ -20,3 +20,3 @@ createTime: number;

};
export declare type AdminInteractiveDeviceSession = {
export type AdminInteractiveDeviceSession = {
billable: boolean;

@@ -23,0 +23,0 @@ createTime: number;

import { CollectionQueryParams } from './HTTP';
export declare type AdminDeviceSessionStatistics = {
export type AdminDeviceSessionStatistics = {
abortedDeviceCount: number;

@@ -4,0 +4,0 @@ avgDeviceSessionDeviceTime: number;

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

export declare type AdminDeviceType = {
export type AdminDeviceType = {
frameExtraWidth: number;

@@ -10,4 +10,4 @@ id: number;

};
export declare type DeviceTypeData = Omit<AdminDeviceType, 'id'> & {
export type DeviceTypeData = Omit<AdminDeviceType, 'id'> & {
deviceTypeId: number;
};

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

export declare type AdminEmail = {
export type AdminEmail = {
createTime: number;

@@ -3,0 +3,0 @@ id: number;

@@ -35,3 +35,3 @@ export declare enum AdminErrorType {

}
export declare type AdminError = {
export type AdminError = {
id: number;

@@ -38,0 +38,0 @@ quantity: number;

@@ -9,3 +9,3 @@ import { DeviceSessionState } from './DeviceSession';

}
export declare type AdminFrameworkStatistics = {
export type AdminFrameworkStatistics = {
cloudName: string;

@@ -12,0 +12,0 @@ count: number;

import { User } from './User';
export declare type Administrator = Pick<User, 'createTime' | 'deleteTime' | 'email' | 'id' | 'status'> & {
export type Administrator = Pick<User, 'createTime' | 'deleteTime' | 'email' | 'id' | 'status'> & {
isAdmin: boolean;

@@ -4,0 +4,0 @@ isAdminReadOnly: boolean;

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

export declare type AdminOverview = {
export type AdminOverview = {
activeUsersCount: number;

@@ -3,0 +3,0 @@ id: number;

import { QueryParams } from './HTTP';
import { TestScheduler, TestState } from './TestRun';
export declare type AdminTestRun = {
export type AdminTestRun = {
appCrawlerRun: boolean;

@@ -5,0 +5,0 @@ createTime: number;

@@ -10,3 +10,3 @@ import { PaymentMethod } from './AccountService';

}
export declare type BillingPeriod = {
export type BillingPeriod = {
accountServiceId: number;

@@ -30,3 +30,3 @@ additionalHours: number;

};
export declare type BillingPeriodUsage = {
export type BillingPeriodUsage = {
billableSeconds: number;

@@ -33,0 +33,0 @@ id: number;

@@ -5,3 +5,3 @@ export declare enum BrokerType {

}
export declare type Broker = {
export type Broker = {
id: number;

@@ -8,0 +8,0 @@ location: string;

import { OsType } from './Enum';
export declare type Browser = {
export type Browser = {
architecture: string;

@@ -12,5 +12,5 @@ displayName: string;

};
export declare type BrowserData = Omit<Browser, 'id' | 'install'>;
export declare type DeviceBrowserData = {
export type BrowserData = Omit<Browser, 'id' | 'install'>;
export type DeviceBrowserData = {
browserIds: Array<number>;
};
import { DeviceCleanupConfiguration } from './Device';
export declare type CleanupConfigurationData = Pick<DeviceCleanupConfiguration, 'content' | 'discriminator' | 'enabled' | 'osType'>;
export type CleanupConfigurationData = Pick<DeviceCleanupConfiguration, 'content' | 'discriminator' | 'enabled' | 'osType'>;
export interface SpecificCleanupConfigurationQueryParams {
serialId: string;
}
import { AdminDevice } from './AdminDevice';
import { CollectionResponse, QueryParams } from './HTTP';
export declare type Cluster = {
export type Cluster = {
devices: CollectionResponse<AdminDevice>;

@@ -28,3 +28,3 @@ enabled: boolean;

}
export declare type ClusterData = Pick<Cluster, 'enabled' | 'url'> & {
export type ClusterData = Pick<Cluster, 'enabled' | 'url'> & {
quietDown: boolean;

@@ -31,0 +31,0 @@ restart: boolean;

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

export declare type Connection = {
export type Connection = {
createTime: number;

@@ -15,2 +15,2 @@ deviceSessionId: number;

};
export declare type ConnectionData = Pick<Connection, 'host' | 'port' | 'type' | 'password'>;
export type ConnectionData = Pick<Connection, 'host' | 'port' | 'type' | 'password'>;

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

export declare type CountryVatRate = {
export type CountryVatRate = {
country: string;

@@ -7,2 +7,2 @@ countryCode: string;

};
export declare type CountryVatRateData = Pick<CountryVatRate, 'countryCode' | 'vatRate'>;
export type CountryVatRateData = Pick<CountryVatRate, 'countryCode' | 'vatRate'>;
import { Platform } from './Device';
export declare type DesktopBrowserCapabilities = {
export type DesktopBrowserCapabilities = {
id: number;
platforms: Array<any>;
};
export declare type DesktopPlatform = {
export type DesktopPlatform = {
browsers: Array<DesktopBrowser>;

@@ -14,3 +14,3 @@ id: number;

};
export declare type DesktopBrowser = {
export type DesktopBrowser = {
displayName: string;

@@ -17,0 +17,0 @@ id: number;

@@ -23,3 +23,3 @@ import { Browser } from './Browser';

}
export declare type DeviceProperty = {
export type DeviceProperty = {
displayName: string;

@@ -32,3 +32,3 @@ id: number;

};
export declare type SoftwareVersion = {
export type SoftwareVersion = {
apiLevel: number;

@@ -43,3 +43,3 @@ id: number;

}
export declare type Device = {
export type Device = {
accountId: number;

@@ -74,3 +74,3 @@ accountName: string;

};
export declare type DeviceCleanupConfiguration = {
export type DeviceCleanupConfiguration = {
content: string;

@@ -88,6 +88,6 @@ createTime: number;

};
export declare type DeviceCleanupConfigurationData = {
export type DeviceCleanupConfigurationData = {
deviceCleanupConfigurationId: number;
};
export declare type DeviceLabelData = {
export type DeviceLabelData = {
labelId: number;

@@ -94,0 +94,0 @@ };

import { OsType } from './Enum';
export declare type DevicePicker = {
export type DevicePicker = {
deviceFilterGroups: Array<DeviceFilterGroup>;
id: number;
};
export declare type DeviceFilter = {
export type DeviceFilter = {
displayName: string;

@@ -13,3 +13,3 @@ hidden: boolean;

};
export declare type DeviceFilterGroup = {
export type DeviceFilterGroup = {
deviceFilters: Array<DeviceFilter>;

@@ -16,0 +16,0 @@ id: number;

import { OsType } from './Enum';
import { CollectionBasicQueryParams, QueryParams } from './HTTP';
export declare type DeviceGroup = {
export type DeviceGroup = {
deviceCount: number;

@@ -26,5 +26,5 @@ displayName: string;

}
export declare type DeviceGroupData = Pick<DeviceGroup, 'displayName' | 'name' | 'osType'> | {
export type DeviceGroupData = Pick<DeviceGroup, 'displayName' | 'name' | 'osType'> | {
deviceIds?: Array<number>;
selectorIds?: Array<number>;
};
import { Platform } from './Device';
import { OsType } from './Enum';
export declare type DeviceModel = {
export type DeviceModel = {
avgWaitingTime: number;

@@ -19,3 +19,3 @@ dedicated: boolean;

};
export declare type DeviceModelData = Pick<DeviceModel, 'enabled' | 'name' | 'releaseVersion'> & {
export type DeviceModelData = Pick<DeviceModel, 'enabled' | 'name' | 'releaseVersion'> & {
apiLevel: number;

@@ -22,0 +22,0 @@ creditsPrice: number;

@@ -11,3 +11,3 @@ export declare enum CriterionField {

}
export declare type DeviceModelCriterion = {
export type DeviceModelCriterion = {
createTime: number;

@@ -20,2 +20,2 @@ field: CriterionField;

};
export declare type DeviceModelCriterionData = Pick<DeviceModelCriterion, 'field' | 'labelGroupId'>;
export type DeviceModelCriterionData = Pick<DeviceModelCriterion, 'field' | 'labelGroupId'>;

@@ -6,3 +6,3 @@ export declare enum RetentionStrategy {

}
export declare type DeviceModelPool = {
export type DeviceModelPool = {
createTime: number;

@@ -20,2 +20,2 @@ enabled: boolean;

};
export declare type DeviceModelPoolData = Pick<DeviceModelPool, 'maxTotal' | 'minAvailable'>;
export type DeviceModelPoolData = Pick<DeviceModelPool, 'maxTotal' | 'minAvailable'>;

@@ -9,3 +9,3 @@ export declare enum ProblemType {

}
export declare type DeviceProblem = {
export type DeviceProblem = {
clusterId: number;

@@ -20,3 +20,3 @@ clusterName: string;

};
export declare type DeviceProblemPair = {
export type DeviceProblemPair = {
id: number;

@@ -23,0 +23,0 @@ type: ProblemType;

import { Device } from './Device';
import { CollectionBasicQueryParams } from './HTTP';
export declare type TunnelSettings = {
export type TunnelSettings = {
domain: string;

@@ -38,3 +38,3 @@ email: string;

}
export declare type DeviceSessionConfig = {
export type DeviceSessionConfig = {
adbVersion: string;

@@ -50,3 +50,3 @@ browserName: string;

};
export declare type DeviceSession = {
export type DeviceSession = {
accountId: number;

@@ -89,3 +89,3 @@ autoRetriesLeftCount: number;

};
export declare type DeviceSessionCommand = {
export type DeviceSessionCommand = {
duration: number;

@@ -100,3 +100,3 @@ httpMethod: string;

};
export declare type DeviceSessionStep = {
export type DeviceSessionStep = {
deviceSessionId: number;

@@ -110,3 +110,3 @@ excludeReason: string;

};
export declare type DeviceSessionConnection = {
export type DeviceSessionConnection = {
createTime: number;

@@ -125,3 +125,3 @@ deviceSessionId: number;

};
export declare type DeviceSessionData = Omit<DeviceSessionConfig, 'adbVersion' | 'id' | 'tunnelSettings' | 'type'> & {
export type DeviceSessionData = Omit<DeviceSessionConfig, 'adbVersion' | 'id' | 'tunnelSettings' | 'type'> & {
configuration: DeviceSessionConfig;

@@ -152,4 +152,4 @@ };

}
export declare type DeviceSessionRelease = {
export type DeviceSessionRelease = {
reason: SessionReleaseReason;
};

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

export declare type DeviceSessionDataAvailability = {
export type DeviceSessionDataAvailability = {
buildLogs: boolean;

@@ -3,0 +3,0 @@ deviceRunId: number;

import { OsType } from './Enum';
export declare type DeviceStatistics = {
export type DeviceStatistics = {
deviceName: string;

@@ -4,0 +4,0 @@ failedDevices: number;

import { DeviceState } from './AdminDevice';
export declare type DeviceStatus = {
export type DeviceStatus = {
alarmOn: boolean;

@@ -4,0 +4,0 @@ aslOn: boolean;

import { OsType } from './Enum';
export declare type DeviceTimeCountSessionReportEntry = {
export type DeviceTimeCountSessionReportEntry = {
countDeviceSessions: number;

@@ -4,0 +4,0 @@ countTestRuns: number;

import { OsType } from './Enum';
export declare type DeviceTimeStepTimeReportEntry = {
export type DeviceTimeStepTimeReportEntry = {
day: number;

@@ -4,0 +4,0 @@ deviceModelName: string;

import { Device } from './Device';
export declare type DeviceUsage = {
export type DeviceUsage = {
device: Device;

@@ -4,0 +4,0 @@ failedDeviceSessions: number;

@@ -7,5 +7,5 @@ export declare enum OsType {

}
export declare type Enum = {
export type Enum = {
id: number;
value: string;
};
import { OsType } from './Enum';
import { UserFile } from './UserFile';
export declare type Framework = {
export type Framework = {
accountId: number;

@@ -29,3 +29,3 @@ accountName: string;

};
export declare type FrameworkData = Omit<Framework, 'createTime' | 'id' | 'labelName' | 'accountName' | 'sampleApp' | 'sampleTest'> & {
export type FrameworkData = Omit<Framework, 'createTime' | 'id' | 'labelName' | 'accountName' | 'sampleApp' | 'sampleTest'> & {
addLabelToDevices: boolean;

@@ -36,5 +36,5 @@ roleIds: Array<number>;

};
export declare type FrameworkEditData = Omit<FrameworkData, 'accountId' | 'id' | 'secured'>;
export declare type FrameworkConfigData = {
export type FrameworkEditData = Omit<FrameworkData, 'accountId' | 'id' | 'secured'>;
export type FrameworkConfigData = {
content: string;
};
import { Method } from 'axios';
export declare const ALLOWED_HTTP_METHODS: Array<Method>;
export declare type QueryParam = string | number | boolean;
export declare type QueryParams = Record<string, QueryParam | Array<QueryParam>>;
export type QueryParam = string | number | boolean;
export type QueryParams = Record<string, QueryParam | Array<QueryParam>>;
export declare enum APIOrder {

@@ -16,7 +16,7 @@ asc = "a",

}
export declare type CollectionBasicQueryParams = Omit<CollectionQueryParams, 'search'>;
export declare type NoQueryParams = {
export type CollectionBasicQueryParams = Omit<CollectionQueryParams, 'search'>;
export type NoQueryParams = {
[key in any]: never;
};
export declare type CollectionResponse<T> = {
export type CollectionResponse<T> = {
data: Array<T>;

@@ -33,3 +33,3 @@ empty: boolean;

};
export declare type SimpleCollectionResponse<T> = Pick<CollectionResponse<T>, 'data' | 'id'>;
export declare type NoData = void;
export type SimpleCollectionResponse<T> = Pick<CollectionResponse<T>, 'data' | 'id'>;
export type NoData = void;
import { DeviceProperty } from './Device';
export declare type LabelGroup = {
export type LabelGroup = {
displayName: string;

@@ -7,2 +7,2 @@ id: number;

};
export declare type LabelData = Pick<DeviceProperty, 'displayName' | 'name'>;
export type LabelData = Pick<DeviceProperty, 'displayName' | 'name'>;

@@ -7,6 +7,6 @@ export declare enum LicenseStatus {

}
export declare type BaseLicense = {
export type BaseLicense = {
enabled: boolean;
};
export declare type FeatureLicense = {
export type FeatureLicense = {
deviceLimit: number;

@@ -17,25 +17,25 @@ deviceLimited: boolean;

};
export declare type AndroidLicense = BaseLicense & FeatureLicense & {
export type AndroidLicense = BaseLicense & FeatureLicense & {
cts: CTSLicense;
uiAutomator: UIAutomatorLicense;
};
export declare type BuildLicense = BaseLicense & {
export type BuildLicense = BaseLicense & {
limit: number;
limited: boolean;
};
export declare type DesktopLicense = BaseLicense & FeatureLicense;
export declare type GlobalLicense = FeatureLicense;
export declare type InspectorLicense = BaseLicense;
export declare type IOSLicense = BaseLicense & FeatureLicense;
export declare type RecorderLicense = BaseLicense & {
export type DesktopLicense = BaseLicense & FeatureLicense;
export type GlobalLicense = FeatureLicense;
export type InspectorLicense = BaseLicense;
export type IOSLicense = BaseLicense & FeatureLicense;
export type RecorderLicense = BaseLicense & {
limit: number;
limited: boolean;
};
export declare type ServerLicense = BaseLicense & {
export type ServerLicense = BaseLicense & {
androidEnabled: boolean;
iosEnabled: boolean;
};
export declare type CTSLicense = BaseLicense;
export declare type UIAutomatorLicense = BaseLicense;
export declare type License = {
export type CTSLicense = BaseLicense;
export type UIAutomatorLicense = BaseLicense;
export type License = {
activateTime: number;

@@ -58,3 +58,3 @@ android: AndroidLicense;

};
export declare type LicenseData = Pick<License, 'privateInstance' | 'userId'> & {
export type LicenseData = Pick<License, 'privateInstance' | 'userId'> & {
androidDeviceLimit: number;

@@ -61,0 +61,0 @@ androidEnabled: boolean;

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

export declare type Maintenance = {
export type Maintenance = {
enabled: boolean;

@@ -10,5 +10,5 @@ id: number;

}
export declare type MaintenanceData = {
export type MaintenanceData = {
enabled: boolean;
type: MaintenanceType;
};

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

export declare type Message = {
export type Message = {
message: string;
};

@@ -21,3 +21,3 @@ import { QueryParams } from './HTTP';

}
export declare type Notification = {
export type Notification = {
channel: NotificationChannel;

@@ -35,2 +35,2 @@ destination: string;

}
export declare type NotificationsData = Pick<Notification, 'channel' | 'destination' | 'projectId' | 'scope'>;
export type NotificationsData = Pick<Notification, 'channel' | 'destination' | 'projectId' | 'scope'>;
import { NotificationChannel, NotificationScope } from './Notification';
export declare type NotificationPlan = {
export type NotificationPlan = {
channel: NotificationChannel;

@@ -15,3 +15,3 @@ contentTemplate: string;

};
export declare type NotificationPlanData = Pick<NotificationPlan, 'channel' | 'name'> & {
export type NotificationPlanData = Pick<NotificationPlan, 'channel' | 'name'> & {
notificationContent: string;

@@ -21,2 +21,2 @@ notificationSubject: string;

};
export declare type NotificationPlanEditData = Omit<NotificationPlanData, 'channel'>;
export type NotificationPlanEditData = Omit<NotificationPlanData, 'channel'>;

@@ -8,3 +8,3 @@ import { OsType } from './Enum';

}
export declare type Project = {
export type Project = {
archiveTime: number;

@@ -29,5 +29,5 @@ archivingItemCount: number;

};
export declare type UserProjectData = Pick<Project, 'name'>;
export type UserProjectData = Pick<Project, 'name'>;
export interface UserProjectQueryParams extends TestRunsQueryParams {
showStatistics: boolean;
}

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

export declare type ProjectJobConfig = {
export type ProjectJobConfig = {
content: string;

@@ -3,0 +3,0 @@ frameworkId: number;

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

export declare type Property = {
export type Property = {
description: string;

@@ -12,2 +12,2 @@ fromTime: number;

};
export declare type PropertyData = Pick<Property, 'description' | 'fromTime' | 'name' | 'toTime' | 'value'>;
export type PropertyData = Pick<Property, 'description' | 'fromTime' | 'name' | 'toTime' | 'value'>;
import { CollectionQueryParams } from './HTTP';
export declare type Role = {
export type Role = {
addedByEmail: string;

@@ -14,4 +14,4 @@ expireTime: number;

}
export declare type RoleData = Pick<Role, 'expireTime' | 'value'> & {
export type RoleData = Pick<Role, 'expireTime' | 'value'> & {
roleId: number;
};

@@ -7,3 +7,3 @@ import { Device } from './Device';

}
export declare type Screenshot = {
export type Screenshot = {
fail: boolean;

@@ -15,3 +15,3 @@ id: number;

};
export declare type ScreenshotExtended = Screenshot & {
export type ScreenshotExtended = Screenshot & {
device: Device;

@@ -18,0 +18,0 @@ deviceRunId: number;

import { ChargeType, PaymentMethod } from './AccountService';
import { CollectionQueryParams } from './HTTP';
import { Role } from './Role';
export declare type Service = {
export type Service = {
activateTime: number;

@@ -37,3 +37,3 @@ activated: boolean;

}
export declare type ServiceActivateData = {
export type ServiceActivateData = {
activateTime: number;

@@ -40,0 +40,0 @@ };

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

export declare type SimpleSetting = Record<string, string | number | boolean>;
export declare type NestedSetting = Record<string, SimpleSetting>;
export declare type Settings = SimpleSetting | NestedSetting | Record<string, NestedSetting>;
export declare type SettingsParams = {
export type SimpleSetting = Record<string, string | number | boolean>;
export type NestedSetting = Record<string, SimpleSetting>;
export type Settings = SimpleSetting | NestedSetting | Record<string, NestedSetting>;
export type SettingsParams = {
withVulnerableData: boolean;
};

@@ -7,3 +7,3 @@ import { QueryParams } from './HTTP';

}
export declare type SharedResource = {
export type SharedResource = {
id: number;

@@ -10,0 +10,0 @@ name: string;

import { CollectionQueryParams } from './HTTP';
export declare type SmartbearTunnel = {
export type SmartbearTunnel = {
acceptAllCerts: boolean;

@@ -4,0 +4,0 @@ active: boolean;

import { CollectionBasicQueryParams, QueryParams } from './HTTP';
export declare type Tag = {
export type Tag = {
id: number;

@@ -10,3 +10,3 @@ name: string;

}
export declare type TagsData = Pick<TestRunTagsData, 'name'>;
export type TagsData = Pick<TestRunTagsData, 'name'>;
export interface TagsQueryParams extends CollectionBasicQueryParams {

@@ -13,0 +13,0 @@ projectId: number;

@@ -9,3 +9,3 @@ import { Method } from 'axios';

}
export declare type TestCaseRun = {
export type TestCaseRun = {
className: string;

@@ -22,3 +22,3 @@ createTime: number;

};
export declare type TestCaseRunStep = {
export type TestCaseRunStep = {
duration: number;

@@ -25,0 +25,0 @@ httpMethod: Uppercase<Method>;

@@ -22,3 +22,3 @@ import { Device } from './Device';

}
export declare type TestRun = {
export type TestRun = {
abortedDeviceCount: number;

@@ -68,3 +68,3 @@ billable: boolean;

}
export declare type TestRunConfig = {
export type TestRunConfig = {
appCrawlerRun: boolean;

@@ -71,0 +71,0 @@ appiumBrokerAddress: string;

import { DeviceSessionDataAvailability } from './DeviceSessionDataAvailability';
import { QueryParams } from './HTTP';
export declare type TestRunDataAvailability = {
export type TestRunDataAvailability = {
deviceRunDataAvailabilities: DeviceSessionDataAvailability[];

@@ -5,0 +5,0 @@ id: number;

@@ -13,3 +13,3 @@ import { CollectionQueryParams, QueryParams } from './HTTP';

}
export declare type User = {
export type User = {
accountId: number;

@@ -49,3 +49,3 @@ accountName: string;

};
export declare type UserData = Pick<User, 'email'>;
export type UserData = Pick<User, 'email'>;
export interface UserParams extends CollectionQueryParams {

@@ -59,4 +59,4 @@ WITH_ADDRESS: boolean;

}
export declare type UserUpdateAccount = Pick<User, 'accountId'>;
export declare type UserDeleteData = {
export type UserUpdateAccount = Pick<User, 'accountId'>;
export type UserDeleteData = {
password: string;

@@ -68,7 +68,7 @@ };

}
export declare type UserPasswordData = {
export type UserPasswordData = {
key: string;
password: string;
};
export declare type UserActivateData = {
export type UserActivateData = {
zip: string;

@@ -75,0 +75,0 @@ } & UserPasswordData & Pick<User, 'address' | 'city' | 'country' | 'email' | 'firstName' | 'lastName' | 'organization' | 'phone' | 'state' | 'vatId'>;

import { DeviceSessionType } from './DeviceSession';
import { CollectionQueryParams } from './HTTP';
export declare type UserDeviceTime = BasicDeviceTime & {
export type UserDeviceTime = BasicDeviceTime & {
billableTime: number;

@@ -12,3 +12,3 @@ createTime: number;

};
export declare type BasicDeviceTime = {
export type BasicDeviceTime = {
deviceTime: number;

@@ -15,0 +15,0 @@ id: number;

import { CollectionQueryParams } from './HTTP';
export declare type UserDeviceTimeSummary = {
export type UserDeviceTimeSummary = {
automaticDeviceTime: number;

@@ -4,0 +4,0 @@ freeDeviceTime: number;

@@ -15,3 +15,3 @@ import { CollectionQueryParams, QueryParams } from './HTTP';

}
export declare type FileProperty = {
export type FileProperty = {
id: number;

@@ -21,7 +21,7 @@ key: string;

};
export declare type UserFileTag = {
export type UserFileTag = {
id: number;
name: string;
};
export declare type UserFile = {
export type UserFile = {
createTime: number;

@@ -46,7 +46,7 @@ directUrl: string;

}
export declare type UserFileData = {
export type UserFileData = {
file: FormData;
global: boolean;
};
export declare type BuildLogsData = {
export type BuildLogsData = {
deviceRunIds: Array<number>;

@@ -56,3 +56,3 @@ projectId: number;

};
export declare type BuildLogsParams = BuildLogsData;
export type BuildLogsParams = BuildLogsData;
export interface FileSizeData extends QueryParams {

@@ -62,3 +62,3 @@ height: number;

}
export declare type UploadObj = {
export type UploadObj = {
dir: string;

@@ -65,0 +65,0 @@ filename: string;

import { QueryParams } from './HTTP';
export declare type UserPreference = {
export type UserPreference = {
defaultHttpSessionMaxInactiveInterval: number;

@@ -7,3 +7,3 @@ httpSessionMaxInactiveInterval: number | null;

};
export declare type UserPreferenceData = {
export type UserPreferenceData = {
httpSessionMaxInactiveInterval: number | null;

@@ -10,0 +10,0 @@ };

import { QueryParams } from './HTTP';
export declare type UserStatistics = {
export type UserStatistics = {
additionalUsers: number;

@@ -4,0 +4,0 @@ allTimeProjects: number;

@@ -6,7 +6,7 @@ export declare enum VisualTestImageType {

}
export declare type VisualTestAccess = {
export type VisualTestAccess = {
enabled: boolean;
apiKey: string | null;
};
export declare type VisualTest = {
export type VisualTest = {
comparisonStatus: string;

@@ -13,0 +13,0 @@ appUrl: string;

@@ -22,22 +22,22 @@ import { APIResource as OriginAPIResource } from './APIResource';

import { APIResourceUserSession as OriginAPIResourceUserSession } from './APIResourceUserSession';
export declare type APIResource = InstanceType<typeof OriginAPIResource>;
export declare type APIResourceAccessGroup = InstanceType<typeof OriginAPIResourceAccessGroup>;
export declare type APIResourceAccount = InstanceType<typeof OriginAPIResourceAccount>;
export declare type APIResourceAccountService = InstanceType<typeof OriginAPIResourceAccountService>;
export declare type APIResourceBillingPeriod = InstanceType<typeof OriginAPIResourceBillingPeriod>;
export declare type APIResourceBroker = InstanceType<typeof OriginAPIResourceBroker>;
export declare type APIResourceChannel = InstanceType<typeof OriginAPIResourceChannel>;
export declare type APIResourceCleanupConfiguration = InstanceType<typeof OriginAPIResourceCleanupConfiguration>;
export declare type APIResourceDevice = InstanceType<typeof OriginAPIResourceDevice>;
export declare type APIResourceDeviceGroup = InstanceType<typeof OriginAPIResourceDeviceGroup>;
export declare type APIResourceDeviceSession = InstanceType<typeof OriginAPIResourceDeviceSession>;
export declare type APIResourceDeviceSessionCommon = InstanceType<typeof OriginAPIResourceDeviceSessionCommon>;
export declare type APIResourceDeviceSessionStandalone = InstanceType<typeof OriginAPIResourceDeviceSessionStandalone>;
export declare type APIResourceFile = InstanceType<typeof OriginAPIResourceFile>;
export declare type APIResourceLabelGroup = InstanceType<typeof OriginAPIResourceLabelGroup>;
export declare type APIResourceNotification = InstanceType<typeof OriginAPIResourceNotification>;
export declare type APIResourceProject = InstanceType<typeof OriginAPIResourceProject>;
export declare type APIResourceRun = InstanceType<typeof OriginAPIResourceRun>;
export declare type APIResourceRunCommon = InstanceType<typeof OriginAPIResourceRunCommon>;
export declare type APIResourceUser = InstanceType<typeof OriginAPIResourceUser>;
export declare type APIResourceUserSession = InstanceType<typeof OriginAPIResourceUserSession>;
export type APIResource = InstanceType<typeof OriginAPIResource>;
export type APIResourceAccessGroup = InstanceType<typeof OriginAPIResourceAccessGroup>;
export type APIResourceAccount = InstanceType<typeof OriginAPIResourceAccount>;
export type APIResourceAccountService = InstanceType<typeof OriginAPIResourceAccountService>;
export type APIResourceBillingPeriod = InstanceType<typeof OriginAPIResourceBillingPeriod>;
export type APIResourceBroker = InstanceType<typeof OriginAPIResourceBroker>;
export type APIResourceChannel = InstanceType<typeof OriginAPIResourceChannel>;
export type APIResourceCleanupConfiguration = InstanceType<typeof OriginAPIResourceCleanupConfiguration>;
export type APIResourceDevice = InstanceType<typeof OriginAPIResourceDevice>;
export type APIResourceDeviceGroup = InstanceType<typeof OriginAPIResourceDeviceGroup>;
export type APIResourceDeviceSession = InstanceType<typeof OriginAPIResourceDeviceSession>;
export type APIResourceDeviceSessionCommon = InstanceType<typeof OriginAPIResourceDeviceSessionCommon>;
export type APIResourceDeviceSessionStandalone = InstanceType<typeof OriginAPIResourceDeviceSessionStandalone>;
export type APIResourceFile = InstanceType<typeof OriginAPIResourceFile>;
export type APIResourceLabelGroup = InstanceType<typeof OriginAPIResourceLabelGroup>;
export type APIResourceNotification = InstanceType<typeof OriginAPIResourceNotification>;
export type APIResourceProject = InstanceType<typeof OriginAPIResourceProject>;
export type APIResourceRun = InstanceType<typeof OriginAPIResourceRun>;
export type APIResourceRunCommon = InstanceType<typeof OriginAPIResourceRunCommon>;
export type APIResourceUser = InstanceType<typeof OriginAPIResourceUser>;
export type APIResourceUserSession = InstanceType<typeof OriginAPIResourceUserSession>;
import { AxiosBasicCredentials } from 'axios';
export declare type ApiConfig = {
export type ApiConfig = {
baseURL: string;

@@ -4,0 +4,0 @@ cloudUrl: string;

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

/* @bitbar/cloud-api-client v1.3.8 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
!function(e,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports,require("axios"),require("@bitbar/finka"),require("qs"),require("node-abort-controller")):"function"==typeof define&&define.amd?define(["exports","axios","@bitbar/finka","qs","node-abort-controller"],s):s((e="undefined"!=typeof globalThis?globalThis:e||self)["bitbar-cloud-api-client"]={},e.axios,e["@bitbar/finka"],e.qs,e["node-abort-controller"])}(this,(function(e,s,t,r,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=i(s),o=i(t);
/* @bitbar/cloud-api-client v1.4.0 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
!function(e,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports,require("axios"),require("@bitbar/finka"),require("qs"),require("node-abort-controller"),require("form-data")):"function"==typeof define&&define.amd?define(["exports","axios","@bitbar/finka","qs","node-abort-controller","form-data"],s):s((e="undefined"!=typeof globalThis?globalThis:e||self)["bitbar-cloud-api-client"]={},e.axios,e["@bitbar/finka"],e.qs,e["node-abort-controller"],e["form-data"])}(this,(function(e,s,t,r,n,i){"use strict";
/******************************************************************************

@@ -17,3 +17,3 @@ Copyright (c) Microsoft Corporation.

***************************************************************************** */
function a(e,s,t,r){var n,i=arguments.length,u=i<3?s:null===r?r=Object.getOwnPropertyDescriptor(s,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,s,t,r);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(u=(i<3?n(u):i>3?n(s,t,u):n(s,t))||u);return i>3&&u&&Object.defineProperty(s,t,u),u}class h{constructor(e,s,t){this.name=e,this.value=s,this.operand=t}}o.default();class c{constructor(){this.filters=[]}gt(e,s){return this.add(e,s,"gt")}lt(e,s){return this.add(e,s,"lt")}after(e,s){return this.add(e,s,"after",!0)}afterorequal(e,s){return this.add(e,s,"afterorequal",!0)}before(e,s){return this.add(e,s,"before",!0)}beforeorequal(e,s){return this.add(e,s,"beforeorequal",!0)}on(e,s){return this.add(e,s,"on")}eq(e,s){return this.add(e,s,"eq")}contains(e,s){return this.add(e,s,"contains")}like(e,s){return this.add(e,s,"like")}notlike(e,s){return this.add(e,s,"notlike")}isnull(e){return this.add(e,void 0,"isnull")}isnotnull(e){return this.add(e,void 0,"isnotnull")}in(e,s){return this.add(e,s,"in",!0)}notin(e,s){return this.add(e,s,"notin",!0)}raw(e){const s=Array.wrap(e);for(const e of s){if(!this.isFilterPart(e))throw new SyntaxError(`Filter ${e} has invalid syntax`);this.filters.push(e)}}isFilterPart(e){return/^[a-zA-Z0-9.]{2,12}_(?:isnull$|(?:gt|lt|(?:after|before)(?:orequal)?|on|eq|contains|like|(?:not)?in)_)/.test(e)}toString(){const e=[];let s,t;for(const r of this.filters)"string"==typeof r?s=r:(t="",(r.value.length>1||void 0!==r.value[0])&&(t=`_${r.value.join("|")}`),s=`${r.name}_${r.operand}${t}`),e.push(s);return e.join(";")}add(e,s,t,r=!1){let n=Array.wrap(s);if(0===n.length)return this;for(let e=0;e<n.length;e++){const s=n[e];"object"==typeof s&&s instanceof Date&&(n[e]=s.getTime())}let i=!1;if(r){for(const e of n)null===e&&(i=!0);i&&(n=n.filter((e=>null!==e)),t+="ornull")}return t.endsWith("ornull")&&0===n.length&&(t="isnull"),this.filters.push(new h(e,n,t)),this}}const l=["GET","POST","DELETE"];var p;e.APIOrder=void 0,(p=e.APIOrder||(e.APIOrder={})).asc="a",p.desc="d";class E{constructor(e){this.stack=[],this.requestConfig={},this.ALLOWED_HTTP_METHODS=l,e instanceof E?(this.root=e.root,Array.isArray(e.stack)&&this.push(...e.stack),null!=e.requestConfig&&this.setRequestConfig(e.requestConfig)):this.root=e,this.abortController=new n.AbortController}abortRequest(){this.abortController.abort(),this.abortController=new n.AbortController}push(...e){return this.stack=this.stack.concat(e),this}shift(){return this.stack.shift(),this}restack(...e){return this.stack=e,this}get first(){return this.stack[0]}get last(){return this.stack[this.stack.length-1]}set last(e){this.stack[this.stack.length-1]=e}toUrl(e=!1){let s=`/${this.stack.join("/")}`;return e&&(s=this.root.baseUrl+s),s}setRequestConfig(e){return Object.deepAssign(this.requestConfig,e),this}removeRequestConfig(e){return delete this.requestConfig[e],this}headers(e){const s={};for(const t in e){s[t.replace(/(?:^|-)([a-z])/g,(e=>e.toUpperCase()))]=e[t]}return this.setRequestConfig({headers:s})}method(e){const s=e.toLocaleUpperCase();if(!(this.ALLOWED_HTTP_METHODS.indexOf(s)>-1))throw new Error(`Method '${s}' is not allowed! You can use: ${this.ALLOWED_HTTP_METHODS.join(", ")}`);return this.setRequestConfig({method:s})}get(){return this.method("GET")}post(){return this.method("POST")}delete(){return this.method("DELETE")}params(e){return this.setRequestConfig({params:e}),this}getParams(){return null==this.requestConfig.params?{}:this.requestConfig.params}removeParam(e){return delete this.requestConfig.params[e],this}data(e){return this.setRequestConfig({data:e}),this}jsonData(e){return this.headers({"Content-Type":"application/json"}).data(e),this}formData(e){return this.headers({"Content-Type":"multipart/form-data"}).data(e),this}send(){const e=Object.deepAssign({},this.requestConfig,{url:`/${this.stack.join("/")}`,signal:this.abortController.signal});return null==e.headers&&(e.headers={}),null==e.headers["Content-Type"]&&(e.headers["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),"POST"===e.method&&e.headers["Content-Type"].startsWith("application/x-www-form-urlencoded")&&null!=e.data&&(e.data=this.paramsSerializer(e.data)),e.params&&(e.paramsSerializer=this.paramsSerializer),this.root.axios.request(e)}paramsSerializer(e){return r.stringify(e,{arrayFormat:"brackets"})}}class d extends E{constructor(){super(...arguments),this.all=this.noLimit,this.cut=this.between}create(e){return this.post().data(e).send()}sort(s,t=e.APIOrder.asc){return this.params({sort:`${s}_${t}`})}limit(e=20){if(!Number.isNatural(e))throw new Error(`Limit '${e}' is invalid!`);return this.params({limit:e})}getLimit(){const e=this.getParams();return null==e.limit?20:e.limit}noLimit(){return this.limit(0)}offset(e=0){if(!Number.isNatural(e))throw new Error(`Offset '${e}' is invalid!`);return this.params({offset:e})}between(e,s){if(!Number.isNatural(e))throw new Error(`From '${e}' is invalid!`);if(!Number.isNatural(s))throw new Error(`To '${s}' is invalid!`);return this.params({offset:e,limit:s-e+1})}only(e){if(!Number.isNatural(e))throw new Error(`Index '${e}' is invalid!`);return this.params({offset:e,limit:1})}page(e=1){if(!Number.isNatural(e)||0==e)throw new Error(`Page '${e}' is invalid!`);const s=this.getLimit(),t=(e-1)*s;return this.params({offset:t,limit:s})}search(e){if("string"!=typeof e)throw new Error("Search query must be a string!");return this.params({search:e})}filter(e){if("string"!=typeof e&&!(e instanceof c))throw new Error("Filter must be either string or instance of FilterBuilder");return this.params({filter:e.toString()})}}class T extends E{}class w extends d{constructor(e){super(e),this.push("cleanup-configurations")}specific(){return new T(this).push("specific")}}class I extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("cleanup-configurations",s)}devices(){return new d(this).push("devices")}}class N extends d{constructor(e){super(e),this.push("admin","devices")}cleanupConfigurations(){return new w(this)}cleanupConfiguration(e){return new I(this,e)}}class A extends d{constructor(e){super(e),this.push("admin","notification-plans")}channels(){return new d(this).push("channels")}scopes(){return new d(this).push("scopes")}}class R extends d{constructor(e){super(e),this.ALLOWED_HTTP_METHODS=["GET"],this.push("admin","runs")}config(){const e=new T(this);return e.restack("runs","config"),e}}class S extends d{constructor(e){super(e),this.push("admin","services")}active(){const e=new d(this);return e.params({notArchived:!0}),e}activated(){const e=this.active();return e.params({filter:"activated_eq_true",limit:0,sort:"name_a"}),e}inUse(){const e=new d(this);return e.params({inUse:!0,limit:0,sort:"name_a"}),e}byPrice(){const e=new d(this);return e.params({sort:"centPrice_a"}),e}}function f(e){return class extends e{send(){return Promise.reject()}}}let O=class extends d{constructor(e){super(e),this.push("admin","statistics")}deviceSessions(){return new d(this).push("device-sessions")}frameworks(){return new d(this).push("frameworks")}};O=a([f],O);class L extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","accounts",s)}roles(){return new d(this).push("roles")}role(e){return new T(this).push("roles",e)}accountServices(){return new d(this).push("account-services")}preferences(){return new T(this).push("preferences")}}class _ extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","account-services",s)}activate(){return new T(this).push("activate").post()}deactivate(){return new T(this).push("deactivate").post()}}class C extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("clusters",s)}devices(){return new d(this).push("devices")}}class m extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","devices",s)}cleanupConfiguration(){return new T(this).push("cleanup-configuration")}labels(){return new d(this).push("labels")}label(e){return new T(this).push("labels",e)}queue(){return new d(this).push("queue")}}class v extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","device-models",s)}browsers(){return new d(this).push("browsers")}}e.InputFileset=class extends T{constructor(e){super(e),this.push("input-file-set")}files(){return new d(this).push("files")}filesZip(){return new T(this).push("files.zip")}},e.InputFileset=a([f],e.InputFileset);const D=new c;D.eq("state","READY"),D.in("mimetype",["image/png","image/jpg","image/jpeg","image/webp","image/gif"]),D.notlike("name","action-%%");const U=new c;U.eq("state","READY"),U.notin("mimetype",["image/png","image/jpg","image/jpeg","image/webp","image/gif","video/mp4","video/avi","video/webm","video/ogg","video/mpeg"]),e.OutputFileset=class extends T{constructor(e){super(e),this.push("output-file-set")}files(){return new d(this).push("files")}file(e){return new T(this).push("files",e)}filesZip(){return new T(this).push("files.zip")}screenshots(){return new d(this).push("screenshots")}screenshot(e){return new T(this).push("screenshots",e)}screenshotFile(e){return this.screenshot(e).push("file")}videos(){return this.files().params({filter:"s_state_eq_READY",tag:["video"]})}nonMediaFiles(){return this.files().filter(U)}performance(){return this.files().params({tag:["performance"]})}images(){return this.files().filter(D)}},e.OutputFileset=a([f],e.OutputFileset);class g extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("device-sessions",s)}commands(){return new d(this).push("commands")}input(){return new e.InputFileset(this)}output(){return new e.OutputFileset(this)}release(){return new T(this).push("release").post()}screenshots(){return new d(this).push("screenshots")}screenshot(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("screenshots",e)}steps(){return new d(this).push("steps")}step(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("steps",e)}currentStep(){return this.step("current")}testCaseRuns(){return new d(this).push("test-case-runs")}connections(){return new d(this).push("connections")}logs(){return new T(this).push("logs").setRequestConfig({responseType:"text"})}clusterLogs(){return new T(this).push("cluster-logs").setRequestConfig({responseType:"text"})}}class b extends g{changeBillable(e){return function(e,s){const t=new T(e),r=t.last;return t.restack("admin","device-sessions",r,"changebillable").params({billable:s}).post()}(this,e)}}class P extends d{constructor(e){super(e),this.push("admin","device-time")}countSessionReport(){return new d(this).push("count-session-report")}stepTimeReport(){return new d(this).push("step-time-report")}}class y extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","frameworks",s)}config(){return new T(this).push("config")}requiredRoles(){return new d(this).push("required-roles")}}class F extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","licenses",s)}activate(){return new T(this).push("activate")}deactivate(){return new T(this).push("deactivate")}resend(){return new T(this).push("resend")}download(){return new T(this).push("download")}}class M extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","notification-plans",s)}check(){return new d(this).push("check")}test(){return new T(this).push("test")}execute(){return new T(this).push("execute")}}function G(e,s,t){const r=new T(e).push(s);return null!=t&&r.params({deviceRunIds:t}),r.post()}class x extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","runs",s)}abort(){return new T(this).push("abort").post()}changeBillable(e){return new T(this).push("changebillable").post().params({billable:e})}changePriority(e){const s=new T(this).push("changepriority");return e&&s.post().data({priority:e}),s}retry(e){return G(this,"retry",e).setRequestConfig({timeout:0})}}class B extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","services",s)}activate(){return new T(this).push("activate").post()}}let k=class extends T{constructor(e){super(e),this.push("account")}roles(){return new d(this).push("roles")}role(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("roles",e)}services(){const e=new d(this);return e.last+="-services",e}update(){const e=new T(this);return e.last="update-account",e.post()}};k=a([f],k);class H extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("device-sessions",s)}connections(){return new d(this).push("connections")}connection(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("connections",e)}input(){return new e.InputFileset(this)}output(){return new e.OutputFileset(this)}release(){return new T(this).push("release").post()}visualTestsImages(){return new d(this).push("visual-tests","images")}}let q=class extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","users",s)}disable(){return new T(this).push("disable")}enable(){return new T(this).push("enable")}licenses(){return new d(this).push("licenses")}resendActivation(){return new T(this).push("resend-activation").post()}account(){return new k(this)}deviceSession(e){return new H(this,e)}roles(){return new d(this).push("roles")}role(e){return new T(this).push("roles",e)}};q=a([f],q);class W extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("access-groups",s)}users(){return new d(this).push("users")}user(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("users",e)}resources(){return new d(this).push("resources")}resource(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("resources",e)}}class V extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("device-groups",s)}devices(){return new d(this).push("devices")}device(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("devices",e)}selectors(){return new d(this).push("selectors")}selector(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("selectors",e)}share(){return new d(this).push("share")}}class K extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("files",s)}file(){return new T(this).push("file")}icon(){return new T(this).push("icon")}tags(){return new d(this).push("tags")}share(){return new d(this).push("share")}property(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("properties",e)}}class Y extends g{abort(){return new T(this).push("abort").post()}retry(){return new T(this).push("retry").post()}}class j extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("runs",s)}abort(){return new T(this).push("abort").post()}buildLogsZip(e){return G(this,"build-logs.zip",e)}dataAvailability(){return new T(this).push("data-availability")}deviceSessions(){return new d(this).push("device-sessions")}filesZip(e){return G(this,"files.zip",e)}logsZip(e){return G(this,"logs.zip",e)}performanceZip(e){return G(this,"performance.zip",e)}retry(e){return G(this,"retry",e).setRequestConfig({timeout:0})}screenshotNames(){return new d(this).push("screenshot-names")}screenshots(){return new d(this).push("screenshots")}screenshotsZip(e){return G(this,"screenshots.zip",e)}steps(){return new d(this).push("steps")}tags(){return new d(this).push("tags")}tag(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("tags",e)}}class $ extends j{deviceSession(e){return new Y(this,e)}}class z extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("projects",s)}runs(){return new d(this).push("runs")}run(e){return new $(this,e)}share(){return new d(this).push("share")}unarchive(){return new T(this).push("unarchive")}}let X=class extends T{constructor(e){super(e)}accessGroups(){return new d(this).push("access-groups")}accessGroup(e){return new W(this,e)}accounts(){return new d(this).push("admin","accounts")}account(e){if(null==e)throw new Error("Resource ID cannot be null!");return new L(this,e)}accountServices(){return new d(this).push("admin","account-services")}accountService(e){return new _(this,e)}activities(){return new d(this).push("admin","activities")}administrators(){return new d(this).push("admin","administrators")}billingPeriods(){return new d(this).push("admin","billing-periods")}billingPeriod(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("admin","billing-periods",e)}browsers(){return new d(this).push("admin","browsers")}browser(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("admin","browsers",e)}clusters(){return new d(this).push("clusters")}cluster(e){return new C(this,e)}countryVatRates(){return new d(this).push("admin","country-vat-rates")}countryVatRate(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("admin","country-vat-rates",e)}devices(){return new N(this)}device(e){return new m(this,e)}devicesForModel(e){if(null==e)throw new Error("Resource ID cannot be null!");const s=this.devices();return s.params({filter:"deviceModelId_eq_"+e}),s}deviceStatuses(){return new d(this).push("admin","device","statuses")}deviceModels(){return new d(this).push("admin","device-models")}deviceModel(e){return new v(this,e)}deviceProblems(){return new d(this).push("admin","device-problems")}deviceModelCriterias(){return new d(this).push("admin","device-model-criteria")}deviceModelCriteria(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("admin","device-model-criteria",e)}deviceSessions(){return new d(this).push("admin","device-sessions")}deviceSession(e){return new b(this,e)}deviceTime(){return new P(this)}deviceTimeSummary(){return new d(this).push("admin","device-time-summary")}deviceTypes(){return new d(this).push("admin","device-types")}deviceType(e){return new T(this).push("admin","device-types",e)}deviceGroups(){return new d(this).push("device-groups")}deviceGroup(e){return new V(this,e)}emails(){return new d(this).push("admin","emails")}resendEmail(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("admin","emails",e,"resend").post()}errors(){return new d(this).push("admin","errors")}files(){return new d(this).push("files")}file(e){return new K(this,e)}frameworks(){return new d(this).push("admin","frameworks")}framework(e){return new y(this,e)}frameworkAvailableLabels(){const e=this.frameworks();return e.push("available-labels"),e}interactiveQueue(){return new d(this).push("admin","interactive-queue")}licenses(){return new d(this).push("admin","licenses")}license(e){return new F(this,e)}maintenance(){return new T(this).push("admin","maintenance")}notificationPlans(){return new A(this)}notificationPlan(e){return new M(this,e)}overview(){return new T(this).push("admin","overview")}pools(){return new d(this).push("admin","pools")}pool(e){return new T(this).push("admin","pools",e)}projects(){return new d(this).push("projects")}project(e){return new z(this,e)}roles(){return new d(this).push("admin","roles")}runs(){return new R(this)}run(e){return new x(this,e)}samples(){return new d(this).push("admin","samples")}sample(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("admin","samples",e)}services(){return new S(this)}service(e){return new B(this,e)}settings(){return new T(this).push("admin","settings")}statistics(){return new O(this)}users(){return new d(this).push("users")}createUser(){return new d(this).push("admin","users").post()}user(e){return new q(this,e)}};X=a([f],X);class J extends d{constructor(e){super(e),this.push("devices")}filters(){return new T(this).push("filters")}desktopBrowserCapabilities(){return new T(this).push("desktop-browser-capabilities")}}class Z extends d{constructor(e){super(e),this.push("properties")}maintenance(){return new d(this).params({filter:"name_eq_CLOUD_HEADER_ANNOUNCEMENT",limit:1,sort:"updateTime_d"})}}class Q extends d{constructor(e){super(e),this.ALLOWED_HTTP_METHODS=["POST"],this.push("services")}available(){return new d(this).push("available")}active(){const e=new d(this);return"me"===this.first?e.push("active"):e.params({notArchived:!0}),e}byPrice(){return new d(this).sort("centPrice")}availableByPrice(){return new d(this).push("available").sort("centPrice")}}class ee extends d{constructor(e){super(e),this.ALLOWED_HTTP_METHODS=["GET","POST"],this.push("users")}activate(){return new T(this).push("activate").post()}recoveries(){return new T(this).push("recoveries")}passwordRecovery(){return new T(this).push("password-recovery")}}class se extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("billing-periods",s)}receipt(){return new T(this).push("receipt").setRequestConfig({responseType:"arraybuffer"})}}class te extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("accounts",s)}concurrencyStatus(){return new T(this).push("concurrency-status")}deviceTime(){return new d(this).push("device-time")}deviceTimeSummary(){return new d(this).push("device-time-summary")}preferences(){return new T(this).push("preferences")}users(){return new d(this).push("users")}removeUser(e){return new T(this).push("users",e)}disableUser(e){return new T(this).push("users",e,"disable").post()}enableUser(e){return new T(this).push("users",e,"enable").post()}resendActivation(e){return new T(this).push("users",e,"resend-activation").post()}billingPeriods(){return new d(this).push("billing-periods")}billingPeriod(e){return new se(this,e)}serviceBillingPeriod(e){if(null==e)throw new Error("Resource ID cannot be null!");return new T(this).push("account-services",e,"billing-period")}visualTestAccess(){return new T(this).push("visual-tests","access")}accountServices(){return new d(this).push("account-services")}accountService(e){return new d(this).push("account-services",e)}}class re extends T{constructor(e){super(e),this.push("broker")}hubs(){return new d(this).push("hubs")}}class ne extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("devices",s)}properties(){return new d(this).push("properties")}browsers(){return new d(this).push("browsers")}}class ie extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("label-groups",s)}labels(){return new d(this).push("labels")}label(e){return new T(this).push("labels",e)}}class ue extends d{constructor(e){super(e),this.push("files")}upload(e){if(global.isNodeJs)return this.nodeUpload(e);throw new Error("Not supported yet!")}nodeUpload(e){const s=require("fs"),t=new(require("form-data"));return t.append("file",s.createReadStream(e.dir+"/"+e.filename),{filename:e.filename}),this.post().headers(t.getHeaders()).data(t)}}class oe extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("channels",s)}scopes(){return new d(this).push("scopes")}}class ae extends d{constructor(e){super(e),this.push("notifications")}scopes(){return new d(this).push("scopes")}channels(){return new d(this).push("channels")}channel(e){return new oe(this,e)}}class he extends d{constructor(e){super(e),this.push("runs")}config(){return new T(this).push("config")}}class ce extends d{constructor(e){super(e),this.ALLOWED_HTTP_METHODS=["GET"],this.push("tunnels")}active(e){return this.params({active:e})}}class le extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("notifications",s)}test(){return new T(this).push("test")}}class pe extends T{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");if(super(e),"me"===s)this.push("me");else{if("number"!=typeof s)throw new TypeError("id is not a number");this.push("users",s)}}services(){return new Q(this)}deviceGroups(){return new d(this).push("device-groups")}deviceGroup(e){return new V(this,e)}deviceSessions(){return new d(this).push("device-sessions")}deviceSession(e){return new H(this,e)}markAccountOwner(){return new T(this).push("mark-account-owner").post()}projects(){return new d(this).push("projects")}project(e){return new z(this,e)}files(){return new ue(this)}file(e){return new K(this,e)}runs(){return new he(this)}availableFrameworks(){return new d(this).push("available-frameworks")}resetApiKey(){return new T(this).push("reset-api-key")}restore(){return new T(this).push("restore")}feedback(){return new T(this).push("feedback")}notifications(){return new ae(this)}notification(e){return new le(this,e)}preferences(){return new T(this).push("preferences")}uiPreferences(){return new T(this).push("ui-preferences")}deviceUsage(){return new d(this).push("device-usage")}statistics(){return new T(this).push("statistics")}deviceStatistics(){return new d(this).push("device-statistics")}accessGroups(){return new d(this).push("access-groups")}accessGroup(e){return new W(this,e)}smartbearTunnel(e){return new T(this).push("tunnels",e)}smartbearTunnels(){return new ce(this)}deleteAccount(){return new T(this).push("delete")}}class Ee extends T{constructor(e){super(e),this.push("user-sessions")}login(e){return new T(this).push("login").post().data(e)}logout(){return new T(this).push("logout").post()}sso(e){return new T(this).push("oauth","authorize",e+"-login")}portalLogin(){return new T(this).push("portal-login").post()}sbidCallbackUrl(){return new T(this).push("oauth","authorize","sbid-login").toUrl(!0)}}globalThis.isNodeJs&&(u.default.defaults.headers.common["User-Agent"]="Bitbar Cloud API Client for JavaScript v1.3.8"),u.default.defaults.maxContentLength=1073741824;class de{constructor(e){if(this.config=e,this.axiosConfig={},null==e)throw new Error("config cannot be empty");if(null==this.config.cloudUrl)throw new TypeError("cloudUrl cannot be empty");if("string"!=typeof this.config.cloudUrl)throw new TypeError("cloudUrl must be a string");if(!/^https?:\/\/.{2,}/.test(this.config.cloudUrl))throw new Error("cloudUrl doesn't look like a URL");if(this.axiosConfig.baseURL=this.config.cloudUrl.replace(/\/+$/,"")+"/api",this.config.v2=!!this.config.v2,this.config.v2&&(this.axiosConfig.baseURL+="/v2"),this.config.apiKey){if("string"!=typeof this.config.apiKey)throw new TypeError("apiKey must be a string");if(!/^[A-Za-z0-9]{32}$/.test(this.config.apiKey))throw new Error("apiKey is in the wrong format");this.axiosConfig.auth={username:this.config.apiKey,password:""}}this.axiosConfig.withCredentials=null!=e.withCredentials&&e.withCredentials,this.axios=u.default.create(this.axiosConfig)}get baseUrl(){return this.axiosConfig.baseURL}account(e){return new te(this,e)}admin(){return new X(this)}broker(){return new re(this)}clusters(){return new d(this).push("clusters")}cluster(e){return new C(this,e)}device(e){return new ne(this,e)}deviceGroup(e){return new V(this,e)}deviceGroups(){return new d(this).push("device-groups")}devices(){return new J(this)}deviceSession(e){return new Y(this,e)}deviceSessions(){return new d(this).push("device-sessions")}deviceStatistics(){return new d(this).push("device-statistics")}enums(){return new T(this).push("enums")}files(){return new d(this).push("files")}file(e){return new K(this,e)}labelGroups(){return new d(this).push("label-groups")}labelGroup(e){return new ie(this,e)}labels(){return new d(this).push("labels")}licenses(){return new T(this).push("licenses")}license(){return new T(this).push("license")}ma(){throw new Error("Requires prototype extension covering ACL check")}me(){return this.user("me")}projects(){return new d(this).push("projects")}project(e){return new z(this,e)}properties(){return new Z(this)}property(e){return new T(this).push("properties",e)}run(e){return new $(this,e)}services(){return new Q(this)}user(e){return new pe(this,e)}users(){return new ee(this)}userSession(){return new Ee(this)}}const Te={API:de,FilterBuilder:c};var we,Ie,Ne,Ae,Re,Se,fe,Oe,Le,_e,Ce,me,ve,De,Ue,ge,be,Pe,ye,Fe,Me,Ge,xe,Be,ke,He,qe,We,Ve,Ke,Ye,je,$e,ze,Xe,Je,Ze,Qe,es,ss,ts,rs,ns,is;e.AccessGroupScope=void 0,(we=e.AccessGroupScope||(e.AccessGroupScope={})).USER="USER",we.ACCOUNT="ACCOUNT",we.GLOBAL="GLOBAL",e.PaymentStatus=void 0,(Ie=e.PaymentStatus||(e.PaymentStatus={})).SUCCEEDED="SUCCEEDED",Ie.FAILED="FAILED",Ie.REDIRECTED="REDIRECTED",e.PaymentMethod=void 0,(Ne=e.PaymentMethod||(e.PaymentMethod={})).PAYPAL="PAYPAL",Ne.BRAINTREE="BRAINTREE",Ne.STRIPE="STRIPE",Ne.INVOICE="INVOICE",Ne.PROMOTION="PROMOTION",Ne.AWS="AWS",e.ChargeType=void 0,(Ae=e.ChargeType||(e.ChargeType={})).USAGE_MOBILE="USAGE_MOBILE",Ae.CONCURRENCY_MOBILE="CONCURRENCY_MOBILE",Ae.CONCURRENCY_DESKTOP="CONCURRENCY_DESKTOP",e.DeactivateReason=void 0,(Re=e.DeactivateReason||(e.DeactivateReason={})).INITIAL_FAILURE="INITIAL_FAILURE",Re.SCA_FAILURE="SCA_FAILURE",Re.CHARGE_FAILURE="CHARGE_FAILURE",Re.CANCEL="CANCEL",Re.SUSPENDED="SUSPENDED",Re.ANOTHER_PURCHASE="ANOTHER_PURCHASE",e.InitStep=void 0,(Se=e.InitStep||(e.InitStep={})).SKIP="SKIP",Se.REBOOT="REBOOT",Se.REBOOT_WITH_UNLOCK="REBOOT_WITH_UNLOCK",Se.UNLOCK_ONLY="UNLOCK_ONLY",e.DeviceState=void 0,(fe=e.DeviceState||(e.DeviceState={})).OFFLINE_CLEANING="OFFLINE_CLEANING",fe.OFFLINE_DIRTY="OFFLINE_DIRTY",fe.OFFLINE_FREE="OFFLINE_FREE",fe.OFFLINE_TESTING="OFFLINE_TESTING",fe.ONLINE_CLEANING="ONLINE_CLEANING",fe.ONLINE_DIRTY="ONLINE_DIRTY",fe.ONLINE_FREE="ONLINE_FREE",fe.ONLINE_TESTING="ONLINE_TESTING",e.AdminErrorType=void 0,(Oe=e.AdminErrorType||(e.AdminErrorType={})).ABORT_REQUEST="ABORT_REQUEST",Oe.ADB_COMMAND_REJECTED="ADB_COMMAND_REJECTED",Oe.ADB_SHELL_COMMAND_FAILED="ADB_SHELL_COMMAND_FAILED",Oe.APP_LOCK_NOT_INSTALLED="APP_LOCK_NOT_INSTALLED",Oe.DEVICE_OFFLINE="DEVICE_OFFLINE",Oe.DEVICE_OUTPUT_NULL="DEVICE_OUTPUT_NULL",Oe.GAMEBENCH_ERROR="GAMEBENCH_ERROR",Oe.GAMEBENCH_NOT_SUPPORTED="GAMEBENCH_NOT_SUPPORTED",Oe.GRANT_FAILED="GRANT_FAILED",Oe.INSTALL_FAILED="INSTALL_FAILED",Oe.INTERACTIVE_SETUP_FAILED="INTERACTIVE_SETUP_FAILED",Oe.INTERNAL_INSTALL_FAILED="INTERNAL_INSTALL_FAILED",Oe.INVALID_TEST_SESSION_FILE="INVALID_TEST_SESSION_FILE",Oe.LOCK_EXPIRED="LOCK_EXPIRED",Oe.LOCK_TIMEOUT="LOCK_TIMEOUT",Oe.NO_NETWORK_CONNECTION="NO_NETWORK_CONNECTION",Oe.OTHER="OTHER",Oe.REBOOTING_TIMEOUT="REBOOTING_TIMEOUT",Oe.REPACKAGING="REPACKAGING",Oe.RESULTS_PREPARING="RESULTS_PREPARING",Oe.RESULTS_PROCESSING="RESULTS_PROCESSING",Oe.RESULTS_SENDING="RESULTS_SENDING",Oe.STEP_TIMEOUT="STEP_TIMEOUT",Oe.SYSTEM_FAILURE="SYSTEM_FAILURE",Oe.TEST_RUN_FAILED="TEST_RUN_FAILED",Oe.TEST_RUN_INTERRUPTED="TEST_RUN_INTERRUPTED",Oe.TEST_RUN_TIMEOUT="TEST_RUN_TIMEOUT",Oe.TEST_RUN_WARNED="TEST_RUN_WARNED",Oe.TEST_TIMEOUT="TEST_TIMEOUT",Oe.VNC_CONNECTION_SETUP_FAILED="VNC_CONNECTION_SETUP_FAILED",Oe.XCRUN_INSTRUMENTS_COMMAND_FAILED="XCRUN_INSTRUMENTS_COMMAND_FAILED",Oe.XCRUN_INSTRUMENTS_JS_ERROR="XCRUN_INSTRUMENTS_JS_ERROR",e.FrameworkType=void 0,(Le=e.FrameworkType||(e.FrameworkType={})).AUTOMATIC="AUTOMATIC",Le.MANUAL_APP="MANUAL_APP",Le.MANUAL_WEB="MANUAL_WEB",Le.REMOTE="REMOTE",e.BillingType=void 0,(_e=e.BillingType||(e.BillingType={})).BUY="BUY",_e.CHARGE="CHARGE",_e.CANCEL="CANCEL",e.BrokerType=void 0,(Ce=e.BrokerType||(e.BrokerType={})).MOBILE="MOBILE",Ce.DESKTOP="DESKTOP",e.ClusterState=void 0,(me=e.ClusterState||(e.ClusterState={}))[me.OFFLINE=0]="OFFLINE",me.ONLINE="ONLINE",me.RESTARTING="RESTARTING",me.QUIET_DOWN="QUIET_DOWN",me.MAINTENANCE="MAINTENANCE",e.DeviceGroupOrigin=void 0,(ve=e.DeviceGroupOrigin||(e.DeviceGroupOrigin={})).STATIC="STATIC",ve.DYNAMIC="DYNAMIC",ve.HYBRID="HYBRID",e.Platform=void 0,(De=e.Platform||(e.Platform={})).IOS="IOS",De.ANDROID="ANDROID",De.WINDOWS="WINDOWS",De.MAC="MAC",De.LINUX="LINUX",De.UNDEFINED="UNDEFINED",e.SupportedCreators=void 0,(Ue=e.SupportedCreators||(e.SupportedCreators={})).MANUAL="MANUAL",Ue.ROBOT="ROBOT",Ue.AUTOMATIC="AUTOMATIC",e.LockReason=void 0,(ge=e.LockReason||(e.LockReason={})).TESTING="TESTING",ge.CLEANING="CLEANING",ge.NOT_OPERATIONAL="NOT_OPERATIONAL",e.CriterionField=void 0,(be=e.CriterionField||(e.CriterionField={})).NAME="NAME",be.FINGERPRINT="FINGERPRINT",be.SERIAL_ID="SERIAL_ID",be.UNLOCK_GESTURE="UNLOCK_GESTURE",be.SOFTWARE_VERSION="SOFTWARE_VERSION",be.INIT_STEP="INIT_STEP",be.ACCOUNT="ACCOUNT",be.BROWSERS="BROWSERS",e.RetentionStrategy=void 0,(Pe=e.RetentionStrategy||(e.RetentionStrategy={})).CLUSTER_ON_OFF="CLUSTER_ON_OFF",Pe.MIN_FREE_MAX_TOTAL="MIN_FREE_MAX_TOTAL",Pe.POOL_MANAGER_AWARE="POOL_MANAGER_AWARE",e.ProblemType=void 0,(ye=e.ProblemType||(e.ProblemType={})).CLEANING="CLEANING",ye.DIRTY="DIRTY",ye.OFFLINE="OFFLINE",ye.LOW_BATTERY="LOW_BATTERY",ye.HIGH_FAIL_RATE="HIGH_FAIL_RATE",ye.NO_INTERNET_CONNECTION="NO_INTERNET_CONNECTION",e.DeviceSessionType=void 0,(Fe=e.DeviceSessionType||(e.DeviceSessionType={})).AUTOMATIC="AUTOMATIC",Fe.MANUAL="MANUAL",Fe.MANUAL_APP="MANUAL_APP",Fe.MANUAL_WEB="MANUAL_WEB",Fe.REMOTE="REMOTE",e.RetryState=void 0,(Me=e.RetryState||(e.RetryState={})).NONE="NONE",Me.MANUAL="MANUAL",Me.AUTO="AUTO",e.DeviceSessionState=void 0,(Ge=e.DeviceSessionState||(e.DeviceSessionState={})).ABORTED="ABORTED",Ge.EXCLUDED="EXCLUDED",Ge.FAILED="FAILED",Ge.RUNNING="RUNNING",Ge.SUCCEEDED="SUCCEEDED",Ge.TIMEOUT="TIMEOUT",Ge.WAITING="WAITING",Ge.WARNING="WARNING",e.DeviceSessionStepType=void 0,(xe=e.DeviceSessionStepType||(e.DeviceSessionStepType={})).WAITING="WAITING",xe.PREPARING="PREPARING",xe.UNINSTALL="UNINSTALL",xe.INSTALL="INSTALL",xe.RUNNING="RUNNING",xe.SENDING_RESULTS="SENDING_RESULTS",xe.PROCESSING_RESULTS="PROCESSING_RESULTS",e.SessionReleaseReason=void 0,(Be=e.SessionReleaseReason||(e.SessionReleaseReason={})).INACTIVITY="INACTIVITY",Be.TIMEOUT="TIMEOUT",Be.USER_ACTION="USER_ACTION",Be.CHANGE_DEVICE="CHANGE_DEVICE",Be.WEBSOCKET_CLOSED="WEBSOCKET_CLOSED",e.OsType=void 0,(ke=e.OsType||(e.OsType={})).IOS="IOS",ke.ANDROID="ANDROID",ke.DESKTOP="DESKTOP",ke.UNDEFINED="UNDEFINED",e.LicenseStatus=void 0,(He=e.LicenseStatus||(e.LicenseStatus={})).ACTIVE="ACTIVE",He.EXPIRED="EXPIRED",He.INACTIVE="INACTIVE",He.CLOSED="CLOSED",e.MaintenanceType=void 0,(qe=e.MaintenanceType||(e.MaintenanceType={})).BARE_METAL="BARE_METAL",qe.EC2="EC2",qe.VM="VM",e.NotificationChannel=void 0,(We=e.NotificationChannel||(e.NotificationChannel={})).SLACK="SLACK",We.EMAIL="EMAIL",We.WEBHOOK="WEBHOOK",e.NotificationScope=void 0,(Ve=e.NotificationScope||(e.NotificationScope={})).ALL="ALL",Ve.TEST_RUN="TEST_RUN",Ve.TEST_RUN_FAILURE="TEST_RUN_FAILURE",Ve.TEST_RUN_SUCCEEDED="TEST_RUN_SUCCEEDED",Ve.MAINTENANCE="MAINTENANCE",Ve.MAINTENANCE_RELEASE="MAINTENANCE_RELEASE",Ve.CUSTOM="CUSTOM",Ve.NEWS="NEWS",Ve.SYSTEM="SYSTEM",Ve.CHECK="CHECK",Ve.PLAN_LIMIT_REACHED="PLAN_LIMIT_REACHED",Ve.PLAN_INVOICE="PLAN_INVOICE",e.ArchivingStrategy=void 0,(Ke=e.ArchivingStrategy||(e.ArchivingStrategy={})).NEVER="NEVER",Ke.DAYS="DAYS",Ke.RUNS="RUNS",e.ScreenshotType=void 0,(Ye=e.ScreenshotType||(e.ScreenshotType={})).LANDSCAPE="LANDSCAPE",Ye.PORTRAIT="PORTRAIT",e.ServiceUnit=void 0,(je=e.ServiceUnit||(e.ServiceUnit={})).DAY="DAY",je.HOUR="HOUR",je.MONTH="MONTH",je.PROJECT="PROJECT",je.RUN="RUN",je.YEAR="YEAR",e.SharedResourceType=void 0,($e=e.SharedResourceType||(e.SharedResourceType={})).DEVICE_GROUP="DEVICE_GROUP",$e.FILE="FILE",$e.PROJECT="PROJECT",e.TestResult=void 0,(ze=e.TestResult||(e.TestResult={})).PASSED="PASSED",ze.FAILED="FAILED",ze.SKIPPED="SKIPPED",ze.NOT_AVAILABLE="NOT_AVAILABLE",e.LimitationType=void 0,(Xe=e.LimitationType||(e.LimitationType={})).PACKAGE="PACKAGE",Xe.CLASS="CLASS",e.TestScheduler=void 0,(Je=e.TestScheduler||(e.TestScheduler={})).PARALLEL="PARALLEL",Je.SERIAL="SERIAL",Je.SINGLE="SINGLE",Je.ALL_INSTANCES="ALL_INSTANCES",e.TestState=void 0,(Ze=e.TestState||(e.TestState={})).WAITING="WAITING",Ze.RUNNING="RUNNING",Ze.FINISHED="FINISHED",e.TestRunConfigFileAction=void 0,(Qe=e.TestRunConfigFileAction||(e.TestRunConfigFileAction={})).COPY_TO_DEVICE="COPY_TO_DEVICE",Qe.INSTALL="INSTALL",Qe.RUN_TEST="RUN_TEST",e.MfaStatus=void 0,(es=e.MfaStatus||(e.MfaStatus={})).VERIFICATION_NEED="VERIFICATION_NEED",es.DISABLED="DISABLED",es.ENABLED="ENABLED",e.UserStatus=void 0,(ss=e.UserStatus||(e.UserStatus={})).INACTIVE="INACTIVE",ss.DISABLED="DISABLED",ss.ENABLED="ENABLED",e.FileDirection=void 0,(ts=e.FileDirection||(e.FileDirection={})).INPUT="INPUT",ts.OUTPUT="OUTPUT",e.FileInputType=void 0,(rs=e.FileInputType||(e.FileInputType={})).APPLICATION="APPLICATION",rs.TEST="TEST",rs.DATA="DATA",e.FileState=void 0,(ns=e.FileState||(e.FileState={})).PREPARING="PREPARING",ns.READY="READY",e.VisualTestImageType=void 0,(is=e.VisualTestImageType||(e.VisualTestImageType={})).FULL_PAGE="FULL_PAGE",is.VIEWPORT="VIEWPORT",is.ELEMENT_SCREENSHOT="ELEMENT_SCREENSHOT",e.ALLOWED_HTTP_METHODS=l,e.API=de,e.CloudAPIClient=Te,e.FilterBuilder=c,e.IMAGE_FILES_FILTER=D,e.NON_MEDIA_FILES_FILTER=U,e.default=Te,Object.defineProperty(e,"__esModule",{value:!0})}));
function u(e,s,t,r){var n,i=arguments.length,u=i<3?s:null===r?r=Object.getOwnPropertyDescriptor(s,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,s,t,r);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(u=(i<3?n(u):i>3?n(s,t,u):n(s,t))||u);return i>3&&u&&Object.defineProperty(s,t,u),u}"function"==typeof SuppressedError&&SuppressedError;class o{constructor(e,s,t){this.name=e,this.value=s,this.operand=t}}t();class a{constructor(){this.filters=[]}gt(e,s){return this.add(e,s,"gt")}lt(e,s){return this.add(e,s,"lt")}after(e,s){return this.add(e,s,"after",!0)}afterorequal(e,s){return this.add(e,s,"afterorequal",!0)}before(e,s){return this.add(e,s,"before",!0)}beforeorequal(e,s){return this.add(e,s,"beforeorequal",!0)}on(e,s){return this.add(e,s,"on")}eq(e,s){return this.add(e,s,"eq")}contains(e,s){return this.add(e,s,"contains")}like(e,s){return this.add(e,s,"like")}notlike(e,s){return this.add(e,s,"notlike")}isnull(e){return this.add(e,void 0,"isnull")}isnotnull(e){return this.add(e,void 0,"isnotnull")}in(e,s){return this.add(e,s,"in",!0)}notin(e,s){return this.add(e,s,"notin",!0)}raw(e){const s=Array.wrap(e);for(const e of s){if(!this.isFilterPart(e))throw new SyntaxError(`Filter ${e} has invalid syntax`);this.filters.push(e)}}isFilterPart(e){return/^[a-zA-Z0-9.]{2,12}_(?:isnull$|(?:gt|lt|(?:after|before)(?:orequal)?|on|eq|contains|like|(?:not)?in)_)/.test(e)}toString(){const e=[];let s,t;for(const r of this.filters)"string"==typeof r?s=r:(t="",(r.value.length>1||void 0!==r.value[0])&&(t=`_${r.value.join("|")}`),s=`${r.name}_${r.operand}${t}`),e.push(s);return e.join(";")}add(e,s,t,r=!1){let n=Array.wrap(s);if(0===n.length)return this;for(let e=0;e<n.length;e++){const s=n[e];"object"==typeof s&&s instanceof Date&&(n[e]=s.getTime())}let i=!1;if(r){for(const e of n)null===e&&(i=!0);i&&(n=n.filter((e=>null!==e)),t+="ornull")}return t.endsWith("ornull")&&0===n.length&&(t="isnull"),this.filters.push(new o(e,n,t)),this}}const h=["GET","POST","DELETE"];var c;e.APIOrder=void 0,(c=e.APIOrder||(e.APIOrder={})).asc="a",c.desc="d";class l{constructor(e){this.stack=[],this.requestConfig={},this.ALLOWED_HTTP_METHODS=h,e instanceof l?(this.root=e.root,Array.isArray(e.stack)&&this.push(...e.stack),null!=e.requestConfig&&this.setRequestConfig(e.requestConfig)):this.root=e,this.abortController=new n.AbortController}abortRequest(){this.abortController.abort(),this.abortController=new n.AbortController}push(...e){return this.stack=this.stack.concat(e),this}shift(){return this.stack.shift(),this}restack(...e){return this.stack=e,this}get first(){return this.stack[0]}get last(){return this.stack[this.stack.length-1]}set last(e){this.stack[this.stack.length-1]=e}toUrl(e=!1){let s=`/${this.stack.join("/")}`;return e&&(s=this.root.baseUrl+s),s}setRequestConfig(e){return Object.deepAssign(this.requestConfig,e),this}removeRequestConfig(e){return delete this.requestConfig[e],this}headers(e){const s={};for(const t in e){s[t.replace(/(?:^|-)([a-z])/g,(e=>e.toUpperCase()))]=e[t]}return this.setRequestConfig({headers:s})}method(e){const s=e.toLocaleUpperCase();if(!(this.ALLOWED_HTTP_METHODS.indexOf(s)>-1))throw new Error(`Method '${s}' is not allowed! You can use: ${this.ALLOWED_HTTP_METHODS.join(", ")}`);return this.setRequestConfig({method:s})}get(){return this.method("GET")}post(){return this.method("POST")}delete(){return this.method("DELETE")}params(e){return this.setRequestConfig({params:e}),this}getParams(){return null==this.requestConfig.params?{}:this.requestConfig.params}removeParam(e){return delete this.requestConfig.params[e],this}data(e){return this.setRequestConfig({data:e}),this}jsonData(e){return this.headers({"Content-Type":"application/json"}).data(e),this}formData(e){return this.headers({"Content-Type":"multipart/form-data"}).data(e),this}send(){const e=Object.deepAssign({},this.requestConfig,{url:`/${this.stack.join("/")}`,signal:this.abortController.signal});return null==e.headers&&(e.headers={}),null==e.headers["Content-Type"]&&(e.headers["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),"POST"===e.method&&e.headers["Content-Type"].startsWith("application/x-www-form-urlencoded")&&null!=e.data&&(e.data=this.paramsSerializer(e.data)),e.params&&(e.paramsSerializer=this.paramsSerializer),this.root.axios.request(e)}paramsSerializer(e){return r.stringify(e,{arrayFormat:"brackets"})}}class p extends l{constructor(){super(...arguments),this.all=this.noLimit,this.cut=this.between}create(e){return this.post().data(e).send()}sort(s,t=e.APIOrder.asc){return this.params({sort:`${s}_${t}`})}limit(e=20){if(!Number.isNatural(e))throw new Error(`Limit '${e}' is invalid!`);return this.params({limit:e})}getLimit(){const e=this.getParams();return null==e.limit?20:e.limit}noLimit(){return this.limit(0)}offset(e=0){if(!Number.isNatural(e))throw new Error(`Offset '${e}' is invalid!`);return this.params({offset:e})}between(e,s){if(!Number.isNatural(e))throw new Error(`From '${e}' is invalid!`);if(!Number.isNatural(s))throw new Error(`To '${s}' is invalid!`);return this.params({offset:e,limit:s-e+1})}only(e){if(!Number.isNatural(e))throw new Error(`Index '${e}' is invalid!`);return this.params({offset:e,limit:1})}page(e=1){if(!Number.isNatural(e)||0==e)throw new Error(`Page '${e}' is invalid!`);const s=this.getLimit(),t=(e-1)*s;return this.params({offset:t,limit:s})}search(e){if("string"!=typeof e)throw new Error("Search query must be a string!");return this.params({search:e})}filter(e){if("string"!=typeof e&&!(e instanceof a))throw new Error("Filter must be either string or instance of FilterBuilder");return this.params({filter:e.toString()})}}class E extends l{}class d extends p{constructor(e){super(e),this.push("cleanup-configurations")}specific(){return new E(this).push("specific")}}class T extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("cleanup-configurations",s)}devices(){return new p(this).push("devices")}}class w extends p{constructor(e){super(e),this.push("admin","devices")}cleanupConfigurations(){return new d(this)}cleanupConfiguration(e){return new T(this,e)}}class I extends p{constructor(e){super(e),this.push("admin","notification-plans")}channels(){return new p(this).push("channels")}scopes(){return new p(this).push("scopes")}}class N extends p{constructor(e){super(e),this.ALLOWED_HTTP_METHODS=["GET"],this.push("admin","runs")}config(){const e=new E(this);return e.restack("runs","config"),e}}class A extends p{constructor(e){super(e),this.push("admin","services")}active(){const e=new p(this);return e.params({notArchived:!0}),e}activated(){const e=this.active();return e.params({filter:"activated_eq_true",limit:0,sort:"name_a"}),e}inUse(){const e=new p(this);return e.params({inUse:!0,limit:0,sort:"name_a"}),e}byPrice(){const e=new p(this);return e.params({sort:"centPrice_a"}),e}}function R(e){return class extends e{send(){return Promise.reject()}}}let S=class extends p{constructor(e){super(e),this.push("admin","statistics")}deviceSessions(){return new p(this).push("device-sessions")}frameworks(){return new p(this).push("frameworks")}};S=u([R],S);class f extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","accounts",s)}roles(){return new p(this).push("roles")}role(e){return new E(this).push("roles",e)}accountServices(){return new p(this).push("account-services")}preferences(){return new E(this).push("preferences")}}class O extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","account-services",s)}activate(){return new E(this).push("activate").post()}deactivate(){return new E(this).push("deactivate").post()}}class L extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("clusters",s)}devices(){return new p(this).push("devices")}}class _ extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","devices",s)}cleanupConfiguration(){return new E(this).push("cleanup-configuration")}labels(){return new p(this).push("labels")}label(e){return new E(this).push("labels",e)}queue(){return new p(this).push("queue")}}class C extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","device-models",s)}browsers(){return new p(this).push("browsers")}}e.InputFileset=class extends E{constructor(e){super(e),this.push("input-file-set")}files(){return new p(this).push("files")}filesZip(){return new E(this).push("files.zip")}},e.InputFileset=u([R],e.InputFileset);const m=new a;m.eq("state","READY"),m.in("mimetype",["image/png","image/jpg","image/jpeg","image/webp","image/gif"]),m.notlike("name","action-%%");const v=new a;v.eq("state","READY"),v.notin("mimetype",["image/png","image/jpg","image/jpeg","image/webp","image/gif","video/mp4","video/avi","video/webm","video/ogg","video/mpeg"]),e.OutputFileset=class extends E{constructor(e){super(e),this.push("output-file-set")}files(){return new p(this).push("files")}file(e){return new E(this).push("files",e)}filesZip(){return new E(this).push("files.zip")}screenshots(){return new p(this).push("screenshots")}screenshot(e){return new E(this).push("screenshots",e)}screenshotFile(e){return this.screenshot(e).push("file")}videos(){return this.files().params({filter:"s_state_eq_READY",tag:["video"]})}nonMediaFiles(){return this.files().filter(v)}performance(){return this.files().params({tag:["performance"]})}images(){return this.files().filter(m)}},e.OutputFileset=u([R],e.OutputFileset);class D extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("device-sessions",s)}commands(){return new p(this).push("commands")}input(){return new e.InputFileset(this)}output(){return new e.OutputFileset(this)}release(){return new E(this).push("release").post()}screenshots(){return new p(this).push("screenshots")}screenshot(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("screenshots",e)}steps(){return new p(this).push("steps")}step(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("steps",e)}currentStep(){return this.step("current")}testCaseRuns(){return new p(this).push("test-case-runs")}connections(){return new p(this).push("connections")}logs(){return new E(this).push("logs").setRequestConfig({responseType:"text"})}clusterLogs(){return new E(this).push("cluster-logs").setRequestConfig({responseType:"text"})}}class U extends D{changeBillable(e){return function(e,s){const t=new E(e),r=t.last;return t.restack("admin","device-sessions",r,"changebillable").params({billable:s}).post()}(this,e)}}class g extends p{constructor(e){super(e),this.push("admin","device-time")}countSessionReport(){return new p(this).push("count-session-report")}stepTimeReport(){return new p(this).push("step-time-report")}}class b extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","frameworks",s)}config(){return new E(this).push("config")}requiredRoles(){return new p(this).push("required-roles")}}class P extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","licenses",s)}activate(){return new E(this).push("activate")}deactivate(){return new E(this).push("deactivate")}resend(){return new E(this).push("resend")}download(){return new E(this).push("download")}}class y extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","notification-plans",s)}check(){return new p(this).push("check")}test(){return new E(this).push("test")}execute(){return new E(this).push("execute")}}function F(e,s,t){const r=new E(e).push(s);return null!=t&&r.params({deviceRunIds:t}),r.post()}class M extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","runs",s)}abort(){return new E(this).push("abort").post()}changeBillable(e){return new E(this).push("changebillable").post().params({billable:e})}changePriority(e){const s=new E(this).push("changepriority");return e&&s.post().data({priority:e}),s}retry(e){return F(this,"retry",e).setRequestConfig({timeout:0})}}class G extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","services",s)}activate(){return new E(this).push("activate").post()}}let x=class extends E{constructor(e){super(e),this.push("account")}roles(){return new p(this).push("roles")}role(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("roles",e)}services(){const e=new p(this);return e.last+="-services",e}update(){const e=new E(this);return e.last="update-account",e.post()}};x=u([R],x);class B extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("device-sessions",s)}connections(){return new p(this).push("connections")}connection(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("connections",e)}input(){return new e.InputFileset(this)}output(){return new e.OutputFileset(this)}release(){return new E(this).push("release").post()}visualTestsImages(){return new p(this).push("visual-tests","images")}}let k=class extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("admin","users",s)}disable(){return new E(this).push("disable")}enable(){return new E(this).push("enable")}licenses(){return new p(this).push("licenses")}resendActivation(){return new E(this).push("resend-activation").post()}account(){return new x(this)}deviceSession(e){return new B(this,e)}roles(){return new p(this).push("roles")}role(e){return new E(this).push("roles",e)}};k=u([R],k);class H extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("access-groups",s)}users(){return new p(this).push("users")}user(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("users",e)}resources(){return new p(this).push("resources")}resource(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("resources",e)}}class q extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("device-groups",s)}devices(){return new p(this).push("devices")}device(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("devices",e)}selectors(){return new p(this).push("selectors")}selector(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("selectors",e)}share(){return new p(this).push("share")}}class W extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("files",s)}file(){return new E(this).push("file")}icon(){return new E(this).push("icon")}tags(){return new p(this).push("tags")}share(){return new p(this).push("share")}property(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("properties",e)}}class V extends D{abort(){return new E(this).push("abort").post()}retry(){return new E(this).push("retry").post()}}class K extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("runs",s)}abort(){return new E(this).push("abort").post()}buildLogsZip(e){return F(this,"build-logs.zip",e)}dataAvailability(){return new E(this).push("data-availability")}deviceSessions(){return new p(this).push("device-sessions")}filesZip(e){return F(this,"files.zip",e)}logsZip(e){return F(this,"logs.zip",e)}performanceZip(e){return F(this,"performance.zip",e)}retry(e){return F(this,"retry",e).setRequestConfig({timeout:0})}screenshotNames(){return new p(this).push("screenshot-names")}screenshots(){return new p(this).push("screenshots")}screenshotsZip(e){return F(this,"screenshots.zip",e)}steps(){return new p(this).push("steps")}tags(){return new p(this).push("tags")}tag(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("tags",e)}}class Y extends K{deviceSession(e){return new V(this,e)}}class j extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("projects",s)}runs(){return new p(this).push("runs")}run(e){return new Y(this,e)}share(){return new p(this).push("share")}unarchive(){return new E(this).push("unarchive")}}let $=class extends E{constructor(e){super(e)}accessGroups(){return new p(this).push("access-groups")}accessGroup(e){return new H(this,e)}accounts(){return new p(this).push("admin","accounts")}account(e){if(null==e)throw new Error("Resource ID cannot be null!");return new f(this,e)}accountServices(){return new p(this).push("admin","account-services")}accountService(e){return new O(this,e)}activities(){return new p(this).push("admin","activities")}administrators(){return new p(this).push("admin","administrators")}billingPeriods(){return new p(this).push("admin","billing-periods")}billingPeriod(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("admin","billing-periods",e)}browsers(){return new p(this).push("admin","browsers")}browser(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("admin","browsers",e)}clusters(){return new p(this).push("clusters")}cluster(e){return new L(this,e)}countryVatRates(){return new p(this).push("admin","country-vat-rates")}countryVatRate(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("admin","country-vat-rates",e)}devices(){return new w(this)}device(e){return new _(this,e)}devicesForModel(e){if(null==e)throw new Error("Resource ID cannot be null!");const s=this.devices();return s.params({filter:"deviceModelId_eq_"+e}),s}deviceStatuses(){return new p(this).push("admin","device","statuses")}deviceModels(){return new p(this).push("admin","device-models")}deviceModel(e){return new C(this,e)}deviceProblems(){return new p(this).push("admin","device-problems")}deviceModelCriterias(){return new p(this).push("admin","device-model-criteria")}deviceModelCriteria(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("admin","device-model-criteria",e)}deviceSessions(){return new p(this).push("admin","device-sessions")}deviceSession(e){return new U(this,e)}deviceTime(){return new g(this)}deviceTimeSummary(){return new p(this).push("admin","device-time-summary")}deviceTypes(){return new p(this).push("admin","device-types")}deviceType(e){return new E(this).push("admin","device-types",e)}deviceGroups(){return new p(this).push("device-groups")}deviceGroup(e){return new q(this,e)}emails(){return new p(this).push("admin","emails")}resendEmail(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("admin","emails",e,"resend").post()}errors(){return new p(this).push("admin","errors")}files(){return new p(this).push("files")}file(e){return new W(this,e)}frameworks(){return new p(this).push("admin","frameworks")}framework(e){return new b(this,e)}frameworkAvailableLabels(){const e=this.frameworks();return e.push("available-labels"),e}interactiveQueue(){return new p(this).push("admin","interactive-queue")}licenses(){return new p(this).push("admin","licenses")}license(e){return new P(this,e)}maintenance(){return new E(this).push("admin","maintenance")}notificationPlans(){return new I(this)}notificationPlan(e){return new y(this,e)}overview(){return new E(this).push("admin","overview")}pools(){return new p(this).push("admin","pools")}pool(e){return new E(this).push("admin","pools",e)}projects(){return new p(this).push("projects")}project(e){return new j(this,e)}roles(){return new p(this).push("admin","roles")}runs(){return new N(this)}run(e){return new M(this,e)}samples(){return new p(this).push("admin","samples")}sample(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("admin","samples",e)}services(){return new A(this)}service(e){return new G(this,e)}settings(){return new E(this).push("admin","settings")}statistics(){return new S(this)}users(){return new p(this).push("users")}createUser(){return new p(this).push("admin","users").post()}user(e){return new k(this,e)}};$=u([R],$);class z extends p{constructor(e){super(e),this.push("devices")}filters(){return new E(this).push("filters")}desktopBrowserCapabilities(){return new E(this).push("desktop-browser-capabilities")}}class X extends p{constructor(e){super(e),this.push("properties")}maintenance(){return new p(this).params({filter:"name_eq_CLOUD_HEADER_ANNOUNCEMENT",limit:1,sort:"updateTime_d"})}}class J extends p{constructor(e){super(e),this.ALLOWED_HTTP_METHODS=["POST"],this.push("services")}available(){return new p(this).push("available")}active(){const e=new p(this);return"me"===this.first?e.push("active"):e.params({notArchived:!0}),e}byPrice(){return new p(this).sort("centPrice")}availableByPrice(){return new p(this).push("available").sort("centPrice")}}class Z extends p{constructor(e){super(e),this.ALLOWED_HTTP_METHODS=["GET","POST"],this.push("users")}activate(){return new E(this).push("activate").post()}recoveries(){return new E(this).push("recoveries")}passwordRecovery(){return new E(this).push("password-recovery")}}class Q extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("billing-periods",s)}receipt(){return new E(this).push("receipt").setRequestConfig({responseType:"arraybuffer"})}}class ee extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("accounts",s)}concurrencyStatus(){return new E(this).push("concurrency-status")}deviceTime(){return new p(this).push("device-time")}deviceTimeSummary(){return new p(this).push("device-time-summary")}preferences(){return new E(this).push("preferences")}users(){return new p(this).push("users")}removeUser(e){return new E(this).push("users",e)}disableUser(e){return new E(this).push("users",e,"disable").post()}enableUser(e){return new E(this).push("users",e,"enable").post()}resendActivation(e){return new E(this).push("users",e,"resend-activation").post()}billingPeriods(){return new p(this).push("billing-periods")}billingPeriod(e){return new Q(this,e)}serviceBillingPeriod(e){if(null==e)throw new Error("Resource ID cannot be null!");return new E(this).push("account-services",e,"billing-period")}visualTestAccess(){return new E(this).push("visual-tests","access")}accountServices(){return new p(this).push("account-services")}accountService(e){return new p(this).push("account-services",e)}}class se extends E{constructor(e){super(e),this.push("broker")}hubs(){return new p(this).push("hubs")}}class te extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("devices",s)}properties(){return new p(this).push("properties")}browsers(){return new p(this).push("browsers")}}class re extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("label-groups",s)}labels(){return new p(this).push("labels")}label(e){return new E(this).push("labels",e)}}class ne extends p{constructor(e){super(e),this.push("files")}upload(e){if(global.isNodeJs)return this.nodeUpload(e);throw new Error("Not supported yet!")}nodeUpload(e){const s=require("fs"),t=new i;return t.append("file",s.createReadStream(e.dir+"/"+e.filename),{filename:e.filename}),this.post().headers(t.getHeaders()).data(t)}}class ie extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("channels",s)}scopes(){return new p(this).push("scopes")}}class ue extends p{constructor(e){super(e),this.push("notifications")}scopes(){return new p(this).push("scopes")}channels(){return new p(this).push("channels")}channel(e){return new ie(this,e)}}class oe extends p{constructor(e){super(e),this.push("runs")}config(){return new E(this).push("config")}}class ae extends p{constructor(e){super(e),this.ALLOWED_HTTP_METHODS=["GET"],this.push("tunnels")}active(e){return this.params({active:e})}}class he extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");super(e),this.push("notifications",s)}test(){return new E(this).push("test")}}class ce extends E{constructor(e,s){if(null==s)throw new Error("Resource ID cannot be null!");if(super(e),"me"===s)this.push("me");else{if("number"!=typeof s)throw new TypeError("id is not a number");this.push("users",s)}}services(){return new J(this)}deviceGroups(){return new p(this).push("device-groups")}deviceGroup(e){return new q(this,e)}deviceSessions(){return new p(this).push("device-sessions")}deviceSession(e){return new B(this,e)}markAccountOwner(){return new E(this).push("mark-account-owner").post()}projects(){return new p(this).push("projects")}project(e){return new j(this,e)}files(){return new ne(this)}file(e){return new W(this,e)}runs(){return new oe(this)}availableFrameworks(){return new p(this).push("available-frameworks")}resetApiKey(){return new E(this).push("reset-api-key")}restore(){return new E(this).push("restore")}feedback(){return new E(this).push("feedback")}notifications(){return new ue(this)}notification(e){return new he(this,e)}preferences(){return new E(this).push("preferences")}uiPreferences(){return new E(this).push("ui-preferences")}deviceUsage(){return new p(this).push("device-usage")}statistics(){return new E(this).push("statistics")}deviceStatistics(){return new p(this).push("device-statistics")}accessGroups(){return new p(this).push("access-groups")}accessGroup(e){return new H(this,e)}smartbearTunnel(e){return new E(this).push("tunnels",e)}smartbearTunnels(){return new ae(this)}deleteAccount(){return new E(this).push("delete")}}class le extends E{constructor(e){super(e),this.push("user-sessions")}login(e){return new E(this).push("login").post().data(e)}logout(){return new E(this).push("logout").post()}sso(e){return new E(this).push("oauth","authorize",e+"-login")}portalLogin(){return new E(this).push("portal-login").post()}sbidCallbackUrl(){return new E(this).push("oauth","authorize","sbid-login").toUrl(!0)}}globalThis.isNodeJs&&(s.defaults.headers.common["User-Agent"]="Bitbar Cloud API Client for JavaScript v1.4.0"),s.defaults.maxContentLength=1073741824;class pe{get baseUrl(){return this.axiosConfig.baseURL}constructor(e){if(this.config=e,this.axiosConfig={},null==e)throw new Error("config cannot be empty");if(null==this.config.cloudUrl)throw new TypeError("cloudUrl cannot be empty");if("string"!=typeof this.config.cloudUrl)throw new TypeError("cloudUrl must be a string");if(!/^https?:\/\/.{2,}/.test(this.config.cloudUrl))throw new Error("cloudUrl doesn't look like a URL");if(this.axiosConfig.baseURL=this.config.cloudUrl.replace(/\/+$/,"")+"/api",this.config.v2=!!this.config.v2,this.config.v2&&(this.axiosConfig.baseURL+="/v2"),this.config.apiKey){if("string"!=typeof this.config.apiKey)throw new TypeError("apiKey must be a string");if(!/^[A-Za-z0-9]{32}$/.test(this.config.apiKey))throw new Error("apiKey is in the wrong format");this.axiosConfig.auth={username:this.config.apiKey,password:""}}this.axiosConfig.withCredentials=null!=e.withCredentials&&e.withCredentials,this.axios=s.create(this.axiosConfig)}account(e){return new ee(this,e)}admin(){return new $(this)}broker(){return new se(this)}clusters(){return new p(this).push("clusters")}cluster(e){return new L(this,e)}device(e){return new te(this,e)}deviceGroup(e){return new q(this,e)}deviceGroups(){return new p(this).push("device-groups")}devices(){return new z(this)}deviceSession(e){return new V(this,e)}deviceSessions(){return new p(this).push("device-sessions")}deviceStatistics(){return new p(this).push("device-statistics")}enums(){return new E(this).push("enums")}files(){return new p(this).push("files")}file(e){return new W(this,e)}labelGroups(){return new p(this).push("label-groups")}labelGroup(e){return new re(this,e)}labels(){return new p(this).push("labels")}licenses(){return new E(this).push("licenses")}license(){return new E(this).push("license")}ma(){throw new Error("Requires prototype extension covering ACL check")}me(){return this.user("me")}projects(){return new p(this).push("projects")}project(e){return new j(this,e)}properties(){return new X(this)}property(e){return new E(this).push("properties",e)}run(e){return new Y(this,e)}services(){return new J(this)}user(e){return new ce(this,e)}users(){return new Z(this)}userSession(){return new le(this)}}const Ee={API:pe,FilterBuilder:a};var de,Te,we,Ie,Ne,Ae,Re,Se,fe,Oe,Le,_e,Ce,me,ve,De,Ue,ge,be,Pe,ye,Fe,Me,Ge,xe,Be,ke,He,qe,We,Ve,Ke,Ye,je,$e,ze,Xe,Je,Ze,Qe,es,ss,ts,rs;e.AccessGroupScope=void 0,(de=e.AccessGroupScope||(e.AccessGroupScope={})).USER="USER",de.ACCOUNT="ACCOUNT",de.GLOBAL="GLOBAL",e.PaymentStatus=void 0,(Te=e.PaymentStatus||(e.PaymentStatus={})).SUCCEEDED="SUCCEEDED",Te.FAILED="FAILED",Te.REDIRECTED="REDIRECTED",e.PaymentMethod=void 0,(we=e.PaymentMethod||(e.PaymentMethod={})).PAYPAL="PAYPAL",we.BRAINTREE="BRAINTREE",we.STRIPE="STRIPE",we.INVOICE="INVOICE",we.PROMOTION="PROMOTION",we.AWS="AWS",e.ChargeType=void 0,(Ie=e.ChargeType||(e.ChargeType={})).USAGE_MOBILE="USAGE_MOBILE",Ie.CONCURRENCY_MOBILE="CONCURRENCY_MOBILE",Ie.CONCURRENCY_DESKTOP="CONCURRENCY_DESKTOP",e.DeactivateReason=void 0,(Ne=e.DeactivateReason||(e.DeactivateReason={})).INITIAL_FAILURE="INITIAL_FAILURE",Ne.SCA_FAILURE="SCA_FAILURE",Ne.CHARGE_FAILURE="CHARGE_FAILURE",Ne.CANCEL="CANCEL",Ne.SUSPENDED="SUSPENDED",Ne.ANOTHER_PURCHASE="ANOTHER_PURCHASE",e.InitStep=void 0,(Ae=e.InitStep||(e.InitStep={})).SKIP="SKIP",Ae.REBOOT="REBOOT",Ae.REBOOT_WITH_UNLOCK="REBOOT_WITH_UNLOCK",Ae.UNLOCK_ONLY="UNLOCK_ONLY",e.DeviceState=void 0,(Re=e.DeviceState||(e.DeviceState={})).OFFLINE_CLEANING="OFFLINE_CLEANING",Re.OFFLINE_DIRTY="OFFLINE_DIRTY",Re.OFFLINE_FREE="OFFLINE_FREE",Re.OFFLINE_TESTING="OFFLINE_TESTING",Re.ONLINE_CLEANING="ONLINE_CLEANING",Re.ONLINE_DIRTY="ONLINE_DIRTY",Re.ONLINE_FREE="ONLINE_FREE",Re.ONLINE_TESTING="ONLINE_TESTING",e.AdminErrorType=void 0,(Se=e.AdminErrorType||(e.AdminErrorType={})).ABORT_REQUEST="ABORT_REQUEST",Se.ADB_COMMAND_REJECTED="ADB_COMMAND_REJECTED",Se.ADB_SHELL_COMMAND_FAILED="ADB_SHELL_COMMAND_FAILED",Se.APP_LOCK_NOT_INSTALLED="APP_LOCK_NOT_INSTALLED",Se.DEVICE_OFFLINE="DEVICE_OFFLINE",Se.DEVICE_OUTPUT_NULL="DEVICE_OUTPUT_NULL",Se.GAMEBENCH_ERROR="GAMEBENCH_ERROR",Se.GAMEBENCH_NOT_SUPPORTED="GAMEBENCH_NOT_SUPPORTED",Se.GRANT_FAILED="GRANT_FAILED",Se.INSTALL_FAILED="INSTALL_FAILED",Se.INTERACTIVE_SETUP_FAILED="INTERACTIVE_SETUP_FAILED",Se.INTERNAL_INSTALL_FAILED="INTERNAL_INSTALL_FAILED",Se.INVALID_TEST_SESSION_FILE="INVALID_TEST_SESSION_FILE",Se.LOCK_EXPIRED="LOCK_EXPIRED",Se.LOCK_TIMEOUT="LOCK_TIMEOUT",Se.NO_NETWORK_CONNECTION="NO_NETWORK_CONNECTION",Se.OTHER="OTHER",Se.REBOOTING_TIMEOUT="REBOOTING_TIMEOUT",Se.REPACKAGING="REPACKAGING",Se.RESULTS_PREPARING="RESULTS_PREPARING",Se.RESULTS_PROCESSING="RESULTS_PROCESSING",Se.RESULTS_SENDING="RESULTS_SENDING",Se.STEP_TIMEOUT="STEP_TIMEOUT",Se.SYSTEM_FAILURE="SYSTEM_FAILURE",Se.TEST_RUN_FAILED="TEST_RUN_FAILED",Se.TEST_RUN_INTERRUPTED="TEST_RUN_INTERRUPTED",Se.TEST_RUN_TIMEOUT="TEST_RUN_TIMEOUT",Se.TEST_RUN_WARNED="TEST_RUN_WARNED",Se.TEST_TIMEOUT="TEST_TIMEOUT",Se.VNC_CONNECTION_SETUP_FAILED="VNC_CONNECTION_SETUP_FAILED",Se.XCRUN_INSTRUMENTS_COMMAND_FAILED="XCRUN_INSTRUMENTS_COMMAND_FAILED",Se.XCRUN_INSTRUMENTS_JS_ERROR="XCRUN_INSTRUMENTS_JS_ERROR",e.FrameworkType=void 0,(fe=e.FrameworkType||(e.FrameworkType={})).AUTOMATIC="AUTOMATIC",fe.MANUAL_APP="MANUAL_APP",fe.MANUAL_WEB="MANUAL_WEB",fe.REMOTE="REMOTE",e.BillingType=void 0,(Oe=e.BillingType||(e.BillingType={})).BUY="BUY",Oe.CHARGE="CHARGE",Oe.CANCEL="CANCEL",e.BrokerType=void 0,(Le=e.BrokerType||(e.BrokerType={})).MOBILE="MOBILE",Le.DESKTOP="DESKTOP",e.ClusterState=void 0,(_e=e.ClusterState||(e.ClusterState={}))[_e.OFFLINE=0]="OFFLINE",_e.ONLINE="ONLINE",_e.RESTARTING="RESTARTING",_e.QUIET_DOWN="QUIET_DOWN",_e.MAINTENANCE="MAINTENANCE",e.DeviceGroupOrigin=void 0,(Ce=e.DeviceGroupOrigin||(e.DeviceGroupOrigin={})).STATIC="STATIC",Ce.DYNAMIC="DYNAMIC",Ce.HYBRID="HYBRID",e.Platform=void 0,(me=e.Platform||(e.Platform={})).IOS="IOS",me.ANDROID="ANDROID",me.WINDOWS="WINDOWS",me.MAC="MAC",me.LINUX="LINUX",me.UNDEFINED="UNDEFINED",e.SupportedCreators=void 0,(ve=e.SupportedCreators||(e.SupportedCreators={})).MANUAL="MANUAL",ve.ROBOT="ROBOT",ve.AUTOMATIC="AUTOMATIC",e.LockReason=void 0,(De=e.LockReason||(e.LockReason={})).TESTING="TESTING",De.CLEANING="CLEANING",De.NOT_OPERATIONAL="NOT_OPERATIONAL",e.CriterionField=void 0,(Ue=e.CriterionField||(e.CriterionField={})).NAME="NAME",Ue.FINGERPRINT="FINGERPRINT",Ue.SERIAL_ID="SERIAL_ID",Ue.UNLOCK_GESTURE="UNLOCK_GESTURE",Ue.SOFTWARE_VERSION="SOFTWARE_VERSION",Ue.INIT_STEP="INIT_STEP",Ue.ACCOUNT="ACCOUNT",Ue.BROWSERS="BROWSERS",e.RetentionStrategy=void 0,(ge=e.RetentionStrategy||(e.RetentionStrategy={})).CLUSTER_ON_OFF="CLUSTER_ON_OFF",ge.MIN_FREE_MAX_TOTAL="MIN_FREE_MAX_TOTAL",ge.POOL_MANAGER_AWARE="POOL_MANAGER_AWARE",e.ProblemType=void 0,(be=e.ProblemType||(e.ProblemType={})).CLEANING="CLEANING",be.DIRTY="DIRTY",be.OFFLINE="OFFLINE",be.LOW_BATTERY="LOW_BATTERY",be.HIGH_FAIL_RATE="HIGH_FAIL_RATE",be.NO_INTERNET_CONNECTION="NO_INTERNET_CONNECTION",e.DeviceSessionType=void 0,(Pe=e.DeviceSessionType||(e.DeviceSessionType={})).AUTOMATIC="AUTOMATIC",Pe.MANUAL="MANUAL",Pe.MANUAL_APP="MANUAL_APP",Pe.MANUAL_WEB="MANUAL_WEB",Pe.REMOTE="REMOTE",e.RetryState=void 0,(ye=e.RetryState||(e.RetryState={})).NONE="NONE",ye.MANUAL="MANUAL",ye.AUTO="AUTO",e.DeviceSessionState=void 0,(Fe=e.DeviceSessionState||(e.DeviceSessionState={})).ABORTED="ABORTED",Fe.EXCLUDED="EXCLUDED",Fe.FAILED="FAILED",Fe.RUNNING="RUNNING",Fe.SUCCEEDED="SUCCEEDED",Fe.TIMEOUT="TIMEOUT",Fe.WAITING="WAITING",Fe.WARNING="WARNING",e.DeviceSessionStepType=void 0,(Me=e.DeviceSessionStepType||(e.DeviceSessionStepType={})).WAITING="WAITING",Me.PREPARING="PREPARING",Me.UNINSTALL="UNINSTALL",Me.INSTALL="INSTALL",Me.RUNNING="RUNNING",Me.SENDING_RESULTS="SENDING_RESULTS",Me.PROCESSING_RESULTS="PROCESSING_RESULTS",e.SessionReleaseReason=void 0,(Ge=e.SessionReleaseReason||(e.SessionReleaseReason={})).INACTIVITY="INACTIVITY",Ge.TIMEOUT="TIMEOUT",Ge.USER_ACTION="USER_ACTION",Ge.CHANGE_DEVICE="CHANGE_DEVICE",Ge.WEBSOCKET_CLOSED="WEBSOCKET_CLOSED",e.OsType=void 0,(xe=e.OsType||(e.OsType={})).IOS="IOS",xe.ANDROID="ANDROID",xe.DESKTOP="DESKTOP",xe.UNDEFINED="UNDEFINED",e.LicenseStatus=void 0,(Be=e.LicenseStatus||(e.LicenseStatus={})).ACTIVE="ACTIVE",Be.EXPIRED="EXPIRED",Be.INACTIVE="INACTIVE",Be.CLOSED="CLOSED",e.MaintenanceType=void 0,(ke=e.MaintenanceType||(e.MaintenanceType={})).BARE_METAL="BARE_METAL",ke.EC2="EC2",ke.VM="VM",e.NotificationChannel=void 0,(He=e.NotificationChannel||(e.NotificationChannel={})).SLACK="SLACK",He.EMAIL="EMAIL",He.WEBHOOK="WEBHOOK",e.NotificationScope=void 0,(qe=e.NotificationScope||(e.NotificationScope={})).ALL="ALL",qe.TEST_RUN="TEST_RUN",qe.TEST_RUN_FAILURE="TEST_RUN_FAILURE",qe.TEST_RUN_SUCCEEDED="TEST_RUN_SUCCEEDED",qe.MAINTENANCE="MAINTENANCE",qe.MAINTENANCE_RELEASE="MAINTENANCE_RELEASE",qe.CUSTOM="CUSTOM",qe.NEWS="NEWS",qe.SYSTEM="SYSTEM",qe.CHECK="CHECK",qe.PLAN_LIMIT_REACHED="PLAN_LIMIT_REACHED",qe.PLAN_INVOICE="PLAN_INVOICE",e.ArchivingStrategy=void 0,(We=e.ArchivingStrategy||(e.ArchivingStrategy={})).NEVER="NEVER",We.DAYS="DAYS",We.RUNS="RUNS",e.ScreenshotType=void 0,(Ve=e.ScreenshotType||(e.ScreenshotType={})).LANDSCAPE="LANDSCAPE",Ve.PORTRAIT="PORTRAIT",e.ServiceUnit=void 0,(Ke=e.ServiceUnit||(e.ServiceUnit={})).DAY="DAY",Ke.HOUR="HOUR",Ke.MONTH="MONTH",Ke.PROJECT="PROJECT",Ke.RUN="RUN",Ke.YEAR="YEAR",e.SharedResourceType=void 0,(Ye=e.SharedResourceType||(e.SharedResourceType={})).DEVICE_GROUP="DEVICE_GROUP",Ye.FILE="FILE",Ye.PROJECT="PROJECT",e.TestResult=void 0,(je=e.TestResult||(e.TestResult={})).PASSED="PASSED",je.FAILED="FAILED",je.SKIPPED="SKIPPED",je.NOT_AVAILABLE="NOT_AVAILABLE",e.LimitationType=void 0,($e=e.LimitationType||(e.LimitationType={})).PACKAGE="PACKAGE",$e.CLASS="CLASS",e.TestScheduler=void 0,(ze=e.TestScheduler||(e.TestScheduler={})).PARALLEL="PARALLEL",ze.SERIAL="SERIAL",ze.SINGLE="SINGLE",ze.ALL_INSTANCES="ALL_INSTANCES",e.TestState=void 0,(Xe=e.TestState||(e.TestState={})).WAITING="WAITING",Xe.RUNNING="RUNNING",Xe.FINISHED="FINISHED",e.TestRunConfigFileAction=void 0,(Je=e.TestRunConfigFileAction||(e.TestRunConfigFileAction={})).COPY_TO_DEVICE="COPY_TO_DEVICE",Je.INSTALL="INSTALL",Je.RUN_TEST="RUN_TEST",e.MfaStatus=void 0,(Ze=e.MfaStatus||(e.MfaStatus={})).VERIFICATION_NEED="VERIFICATION_NEED",Ze.DISABLED="DISABLED",Ze.ENABLED="ENABLED",e.UserStatus=void 0,(Qe=e.UserStatus||(e.UserStatus={})).INACTIVE="INACTIVE",Qe.DISABLED="DISABLED",Qe.ENABLED="ENABLED",e.FileDirection=void 0,(es=e.FileDirection||(e.FileDirection={})).INPUT="INPUT",es.OUTPUT="OUTPUT",e.FileInputType=void 0,(ss=e.FileInputType||(e.FileInputType={})).APPLICATION="APPLICATION",ss.TEST="TEST",ss.DATA="DATA",e.FileState=void 0,(ts=e.FileState||(e.FileState={})).PREPARING="PREPARING",ts.READY="READY",e.VisualTestImageType=void 0,(rs=e.VisualTestImageType||(e.VisualTestImageType={})).FULL_PAGE="FULL_PAGE",rs.VIEWPORT="VIEWPORT",rs.ELEMENT_SCREENSHOT="ELEMENT_SCREENSHOT",e.ALLOWED_HTTP_METHODS=h,e.API=pe,e.CloudAPIClient=Ee,e.FilterBuilder=a,e.IMAGE_FILES_FILTER=m,e.NON_MEDIA_FILES_FILTER=v,e.default=Ee,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=bitbar-cloud-api-client.min.js.map
{
"name": "@bitbar/cloud-api-client",
"version": "1.3.8",
"version": "1.4.0",
"description": "Bitbar Cloud API Client for JavaScript",

@@ -8,9 +8,9 @@ "main": "dist/bitbar-cloud-api-client.min.js",

"scripts": {
"preinstall": "node lockfile-exists.js && npx npm-force-resolutions || echo 'Lockfile not found'",
"build": "npx rollup -c",
"test": "npx jest --runInBand",
"test:coverage": "npx jest --coverage=true --runInBand",
"lint": "npx eslint -c .eslintrc.js --ext .ts src",
"docs": "npx typedoc --out ./docs --ignoreCompilerErrors --mode modules --module umd --target ES5 --theme default --includes ./src src/CloudAPIClient.ts"
"lint": "npx eslint .",
"docs": "npx typedoc --options typedoc.json"
},
"type": "module",
"resolutions": {

@@ -51,30 +51,35 @@ "terser": "5.16.5",

"devDependencies": {
"@babel/cli": "^7.23.2",
"@babel/core": "^7.23.2",
"@babel/cli": "^7.25.6",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.23.2",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.0.3",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.2.0",
"@types/jest": "^27.5.2",
"@types/node": "^14.18.12",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.2",
"@types/qs": "^6.9.7",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.3.0",
"core-js": "^3.32.0",
"eslint": "^8.46.0",
"jest": "^29.6.2",
"rollup": "^2.70.1",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"eslint": "9.14",
"globals": "^15.9.0",
"jest": "^29.7.0",
"rollup": "^4.28.1",
"rollup-plugin-delete": "^2.1.0",
"rollup-plugin-typescript2": "^0.36.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.7.0",
"tslib": "^2.3.1",
"typedoc": "0.17.8",
"typescript": "^4.6.3"
"typedoc": "0.27.6",
"typescript": "^5.7.2",
"typescript-eslint": "^8.3.0",
"typedoc-github-theme": "^0.2.1"
},
"dependencies": {
"@babel/runtime": "^7.22.10",
"@bitbar/finka": "^2.3.0",
"@bitbar/finka": "^2.4.4",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.1",
"@rollup/plugin-terser": "^0.4.4",
"axios": "^0.26.1",

@@ -85,2 +90,5 @@ "form-data": "^4.0.0",

},
"overrides": {
"glob": "^9.0.0"
},
"jest": {

@@ -87,0 +95,0 @@ "preset": "ts-jest",

@@ -93,6 +93,6 @@ # Bitbar Cloud API Client for JavaScript

If resource chain ends on method that is _singular_ (so in Swagger it returns single object) then it's descendant of
[APIResource](src/APIResource.coffee). It means that you can use all methods that are there.
[APIResource](src/APIResource.ts). It means that you can use all methods that are there.
If resource chain ends on method that is _plural_ (so in Swagger it returns list) then it's descendant of
[APIList](src/APIList.coffee). It means that you can use all methods that are there.
[APIList](src/APIList.ts). It means that you can use all methods that are there.

@@ -99,0 +99,0 @@ Both `APIResource` and `APIList` are children of `APIEntity`.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet