Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@influxdata/influxdb-client-apis

Package Overview
Dependencies
Maintainers
21
Versions
715
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@influxdata/influxdb-client-apis - npm Package Compare versions

Comparing version 1.3.0-nightly.5 to 1.3.0-nightly.6

dist/generated/FlagsAPI.d.ts

11

dist/generated/DashboardsAPI.d.ts
import { APIBase, RequestOptions } from '../APIBase';
import { AddResourceMemberRequestBody, Cell, CellUpdate, Cells, CreateCell, CreateDashboardRequest, Dashboard, DashboardWithViewProperties, Dashboards, LabelMapping, LabelResponse, LabelsResponse, OperationLogs, ResourceMember, ResourceMembers, ResourceOwner, ResourceOwners, View } from './types';
import { AddResourceMemberRequestBody, Cell, CellUpdate, CellWithViewProperties, Cells, CreateCell, CreateDashboardRequest, Dashboard, DashboardWithViewProperties, Dashboards, LabelMapping, LabelResponse, LabelsResponse, OperationLogs, ResourceMember, ResourceMembers, ResourceOwner, ResourceOwners, View } from './types';
export interface GetDashboardsRequest {

@@ -29,3 +29,10 @@ /** The owner ID. */

/** Patching of a dashboard */
body: Dashboard;
body: {
/** optional, when provided will replace the name */
name?: string;
/** optional, when provided will replace the description */
description?: string;
/** optional, when provided will replace all existing cells with the cells provided */
cells?: CellWithViewProperties;
};
}

@@ -32,0 +39,0 @@ export interface DeleteDashboardsIDRequest {

@@ -9,2 +9,3 @@ export * from './types';

export * from './DocumentsAPI';
export * from './FlagsAPI';
export * from './HealthAPI';

@@ -11,0 +12,0 @@ export * from './LabelsAPI';

@@ -8,2 +8,4 @@ import { APIBase, RequestOptions } from '../APIBase';

orgID?: string;
/** Filter organizations to a specific user ID. */
userID?: string;
}

@@ -10,0 +12,0 @@ export interface PostOrgsRequest {

@@ -10,2 +10,11 @@ import { APIBase, RequestOptions } from '../APIBase';

}
export interface CreateStackRequest {
/** Influx package to create. */
body: {
orgID?: string;
name?: string;
description?: string;
urls?: string[];
};
}
/**

@@ -15,2 +24,3 @@ * See

* * https://v2.docs.influxdata.com/v2.0/api/#operation/ApplyPkg
* * https://v2.docs.influxdata.com/v2.0/api/#operation/CreateStack
*/

@@ -36,3 +46,18 @@ export declare class PackagesAPI extends APIBase {

applyPkg(request: ApplyPkgRequest, requestOptions?: RequestOptions): Promise<PkgSummary>;
/**
* Create a new Influx package.
* See https://v2.docs.influxdata.com/v2.0/api/#operation/CreateStack
* @param request
* @return promise of response
*/
createStack(request: CreateStackRequest, requestOptions?: RequestOptions): Promise<{
id?: string;
orgID?: string;
name?: string;
description?: string;
urls?: string[];
readonly createdAt?: string;
readonly updatedAt?: string;
}>;
}
//# sourceMappingURL=PackagesAPI.d.ts.map

172

dist/generated/types.d.ts

@@ -16,2 +16,3 @@ export interface Error {

me?: string;
flags?: string;
orgs?: string;

@@ -728,3 +729,3 @@ query?: {

/** Colors define color encoding of data into a visualization */
colors: string[];
colors: DashboardColor[];
}

@@ -1258,2 +1259,4 @@ export declare type Check = CheckDiscriminator;

dialect?: Dialect;
/** Specifies the time that should be reported as "now" in the query. Default is the server's now time. */
now?: string;
}

@@ -1316,12 +1319,19 @@ /**

export interface PkgCreate {
orgIDs?: string[];
orgIDs?: Array<{
orgID?: string;
resourceFilters?: {
byLabel?: string[];
byResourceKind?: PkgCreateKind[];
};
}>;
resources?: {
id: string;
kind: 'bucket' | 'check' | 'dashboard' | 'label' | 'notification_endpoint' | 'notification_rule' | 'task' | 'telegraf' | 'variable';
kind: PkgCreateKind;
name?: string;
};
}
export declare type PkgCreateKind = 'bucket' | 'check' | 'dashboard' | 'label' | 'notification_endpoint' | 'notification_rule' | 'task' | 'telegraf' | 'variable';
export declare type Pkg = Array<{
apiVersion?: string;
kind?: 'Bucket' | 'CheckDeadman' | 'CheckThreshold' | 'Dashboard' | 'Label' | 'NotificationEndpointHTTP' | 'NotificationEndpointPagerDuty' | 'NotificationEndpointSlack' | 'NotificationRule' | 'NotificationEndpointHTTP' | 'Task' | 'Telegraf' | 'Variable';
kind?: 'Bucket' | 'CheckDeadman' | 'CheckThreshold' | 'Dashboard' | 'Label' | 'NotificationEndpointHTTP' | 'NotificationEndpointPagerDuty' | 'NotificationEndpointSlack' | 'NotificationRule' | 'Task' | 'Telegraf' | 'Variable';
meta?: {

@@ -1335,2 +1345,3 @@ name?: string;

orgID?: string;
stackID?: string;
package?: Pkg;

@@ -1349,2 +1360,3 @@ packages?: Pkg[];

orgID?: string;
pkgName?: string;
name?: string;

@@ -1356,2 +1368,3 @@ description?: string;

checks?: Array<CheckDiscriminator & {
pkgName?: string;
labelAssociations?: PkgSummaryLabel[];

@@ -1363,2 +1376,3 @@ }>;

orgID?: string;
pkgName?: string;
name?: string;

@@ -1370,5 +1384,8 @@ description?: string;

labelMappings?: Array<{
status?: string;
resourcePkgName?: string;
resourceName?: string;
resourceID?: string;
resourceType?: string;
labelPkgName?: string;
labelName?: string;

@@ -1380,8 +1397,10 @@ labelID?: string;

notificationEndpoints?: Array<NotificationEndpointDiscrimator & {
pkgName?: string;
labelAssociations?: PkgSummaryLabel[];
}>;
notificationRules?: Array<{
pkgName?: string;
name?: string;
description?: string;
endpointName?: string;
endpointPkgName?: string;
endpointID?: string;

@@ -1405,2 +1424,3 @@ endpointType?: string;

tasks?: Array<{
pkgName?: string;
id?: string;

@@ -1416,5 +1436,7 @@ name?: string;

telegrafConfigs?: Array<TelegrafRequest & {
pkgName?: string;
labelAssociations?: PkgSummaryLabel[];
}>;
variables?: Array<{
pkgName?: string;
id?: string;

@@ -1430,5 +1452,7 @@ orgID?: string;

buckets?: Array<{
stateStatus?: string;
id?: string;
name?: string;
pkgName?: string;
new?: {
name?: string;
description?: string;

@@ -1438,2 +1462,3 @@ retentionRules?: RetentionRules;

old?: {
name?: string;
description?: string;

@@ -1444,4 +1469,5 @@ retentionRules?: RetentionRules;

checks?: Array<{
stateStatus?: string;
id?: string;
name?: string;
pkgName?: string;
new?: CheckDiscriminator;

@@ -1451,10 +1477,22 @@ old?: CheckDiscriminator;

dashboards?: Array<{
name?: string;
description?: string;
charts?: PkgChart[];
stateStatus?: string;
id?: string;
pkgName?: string;
new?: {
name?: string;
description?: string;
charts?: PkgChart[];
};
old?: {
name?: string;
description?: string;
charts?: PkgChart[];
};
}>;
labels?: Array<{
stateStatus?: string;
id?: string;
name?: string;
pkgName?: string;
new?: {
name?: string;
color?: string;

@@ -1464,2 +1502,3 @@ description?: string;

old?: {
name?: string;
color?: string;

@@ -1470,12 +1509,15 @@ description?: string;

labelMappings?: Array<{
isNew?: boolean;
status?: string;
resourceType?: string;
resourceID?: string;
resourcePkgName?: string;
resourceName?: string;
labelID?: string;
labelPkgName?: string;
labelName?: string;
}>;
notificationEndpoints?: Array<{
stateStatus?: string;
id?: string;
name?: string;
pkgName?: string;
new?: NotificationEndpointDiscrimator;

@@ -1485,35 +1527,82 @@ old?: NotificationEndpointDiscrimator;

notificationRules?: Array<{
name?: string;
description?: string;
endpointName?: string;
endpointID?: string;
endpointType?: string;
every?: string;
offset?: string;
messageTemplate?: string;
status?: string;
statusRules?: Array<{
currentLevel?: string;
previousLevel?: string;
}>;
tagRules?: Array<{
key?: string;
value?: string;
operator?: string;
}>;
stateStatus?: string;
id?: string;
pkgName?: string;
new?: {
name?: string;
description?: string;
endpointName?: string;
endpointID?: string;
endpointType?: string;
every?: string;
offset?: string;
messageTemplate?: string;
status?: string;
statusRules?: Array<{
currentLevel?: string;
previousLevel?: string;
}>;
tagRules?: Array<{
key?: string;
value?: string;
operator?: string;
}>;
};
old?: {
name?: string;
description?: string;
endpointName?: string;
endpointID?: string;
endpointType?: string;
every?: string;
offset?: string;
messageTemplate?: string;
status?: string;
statusRules?: Array<{
currentLevel?: string;
previousLevel?: string;
}>;
tagRules?: Array<{
key?: string;
value?: string;
operator?: string;
}>;
};
}>;
tasks?: Array<{
name?: string;
cron?: string;
description?: string;
every?: string;
offset?: string;
query?: string;
status?: string;
stateStatus?: string;
id?: string;
pkgName?: string;
new?: {
name?: string;
cron?: string;
description?: string;
every?: string;
offset?: string;
query?: string;
status?: string;
};
old?: {
name?: string;
cron?: string;
description?: string;
every?: string;
offset?: string;
query?: string;
status?: string;
};
}>;
telegrafConfigs?: TelegrafRequest[];
telegrafConfigs?: Array<{
stateStatus?: string;
id?: string;
pkgName?: string;
new?: TelegrafRequest;
old?: TelegrafRequest;
}>;
variables?: Array<{
stateStatus?: string;
id?: string;
name?: string;
pkgName?: string;
new?: {
name?: string;
description?: string;

@@ -1523,2 +1612,3 @@ args?: VariableProperties;

old?: {
name?: string;
description?: string;

@@ -1539,2 +1629,3 @@ args?: VariableProperties;

orgID?: string;
pkgName?: string;
name?: string;

@@ -1715,2 +1806,3 @@ description?: string;

}
export declare type Flags = any;
export interface PasswordResetBody {

@@ -1717,0 +1809,0 @@ password: string;

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

!function(e,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports):"function"==typeof define&&define.amd?define(["exports"],s):s((e=e||self)["@influxdata/influxdb-client-apis"]={})}(this,(function(e){"use strict";class s{constructor(e){if(!e)throw new Error("No influxDB supplied!");if(!e.transport)throw new Error("No transport supplied!");this.transport=e.transport}queryString(e,s){return e&&s?s.reduce((s,t)=>{const r=e[t];return null!=r&&(s+=s?"&":"?",s+=encodeURIComponent(t)+"="+encodeURIComponent(String(r))),s},""):""}request(e,s,t={},r,a){const i=Object.assign(Object.assign({},r),{method:e});if(a&&((i.headers||(i.headers={}))["content-type"]=a),t.auth){const e=`${t.auth.user}:${t.auth.password}`;(i.headers||(i.headers={})).authorization=btoa(e)}return this.transport.request(s,t.body?t.body:"",i)}}e.AuthorizationsAPI=class extends s{constructor(e){super(e)}getAuthorizations(e,s){return this.request("GET",`/api/v2/authorizations${this.queryString(e,["userID","user","orgID","org"])}`,e,s)}postAuthorizations(e,s){return this.request("POST","/api/v2/authorizations",e,s,"application/json")}getAuthorizationsID(e,s){return this.request("GET",`/api/v2/authorizations/${e.authID}`,e,s)}patchAuthorizationsID(e,s){return this.request("PATCH",`/api/v2/authorizations/${e.authID}`,e,s,"application/json")}deleteAuthorizationsID(e,s){return this.request("DELETE",`/api/v2/authorizations/${e.authID}`,e,s)}},e.BucketsAPI=class extends s{constructor(e){super(e)}getBuckets(e,s){return this.request("GET",`/api/v2/buckets${this.queryString(e,["offset","limit","org","orgID","name"])}`,e,s)}postBuckets(e,s){return this.request("POST","/api/v2/buckets",e,s,"application/json")}getBucketsID(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}`,e,s)}patchBucketsID(e,s){return this.request("PATCH",`/api/v2/buckets/${e.bucketID}`,e,s,"application/json")}deleteBucketsID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}`,e,s)}getBucketsIDLabels(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/labels`,e,s)}postBucketsIDLabels(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/labels`,e,s,"application/json")}deleteBucketsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/labels/${e.labelID}`,e,s)}getBucketsIDMembers(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/members`,e,s)}postBucketsIDMembers(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/members`,e,s,"application/json")}deleteBucketsIDMembersID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/members/${e.userID}`,e,s)}getBucketsIDOwners(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/owners`,e,s)}postBucketsIDOwners(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/owners`,e,s,"application/json")}deleteBucketsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/owners/${e.userID}`,e,s)}getBucketsIDLogs(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},e.ChecksAPI=class extends s{constructor(e){super(e)}getChecks(e,s){return this.request("GET",`/api/v2/checks${this.queryString(e,["offset","limit","orgID"])}`,e,s)}createCheck(e,s){return this.request("POST","/api/v2/checks",e,s,"application/json")}getChecksID(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}`,e,s)}putChecksID(e,s){return this.request("PUT",`/api/v2/checks/${e.checkID}`,e,s,"application/json")}patchChecksID(e,s){return this.request("PATCH",`/api/v2/checks/${e.checkID}`,e,s,"application/json")}deleteChecksID(e,s){return this.request("DELETE",`/api/v2/checks/${e.checkID}`,e,s)}getChecksIDLabels(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}/labels`,e,s)}postChecksIDLabels(e,s){return this.request("POST",`/api/v2/checks/${e.checkID}/labels`,e,s,"application/json")}deleteChecksIDLabelsID(e,s){return this.request("DELETE",`/api/v2/checks/${e.checkID}/labels/${e.labelID}`,e,s)}getChecksIDQuery(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}/query`,e,s)}},e.DashboardsAPI=class extends s{constructor(e){super(e)}getDashboards(e,s){return this.request("GET",`/api/v2/dashboards${this.queryString(e,["owner","sortBy","id","orgID","org"])}`,e,s)}postDashboards(e,s){return this.request("POST","/api/v2/dashboards",e,s,"application/json")}getDashboardsID(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}${this.queryString(e,["include"])}`,e,s)}patchDashboardsID(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}`,e,s,"application/json")}deleteDashboardsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}`,e,s)}postDashboardsIDCells(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}putDashboardsIDCells(e,s){return this.request("PUT",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}patchDashboardsIDCellsID(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s,"application/json")}deleteDashboardsIDCellsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s)}getDashboardsIDCellsIDView(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s)}patchDashboardsIDCellsIDView(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s,"application/json")}getDashboardsIDLabels(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s)}postDashboardsIDLabels(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s,"application/json")}deleteDashboardsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/labels/${e.labelID}`,e,s)}getDashboardsIDMembers(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/members`,e,s)}postDashboardsIDMembers(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/members`,e,s,"application/json")}deleteDashboardsIDMembersID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/members/${e.userID}`,e,s)}getDashboardsIDOwners(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s)}postDashboardsIDOwners(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s,"application/json")}deleteDashboardsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/owners/${e.userID}`,e,s)}getDashboardsIDLogs(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},e.DeleteAPI=class extends s{constructor(e){super(e)}postDelete(e,s){return this.request("POST",`/api/v2/delete${this.queryString(e,["org","bucket","orgID","bucketID"])}`,e,s,"application/json")}},e.DocumentsAPI=class extends s{constructor(e){super(e)}getDocumentsTemplates(e,s){return this.request("GET",`/api/v2/documents/templates${this.queryString(e,["org","orgID"])}`,e,s)}postDocumentsTemplates(e,s){return this.request("POST","/api/v2/documents/templates",e,s,"application/json")}getDocumentsTemplatesID(e,s){return this.request("GET",`/api/v2/documents/templates/${e.templateID}`,e,s)}putDocumentsTemplatesID(e,s){return this.request("PUT",`/api/v2/documents/templates/${e.templateID}`,e,s,"application/json")}deleteDocumentsTemplatesID(e,s){return this.request("DELETE",`/api/v2/documents/templates/${e.templateID}`,e,s)}getDocumentsTemplatesIDLabels(e,s){return this.request("GET",`/api/v2/documents/templates/${e.templateID}/labels`,e,s)}postDocumentsTemplatesIDLabels(e,s){return this.request("POST",`/api/v2/documents/templates/${e.templateID}/labels`,e,s,"application/json")}deleteDocumentsTemplatesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/documents/templates/${e.templateID}/labels/${e.labelID}`,e,s)}},e.HealthAPI=class extends s{constructor(e){super(e)}getHealth(e,s){return this.request("GET","/health",e,s)}},e.LabelsAPI=class extends s{constructor(e){super(e)}getLabels(e,s){return this.request("GET",`/api/v2/labels${this.queryString(e,["orgID"])}`,e,s)}postLabels(e,s){return this.request("POST","/api/v2/labels",e,s,"application/json")}getLabelsID(e,s){return this.request("GET",`/api/v2/labels/${e.labelID}`,e,s)}patchLabelsID(e,s){return this.request("PATCH",`/api/v2/labels/${e.labelID}`,e,s,"application/json")}deleteLabelsID(e,s){return this.request("DELETE",`/api/v2/labels/${e.labelID}`,e,s)}},e.MeAPI=class extends s{constructor(e){super(e)}getMe(e,s){return this.request("GET","/api/v2/me",e,s)}putMePassword(e,s){return this.request("PUT","/api/v2/me/password",e,s,"application/json")}},e.NotificationEndpointsAPI=class extends s{constructor(e){super(e)}getNotificationEndpoints(e,s){return this.request("GET",`/api/v2/notificationEndpoints${this.queryString(e,["offset","limit","orgID"])}`,e,s)}createNotificationEndpoint(e,s){return this.request("POST","/api/v2/notificationEndpoints",e,s,"application/json")}getNotificationEndpointsID(e,s){return this.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s)}putNotificationEndpointsID(e,s){return this.request("PUT",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s,"application/json")}patchNotificationEndpointsID(e,s){return this.request("PATCH",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s,"application/json")}deleteNotificationEndpointsID(e,s){return this.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s)}getNotificationEndpointsIDLabels(e,s){return this.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s)}postNotificationEndpointIDLabels(e,s){return this.request("POST",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s,"application/json")}deleteNotificationEndpointsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}/labels/${e.labelID}`,e,s)}},e.NotificationRulesAPI=class extends s{constructor(e){super(e)}getNotificationRules(e,s){return this.request("GET",`/api/v2/notificationRules${this.queryString(e,["offset","limit","orgID","checkID","tag"])}`,e,s)}createNotificationRule(e,s){return this.request("POST","/api/v2/notificationRules",e,s,"application/json")}getNotificationRulesID(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}`,e,s)}putNotificationRulesID(e,s){return this.request("PUT",`/api/v2/notificationRules/${e.ruleID}`,e,s,"application/json")}patchNotificationRulesID(e,s){return this.request("PATCH",`/api/v2/notificationRules/${e.ruleID}`,e,s,"application/json")}deleteNotificationRulesID(e,s){return this.request("DELETE",`/api/v2/notificationRules/${e.ruleID}`,e,s)}getNotificationRulesIDLabels(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s)}postNotificationRuleIDLabels(e,s){return this.request("POST",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s,"application/json")}deleteNotificationRulesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/notificationRules/${e.ruleID}/labels/${e.labelID}`,e,s)}getNotificationRulesIDQuery(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}/query`,e,s)}},e.OrgsAPI=class extends s{constructor(e){super(e)}getOrgs(e,s){return this.request("GET",`/api/v2/orgs${this.queryString(e,["org","orgID"])}`,e,s)}postOrgs(e,s){return this.request("POST","/api/v2/orgs",e,s,"application/json")}getOrgsID(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}`,e,s)}patchOrgsID(e,s){return this.request("PATCH",`/api/v2/orgs/${e.orgID}`,e,s,"application/json")}deleteOrgsID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}`,e,s)}getOrgsIDLabels(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/labels`,e,s)}postOrgsIDLabels(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/labels`,e,s,"application/json")}deleteOrgsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/labels/${e.labelID}`,e,s)}getOrgsIDSecrets(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/secrets`,e,s)}patchOrgsIDSecrets(e,s){return this.request("PATCH",`/api/v2/orgs/${e.orgID}/secrets`,e,s,"application/json")}postOrgsIDSecrets(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/secrets/delete`,e,s,"application/json")}getOrgsIDMembers(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/members`,e,s)}postOrgsIDMembers(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/members`,e,s,"application/json")}deleteOrgsIDMembersID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/members/${e.userID}`,e,s)}getOrgsIDOwners(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/owners`,e,s)}postOrgsIDOwners(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/owners`,e,s,"application/json")}deleteOrgsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/owners/${e.userID}`,e,s)}getOrgsIDLogs(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},e.PackagesAPI=class extends s{constructor(e){super(e)}createPkg(e,s){return this.request("POST","/api/v2/packages",e,s,"application/json")}applyPkg(e,s){return this.request("POST","/api/v2/packages/apply",e,s,"application/json")}},e.QueryAPI=class extends s{constructor(e){super(e)}postQueryAst(e,s){return this.request("POST","/api/v2/query/ast",e,s,"application/json")}getQuerySuggestions(e,s){return this.request("GET","/api/v2/query/suggestions",e,s)}getQuerySuggestionsName(e,s){return this.request("GET",`/api/v2/query/suggestions/${e.name}`,e,s)}postQueryAnalyze(e,s){return this.request("POST","/api/v2/query/analyze",e,s,"application/json")}postQuery(e,s){return this.request("POST",`/api/v2/query${this.queryString(e,["org","orgID"])}`,e,s,"application/json")}},e.ReadyAPI=class extends s{constructor(e){super(e)}getReady(e,s){return this.request("GET","/ready",e,s)}},e.RootAPI=class extends s{constructor(e){super(e)}getRoutes(e,s){return this.request("GET","/api/v2/",e,s)}},e.ScrapersAPI=class extends s{constructor(e){super(e)}getScrapers(e,s){return this.request("GET",`/api/v2/scrapers${this.queryString(e,["name","id","orgID","org"])}`,e,s)}postScrapers(e,s){return this.request("POST","/api/v2/scrapers",e,s,"application/json")}getScrapersID(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}`,e,s)}patchScrapersID(e,s){return this.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}`,e,s,"application/json")}deleteScrapersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}`,e,s)}getScrapersIDLabels(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s)}postScrapersIDLabels(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s,"application/json")}patchScrapersIDLabelsID(e,s){return this.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s,"application/json")}deleteScrapersIDLabelsID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s)}getScrapersIDMembers(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s)}postScrapersIDMembers(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s,"application/json")}deleteScrapersIDMembersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/members/${e.userID}`,e,s)}getScrapersIDOwners(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s)}postScrapersIDOwners(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s,"application/json")}deleteScrapersIDOwnersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/owners/${e.userID}`,e,s)}},e.SetupAPI=class extends s{constructor(e){super(e)}getSetup(e,s){return this.request("GET","/api/v2/setup",e,s)}postSetup(e,s){return this.request("POST","/api/v2/setup",e,s,"application/json")}},e.SigninAPI=class extends s{constructor(e){super(e)}postSignin(e,s){return this.request("POST","/api/v2/signin",e,s)}},e.SignoutAPI=class extends s{constructor(e){super(e)}postSignout(e,s){return this.request("POST","/api/v2/signout",e,s)}},e.SourcesAPI=class extends s{constructor(e){super(e)}getSources(e,s){return this.request("GET",`/api/v2/sources${this.queryString(e,["org"])}`,e,s)}postSources(e,s){return this.request("POST","/api/v2/sources",e,s,"application/json")}getSourcesID(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}`,e,s)}patchSourcesID(e,s){return this.request("PATCH",`/api/v2/sources/${e.sourceID}`,e,s,"application/json")}deleteSourcesID(e,s){return this.request("DELETE",`/api/v2/sources/${e.sourceID}`,e,s)}getSourcesIDHealth(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}/health`,e,s)}getSourcesIDBuckets(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}/buckets${this.queryString(e,["org"])}`,e,s)}},e.TasksAPI=class extends s{constructor(e){super(e)}getTasks(e,s){return this.request("GET",`/api/v2/tasks${this.queryString(e,["name","after","user","org","orgID","status","limit"])}`,e,s)}postTasks(e,s){return this.request("POST","/api/v2/tasks",e,s,"application/json")}getTasksID(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}`,e,s)}patchTasksID(e,s){return this.request("PATCH",`/api/v2/tasks/${e.taskID}`,e,s,"application/json")}deleteTasksID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}`,e,s)}getTasksIDRuns(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs${this.queryString(e,["after","limit","afterTime","beforeTime"])}`,e,s)}postTasksIDRuns(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/runs`,e,s,"application/json")}getTasksIDRunsID(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}deleteTasksIDRunsID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}postTasksIDRunsIDRetry(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/retry`,e,s)}getTasksIDLogs(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/logs`,e,s)}getTasksIDRunsIDLogs(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/logs`,e,s)}getTasksIDLabels(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/labels`,e,s)}postTasksIDLabels(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/labels`,e,s,"application/json")}deleteTasksIDLabelsID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/labels/${e.labelID}`,e,s)}getTasksIDMembers(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/members`,e,s)}postTasksIDMembers(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/members`,e,s,"application/json")}deleteTasksIDMembersID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/members/${e.userID}`,e,s)}getTasksIDOwners(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/owners`,e,s)}postTasksIDOwners(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/owners`,e,s,"application/json")}deleteTasksIDOwnersID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/owners/${e.userID}`,e,s)}},e.TelegrafAPI=class extends s{constructor(e){super(e)}getTelegrafPlugins(e,s){return this.request("GET",`/api/v2/telegraf/plugins${this.queryString(e,["type"])}`,e,s)}},e.TelegrafsAPI=class extends s{constructor(e){super(e)}getTelegrafs(e,s){return this.request("GET",`/api/v2/telegrafs${this.queryString(e,["orgID"])}`,e,s)}postTelegrafs(e,s){return this.request("POST","/api/v2/telegrafs",e,s,"application/json")}getTelegrafsID(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}`,e,s)}putTelegrafsID(e,s){return this.request("PUT",`/api/v2/telegrafs/${e.telegrafID}`,e,s,"application/json")}deleteTelegrafsID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}`,e,s)}getTelegrafsIDLabels(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s)}postTelegrafsIDLabels(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s,"application/json")}deleteTelegrafsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/labels/${e.labelID}`,e,s)}getTelegrafsIDMembers(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s)}postTelegrafsIDMembers(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s,"application/json")}deleteTelegrafsIDMembersID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/members/${e.userID}`,e,s)}getTelegrafsIDOwners(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s)}postTelegrafsIDOwners(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s,"application/json")}deleteTelegrafsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/owners/${e.userID}`,e,s)}},e.UsersAPI=class extends s{constructor(e){super(e)}getUsers(e,s){return this.request("GET","/api/v2/users",e,s)}postUsers(e,s){return this.request("POST","/api/v2/users",e,s,"application/json")}getUsersID(e,s){return this.request("GET",`/api/v2/users/${e.userID}`,e,s)}patchUsersID(e,s){return this.request("PATCH",`/api/v2/users/${e.userID}`,e,s,"application/json")}deleteUsersID(e,s){return this.request("DELETE",`/api/v2/users/${e.userID}`,e,s)}putUsersIDPassword(e,s){return this.request("PUT",`/api/v2/users/${e.userID}/password`,e,s,"application/json")}getUsersIDLogs(e,s){return this.request("GET",`/api/v2/users/${e.userID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},e.VariablesAPI=class extends s{constructor(e){super(e)}getVariables(e,s){return this.request("GET",`/api/v2/variables${this.queryString(e,["org","orgID"])}`,e,s)}postVariables(e,s){return this.request("POST","/api/v2/variables",e,s,"application/json")}getVariablesID(e,s){return this.request("GET",`/api/v2/variables/${e.variableID}`,e,s)}putVariablesID(e,s){return this.request("PUT",`/api/v2/variables/${e.variableID}`,e,s,"application/json")}patchVariablesID(e,s){return this.request("PATCH",`/api/v2/variables/${e.variableID}`,e,s,"application/json")}deleteVariablesID(e,s){return this.request("DELETE",`/api/v2/variables/${e.variableID}`,e,s)}getVariablesIDLabels(e,s){return this.request("GET",`/api/v2/variables/${e.variableID}/labels`,e,s)}postVariablesIDLabels(e,s){return this.request("POST",`/api/v2/variables/${e.variableID}/labels`,e,s,"application/json")}deleteVariablesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/variables/${e.variableID}/labels/${e.labelID}`,e,s)}},e.WriteAPI=class extends s{constructor(e){super(e)}postWrite(e,s){return this.request("POST",`/api/v2/write${this.queryString(e,["org","orgID","bucket","precision"])}`,e,s,"text/plain")}},Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports):"function"==typeof define&&define.amd?define(["exports"],s):s((e=e||self)["@influxdata/influxdb-client-apis"]={})}(this,(function(e){"use strict";class s{constructor(e){if(!e)throw new Error("No influxDB supplied!");if(!e.transport)throw new Error("No transport supplied!");this.transport=e.transport}queryString(e,s){return e&&s?s.reduce((s,t)=>{const r=e[t];return null!=r&&(s+=s?"&":"?",s+=encodeURIComponent(t)+"="+encodeURIComponent(String(r))),s},""):""}request(e,s,t={},r,a){const i=Object.assign(Object.assign({},r),{method:e});if(a&&((i.headers||(i.headers={}))["content-type"]=a),t.auth){const e=`${t.auth.user}:${t.auth.password}`;(i.headers||(i.headers={})).authorization=btoa(e)}return this.transport.request(s,t.body?t.body:"",i)}}e.AuthorizationsAPI=class extends s{constructor(e){super(e)}getAuthorizations(e,s){return this.request("GET",`/api/v2/authorizations${this.queryString(e,["userID","user","orgID","org"])}`,e,s)}postAuthorizations(e,s){return this.request("POST","/api/v2/authorizations",e,s,"application/json")}getAuthorizationsID(e,s){return this.request("GET",`/api/v2/authorizations/${e.authID}`,e,s)}patchAuthorizationsID(e,s){return this.request("PATCH",`/api/v2/authorizations/${e.authID}`,e,s,"application/json")}deleteAuthorizationsID(e,s){return this.request("DELETE",`/api/v2/authorizations/${e.authID}`,e,s)}},e.BucketsAPI=class extends s{constructor(e){super(e)}getBuckets(e,s){return this.request("GET",`/api/v2/buckets${this.queryString(e,["offset","limit","org","orgID","name"])}`,e,s)}postBuckets(e,s){return this.request("POST","/api/v2/buckets",e,s,"application/json")}getBucketsID(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}`,e,s)}patchBucketsID(e,s){return this.request("PATCH",`/api/v2/buckets/${e.bucketID}`,e,s,"application/json")}deleteBucketsID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}`,e,s)}getBucketsIDLabels(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/labels`,e,s)}postBucketsIDLabels(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/labels`,e,s,"application/json")}deleteBucketsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/labels/${e.labelID}`,e,s)}getBucketsIDMembers(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/members`,e,s)}postBucketsIDMembers(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/members`,e,s,"application/json")}deleteBucketsIDMembersID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/members/${e.userID}`,e,s)}getBucketsIDOwners(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/owners`,e,s)}postBucketsIDOwners(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/owners`,e,s,"application/json")}deleteBucketsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/owners/${e.userID}`,e,s)}getBucketsIDLogs(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},e.ChecksAPI=class extends s{constructor(e){super(e)}getChecks(e,s){return this.request("GET",`/api/v2/checks${this.queryString(e,["offset","limit","orgID"])}`,e,s)}createCheck(e,s){return this.request("POST","/api/v2/checks",e,s,"application/json")}getChecksID(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}`,e,s)}putChecksID(e,s){return this.request("PUT",`/api/v2/checks/${e.checkID}`,e,s,"application/json")}patchChecksID(e,s){return this.request("PATCH",`/api/v2/checks/${e.checkID}`,e,s,"application/json")}deleteChecksID(e,s){return this.request("DELETE",`/api/v2/checks/${e.checkID}`,e,s)}getChecksIDLabels(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}/labels`,e,s)}postChecksIDLabels(e,s){return this.request("POST",`/api/v2/checks/${e.checkID}/labels`,e,s,"application/json")}deleteChecksIDLabelsID(e,s){return this.request("DELETE",`/api/v2/checks/${e.checkID}/labels/${e.labelID}`,e,s)}getChecksIDQuery(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}/query`,e,s)}},e.DashboardsAPI=class extends s{constructor(e){super(e)}getDashboards(e,s){return this.request("GET",`/api/v2/dashboards${this.queryString(e,["owner","sortBy","id","orgID","org"])}`,e,s)}postDashboards(e,s){return this.request("POST","/api/v2/dashboards",e,s,"application/json")}getDashboardsID(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}${this.queryString(e,["include"])}`,e,s)}patchDashboardsID(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}`,e,s,"application/json")}deleteDashboardsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}`,e,s)}postDashboardsIDCells(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}putDashboardsIDCells(e,s){return this.request("PUT",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}patchDashboardsIDCellsID(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s,"application/json")}deleteDashboardsIDCellsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s)}getDashboardsIDCellsIDView(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s)}patchDashboardsIDCellsIDView(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s,"application/json")}getDashboardsIDLabels(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s)}postDashboardsIDLabels(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s,"application/json")}deleteDashboardsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/labels/${e.labelID}`,e,s)}getDashboardsIDMembers(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/members`,e,s)}postDashboardsIDMembers(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/members`,e,s,"application/json")}deleteDashboardsIDMembersID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/members/${e.userID}`,e,s)}getDashboardsIDOwners(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s)}postDashboardsIDOwners(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s,"application/json")}deleteDashboardsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/owners/${e.userID}`,e,s)}getDashboardsIDLogs(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},e.DeleteAPI=class extends s{constructor(e){super(e)}postDelete(e,s){return this.request("POST",`/api/v2/delete${this.queryString(e,["org","bucket","orgID","bucketID"])}`,e,s,"application/json")}},e.DocumentsAPI=class extends s{constructor(e){super(e)}getDocumentsTemplates(e,s){return this.request("GET",`/api/v2/documents/templates${this.queryString(e,["org","orgID"])}`,e,s)}postDocumentsTemplates(e,s){return this.request("POST","/api/v2/documents/templates",e,s,"application/json")}getDocumentsTemplatesID(e,s){return this.request("GET",`/api/v2/documents/templates/${e.templateID}`,e,s)}putDocumentsTemplatesID(e,s){return this.request("PUT",`/api/v2/documents/templates/${e.templateID}`,e,s,"application/json")}deleteDocumentsTemplatesID(e,s){return this.request("DELETE",`/api/v2/documents/templates/${e.templateID}`,e,s)}getDocumentsTemplatesIDLabels(e,s){return this.request("GET",`/api/v2/documents/templates/${e.templateID}/labels`,e,s)}postDocumentsTemplatesIDLabels(e,s){return this.request("POST",`/api/v2/documents/templates/${e.templateID}/labels`,e,s,"application/json")}deleteDocumentsTemplatesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/documents/templates/${e.templateID}/labels/${e.labelID}`,e,s)}},e.FlagsAPI=class extends s{constructor(e){super(e)}getFlags(e,s){return this.request("GET","/api/v2/flags",e,s)}},e.HealthAPI=class extends s{constructor(e){super(e)}getHealth(e,s){return this.request("GET","/health",e,s)}},e.LabelsAPI=class extends s{constructor(e){super(e)}getLabels(e,s){return this.request("GET",`/api/v2/labels${this.queryString(e,["orgID"])}`,e,s)}postLabels(e,s){return this.request("POST","/api/v2/labels",e,s,"application/json")}getLabelsID(e,s){return this.request("GET",`/api/v2/labels/${e.labelID}`,e,s)}patchLabelsID(e,s){return this.request("PATCH",`/api/v2/labels/${e.labelID}`,e,s,"application/json")}deleteLabelsID(e,s){return this.request("DELETE",`/api/v2/labels/${e.labelID}`,e,s)}},e.MeAPI=class extends s{constructor(e){super(e)}getMe(e,s){return this.request("GET","/api/v2/me",e,s)}putMePassword(e,s){return this.request("PUT","/api/v2/me/password",e,s,"application/json")}},e.NotificationEndpointsAPI=class extends s{constructor(e){super(e)}getNotificationEndpoints(e,s){return this.request("GET",`/api/v2/notificationEndpoints${this.queryString(e,["offset","limit","orgID"])}`,e,s)}createNotificationEndpoint(e,s){return this.request("POST","/api/v2/notificationEndpoints",e,s,"application/json")}getNotificationEndpointsID(e,s){return this.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s)}putNotificationEndpointsID(e,s){return this.request("PUT",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s,"application/json")}patchNotificationEndpointsID(e,s){return this.request("PATCH",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s,"application/json")}deleteNotificationEndpointsID(e,s){return this.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s)}getNotificationEndpointsIDLabels(e,s){return this.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s)}postNotificationEndpointIDLabels(e,s){return this.request("POST",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s,"application/json")}deleteNotificationEndpointsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}/labels/${e.labelID}`,e,s)}},e.NotificationRulesAPI=class extends s{constructor(e){super(e)}getNotificationRules(e,s){return this.request("GET",`/api/v2/notificationRules${this.queryString(e,["offset","limit","orgID","checkID","tag"])}`,e,s)}createNotificationRule(e,s){return this.request("POST","/api/v2/notificationRules",e,s,"application/json")}getNotificationRulesID(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}`,e,s)}putNotificationRulesID(e,s){return this.request("PUT",`/api/v2/notificationRules/${e.ruleID}`,e,s,"application/json")}patchNotificationRulesID(e,s){return this.request("PATCH",`/api/v2/notificationRules/${e.ruleID}`,e,s,"application/json")}deleteNotificationRulesID(e,s){return this.request("DELETE",`/api/v2/notificationRules/${e.ruleID}`,e,s)}getNotificationRulesIDLabels(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s)}postNotificationRuleIDLabels(e,s){return this.request("POST",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s,"application/json")}deleteNotificationRulesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/notificationRules/${e.ruleID}/labels/${e.labelID}`,e,s)}getNotificationRulesIDQuery(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}/query`,e,s)}},e.OrgsAPI=class extends s{constructor(e){super(e)}getOrgs(e,s){return this.request("GET",`/api/v2/orgs${this.queryString(e,["org","orgID","userID"])}`,e,s)}postOrgs(e,s){return this.request("POST","/api/v2/orgs",e,s,"application/json")}getOrgsID(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}`,e,s)}patchOrgsID(e,s){return this.request("PATCH",`/api/v2/orgs/${e.orgID}`,e,s,"application/json")}deleteOrgsID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}`,e,s)}getOrgsIDLabels(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/labels`,e,s)}postOrgsIDLabels(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/labels`,e,s,"application/json")}deleteOrgsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/labels/${e.labelID}`,e,s)}getOrgsIDSecrets(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/secrets`,e,s)}patchOrgsIDSecrets(e,s){return this.request("PATCH",`/api/v2/orgs/${e.orgID}/secrets`,e,s,"application/json")}postOrgsIDSecrets(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/secrets/delete`,e,s,"application/json")}getOrgsIDMembers(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/members`,e,s)}postOrgsIDMembers(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/members`,e,s,"application/json")}deleteOrgsIDMembersID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/members/${e.userID}`,e,s)}getOrgsIDOwners(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/owners`,e,s)}postOrgsIDOwners(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/owners`,e,s,"application/json")}deleteOrgsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/owners/${e.userID}`,e,s)}getOrgsIDLogs(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},e.PackagesAPI=class extends s{constructor(e){super(e)}createPkg(e,s){return this.request("POST","/api/v2/packages",e,s,"application/json")}applyPkg(e,s){return this.request("POST","/api/v2/packages/apply",e,s,"application/json")}createStack(e,s){return this.request("POST","/api/v2/packages/stacks",e,s,"application/json")}},e.QueryAPI=class extends s{constructor(e){super(e)}postQueryAst(e,s){return this.request("POST","/api/v2/query/ast",e,s,"application/json")}getQuerySuggestions(e,s){return this.request("GET","/api/v2/query/suggestions",e,s)}getQuerySuggestionsName(e,s){return this.request("GET",`/api/v2/query/suggestions/${e.name}`,e,s)}postQueryAnalyze(e,s){return this.request("POST","/api/v2/query/analyze",e,s,"application/json")}postQuery(e,s){return this.request("POST",`/api/v2/query${this.queryString(e,["org","orgID"])}`,e,s,"application/json")}},e.ReadyAPI=class extends s{constructor(e){super(e)}getReady(e,s){return this.request("GET","/ready",e,s)}},e.RootAPI=class extends s{constructor(e){super(e)}getRoutes(e,s){return this.request("GET","/api/v2/",e,s)}},e.ScrapersAPI=class extends s{constructor(e){super(e)}getScrapers(e,s){return this.request("GET",`/api/v2/scrapers${this.queryString(e,["name","id","orgID","org"])}`,e,s)}postScrapers(e,s){return this.request("POST","/api/v2/scrapers",e,s,"application/json")}getScrapersID(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}`,e,s)}patchScrapersID(e,s){return this.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}`,e,s,"application/json")}deleteScrapersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}`,e,s)}getScrapersIDLabels(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s)}postScrapersIDLabels(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s,"application/json")}patchScrapersIDLabelsID(e,s){return this.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s,"application/json")}deleteScrapersIDLabelsID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s)}getScrapersIDMembers(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s)}postScrapersIDMembers(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s,"application/json")}deleteScrapersIDMembersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/members/${e.userID}`,e,s)}getScrapersIDOwners(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s)}postScrapersIDOwners(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s,"application/json")}deleteScrapersIDOwnersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/owners/${e.userID}`,e,s)}},e.SetupAPI=class extends s{constructor(e){super(e)}getSetup(e,s){return this.request("GET","/api/v2/setup",e,s)}postSetup(e,s){return this.request("POST","/api/v2/setup",e,s,"application/json")}},e.SigninAPI=class extends s{constructor(e){super(e)}postSignin(e,s){return this.request("POST","/api/v2/signin",e,s)}},e.SignoutAPI=class extends s{constructor(e){super(e)}postSignout(e,s){return this.request("POST","/api/v2/signout",e,s)}},e.SourcesAPI=class extends s{constructor(e){super(e)}getSources(e,s){return this.request("GET",`/api/v2/sources${this.queryString(e,["org"])}`,e,s)}postSources(e,s){return this.request("POST","/api/v2/sources",e,s,"application/json")}getSourcesID(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}`,e,s)}patchSourcesID(e,s){return this.request("PATCH",`/api/v2/sources/${e.sourceID}`,e,s,"application/json")}deleteSourcesID(e,s){return this.request("DELETE",`/api/v2/sources/${e.sourceID}`,e,s)}getSourcesIDHealth(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}/health`,e,s)}getSourcesIDBuckets(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}/buckets${this.queryString(e,["org"])}`,e,s)}},e.TasksAPI=class extends s{constructor(e){super(e)}getTasks(e,s){return this.request("GET",`/api/v2/tasks${this.queryString(e,["name","after","user","org","orgID","status","limit"])}`,e,s)}postTasks(e,s){return this.request("POST","/api/v2/tasks",e,s,"application/json")}getTasksID(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}`,e,s)}patchTasksID(e,s){return this.request("PATCH",`/api/v2/tasks/${e.taskID}`,e,s,"application/json")}deleteTasksID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}`,e,s)}getTasksIDRuns(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs${this.queryString(e,["after","limit","afterTime","beforeTime"])}`,e,s)}postTasksIDRuns(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/runs`,e,s,"application/json")}getTasksIDRunsID(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}deleteTasksIDRunsID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}postTasksIDRunsIDRetry(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/retry`,e,s)}getTasksIDLogs(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/logs`,e,s)}getTasksIDRunsIDLogs(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/logs`,e,s)}getTasksIDLabels(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/labels`,e,s)}postTasksIDLabels(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/labels`,e,s,"application/json")}deleteTasksIDLabelsID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/labels/${e.labelID}`,e,s)}getTasksIDMembers(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/members`,e,s)}postTasksIDMembers(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/members`,e,s,"application/json")}deleteTasksIDMembersID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/members/${e.userID}`,e,s)}getTasksIDOwners(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/owners`,e,s)}postTasksIDOwners(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/owners`,e,s,"application/json")}deleteTasksIDOwnersID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/owners/${e.userID}`,e,s)}},e.TelegrafAPI=class extends s{constructor(e){super(e)}getTelegrafPlugins(e,s){return this.request("GET",`/api/v2/telegraf/plugins${this.queryString(e,["type"])}`,e,s)}},e.TelegrafsAPI=class extends s{constructor(e){super(e)}getTelegrafs(e,s){return this.request("GET",`/api/v2/telegrafs${this.queryString(e,["orgID"])}`,e,s)}postTelegrafs(e,s){return this.request("POST","/api/v2/telegrafs",e,s,"application/json")}getTelegrafsID(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}`,e,s)}putTelegrafsID(e,s){return this.request("PUT",`/api/v2/telegrafs/${e.telegrafID}`,e,s,"application/json")}deleteTelegrafsID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}`,e,s)}getTelegrafsIDLabels(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s)}postTelegrafsIDLabels(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s,"application/json")}deleteTelegrafsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/labels/${e.labelID}`,e,s)}getTelegrafsIDMembers(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s)}postTelegrafsIDMembers(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s,"application/json")}deleteTelegrafsIDMembersID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/members/${e.userID}`,e,s)}getTelegrafsIDOwners(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s)}postTelegrafsIDOwners(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s,"application/json")}deleteTelegrafsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/owners/${e.userID}`,e,s)}},e.UsersAPI=class extends s{constructor(e){super(e)}getUsers(e,s){return this.request("GET","/api/v2/users",e,s)}postUsers(e,s){return this.request("POST","/api/v2/users",e,s,"application/json")}getUsersID(e,s){return this.request("GET",`/api/v2/users/${e.userID}`,e,s)}patchUsersID(e,s){return this.request("PATCH",`/api/v2/users/${e.userID}`,e,s,"application/json")}deleteUsersID(e,s){return this.request("DELETE",`/api/v2/users/${e.userID}`,e,s)}putUsersIDPassword(e,s){return this.request("PUT",`/api/v2/users/${e.userID}/password`,e,s,"application/json")}getUsersIDLogs(e,s){return this.request("GET",`/api/v2/users/${e.userID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},e.VariablesAPI=class extends s{constructor(e){super(e)}getVariables(e,s){return this.request("GET",`/api/v2/variables${this.queryString(e,["org","orgID"])}`,e,s)}postVariables(e,s){return this.request("POST","/api/v2/variables",e,s,"application/json")}getVariablesID(e,s){return this.request("GET",`/api/v2/variables/${e.variableID}`,e,s)}putVariablesID(e,s){return this.request("PUT",`/api/v2/variables/${e.variableID}`,e,s,"application/json")}patchVariablesID(e,s){return this.request("PATCH",`/api/v2/variables/${e.variableID}`,e,s,"application/json")}deleteVariablesID(e,s){return this.request("DELETE",`/api/v2/variables/${e.variableID}`,e,s)}getVariablesIDLabels(e,s){return this.request("GET",`/api/v2/variables/${e.variableID}/labels`,e,s)}postVariablesIDLabels(e,s){return this.request("POST",`/api/v2/variables/${e.variableID}/labels`,e,s,"application/json")}deleteVariablesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/variables/${e.variableID}/labels/${e.labelID}`,e,s)}},e.WriteAPI=class extends s{constructor(e){super(e)}postWrite(e,s){return this.request("POST",`/api/v2/write${this.queryString(e,["org","orgID","bucket","precision"])}`,e,s,"text/plain")}},Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=index.browser.js.map

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class e{constructor(e){if(!e)throw new Error("No influxDB supplied!");if(!e.transport)throw new Error("No transport supplied!");this.transport=e.transport}queryString(e,s){return e&&s?s.reduce((s,t)=>{const r=e[t];return null!=r&&(s+=s?"&":"?",s+=encodeURIComponent(t)+"="+encodeURIComponent(String(r))),s},""):""}request(e,s,t={},r,a){const i=Object.assign(Object.assign({},r),{method:e});if(a&&((i.headers||(i.headers={}))["content-type"]=a),t.auth){const e=`${t.auth.user}:${t.auth.password}`;(i.headers||(i.headers={})).authorization=Buffer.from(e,"binary").toString("base64")}return this.transport.request(s,t.body?t.body:"",i)}}exports.AuthorizationsAPI=class extends e{constructor(e){super(e)}getAuthorizations(e,s){return this.request("GET",`/api/v2/authorizations${this.queryString(e,["userID","user","orgID","org"])}`,e,s)}postAuthorizations(e,s){return this.request("POST","/api/v2/authorizations",e,s,"application/json")}getAuthorizationsID(e,s){return this.request("GET",`/api/v2/authorizations/${e.authID}`,e,s)}patchAuthorizationsID(e,s){return this.request("PATCH",`/api/v2/authorizations/${e.authID}`,e,s,"application/json")}deleteAuthorizationsID(e,s){return this.request("DELETE",`/api/v2/authorizations/${e.authID}`,e,s)}},exports.BucketsAPI=class extends e{constructor(e){super(e)}getBuckets(e,s){return this.request("GET",`/api/v2/buckets${this.queryString(e,["offset","limit","org","orgID","name"])}`,e,s)}postBuckets(e,s){return this.request("POST","/api/v2/buckets",e,s,"application/json")}getBucketsID(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}`,e,s)}patchBucketsID(e,s){return this.request("PATCH",`/api/v2/buckets/${e.bucketID}`,e,s,"application/json")}deleteBucketsID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}`,e,s)}getBucketsIDLabels(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/labels`,e,s)}postBucketsIDLabels(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/labels`,e,s,"application/json")}deleteBucketsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/labels/${e.labelID}`,e,s)}getBucketsIDMembers(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/members`,e,s)}postBucketsIDMembers(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/members`,e,s,"application/json")}deleteBucketsIDMembersID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/members/${e.userID}`,e,s)}getBucketsIDOwners(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/owners`,e,s)}postBucketsIDOwners(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/owners`,e,s,"application/json")}deleteBucketsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/owners/${e.userID}`,e,s)}getBucketsIDLogs(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},exports.ChecksAPI=class extends e{constructor(e){super(e)}getChecks(e,s){return this.request("GET",`/api/v2/checks${this.queryString(e,["offset","limit","orgID"])}`,e,s)}createCheck(e,s){return this.request("POST","/api/v2/checks",e,s,"application/json")}getChecksID(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}`,e,s)}putChecksID(e,s){return this.request("PUT",`/api/v2/checks/${e.checkID}`,e,s,"application/json")}patchChecksID(e,s){return this.request("PATCH",`/api/v2/checks/${e.checkID}`,e,s,"application/json")}deleteChecksID(e,s){return this.request("DELETE",`/api/v2/checks/${e.checkID}`,e,s)}getChecksIDLabels(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}/labels`,e,s)}postChecksIDLabels(e,s){return this.request("POST",`/api/v2/checks/${e.checkID}/labels`,e,s,"application/json")}deleteChecksIDLabelsID(e,s){return this.request("DELETE",`/api/v2/checks/${e.checkID}/labels/${e.labelID}`,e,s)}getChecksIDQuery(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}/query`,e,s)}},exports.DashboardsAPI=class extends e{constructor(e){super(e)}getDashboards(e,s){return this.request("GET",`/api/v2/dashboards${this.queryString(e,["owner","sortBy","id","orgID","org"])}`,e,s)}postDashboards(e,s){return this.request("POST","/api/v2/dashboards",e,s,"application/json")}getDashboardsID(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}${this.queryString(e,["include"])}`,e,s)}patchDashboardsID(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}`,e,s,"application/json")}deleteDashboardsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}`,e,s)}postDashboardsIDCells(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}putDashboardsIDCells(e,s){return this.request("PUT",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}patchDashboardsIDCellsID(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s,"application/json")}deleteDashboardsIDCellsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s)}getDashboardsIDCellsIDView(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s)}patchDashboardsIDCellsIDView(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s,"application/json")}getDashboardsIDLabels(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s)}postDashboardsIDLabels(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s,"application/json")}deleteDashboardsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/labels/${e.labelID}`,e,s)}getDashboardsIDMembers(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/members`,e,s)}postDashboardsIDMembers(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/members`,e,s,"application/json")}deleteDashboardsIDMembersID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/members/${e.userID}`,e,s)}getDashboardsIDOwners(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s)}postDashboardsIDOwners(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s,"application/json")}deleteDashboardsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/owners/${e.userID}`,e,s)}getDashboardsIDLogs(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},exports.DeleteAPI=class extends e{constructor(e){super(e)}postDelete(e,s){return this.request("POST",`/api/v2/delete${this.queryString(e,["org","bucket","orgID","bucketID"])}`,e,s,"application/json")}},exports.DocumentsAPI=class extends e{constructor(e){super(e)}getDocumentsTemplates(e,s){return this.request("GET",`/api/v2/documents/templates${this.queryString(e,["org","orgID"])}`,e,s)}postDocumentsTemplates(e,s){return this.request("POST","/api/v2/documents/templates",e,s,"application/json")}getDocumentsTemplatesID(e,s){return this.request("GET",`/api/v2/documents/templates/${e.templateID}`,e,s)}putDocumentsTemplatesID(e,s){return this.request("PUT",`/api/v2/documents/templates/${e.templateID}`,e,s,"application/json")}deleteDocumentsTemplatesID(e,s){return this.request("DELETE",`/api/v2/documents/templates/${e.templateID}`,e,s)}getDocumentsTemplatesIDLabels(e,s){return this.request("GET",`/api/v2/documents/templates/${e.templateID}/labels`,e,s)}postDocumentsTemplatesIDLabels(e,s){return this.request("POST",`/api/v2/documents/templates/${e.templateID}/labels`,e,s,"application/json")}deleteDocumentsTemplatesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/documents/templates/${e.templateID}/labels/${e.labelID}`,e,s)}},exports.HealthAPI=class extends e{constructor(e){super(e)}getHealth(e,s){return this.request("GET","/health",e,s)}},exports.LabelsAPI=class extends e{constructor(e){super(e)}getLabels(e,s){return this.request("GET",`/api/v2/labels${this.queryString(e,["orgID"])}`,e,s)}postLabels(e,s){return this.request("POST","/api/v2/labels",e,s,"application/json")}getLabelsID(e,s){return this.request("GET",`/api/v2/labels/${e.labelID}`,e,s)}patchLabelsID(e,s){return this.request("PATCH",`/api/v2/labels/${e.labelID}`,e,s,"application/json")}deleteLabelsID(e,s){return this.request("DELETE",`/api/v2/labels/${e.labelID}`,e,s)}},exports.MeAPI=class extends e{constructor(e){super(e)}getMe(e,s){return this.request("GET","/api/v2/me",e,s)}putMePassword(e,s){return this.request("PUT","/api/v2/me/password",e,s,"application/json")}},exports.NotificationEndpointsAPI=class extends e{constructor(e){super(e)}getNotificationEndpoints(e,s){return this.request("GET",`/api/v2/notificationEndpoints${this.queryString(e,["offset","limit","orgID"])}`,e,s)}createNotificationEndpoint(e,s){return this.request("POST","/api/v2/notificationEndpoints",e,s,"application/json")}getNotificationEndpointsID(e,s){return this.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s)}putNotificationEndpointsID(e,s){return this.request("PUT",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s,"application/json")}patchNotificationEndpointsID(e,s){return this.request("PATCH",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s,"application/json")}deleteNotificationEndpointsID(e,s){return this.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s)}getNotificationEndpointsIDLabels(e,s){return this.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s)}postNotificationEndpointIDLabels(e,s){return this.request("POST",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s,"application/json")}deleteNotificationEndpointsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}/labels/${e.labelID}`,e,s)}},exports.NotificationRulesAPI=class extends e{constructor(e){super(e)}getNotificationRules(e,s){return this.request("GET",`/api/v2/notificationRules${this.queryString(e,["offset","limit","orgID","checkID","tag"])}`,e,s)}createNotificationRule(e,s){return this.request("POST","/api/v2/notificationRules",e,s,"application/json")}getNotificationRulesID(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}`,e,s)}putNotificationRulesID(e,s){return this.request("PUT",`/api/v2/notificationRules/${e.ruleID}`,e,s,"application/json")}patchNotificationRulesID(e,s){return this.request("PATCH",`/api/v2/notificationRules/${e.ruleID}`,e,s,"application/json")}deleteNotificationRulesID(e,s){return this.request("DELETE",`/api/v2/notificationRules/${e.ruleID}`,e,s)}getNotificationRulesIDLabels(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s)}postNotificationRuleIDLabels(e,s){return this.request("POST",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s,"application/json")}deleteNotificationRulesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/notificationRules/${e.ruleID}/labels/${e.labelID}`,e,s)}getNotificationRulesIDQuery(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}/query`,e,s)}},exports.OrgsAPI=class extends e{constructor(e){super(e)}getOrgs(e,s){return this.request("GET",`/api/v2/orgs${this.queryString(e,["org","orgID"])}`,e,s)}postOrgs(e,s){return this.request("POST","/api/v2/orgs",e,s,"application/json")}getOrgsID(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}`,e,s)}patchOrgsID(e,s){return this.request("PATCH",`/api/v2/orgs/${e.orgID}`,e,s,"application/json")}deleteOrgsID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}`,e,s)}getOrgsIDLabels(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/labels`,e,s)}postOrgsIDLabels(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/labels`,e,s,"application/json")}deleteOrgsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/labels/${e.labelID}`,e,s)}getOrgsIDSecrets(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/secrets`,e,s)}patchOrgsIDSecrets(e,s){return this.request("PATCH",`/api/v2/orgs/${e.orgID}/secrets`,e,s,"application/json")}postOrgsIDSecrets(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/secrets/delete`,e,s,"application/json")}getOrgsIDMembers(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/members`,e,s)}postOrgsIDMembers(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/members`,e,s,"application/json")}deleteOrgsIDMembersID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/members/${e.userID}`,e,s)}getOrgsIDOwners(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/owners`,e,s)}postOrgsIDOwners(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/owners`,e,s,"application/json")}deleteOrgsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/owners/${e.userID}`,e,s)}getOrgsIDLogs(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},exports.PackagesAPI=class extends e{constructor(e){super(e)}createPkg(e,s){return this.request("POST","/api/v2/packages",e,s,"application/json")}applyPkg(e,s){return this.request("POST","/api/v2/packages/apply",e,s,"application/json")}},exports.QueryAPI=class extends e{constructor(e){super(e)}postQueryAst(e,s){return this.request("POST","/api/v2/query/ast",e,s,"application/json")}getQuerySuggestions(e,s){return this.request("GET","/api/v2/query/suggestions",e,s)}getQuerySuggestionsName(e,s){return this.request("GET",`/api/v2/query/suggestions/${e.name}`,e,s)}postQueryAnalyze(e,s){return this.request("POST","/api/v2/query/analyze",e,s,"application/json")}postQuery(e,s){return this.request("POST",`/api/v2/query${this.queryString(e,["org","orgID"])}`,e,s,"application/json")}},exports.ReadyAPI=class extends e{constructor(e){super(e)}getReady(e,s){return this.request("GET","/ready",e,s)}},exports.RootAPI=class extends e{constructor(e){super(e)}getRoutes(e,s){return this.request("GET","/api/v2/",e,s)}},exports.ScrapersAPI=class extends e{constructor(e){super(e)}getScrapers(e,s){return this.request("GET",`/api/v2/scrapers${this.queryString(e,["name","id","orgID","org"])}`,e,s)}postScrapers(e,s){return this.request("POST","/api/v2/scrapers",e,s,"application/json")}getScrapersID(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}`,e,s)}patchScrapersID(e,s){return this.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}`,e,s,"application/json")}deleteScrapersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}`,e,s)}getScrapersIDLabels(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s)}postScrapersIDLabels(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s,"application/json")}patchScrapersIDLabelsID(e,s){return this.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s,"application/json")}deleteScrapersIDLabelsID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s)}getScrapersIDMembers(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s)}postScrapersIDMembers(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s,"application/json")}deleteScrapersIDMembersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/members/${e.userID}`,e,s)}getScrapersIDOwners(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s)}postScrapersIDOwners(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s,"application/json")}deleteScrapersIDOwnersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/owners/${e.userID}`,e,s)}},exports.SetupAPI=class extends e{constructor(e){super(e)}getSetup(e,s){return this.request("GET","/api/v2/setup",e,s)}postSetup(e,s){return this.request("POST","/api/v2/setup",e,s,"application/json")}},exports.SigninAPI=class extends e{constructor(e){super(e)}postSignin(e,s){return this.request("POST","/api/v2/signin",e,s)}},exports.SignoutAPI=class extends e{constructor(e){super(e)}postSignout(e,s){return this.request("POST","/api/v2/signout",e,s)}},exports.SourcesAPI=class extends e{constructor(e){super(e)}getSources(e,s){return this.request("GET",`/api/v2/sources${this.queryString(e,["org"])}`,e,s)}postSources(e,s){return this.request("POST","/api/v2/sources",e,s,"application/json")}getSourcesID(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}`,e,s)}patchSourcesID(e,s){return this.request("PATCH",`/api/v2/sources/${e.sourceID}`,e,s,"application/json")}deleteSourcesID(e,s){return this.request("DELETE",`/api/v2/sources/${e.sourceID}`,e,s)}getSourcesIDHealth(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}/health`,e,s)}getSourcesIDBuckets(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}/buckets${this.queryString(e,["org"])}`,e,s)}},exports.TasksAPI=class extends e{constructor(e){super(e)}getTasks(e,s){return this.request("GET",`/api/v2/tasks${this.queryString(e,["name","after","user","org","orgID","status","limit"])}`,e,s)}postTasks(e,s){return this.request("POST","/api/v2/tasks",e,s,"application/json")}getTasksID(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}`,e,s)}patchTasksID(e,s){return this.request("PATCH",`/api/v2/tasks/${e.taskID}`,e,s,"application/json")}deleteTasksID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}`,e,s)}getTasksIDRuns(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs${this.queryString(e,["after","limit","afterTime","beforeTime"])}`,e,s)}postTasksIDRuns(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/runs`,e,s,"application/json")}getTasksIDRunsID(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}deleteTasksIDRunsID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}postTasksIDRunsIDRetry(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/retry`,e,s)}getTasksIDLogs(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/logs`,e,s)}getTasksIDRunsIDLogs(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/logs`,e,s)}getTasksIDLabels(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/labels`,e,s)}postTasksIDLabels(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/labels`,e,s,"application/json")}deleteTasksIDLabelsID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/labels/${e.labelID}`,e,s)}getTasksIDMembers(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/members`,e,s)}postTasksIDMembers(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/members`,e,s,"application/json")}deleteTasksIDMembersID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/members/${e.userID}`,e,s)}getTasksIDOwners(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/owners`,e,s)}postTasksIDOwners(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/owners`,e,s,"application/json")}deleteTasksIDOwnersID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/owners/${e.userID}`,e,s)}},exports.TelegrafAPI=class extends e{constructor(e){super(e)}getTelegrafPlugins(e,s){return this.request("GET",`/api/v2/telegraf/plugins${this.queryString(e,["type"])}`,e,s)}},exports.TelegrafsAPI=class extends e{constructor(e){super(e)}getTelegrafs(e,s){return this.request("GET",`/api/v2/telegrafs${this.queryString(e,["orgID"])}`,e,s)}postTelegrafs(e,s){return this.request("POST","/api/v2/telegrafs",e,s,"application/json")}getTelegrafsID(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}`,e,s)}putTelegrafsID(e,s){return this.request("PUT",`/api/v2/telegrafs/${e.telegrafID}`,e,s,"application/json")}deleteTelegrafsID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}`,e,s)}getTelegrafsIDLabels(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s)}postTelegrafsIDLabels(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s,"application/json")}deleteTelegrafsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/labels/${e.labelID}`,e,s)}getTelegrafsIDMembers(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s)}postTelegrafsIDMembers(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s,"application/json")}deleteTelegrafsIDMembersID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/members/${e.userID}`,e,s)}getTelegrafsIDOwners(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s)}postTelegrafsIDOwners(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s,"application/json")}deleteTelegrafsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/owners/${e.userID}`,e,s)}},exports.UsersAPI=class extends e{constructor(e){super(e)}getUsers(e,s){return this.request("GET","/api/v2/users",e,s)}postUsers(e,s){return this.request("POST","/api/v2/users",e,s,"application/json")}getUsersID(e,s){return this.request("GET",`/api/v2/users/${e.userID}`,e,s)}patchUsersID(e,s){return this.request("PATCH",`/api/v2/users/${e.userID}`,e,s,"application/json")}deleteUsersID(e,s){return this.request("DELETE",`/api/v2/users/${e.userID}`,e,s)}putUsersIDPassword(e,s){return this.request("PUT",`/api/v2/users/${e.userID}/password`,e,s,"application/json")}getUsersIDLogs(e,s){return this.request("GET",`/api/v2/users/${e.userID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},exports.VariablesAPI=class extends e{constructor(e){super(e)}getVariables(e,s){return this.request("GET",`/api/v2/variables${this.queryString(e,["org","orgID"])}`,e,s)}postVariables(e,s){return this.request("POST","/api/v2/variables",e,s,"application/json")}getVariablesID(e,s){return this.request("GET",`/api/v2/variables/${e.variableID}`,e,s)}putVariablesID(e,s){return this.request("PUT",`/api/v2/variables/${e.variableID}`,e,s,"application/json")}patchVariablesID(e,s){return this.request("PATCH",`/api/v2/variables/${e.variableID}`,e,s,"application/json")}deleteVariablesID(e,s){return this.request("DELETE",`/api/v2/variables/${e.variableID}`,e,s)}getVariablesIDLabels(e,s){return this.request("GET",`/api/v2/variables/${e.variableID}/labels`,e,s)}postVariablesIDLabels(e,s){return this.request("POST",`/api/v2/variables/${e.variableID}/labels`,e,s,"application/json")}deleteVariablesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/variables/${e.variableID}/labels/${e.labelID}`,e,s)}},exports.WriteAPI=class extends e{constructor(e){super(e)}postWrite(e,s){return this.request("POST",`/api/v2/write${this.queryString(e,["org","orgID","bucket","precision"])}`,e,s,"text/plain")}};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class e{constructor(e){if(!e)throw new Error("No influxDB supplied!");if(!e.transport)throw new Error("No transport supplied!");this.transport=e.transport}queryString(e,s){return e&&s?s.reduce((s,t)=>{const r=e[t];return null!=r&&(s+=s?"&":"?",s+=encodeURIComponent(t)+"="+encodeURIComponent(String(r))),s},""):""}request(e,s,t={},r,a){const i=Object.assign(Object.assign({},r),{method:e});if(a&&((i.headers||(i.headers={}))["content-type"]=a),t.auth){const e=`${t.auth.user}:${t.auth.password}`;(i.headers||(i.headers={})).authorization=Buffer.from(e,"binary").toString("base64")}return this.transport.request(s,t.body?t.body:"",i)}}exports.AuthorizationsAPI=class extends e{constructor(e){super(e)}getAuthorizations(e,s){return this.request("GET",`/api/v2/authorizations${this.queryString(e,["userID","user","orgID","org"])}`,e,s)}postAuthorizations(e,s){return this.request("POST","/api/v2/authorizations",e,s,"application/json")}getAuthorizationsID(e,s){return this.request("GET",`/api/v2/authorizations/${e.authID}`,e,s)}patchAuthorizationsID(e,s){return this.request("PATCH",`/api/v2/authorizations/${e.authID}`,e,s,"application/json")}deleteAuthorizationsID(e,s){return this.request("DELETE",`/api/v2/authorizations/${e.authID}`,e,s)}},exports.BucketsAPI=class extends e{constructor(e){super(e)}getBuckets(e,s){return this.request("GET",`/api/v2/buckets${this.queryString(e,["offset","limit","org","orgID","name"])}`,e,s)}postBuckets(e,s){return this.request("POST","/api/v2/buckets",e,s,"application/json")}getBucketsID(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}`,e,s)}patchBucketsID(e,s){return this.request("PATCH",`/api/v2/buckets/${e.bucketID}`,e,s,"application/json")}deleteBucketsID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}`,e,s)}getBucketsIDLabels(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/labels`,e,s)}postBucketsIDLabels(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/labels`,e,s,"application/json")}deleteBucketsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/labels/${e.labelID}`,e,s)}getBucketsIDMembers(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/members`,e,s)}postBucketsIDMembers(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/members`,e,s,"application/json")}deleteBucketsIDMembersID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/members/${e.userID}`,e,s)}getBucketsIDOwners(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/owners`,e,s)}postBucketsIDOwners(e,s){return this.request("POST",`/api/v2/buckets/${e.bucketID}/owners`,e,s,"application/json")}deleteBucketsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/buckets/${e.bucketID}/owners/${e.userID}`,e,s)}getBucketsIDLogs(e,s){return this.request("GET",`/api/v2/buckets/${e.bucketID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},exports.ChecksAPI=class extends e{constructor(e){super(e)}getChecks(e,s){return this.request("GET",`/api/v2/checks${this.queryString(e,["offset","limit","orgID"])}`,e,s)}createCheck(e,s){return this.request("POST","/api/v2/checks",e,s,"application/json")}getChecksID(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}`,e,s)}putChecksID(e,s){return this.request("PUT",`/api/v2/checks/${e.checkID}`,e,s,"application/json")}patchChecksID(e,s){return this.request("PATCH",`/api/v2/checks/${e.checkID}`,e,s,"application/json")}deleteChecksID(e,s){return this.request("DELETE",`/api/v2/checks/${e.checkID}`,e,s)}getChecksIDLabels(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}/labels`,e,s)}postChecksIDLabels(e,s){return this.request("POST",`/api/v2/checks/${e.checkID}/labels`,e,s,"application/json")}deleteChecksIDLabelsID(e,s){return this.request("DELETE",`/api/v2/checks/${e.checkID}/labels/${e.labelID}`,e,s)}getChecksIDQuery(e,s){return this.request("GET",`/api/v2/checks/${e.checkID}/query`,e,s)}},exports.DashboardsAPI=class extends e{constructor(e){super(e)}getDashboards(e,s){return this.request("GET",`/api/v2/dashboards${this.queryString(e,["owner","sortBy","id","orgID","org"])}`,e,s)}postDashboards(e,s){return this.request("POST","/api/v2/dashboards",e,s,"application/json")}getDashboardsID(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}${this.queryString(e,["include"])}`,e,s)}patchDashboardsID(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}`,e,s,"application/json")}deleteDashboardsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}`,e,s)}postDashboardsIDCells(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}putDashboardsIDCells(e,s){return this.request("PUT",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}patchDashboardsIDCellsID(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s,"application/json")}deleteDashboardsIDCellsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s)}getDashboardsIDCellsIDView(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s)}patchDashboardsIDCellsIDView(e,s){return this.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s,"application/json")}getDashboardsIDLabels(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s)}postDashboardsIDLabels(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s,"application/json")}deleteDashboardsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/labels/${e.labelID}`,e,s)}getDashboardsIDMembers(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/members`,e,s)}postDashboardsIDMembers(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/members`,e,s,"application/json")}deleteDashboardsIDMembersID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/members/${e.userID}`,e,s)}getDashboardsIDOwners(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s)}postDashboardsIDOwners(e,s){return this.request("POST",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s,"application/json")}deleteDashboardsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/owners/${e.userID}`,e,s)}getDashboardsIDLogs(e,s){return this.request("GET",`/api/v2/dashboards/${e.dashboardID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},exports.DeleteAPI=class extends e{constructor(e){super(e)}postDelete(e,s){return this.request("POST",`/api/v2/delete${this.queryString(e,["org","bucket","orgID","bucketID"])}`,e,s,"application/json")}},exports.DocumentsAPI=class extends e{constructor(e){super(e)}getDocumentsTemplates(e,s){return this.request("GET",`/api/v2/documents/templates${this.queryString(e,["org","orgID"])}`,e,s)}postDocumentsTemplates(e,s){return this.request("POST","/api/v2/documents/templates",e,s,"application/json")}getDocumentsTemplatesID(e,s){return this.request("GET",`/api/v2/documents/templates/${e.templateID}`,e,s)}putDocumentsTemplatesID(e,s){return this.request("PUT",`/api/v2/documents/templates/${e.templateID}`,e,s,"application/json")}deleteDocumentsTemplatesID(e,s){return this.request("DELETE",`/api/v2/documents/templates/${e.templateID}`,e,s)}getDocumentsTemplatesIDLabels(e,s){return this.request("GET",`/api/v2/documents/templates/${e.templateID}/labels`,e,s)}postDocumentsTemplatesIDLabels(e,s){return this.request("POST",`/api/v2/documents/templates/${e.templateID}/labels`,e,s,"application/json")}deleteDocumentsTemplatesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/documents/templates/${e.templateID}/labels/${e.labelID}`,e,s)}},exports.FlagsAPI=class extends e{constructor(e){super(e)}getFlags(e,s){return this.request("GET","/api/v2/flags",e,s)}},exports.HealthAPI=class extends e{constructor(e){super(e)}getHealth(e,s){return this.request("GET","/health",e,s)}},exports.LabelsAPI=class extends e{constructor(e){super(e)}getLabels(e,s){return this.request("GET",`/api/v2/labels${this.queryString(e,["orgID"])}`,e,s)}postLabels(e,s){return this.request("POST","/api/v2/labels",e,s,"application/json")}getLabelsID(e,s){return this.request("GET",`/api/v2/labels/${e.labelID}`,e,s)}patchLabelsID(e,s){return this.request("PATCH",`/api/v2/labels/${e.labelID}`,e,s,"application/json")}deleteLabelsID(e,s){return this.request("DELETE",`/api/v2/labels/${e.labelID}`,e,s)}},exports.MeAPI=class extends e{constructor(e){super(e)}getMe(e,s){return this.request("GET","/api/v2/me",e,s)}putMePassword(e,s){return this.request("PUT","/api/v2/me/password",e,s,"application/json")}},exports.NotificationEndpointsAPI=class extends e{constructor(e){super(e)}getNotificationEndpoints(e,s){return this.request("GET",`/api/v2/notificationEndpoints${this.queryString(e,["offset","limit","orgID"])}`,e,s)}createNotificationEndpoint(e,s){return this.request("POST","/api/v2/notificationEndpoints",e,s,"application/json")}getNotificationEndpointsID(e,s){return this.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s)}putNotificationEndpointsID(e,s){return this.request("PUT",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s,"application/json")}patchNotificationEndpointsID(e,s){return this.request("PATCH",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s,"application/json")}deleteNotificationEndpointsID(e,s){return this.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}`,e,s)}getNotificationEndpointsIDLabels(e,s){return this.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s)}postNotificationEndpointIDLabels(e,s){return this.request("POST",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s,"application/json")}deleteNotificationEndpointsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}/labels/${e.labelID}`,e,s)}},exports.NotificationRulesAPI=class extends e{constructor(e){super(e)}getNotificationRules(e,s){return this.request("GET",`/api/v2/notificationRules${this.queryString(e,["offset","limit","orgID","checkID","tag"])}`,e,s)}createNotificationRule(e,s){return this.request("POST","/api/v2/notificationRules",e,s,"application/json")}getNotificationRulesID(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}`,e,s)}putNotificationRulesID(e,s){return this.request("PUT",`/api/v2/notificationRules/${e.ruleID}`,e,s,"application/json")}patchNotificationRulesID(e,s){return this.request("PATCH",`/api/v2/notificationRules/${e.ruleID}`,e,s,"application/json")}deleteNotificationRulesID(e,s){return this.request("DELETE",`/api/v2/notificationRules/${e.ruleID}`,e,s)}getNotificationRulesIDLabels(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s)}postNotificationRuleIDLabels(e,s){return this.request("POST",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s,"application/json")}deleteNotificationRulesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/notificationRules/${e.ruleID}/labels/${e.labelID}`,e,s)}getNotificationRulesIDQuery(e,s){return this.request("GET",`/api/v2/notificationRules/${e.ruleID}/query`,e,s)}},exports.OrgsAPI=class extends e{constructor(e){super(e)}getOrgs(e,s){return this.request("GET",`/api/v2/orgs${this.queryString(e,["org","orgID","userID"])}`,e,s)}postOrgs(e,s){return this.request("POST","/api/v2/orgs",e,s,"application/json")}getOrgsID(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}`,e,s)}patchOrgsID(e,s){return this.request("PATCH",`/api/v2/orgs/${e.orgID}`,e,s,"application/json")}deleteOrgsID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}`,e,s)}getOrgsIDLabels(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/labels`,e,s)}postOrgsIDLabels(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/labels`,e,s,"application/json")}deleteOrgsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/labels/${e.labelID}`,e,s)}getOrgsIDSecrets(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/secrets`,e,s)}patchOrgsIDSecrets(e,s){return this.request("PATCH",`/api/v2/orgs/${e.orgID}/secrets`,e,s,"application/json")}postOrgsIDSecrets(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/secrets/delete`,e,s,"application/json")}getOrgsIDMembers(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/members`,e,s)}postOrgsIDMembers(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/members`,e,s,"application/json")}deleteOrgsIDMembersID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/members/${e.userID}`,e,s)}getOrgsIDOwners(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/owners`,e,s)}postOrgsIDOwners(e,s){return this.request("POST",`/api/v2/orgs/${e.orgID}/owners`,e,s,"application/json")}deleteOrgsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/orgs/${e.orgID}/owners/${e.userID}`,e,s)}getOrgsIDLogs(e,s){return this.request("GET",`/api/v2/orgs/${e.orgID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},exports.PackagesAPI=class extends e{constructor(e){super(e)}createPkg(e,s){return this.request("POST","/api/v2/packages",e,s,"application/json")}applyPkg(e,s){return this.request("POST","/api/v2/packages/apply",e,s,"application/json")}createStack(e,s){return this.request("POST","/api/v2/packages/stacks",e,s,"application/json")}},exports.QueryAPI=class extends e{constructor(e){super(e)}postQueryAst(e,s){return this.request("POST","/api/v2/query/ast",e,s,"application/json")}getQuerySuggestions(e,s){return this.request("GET","/api/v2/query/suggestions",e,s)}getQuerySuggestionsName(e,s){return this.request("GET",`/api/v2/query/suggestions/${e.name}`,e,s)}postQueryAnalyze(e,s){return this.request("POST","/api/v2/query/analyze",e,s,"application/json")}postQuery(e,s){return this.request("POST",`/api/v2/query${this.queryString(e,["org","orgID"])}`,e,s,"application/json")}},exports.ReadyAPI=class extends e{constructor(e){super(e)}getReady(e,s){return this.request("GET","/ready",e,s)}},exports.RootAPI=class extends e{constructor(e){super(e)}getRoutes(e,s){return this.request("GET","/api/v2/",e,s)}},exports.ScrapersAPI=class extends e{constructor(e){super(e)}getScrapers(e,s){return this.request("GET",`/api/v2/scrapers${this.queryString(e,["name","id","orgID","org"])}`,e,s)}postScrapers(e,s){return this.request("POST","/api/v2/scrapers",e,s,"application/json")}getScrapersID(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}`,e,s)}patchScrapersID(e,s){return this.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}`,e,s,"application/json")}deleteScrapersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}`,e,s)}getScrapersIDLabels(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s)}postScrapersIDLabels(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s,"application/json")}patchScrapersIDLabelsID(e,s){return this.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s,"application/json")}deleteScrapersIDLabelsID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s)}getScrapersIDMembers(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s)}postScrapersIDMembers(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s,"application/json")}deleteScrapersIDMembersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/members/${e.userID}`,e,s)}getScrapersIDOwners(e,s){return this.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s)}postScrapersIDOwners(e,s){return this.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s,"application/json")}deleteScrapersIDOwnersID(e,s){return this.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/owners/${e.userID}`,e,s)}},exports.SetupAPI=class extends e{constructor(e){super(e)}getSetup(e,s){return this.request("GET","/api/v2/setup",e,s)}postSetup(e,s){return this.request("POST","/api/v2/setup",e,s,"application/json")}},exports.SigninAPI=class extends e{constructor(e){super(e)}postSignin(e,s){return this.request("POST","/api/v2/signin",e,s)}},exports.SignoutAPI=class extends e{constructor(e){super(e)}postSignout(e,s){return this.request("POST","/api/v2/signout",e,s)}},exports.SourcesAPI=class extends e{constructor(e){super(e)}getSources(e,s){return this.request("GET",`/api/v2/sources${this.queryString(e,["org"])}`,e,s)}postSources(e,s){return this.request("POST","/api/v2/sources",e,s,"application/json")}getSourcesID(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}`,e,s)}patchSourcesID(e,s){return this.request("PATCH",`/api/v2/sources/${e.sourceID}`,e,s,"application/json")}deleteSourcesID(e,s){return this.request("DELETE",`/api/v2/sources/${e.sourceID}`,e,s)}getSourcesIDHealth(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}/health`,e,s)}getSourcesIDBuckets(e,s){return this.request("GET",`/api/v2/sources/${e.sourceID}/buckets${this.queryString(e,["org"])}`,e,s)}},exports.TasksAPI=class extends e{constructor(e){super(e)}getTasks(e,s){return this.request("GET",`/api/v2/tasks${this.queryString(e,["name","after","user","org","orgID","status","limit"])}`,e,s)}postTasks(e,s){return this.request("POST","/api/v2/tasks",e,s,"application/json")}getTasksID(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}`,e,s)}patchTasksID(e,s){return this.request("PATCH",`/api/v2/tasks/${e.taskID}`,e,s,"application/json")}deleteTasksID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}`,e,s)}getTasksIDRuns(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs${this.queryString(e,["after","limit","afterTime","beforeTime"])}`,e,s)}postTasksIDRuns(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/runs`,e,s,"application/json")}getTasksIDRunsID(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}deleteTasksIDRunsID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}postTasksIDRunsIDRetry(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/retry`,e,s)}getTasksIDLogs(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/logs`,e,s)}getTasksIDRunsIDLogs(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/logs`,e,s)}getTasksIDLabels(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/labels`,e,s)}postTasksIDLabels(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/labels`,e,s,"application/json")}deleteTasksIDLabelsID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/labels/${e.labelID}`,e,s)}getTasksIDMembers(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/members`,e,s)}postTasksIDMembers(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/members`,e,s,"application/json")}deleteTasksIDMembersID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/members/${e.userID}`,e,s)}getTasksIDOwners(e,s){return this.request("GET",`/api/v2/tasks/${e.taskID}/owners`,e,s)}postTasksIDOwners(e,s){return this.request("POST",`/api/v2/tasks/${e.taskID}/owners`,e,s,"application/json")}deleteTasksIDOwnersID(e,s){return this.request("DELETE",`/api/v2/tasks/${e.taskID}/owners/${e.userID}`,e,s)}},exports.TelegrafAPI=class extends e{constructor(e){super(e)}getTelegrafPlugins(e,s){return this.request("GET",`/api/v2/telegraf/plugins${this.queryString(e,["type"])}`,e,s)}},exports.TelegrafsAPI=class extends e{constructor(e){super(e)}getTelegrafs(e,s){return this.request("GET",`/api/v2/telegrafs${this.queryString(e,["orgID"])}`,e,s)}postTelegrafs(e,s){return this.request("POST","/api/v2/telegrafs",e,s,"application/json")}getTelegrafsID(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}`,e,s)}putTelegrafsID(e,s){return this.request("PUT",`/api/v2/telegrafs/${e.telegrafID}`,e,s,"application/json")}deleteTelegrafsID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}`,e,s)}getTelegrafsIDLabels(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s)}postTelegrafsIDLabels(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s,"application/json")}deleteTelegrafsIDLabelsID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/labels/${e.labelID}`,e,s)}getTelegrafsIDMembers(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s)}postTelegrafsIDMembers(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s,"application/json")}deleteTelegrafsIDMembersID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/members/${e.userID}`,e,s)}getTelegrafsIDOwners(e,s){return this.request("GET",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s)}postTelegrafsIDOwners(e,s){return this.request("POST",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s,"application/json")}deleteTelegrafsIDOwnersID(e,s){return this.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/owners/${e.userID}`,e,s)}},exports.UsersAPI=class extends e{constructor(e){super(e)}getUsers(e,s){return this.request("GET","/api/v2/users",e,s)}postUsers(e,s){return this.request("POST","/api/v2/users",e,s,"application/json")}getUsersID(e,s){return this.request("GET",`/api/v2/users/${e.userID}`,e,s)}patchUsersID(e,s){return this.request("PATCH",`/api/v2/users/${e.userID}`,e,s,"application/json")}deleteUsersID(e,s){return this.request("DELETE",`/api/v2/users/${e.userID}`,e,s)}putUsersIDPassword(e,s){return this.request("PUT",`/api/v2/users/${e.userID}/password`,e,s,"application/json")}getUsersIDLogs(e,s){return this.request("GET",`/api/v2/users/${e.userID}/logs${this.queryString(e,["offset","limit"])}`,e,s)}},exports.VariablesAPI=class extends e{constructor(e){super(e)}getVariables(e,s){return this.request("GET",`/api/v2/variables${this.queryString(e,["org","orgID"])}`,e,s)}postVariables(e,s){return this.request("POST","/api/v2/variables",e,s,"application/json")}getVariablesID(e,s){return this.request("GET",`/api/v2/variables/${e.variableID}`,e,s)}putVariablesID(e,s){return this.request("PUT",`/api/v2/variables/${e.variableID}`,e,s,"application/json")}patchVariablesID(e,s){return this.request("PATCH",`/api/v2/variables/${e.variableID}`,e,s,"application/json")}deleteVariablesID(e,s){return this.request("DELETE",`/api/v2/variables/${e.variableID}`,e,s)}getVariablesIDLabels(e,s){return this.request("GET",`/api/v2/variables/${e.variableID}/labels`,e,s)}postVariablesIDLabels(e,s){return this.request("POST",`/api/v2/variables/${e.variableID}/labels`,e,s,"application/json")}deleteVariablesIDLabelsID(e,s){return this.request("DELETE",`/api/v2/variables/${e.variableID}/labels/${e.labelID}`,e,s)}},exports.WriteAPI=class extends e{constructor(e){super(e)}postWrite(e,s){return this.request("POST",`/api/v2/write${this.queryString(e,["org","orgID","bucket","precision"])}`,e,s,"text/plain")}};
//# sourceMappingURL=index.js.map

@@ -15,3 +15,3 @@ var influxdbApis=function(t){"use strict";

and limitations under the License.
***************************************************************************** */var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,r)};function r(t,r){function s(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}var s=function(){return(s=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=function(){function t(t){if(!t)throw new Error("No influxDB supplied!");if(!t.transport)throw new Error("No transport supplied!");this.transport=t.transport}return t.prototype.queryString=function(t,e){return t&&e?e.reduce((function(e,r){var s=t[r];return null!=s&&(e+=e?"&":"?",e+=encodeURIComponent(r)+"="+encodeURIComponent(String(s))),e}),""):""},t.prototype.request=function(t,e,r,o,n){void 0===r&&(r={});var i=s(s({},o),{method:t});if(n&&((i.headers||(i.headers={}))["content-type"]=n),r.auth){var a=r.auth.user+":"+r.auth.password;(i.headers||(i.headers={})).authorization=btoa(a)}return this.transport.request(e,r.body?r.body:"",i)},t}(),n=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getRoutes=function(t,e){return this.request("GET","/api/v2/",t,e)},e}(o),i=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getAuthorizations=function(t,e){return this.request("GET","/api/v2/authorizations"+this.queryString(t,["userID","user","orgID","org"]),t,e)},e.prototype.postAuthorizations=function(t,e){return this.request("POST","/api/v2/authorizations",t,e,"application/json")},e.prototype.getAuthorizationsID=function(t,e){return this.request("GET","/api/v2/authorizations/"+t.authID,t,e)},e.prototype.patchAuthorizationsID=function(t,e){return this.request("PATCH","/api/v2/authorizations/"+t.authID,t,e,"application/json")},e.prototype.deleteAuthorizationsID=function(t,e){return this.request("DELETE","/api/v2/authorizations/"+t.authID,t,e)},e}(o),a=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getBuckets=function(t,e){return this.request("GET","/api/v2/buckets"+this.queryString(t,["offset","limit","org","orgID","name"]),t,e)},e.prototype.postBuckets=function(t,e){return this.request("POST","/api/v2/buckets",t,e,"application/json")},e.prototype.getBucketsID=function(t,e){return this.request("GET","/api/v2/buckets/"+t.bucketID,t,e)},e.prototype.patchBucketsID=function(t,e){return this.request("PATCH","/api/v2/buckets/"+t.bucketID,t,e,"application/json")},e.prototype.deleteBucketsID=function(t,e){return this.request("DELETE","/api/v2/buckets/"+t.bucketID,t,e)},e.prototype.getBucketsIDLabels=function(t,e){return this.request("GET","/api/v2/buckets/"+t.bucketID+"/labels",t,e)},e.prototype.postBucketsIDLabels=function(t,e){return this.request("POST","/api/v2/buckets/"+t.bucketID+"/labels",t,e,"application/json")},e.prototype.deleteBucketsIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/buckets/"+t.bucketID+"/labels/"+t.labelID,t,e)},e.prototype.getBucketsIDMembers=function(t,e){return this.request("GET","/api/v2/buckets/"+t.bucketID+"/members",t,e)},e.prototype.postBucketsIDMembers=function(t,e){return this.request("POST","/api/v2/buckets/"+t.bucketID+"/members",t,e,"application/json")},e.prototype.deleteBucketsIDMembersID=function(t,e){return this.request("DELETE","/api/v2/buckets/"+t.bucketID+"/members/"+t.userID,t,e)},e.prototype.getBucketsIDOwners=function(t,e){return this.request("GET","/api/v2/buckets/"+t.bucketID+"/owners",t,e)},e.prototype.postBucketsIDOwners=function(t,e){return this.request("POST","/api/v2/buckets/"+t.bucketID+"/owners",t,e,"application/json")},e.prototype.deleteBucketsIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/buckets/"+t.bucketID+"/owners/"+t.userID,t,e)},e.prototype.getBucketsIDLogs=function(t,e){return this.request("GET","/api/v2/buckets/"+t.bucketID+"/logs"+this.queryString(t,["offset","limit"]),t,e)},e}(o),u=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getChecks=function(t,e){return this.request("GET","/api/v2/checks"+this.queryString(t,["offset","limit","orgID"]),t,e)},e.prototype.createCheck=function(t,e){return this.request("POST","/api/v2/checks",t,e,"application/json")},e.prototype.getChecksID=function(t,e){return this.request("GET","/api/v2/checks/"+t.checkID,t,e)},e.prototype.putChecksID=function(t,e){return this.request("PUT","/api/v2/checks/"+t.checkID,t,e,"application/json")},e.prototype.patchChecksID=function(t,e){return this.request("PATCH","/api/v2/checks/"+t.checkID,t,e,"application/json")},e.prototype.deleteChecksID=function(t,e){return this.request("DELETE","/api/v2/checks/"+t.checkID,t,e)},e.prototype.getChecksIDLabels=function(t,e){return this.request("GET","/api/v2/checks/"+t.checkID+"/labels",t,e)},e.prototype.postChecksIDLabels=function(t,e){return this.request("POST","/api/v2/checks/"+t.checkID+"/labels",t,e,"application/json")},e.prototype.deleteChecksIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/checks/"+t.checkID+"/labels/"+t.labelID,t,e)},e.prototype.getChecksIDQuery=function(t,e){return this.request("GET","/api/v2/checks/"+t.checkID+"/query",t,e)},e}(o),p=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getDashboards=function(t,e){return this.request("GET","/api/v2/dashboards"+this.queryString(t,["owner","sortBy","id","orgID","org"]),t,e)},e.prototype.postDashboards=function(t,e){return this.request("POST","/api/v2/dashboards",t,e,"application/json")},e.prototype.getDashboardsID=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+this.queryString(t,["include"]),t,e)},e.prototype.patchDashboardsID=function(t,e){return this.request("PATCH","/api/v2/dashboards/"+t.dashboardID,t,e,"application/json")},e.prototype.deleteDashboardsID=function(t,e){return this.request("DELETE","/api/v2/dashboards/"+t.dashboardID,t,e)},e.prototype.postDashboardsIDCells=function(t,e){return this.request("POST","/api/v2/dashboards/"+t.dashboardID+"/cells",t,e,"application/json")},e.prototype.putDashboardsIDCells=function(t,e){return this.request("PUT","/api/v2/dashboards/"+t.dashboardID+"/cells",t,e,"application/json")},e.prototype.patchDashboardsIDCellsID=function(t,e){return this.request("PATCH","/api/v2/dashboards/"+t.dashboardID+"/cells/"+t.cellID,t,e,"application/json")},e.prototype.deleteDashboardsIDCellsID=function(t,e){return this.request("DELETE","/api/v2/dashboards/"+t.dashboardID+"/cells/"+t.cellID,t,e)},e.prototype.getDashboardsIDCellsIDView=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+"/cells/"+t.cellID+"/view",t,e)},e.prototype.patchDashboardsIDCellsIDView=function(t,e){return this.request("PATCH","/api/v2/dashboards/"+t.dashboardID+"/cells/"+t.cellID+"/view",t,e,"application/json")},e.prototype.getDashboardsIDLabels=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+"/labels",t,e)},e.prototype.postDashboardsIDLabels=function(t,e){return this.request("POST","/api/v2/dashboards/"+t.dashboardID+"/labels",t,e,"application/json")},e.prototype.deleteDashboardsIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/dashboards/"+t.dashboardID+"/labels/"+t.labelID,t,e)},e.prototype.getDashboardsIDMembers=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+"/members",t,e)},e.prototype.postDashboardsIDMembers=function(t,e){return this.request("POST","/api/v2/dashboards/"+t.dashboardID+"/members",t,e,"application/json")},e.prototype.deleteDashboardsIDMembersID=function(t,e){return this.request("DELETE","/api/v2/dashboards/"+t.dashboardID+"/members/"+t.userID,t,e)},e.prototype.getDashboardsIDOwners=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+"/owners",t,e)},e.prototype.postDashboardsIDOwners=function(t,e){return this.request("POST","/api/v2/dashboards/"+t.dashboardID+"/owners",t,e,"application/json")},e.prototype.deleteDashboardsIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/dashboards/"+t.dashboardID+"/owners/"+t.userID,t,e)},e.prototype.getDashboardsIDLogs=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+"/logs"+this.queryString(t,["offset","limit"]),t,e)},e}(o),c=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.postDelete=function(t,e){return this.request("POST","/api/v2/delete"+this.queryString(t,["org","bucket","orgID","bucketID"]),t,e,"application/json")},e}(o),l=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getDocumentsTemplates=function(t,e){return this.request("GET","/api/v2/documents/templates"+this.queryString(t,["org","orgID"]),t,e)},e.prototype.postDocumentsTemplates=function(t,e){return this.request("POST","/api/v2/documents/templates",t,e,"application/json")},e.prototype.getDocumentsTemplatesID=function(t,e){return this.request("GET","/api/v2/documents/templates/"+t.templateID,t,e)},e.prototype.putDocumentsTemplatesID=function(t,e){return this.request("PUT","/api/v2/documents/templates/"+t.templateID,t,e,"application/json")},e.prototype.deleteDocumentsTemplatesID=function(t,e){return this.request("DELETE","/api/v2/documents/templates/"+t.templateID,t,e)},e.prototype.getDocumentsTemplatesIDLabels=function(t,e){return this.request("GET","/api/v2/documents/templates/"+t.templateID+"/labels",t,e)},e.prototype.postDocumentsTemplatesIDLabels=function(t,e){return this.request("POST","/api/v2/documents/templates/"+t.templateID+"/labels",t,e,"application/json")},e.prototype.deleteDocumentsTemplatesIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/documents/templates/"+t.templateID+"/labels/"+t.labelID,t,e)},e}(o),D=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getHealth=function(t,e){return this.request("GET","/health",t,e)},e}(o),h=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getLabels=function(t,e){return this.request("GET","/api/v2/labels"+this.queryString(t,["orgID"]),t,e)},e.prototype.postLabels=function(t,e){return this.request("POST","/api/v2/labels",t,e,"application/json")},e.prototype.getLabelsID=function(t,e){return this.request("GET","/api/v2/labels/"+t.labelID,t,e)},e.prototype.patchLabelsID=function(t,e){return this.request("PATCH","/api/v2/labels/"+t.labelID,t,e,"application/json")},e.prototype.deleteLabelsID=function(t,e){return this.request("DELETE","/api/v2/labels/"+t.labelID,t,e)},e}(o),I=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getMe=function(t,e){return this.request("GET","/api/v2/me",t,e)},e.prototype.putMePassword=function(t,e){return this.request("PUT","/api/v2/me/password",t,e,"application/json")},e}(o),f=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getNotificationEndpoints=function(t,e){return this.request("GET","/api/v2/notificationEndpoints"+this.queryString(t,["offset","limit","orgID"]),t,e)},e.prototype.createNotificationEndpoint=function(t,e){return this.request("POST","/api/v2/notificationEndpoints",t,e,"application/json")},e.prototype.getNotificationEndpointsID=function(t,e){return this.request("GET","/api/v2/notificationEndpoints/"+t.endpointID,t,e)},e.prototype.putNotificationEndpointsID=function(t,e){return this.request("PUT","/api/v2/notificationEndpoints/"+t.endpointID,t,e,"application/json")},e.prototype.patchNotificationEndpointsID=function(t,e){return this.request("PATCH","/api/v2/notificationEndpoints/"+t.endpointID,t,e,"application/json")},e.prototype.deleteNotificationEndpointsID=function(t,e){return this.request("DELETE","/api/v2/notificationEndpoints/"+t.endpointID,t,e)},e.prototype.getNotificationEndpointsIDLabels=function(t,e){return this.request("GET","/api/v2/notificationEndpoints/"+t.endpointID+"/labels",t,e)},e.prototype.postNotificationEndpointIDLabels=function(t,e){return this.request("POST","/api/v2/notificationEndpoints/"+t.endpointID+"/labels",t,e,"application/json")},e.prototype.deleteNotificationEndpointsIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/notificationEndpoints/"+t.endpointID+"/labels/"+t.labelID,t,e)},e}(o),g=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getNotificationRules=function(t,e){return this.request("GET","/api/v2/notificationRules"+this.queryString(t,["offset","limit","orgID","checkID","tag"]),t,e)},e.prototype.createNotificationRule=function(t,e){return this.request("POST","/api/v2/notificationRules",t,e,"application/json")},e.prototype.getNotificationRulesID=function(t,e){return this.request("GET","/api/v2/notificationRules/"+t.ruleID,t,e)},e.prototype.putNotificationRulesID=function(t,e){return this.request("PUT","/api/v2/notificationRules/"+t.ruleID,t,e,"application/json")},e.prototype.patchNotificationRulesID=function(t,e){return this.request("PATCH","/api/v2/notificationRules/"+t.ruleID,t,e,"application/json")},e.prototype.deleteNotificationRulesID=function(t,e){return this.request("DELETE","/api/v2/notificationRules/"+t.ruleID,t,e)},e.prototype.getNotificationRulesIDLabels=function(t,e){return this.request("GET","/api/v2/notificationRules/"+t.ruleID+"/labels",t,e)},e.prototype.postNotificationRuleIDLabels=function(t,e){return this.request("POST","/api/v2/notificationRules/"+t.ruleID+"/labels",t,e,"application/json")},e.prototype.deleteNotificationRulesIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/notificationRules/"+t.ruleID+"/labels/"+t.labelID,t,e)},e.prototype.getNotificationRulesIDQuery=function(t,e){return this.request("GET","/api/v2/notificationRules/"+t.ruleID+"/query",t,e)},e}(o),b=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getOrgs=function(t,e){return this.request("GET","/api/v2/orgs"+this.queryString(t,["org","orgID"]),t,e)},e.prototype.postOrgs=function(t,e){return this.request("POST","/api/v2/orgs",t,e,"application/json")},e.prototype.getOrgsID=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID,t,e)},e.prototype.patchOrgsID=function(t,e){return this.request("PATCH","/api/v2/orgs/"+t.orgID,t,e,"application/json")},e.prototype.deleteOrgsID=function(t,e){return this.request("DELETE","/api/v2/orgs/"+t.orgID,t,e)},e.prototype.getOrgsIDLabels=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID+"/labels",t,e)},e.prototype.postOrgsIDLabels=function(t,e){return this.request("POST","/api/v2/orgs/"+t.orgID+"/labels",t,e,"application/json")},e.prototype.deleteOrgsIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/orgs/"+t.orgID+"/labels/"+t.labelID,t,e)},e.prototype.getOrgsIDSecrets=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID+"/secrets",t,e)},e.prototype.patchOrgsIDSecrets=function(t,e){return this.request("PATCH","/api/v2/orgs/"+t.orgID+"/secrets",t,e,"application/json")},e.prototype.postOrgsIDSecrets=function(t,e){return this.request("POST","/api/v2/orgs/"+t.orgID+"/secrets/delete",t,e,"application/json")},e.prototype.getOrgsIDMembers=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID+"/members",t,e)},e.prototype.postOrgsIDMembers=function(t,e){return this.request("POST","/api/v2/orgs/"+t.orgID+"/members",t,e,"application/json")},e.prototype.deleteOrgsIDMembersID=function(t,e){return this.request("DELETE","/api/v2/orgs/"+t.orgID+"/members/"+t.userID,t,e)},e.prototype.getOrgsIDOwners=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID+"/owners",t,e)},e.prototype.postOrgsIDOwners=function(t,e){return this.request("POST","/api/v2/orgs/"+t.orgID+"/owners",t,e,"application/json")},e.prototype.deleteOrgsIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/orgs/"+t.orgID+"/owners/"+t.userID,t,e)},e.prototype.getOrgsIDLogs=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID+"/logs"+this.queryString(t,["offset","limit"]),t,e)},e}(o),y=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.createPkg=function(t,e){return this.request("POST","/api/v2/packages",t,e,"application/json")},e.prototype.applyPkg=function(t,e){return this.request("POST","/api/v2/packages/apply",t,e,"application/json")},e}(o),T=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.postQueryAst=function(t,e){return this.request("POST","/api/v2/query/ast",t,e,"application/json")},e.prototype.getQuerySuggestions=function(t,e){return this.request("GET","/api/v2/query/suggestions",t,e)},e.prototype.getQuerySuggestionsName=function(t,e){return this.request("GET","/api/v2/query/suggestions/"+t.name,t,e)},e.prototype.postQueryAnalyze=function(t,e){return this.request("POST","/api/v2/query/analyze",t,e,"application/json")},e.prototype.postQuery=function(t,e){return this.request("POST","/api/v2/query"+this.queryString(t,["org","orgID"]),t,e,"application/json")},e}(o),q=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getReady=function(t,e){return this.request("GET","/ready",t,e)},e}(o),v=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getScrapers=function(t,e){return this.request("GET","/api/v2/scrapers"+this.queryString(t,["name","id","orgID","org"]),t,e)},e.prototype.postScrapers=function(t,e){return this.request("POST","/api/v2/scrapers",t,e,"application/json")},e.prototype.getScrapersID=function(t,e){return this.request("GET","/api/v2/scrapers/"+t.scraperTargetID,t,e)},e.prototype.patchScrapersID=function(t,e){return this.request("PATCH","/api/v2/scrapers/"+t.scraperTargetID,t,e,"application/json")},e.prototype.deleteScrapersID=function(t,e){return this.request("DELETE","/api/v2/scrapers/"+t.scraperTargetID,t,e)},e.prototype.getScrapersIDLabels=function(t,e){return this.request("GET","/api/v2/scrapers/"+t.scraperTargetID+"/labels",t,e)},e.prototype.postScrapersIDLabels=function(t,e){return this.request("POST","/api/v2/scrapers/"+t.scraperTargetID+"/labels",t,e,"application/json")},e.prototype.patchScrapersIDLabelsID=function(t,e){return this.request("PATCH","/api/v2/scrapers/"+t.scraperTargetID+"/labels/"+t.labelID,t,e,"application/json")},e.prototype.deleteScrapersIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/scrapers/"+t.scraperTargetID+"/labels/"+t.labelID,t,e)},e.prototype.getScrapersIDMembers=function(t,e){return this.request("GET","/api/v2/scrapers/"+t.scraperTargetID+"/members",t,e)},e.prototype.postScrapersIDMembers=function(t,e){return this.request("POST","/api/v2/scrapers/"+t.scraperTargetID+"/members",t,e,"application/json")},e.prototype.deleteScrapersIDMembersID=function(t,e){return this.request("DELETE","/api/v2/scrapers/"+t.scraperTargetID+"/members/"+t.userID,t,e)},e.prototype.getScrapersIDOwners=function(t,e){return this.request("GET","/api/v2/scrapers/"+t.scraperTargetID+"/owners",t,e)},e.prototype.postScrapersIDOwners=function(t,e){return this.request("POST","/api/v2/scrapers/"+t.scraperTargetID+"/owners",t,e,"application/json")},e.prototype.deleteScrapersIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/scrapers/"+t.scraperTargetID+"/owners/"+t.userID,t,e)},e}(o),E=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getSetup=function(t,e){return this.request("GET","/api/v2/setup",t,e)},e.prototype.postSetup=function(t,e){return this.request("POST","/api/v2/setup",t,e,"application/json")},e}(o),d=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.postSignin=function(t,e){return this.request("POST","/api/v2/signin",t,e)},e}(o),k=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.postSignout=function(t,e){return this.request("POST","/api/v2/signout",t,e)},e}(o),m=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getSources=function(t,e){return this.request("GET","/api/v2/sources"+this.queryString(t,["org"]),t,e)},e.prototype.postSources=function(t,e){return this.request("POST","/api/v2/sources",t,e,"application/json")},e.prototype.getSourcesID=function(t,e){return this.request("GET","/api/v2/sources/"+t.sourceID,t,e)},e.prototype.patchSourcesID=function(t,e){return this.request("PATCH","/api/v2/sources/"+t.sourceID,t,e,"application/json")},e.prototype.deleteSourcesID=function(t,e){return this.request("DELETE","/api/v2/sources/"+t.sourceID,t,e)},e.prototype.getSourcesIDHealth=function(t,e){return this.request("GET","/api/v2/sources/"+t.sourceID+"/health",t,e)},e.prototype.getSourcesIDBuckets=function(t,e){return this.request("GET","/api/v2/sources/"+t.sourceID+"/buckets"+this.queryString(t,["org"]),t,e)},e}(o),S=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getTasks=function(t,e){return this.request("GET","/api/v2/tasks"+this.queryString(t,["name","after","user","org","orgID","status","limit"]),t,e)},e.prototype.postTasks=function(t,e){return this.request("POST","/api/v2/tasks",t,e,"application/json")},e.prototype.getTasksID=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID,t,e)},e.prototype.patchTasksID=function(t,e){return this.request("PATCH","/api/v2/tasks/"+t.taskID,t,e,"application/json")},e.prototype.deleteTasksID=function(t,e){return this.request("DELETE","/api/v2/tasks/"+t.taskID,t,e)},e.prototype.getTasksIDRuns=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/runs"+this.queryString(t,["after","limit","afterTime","beforeTime"]),t,e)},e.prototype.postTasksIDRuns=function(t,e){return this.request("POST","/api/v2/tasks/"+t.taskID+"/runs",t,e,"application/json")},e.prototype.getTasksIDRunsID=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/runs/"+t.runID,t,e)},e.prototype.deleteTasksIDRunsID=function(t,e){return this.request("DELETE","/api/v2/tasks/"+t.taskID+"/runs/"+t.runID,t,e)},e.prototype.postTasksIDRunsIDRetry=function(t,e){return this.request("POST","/api/v2/tasks/"+t.taskID+"/runs/"+t.runID+"/retry",t,e)},e.prototype.getTasksIDLogs=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/logs",t,e)},e.prototype.getTasksIDRunsIDLogs=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/runs/"+t.runID+"/logs",t,e)},e.prototype.getTasksIDLabels=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/labels",t,e)},e.prototype.postTasksIDLabels=function(t,e){return this.request("POST","/api/v2/tasks/"+t.taskID+"/labels",t,e,"application/json")},e.prototype.deleteTasksIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/tasks/"+t.taskID+"/labels/"+t.labelID,t,e)},e.prototype.getTasksIDMembers=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/members",t,e)},e.prototype.postTasksIDMembers=function(t,e){return this.request("POST","/api/v2/tasks/"+t.taskID+"/members",t,e,"application/json")},e.prototype.deleteTasksIDMembersID=function(t,e){return this.request("DELETE","/api/v2/tasks/"+t.taskID+"/members/"+t.userID,t,e)},e.prototype.getTasksIDOwners=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/owners",t,e)},e.prototype.postTasksIDOwners=function(t,e){return this.request("POST","/api/v2/tasks/"+t.taskID+"/owners",t,e,"application/json")},e.prototype.deleteTasksIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/tasks/"+t.taskID+"/owners/"+t.userID,t,e)},e}(o),P=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getTelegrafPlugins=function(t,e){return this.request("GET","/api/v2/telegraf/plugins"+this.queryString(t,["type"]),t,e)},e}(o),O=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getTelegrafs=function(t,e){return this.request("GET","/api/v2/telegrafs"+this.queryString(t,["orgID"]),t,e)},e.prototype.postTelegrafs=function(t,e){return this.request("POST","/api/v2/telegrafs",t,e,"application/json")},e.prototype.getTelegrafsID=function(t,e){return this.request("GET","/api/v2/telegrafs/"+t.telegrafID,t,e)},e.prototype.putTelegrafsID=function(t,e){return this.request("PUT","/api/v2/telegrafs/"+t.telegrafID,t,e,"application/json")},e.prototype.deleteTelegrafsID=function(t,e){return this.request("DELETE","/api/v2/telegrafs/"+t.telegrafID,t,e)},e.prototype.getTelegrafsIDLabels=function(t,e){return this.request("GET","/api/v2/telegrafs/"+t.telegrafID+"/labels",t,e)},e.prototype.postTelegrafsIDLabels=function(t,e){return this.request("POST","/api/v2/telegrafs/"+t.telegrafID+"/labels",t,e,"application/json")},e.prototype.deleteTelegrafsIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/telegrafs/"+t.telegrafID+"/labels/"+t.labelID,t,e)},e.prototype.getTelegrafsIDMembers=function(t,e){return this.request("GET","/api/v2/telegrafs/"+t.telegrafID+"/members",t,e)},e.prototype.postTelegrafsIDMembers=function(t,e){return this.request("POST","/api/v2/telegrafs/"+t.telegrafID+"/members",t,e,"application/json")},e.prototype.deleteTelegrafsIDMembersID=function(t,e){return this.request("DELETE","/api/v2/telegrafs/"+t.telegrafID+"/members/"+t.userID,t,e)},e.prototype.getTelegrafsIDOwners=function(t,e){return this.request("GET","/api/v2/telegrafs/"+t.telegrafID+"/owners",t,e)},e.prototype.postTelegrafsIDOwners=function(t,e){return this.request("POST","/api/v2/telegrafs/"+t.telegrafID+"/owners",t,e,"application/json")},e.prototype.deleteTelegrafsIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/telegrafs/"+t.telegrafID+"/owners/"+t.userID,t,e)},e}(o),L=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getUsers=function(t,e){return this.request("GET","/api/v2/users",t,e)},e.prototype.postUsers=function(t,e){return this.request("POST","/api/v2/users",t,e,"application/json")},e.prototype.getUsersID=function(t,e){return this.request("GET","/api/v2/users/"+t.userID,t,e)},e.prototype.patchUsersID=function(t,e){return this.request("PATCH","/api/v2/users/"+t.userID,t,e,"application/json")},e.prototype.deleteUsersID=function(t,e){return this.request("DELETE","/api/v2/users/"+t.userID,t,e)},e.prototype.putUsersIDPassword=function(t,e){return this.request("PUT","/api/v2/users/"+t.userID+"/password",t,e,"application/json")},e.prototype.getUsersIDLogs=function(t,e){return this.request("GET","/api/v2/users/"+t.userID+"/logs"+this.queryString(t,["offset","limit"]),t,e)},e}(o),j=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getVariables=function(t,e){return this.request("GET","/api/v2/variables"+this.queryString(t,["org","orgID"]),t,e)},e.prototype.postVariables=function(t,e){return this.request("POST","/api/v2/variables",t,e,"application/json")},e.prototype.getVariablesID=function(t,e){return this.request("GET","/api/v2/variables/"+t.variableID,t,e)},e.prototype.putVariablesID=function(t,e){return this.request("PUT","/api/v2/variables/"+t.variableID,t,e,"application/json")},e.prototype.patchVariablesID=function(t,e){return this.request("PATCH","/api/v2/variables/"+t.variableID,t,e,"application/json")},e.prototype.deleteVariablesID=function(t,e){return this.request("DELETE","/api/v2/variables/"+t.variableID,t,e)},e.prototype.getVariablesIDLabels=function(t,e){return this.request("GET","/api/v2/variables/"+t.variableID+"/labels",t,e)},e.prototype.postVariablesIDLabels=function(t,e){return this.request("POST","/api/v2/variables/"+t.variableID+"/labels",t,e,"application/json")},e.prototype.deleteVariablesIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/variables/"+t.variableID+"/labels/"+t.labelID,t,e)},e}(o),G=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.postWrite=function(t,e){return this.request("POST","/api/v2/write"+this.queryString(t,["org","orgID","bucket","precision"]),t,e,"text/plain")},e}(o);return t.AuthorizationsAPI=i,t.BucketsAPI=a,t.ChecksAPI=u,t.DashboardsAPI=p,t.DeleteAPI=c,t.DocumentsAPI=l,t.HealthAPI=D,t.LabelsAPI=h,t.MeAPI=I,t.NotificationEndpointsAPI=f,t.NotificationRulesAPI=g,t.OrgsAPI=b,t.PackagesAPI=y,t.QueryAPI=T,t.ReadyAPI=q,t.RootAPI=n,t.ScrapersAPI=v,t.SetupAPI=E,t.SigninAPI=d,t.SignoutAPI=k,t.SourcesAPI=m,t.TasksAPI=S,t.TelegrafAPI=P,t.TelegrafsAPI=O,t.UsersAPI=L,t.VariablesAPI=j,t.WriteAPI=G,t}({});
***************************************************************************** */var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,r)};function r(t,r){function s(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}var s=function(){return(s=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=function(){function t(t){if(!t)throw new Error("No influxDB supplied!");if(!t.transport)throw new Error("No transport supplied!");this.transport=t.transport}return t.prototype.queryString=function(t,e){return t&&e?e.reduce((function(e,r){var s=t[r];return null!=s&&(e+=e?"&":"?",e+=encodeURIComponent(r)+"="+encodeURIComponent(String(s))),e}),""):""},t.prototype.request=function(t,e,r,o,n){void 0===r&&(r={});var i=s(s({},o),{method:t});if(n&&((i.headers||(i.headers={}))["content-type"]=n),r.auth){var a=r.auth.user+":"+r.auth.password;(i.headers||(i.headers={})).authorization=btoa(a)}return this.transport.request(e,r.body?r.body:"",i)},t}(),n=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getRoutes=function(t,e){return this.request("GET","/api/v2/",t,e)},e}(o),i=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getAuthorizations=function(t,e){return this.request("GET","/api/v2/authorizations"+this.queryString(t,["userID","user","orgID","org"]),t,e)},e.prototype.postAuthorizations=function(t,e){return this.request("POST","/api/v2/authorizations",t,e,"application/json")},e.prototype.getAuthorizationsID=function(t,e){return this.request("GET","/api/v2/authorizations/"+t.authID,t,e)},e.prototype.patchAuthorizationsID=function(t,e){return this.request("PATCH","/api/v2/authorizations/"+t.authID,t,e,"application/json")},e.prototype.deleteAuthorizationsID=function(t,e){return this.request("DELETE","/api/v2/authorizations/"+t.authID,t,e)},e}(o),a=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getBuckets=function(t,e){return this.request("GET","/api/v2/buckets"+this.queryString(t,["offset","limit","org","orgID","name"]),t,e)},e.prototype.postBuckets=function(t,e){return this.request("POST","/api/v2/buckets",t,e,"application/json")},e.prototype.getBucketsID=function(t,e){return this.request("GET","/api/v2/buckets/"+t.bucketID,t,e)},e.prototype.patchBucketsID=function(t,e){return this.request("PATCH","/api/v2/buckets/"+t.bucketID,t,e,"application/json")},e.prototype.deleteBucketsID=function(t,e){return this.request("DELETE","/api/v2/buckets/"+t.bucketID,t,e)},e.prototype.getBucketsIDLabels=function(t,e){return this.request("GET","/api/v2/buckets/"+t.bucketID+"/labels",t,e)},e.prototype.postBucketsIDLabels=function(t,e){return this.request("POST","/api/v2/buckets/"+t.bucketID+"/labels",t,e,"application/json")},e.prototype.deleteBucketsIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/buckets/"+t.bucketID+"/labels/"+t.labelID,t,e)},e.prototype.getBucketsIDMembers=function(t,e){return this.request("GET","/api/v2/buckets/"+t.bucketID+"/members",t,e)},e.prototype.postBucketsIDMembers=function(t,e){return this.request("POST","/api/v2/buckets/"+t.bucketID+"/members",t,e,"application/json")},e.prototype.deleteBucketsIDMembersID=function(t,e){return this.request("DELETE","/api/v2/buckets/"+t.bucketID+"/members/"+t.userID,t,e)},e.prototype.getBucketsIDOwners=function(t,e){return this.request("GET","/api/v2/buckets/"+t.bucketID+"/owners",t,e)},e.prototype.postBucketsIDOwners=function(t,e){return this.request("POST","/api/v2/buckets/"+t.bucketID+"/owners",t,e,"application/json")},e.prototype.deleteBucketsIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/buckets/"+t.bucketID+"/owners/"+t.userID,t,e)},e.prototype.getBucketsIDLogs=function(t,e){return this.request("GET","/api/v2/buckets/"+t.bucketID+"/logs"+this.queryString(t,["offset","limit"]),t,e)},e}(o),u=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getChecks=function(t,e){return this.request("GET","/api/v2/checks"+this.queryString(t,["offset","limit","orgID"]),t,e)},e.prototype.createCheck=function(t,e){return this.request("POST","/api/v2/checks",t,e,"application/json")},e.prototype.getChecksID=function(t,e){return this.request("GET","/api/v2/checks/"+t.checkID,t,e)},e.prototype.putChecksID=function(t,e){return this.request("PUT","/api/v2/checks/"+t.checkID,t,e,"application/json")},e.prototype.patchChecksID=function(t,e){return this.request("PATCH","/api/v2/checks/"+t.checkID,t,e,"application/json")},e.prototype.deleteChecksID=function(t,e){return this.request("DELETE","/api/v2/checks/"+t.checkID,t,e)},e.prototype.getChecksIDLabels=function(t,e){return this.request("GET","/api/v2/checks/"+t.checkID+"/labels",t,e)},e.prototype.postChecksIDLabels=function(t,e){return this.request("POST","/api/v2/checks/"+t.checkID+"/labels",t,e,"application/json")},e.prototype.deleteChecksIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/checks/"+t.checkID+"/labels/"+t.labelID,t,e)},e.prototype.getChecksIDQuery=function(t,e){return this.request("GET","/api/v2/checks/"+t.checkID+"/query",t,e)},e}(o),p=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getDashboards=function(t,e){return this.request("GET","/api/v2/dashboards"+this.queryString(t,["owner","sortBy","id","orgID","org"]),t,e)},e.prototype.postDashboards=function(t,e){return this.request("POST","/api/v2/dashboards",t,e,"application/json")},e.prototype.getDashboardsID=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+this.queryString(t,["include"]),t,e)},e.prototype.patchDashboardsID=function(t,e){return this.request("PATCH","/api/v2/dashboards/"+t.dashboardID,t,e,"application/json")},e.prototype.deleteDashboardsID=function(t,e){return this.request("DELETE","/api/v2/dashboards/"+t.dashboardID,t,e)},e.prototype.postDashboardsIDCells=function(t,e){return this.request("POST","/api/v2/dashboards/"+t.dashboardID+"/cells",t,e,"application/json")},e.prototype.putDashboardsIDCells=function(t,e){return this.request("PUT","/api/v2/dashboards/"+t.dashboardID+"/cells",t,e,"application/json")},e.prototype.patchDashboardsIDCellsID=function(t,e){return this.request("PATCH","/api/v2/dashboards/"+t.dashboardID+"/cells/"+t.cellID,t,e,"application/json")},e.prototype.deleteDashboardsIDCellsID=function(t,e){return this.request("DELETE","/api/v2/dashboards/"+t.dashboardID+"/cells/"+t.cellID,t,e)},e.prototype.getDashboardsIDCellsIDView=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+"/cells/"+t.cellID+"/view",t,e)},e.prototype.patchDashboardsIDCellsIDView=function(t,e){return this.request("PATCH","/api/v2/dashboards/"+t.dashboardID+"/cells/"+t.cellID+"/view",t,e,"application/json")},e.prototype.getDashboardsIDLabels=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+"/labels",t,e)},e.prototype.postDashboardsIDLabels=function(t,e){return this.request("POST","/api/v2/dashboards/"+t.dashboardID+"/labels",t,e,"application/json")},e.prototype.deleteDashboardsIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/dashboards/"+t.dashboardID+"/labels/"+t.labelID,t,e)},e.prototype.getDashboardsIDMembers=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+"/members",t,e)},e.prototype.postDashboardsIDMembers=function(t,e){return this.request("POST","/api/v2/dashboards/"+t.dashboardID+"/members",t,e,"application/json")},e.prototype.deleteDashboardsIDMembersID=function(t,e){return this.request("DELETE","/api/v2/dashboards/"+t.dashboardID+"/members/"+t.userID,t,e)},e.prototype.getDashboardsIDOwners=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+"/owners",t,e)},e.prototype.postDashboardsIDOwners=function(t,e){return this.request("POST","/api/v2/dashboards/"+t.dashboardID+"/owners",t,e,"application/json")},e.prototype.deleteDashboardsIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/dashboards/"+t.dashboardID+"/owners/"+t.userID,t,e)},e.prototype.getDashboardsIDLogs=function(t,e){return this.request("GET","/api/v2/dashboards/"+t.dashboardID+"/logs"+this.queryString(t,["offset","limit"]),t,e)},e}(o),c=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.postDelete=function(t,e){return this.request("POST","/api/v2/delete"+this.queryString(t,["org","bucket","orgID","bucketID"]),t,e,"application/json")},e}(o),l=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getDocumentsTemplates=function(t,e){return this.request("GET","/api/v2/documents/templates"+this.queryString(t,["org","orgID"]),t,e)},e.prototype.postDocumentsTemplates=function(t,e){return this.request("POST","/api/v2/documents/templates",t,e,"application/json")},e.prototype.getDocumentsTemplatesID=function(t,e){return this.request("GET","/api/v2/documents/templates/"+t.templateID,t,e)},e.prototype.putDocumentsTemplatesID=function(t,e){return this.request("PUT","/api/v2/documents/templates/"+t.templateID,t,e,"application/json")},e.prototype.deleteDocumentsTemplatesID=function(t,e){return this.request("DELETE","/api/v2/documents/templates/"+t.templateID,t,e)},e.prototype.getDocumentsTemplatesIDLabels=function(t,e){return this.request("GET","/api/v2/documents/templates/"+t.templateID+"/labels",t,e)},e.prototype.postDocumentsTemplatesIDLabels=function(t,e){return this.request("POST","/api/v2/documents/templates/"+t.templateID+"/labels",t,e,"application/json")},e.prototype.deleteDocumentsTemplatesIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/documents/templates/"+t.templateID+"/labels/"+t.labelID,t,e)},e}(o),D=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getFlags=function(t,e){return this.request("GET","/api/v2/flags",t,e)},e}(o),h=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getHealth=function(t,e){return this.request("GET","/health",t,e)},e}(o),I=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getLabels=function(t,e){return this.request("GET","/api/v2/labels"+this.queryString(t,["orgID"]),t,e)},e.prototype.postLabels=function(t,e){return this.request("POST","/api/v2/labels",t,e,"application/json")},e.prototype.getLabelsID=function(t,e){return this.request("GET","/api/v2/labels/"+t.labelID,t,e)},e.prototype.patchLabelsID=function(t,e){return this.request("PATCH","/api/v2/labels/"+t.labelID,t,e,"application/json")},e.prototype.deleteLabelsID=function(t,e){return this.request("DELETE","/api/v2/labels/"+t.labelID,t,e)},e}(o),f=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getMe=function(t,e){return this.request("GET","/api/v2/me",t,e)},e.prototype.putMePassword=function(t,e){return this.request("PUT","/api/v2/me/password",t,e,"application/json")},e}(o),g=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getNotificationEndpoints=function(t,e){return this.request("GET","/api/v2/notificationEndpoints"+this.queryString(t,["offset","limit","orgID"]),t,e)},e.prototype.createNotificationEndpoint=function(t,e){return this.request("POST","/api/v2/notificationEndpoints",t,e,"application/json")},e.prototype.getNotificationEndpointsID=function(t,e){return this.request("GET","/api/v2/notificationEndpoints/"+t.endpointID,t,e)},e.prototype.putNotificationEndpointsID=function(t,e){return this.request("PUT","/api/v2/notificationEndpoints/"+t.endpointID,t,e,"application/json")},e.prototype.patchNotificationEndpointsID=function(t,e){return this.request("PATCH","/api/v2/notificationEndpoints/"+t.endpointID,t,e,"application/json")},e.prototype.deleteNotificationEndpointsID=function(t,e){return this.request("DELETE","/api/v2/notificationEndpoints/"+t.endpointID,t,e)},e.prototype.getNotificationEndpointsIDLabels=function(t,e){return this.request("GET","/api/v2/notificationEndpoints/"+t.endpointID+"/labels",t,e)},e.prototype.postNotificationEndpointIDLabels=function(t,e){return this.request("POST","/api/v2/notificationEndpoints/"+t.endpointID+"/labels",t,e,"application/json")},e.prototype.deleteNotificationEndpointsIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/notificationEndpoints/"+t.endpointID+"/labels/"+t.labelID,t,e)},e}(o),y=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getNotificationRules=function(t,e){return this.request("GET","/api/v2/notificationRules"+this.queryString(t,["offset","limit","orgID","checkID","tag"]),t,e)},e.prototype.createNotificationRule=function(t,e){return this.request("POST","/api/v2/notificationRules",t,e,"application/json")},e.prototype.getNotificationRulesID=function(t,e){return this.request("GET","/api/v2/notificationRules/"+t.ruleID,t,e)},e.prototype.putNotificationRulesID=function(t,e){return this.request("PUT","/api/v2/notificationRules/"+t.ruleID,t,e,"application/json")},e.prototype.patchNotificationRulesID=function(t,e){return this.request("PATCH","/api/v2/notificationRules/"+t.ruleID,t,e,"application/json")},e.prototype.deleteNotificationRulesID=function(t,e){return this.request("DELETE","/api/v2/notificationRules/"+t.ruleID,t,e)},e.prototype.getNotificationRulesIDLabels=function(t,e){return this.request("GET","/api/v2/notificationRules/"+t.ruleID+"/labels",t,e)},e.prototype.postNotificationRuleIDLabels=function(t,e){return this.request("POST","/api/v2/notificationRules/"+t.ruleID+"/labels",t,e,"application/json")},e.prototype.deleteNotificationRulesIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/notificationRules/"+t.ruleID+"/labels/"+t.labelID,t,e)},e.prototype.getNotificationRulesIDQuery=function(t,e){return this.request("GET","/api/v2/notificationRules/"+t.ruleID+"/query",t,e)},e}(o),b=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getOrgs=function(t,e){return this.request("GET","/api/v2/orgs"+this.queryString(t,["org","orgID","userID"]),t,e)},e.prototype.postOrgs=function(t,e){return this.request("POST","/api/v2/orgs",t,e,"application/json")},e.prototype.getOrgsID=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID,t,e)},e.prototype.patchOrgsID=function(t,e){return this.request("PATCH","/api/v2/orgs/"+t.orgID,t,e,"application/json")},e.prototype.deleteOrgsID=function(t,e){return this.request("DELETE","/api/v2/orgs/"+t.orgID,t,e)},e.prototype.getOrgsIDLabels=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID+"/labels",t,e)},e.prototype.postOrgsIDLabels=function(t,e){return this.request("POST","/api/v2/orgs/"+t.orgID+"/labels",t,e,"application/json")},e.prototype.deleteOrgsIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/orgs/"+t.orgID+"/labels/"+t.labelID,t,e)},e.prototype.getOrgsIDSecrets=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID+"/secrets",t,e)},e.prototype.patchOrgsIDSecrets=function(t,e){return this.request("PATCH","/api/v2/orgs/"+t.orgID+"/secrets",t,e,"application/json")},e.prototype.postOrgsIDSecrets=function(t,e){return this.request("POST","/api/v2/orgs/"+t.orgID+"/secrets/delete",t,e,"application/json")},e.prototype.getOrgsIDMembers=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID+"/members",t,e)},e.prototype.postOrgsIDMembers=function(t,e){return this.request("POST","/api/v2/orgs/"+t.orgID+"/members",t,e,"application/json")},e.prototype.deleteOrgsIDMembersID=function(t,e){return this.request("DELETE","/api/v2/orgs/"+t.orgID+"/members/"+t.userID,t,e)},e.prototype.getOrgsIDOwners=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID+"/owners",t,e)},e.prototype.postOrgsIDOwners=function(t,e){return this.request("POST","/api/v2/orgs/"+t.orgID+"/owners",t,e,"application/json")},e.prototype.deleteOrgsIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/orgs/"+t.orgID+"/owners/"+t.userID,t,e)},e.prototype.getOrgsIDLogs=function(t,e){return this.request("GET","/api/v2/orgs/"+t.orgID+"/logs"+this.queryString(t,["offset","limit"]),t,e)},e}(o),T=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.createPkg=function(t,e){return this.request("POST","/api/v2/packages",t,e,"application/json")},e.prototype.applyPkg=function(t,e){return this.request("POST","/api/v2/packages/apply",t,e,"application/json")},e.prototype.createStack=function(t,e){return this.request("POST","/api/v2/packages/stacks",t,e,"application/json")},e}(o),q=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.postQueryAst=function(t,e){return this.request("POST","/api/v2/query/ast",t,e,"application/json")},e.prototype.getQuerySuggestions=function(t,e){return this.request("GET","/api/v2/query/suggestions",t,e)},e.prototype.getQuerySuggestionsName=function(t,e){return this.request("GET","/api/v2/query/suggestions/"+t.name,t,e)},e.prototype.postQueryAnalyze=function(t,e){return this.request("POST","/api/v2/query/analyze",t,e,"application/json")},e.prototype.postQuery=function(t,e){return this.request("POST","/api/v2/query"+this.queryString(t,["org","orgID"]),t,e,"application/json")},e}(o),v=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getReady=function(t,e){return this.request("GET","/ready",t,e)},e}(o),E=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getScrapers=function(t,e){return this.request("GET","/api/v2/scrapers"+this.queryString(t,["name","id","orgID","org"]),t,e)},e.prototype.postScrapers=function(t,e){return this.request("POST","/api/v2/scrapers",t,e,"application/json")},e.prototype.getScrapersID=function(t,e){return this.request("GET","/api/v2/scrapers/"+t.scraperTargetID,t,e)},e.prototype.patchScrapersID=function(t,e){return this.request("PATCH","/api/v2/scrapers/"+t.scraperTargetID,t,e,"application/json")},e.prototype.deleteScrapersID=function(t,e){return this.request("DELETE","/api/v2/scrapers/"+t.scraperTargetID,t,e)},e.prototype.getScrapersIDLabels=function(t,e){return this.request("GET","/api/v2/scrapers/"+t.scraperTargetID+"/labels",t,e)},e.prototype.postScrapersIDLabels=function(t,e){return this.request("POST","/api/v2/scrapers/"+t.scraperTargetID+"/labels",t,e,"application/json")},e.prototype.patchScrapersIDLabelsID=function(t,e){return this.request("PATCH","/api/v2/scrapers/"+t.scraperTargetID+"/labels/"+t.labelID,t,e,"application/json")},e.prototype.deleteScrapersIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/scrapers/"+t.scraperTargetID+"/labels/"+t.labelID,t,e)},e.prototype.getScrapersIDMembers=function(t,e){return this.request("GET","/api/v2/scrapers/"+t.scraperTargetID+"/members",t,e)},e.prototype.postScrapersIDMembers=function(t,e){return this.request("POST","/api/v2/scrapers/"+t.scraperTargetID+"/members",t,e,"application/json")},e.prototype.deleteScrapersIDMembersID=function(t,e){return this.request("DELETE","/api/v2/scrapers/"+t.scraperTargetID+"/members/"+t.userID,t,e)},e.prototype.getScrapersIDOwners=function(t,e){return this.request("GET","/api/v2/scrapers/"+t.scraperTargetID+"/owners",t,e)},e.prototype.postScrapersIDOwners=function(t,e){return this.request("POST","/api/v2/scrapers/"+t.scraperTargetID+"/owners",t,e,"application/json")},e.prototype.deleteScrapersIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/scrapers/"+t.scraperTargetID+"/owners/"+t.userID,t,e)},e}(o),d=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getSetup=function(t,e){return this.request("GET","/api/v2/setup",t,e)},e.prototype.postSetup=function(t,e){return this.request("POST","/api/v2/setup",t,e,"application/json")},e}(o),k=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.postSignin=function(t,e){return this.request("POST","/api/v2/signin",t,e)},e}(o),S=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.postSignout=function(t,e){return this.request("POST","/api/v2/signout",t,e)},e}(o),P=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getSources=function(t,e){return this.request("GET","/api/v2/sources"+this.queryString(t,["org"]),t,e)},e.prototype.postSources=function(t,e){return this.request("POST","/api/v2/sources",t,e,"application/json")},e.prototype.getSourcesID=function(t,e){return this.request("GET","/api/v2/sources/"+t.sourceID,t,e)},e.prototype.patchSourcesID=function(t,e){return this.request("PATCH","/api/v2/sources/"+t.sourceID,t,e,"application/json")},e.prototype.deleteSourcesID=function(t,e){return this.request("DELETE","/api/v2/sources/"+t.sourceID,t,e)},e.prototype.getSourcesIDHealth=function(t,e){return this.request("GET","/api/v2/sources/"+t.sourceID+"/health",t,e)},e.prototype.getSourcesIDBuckets=function(t,e){return this.request("GET","/api/v2/sources/"+t.sourceID+"/buckets"+this.queryString(t,["org"]),t,e)},e}(o),m=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getTasks=function(t,e){return this.request("GET","/api/v2/tasks"+this.queryString(t,["name","after","user","org","orgID","status","limit"]),t,e)},e.prototype.postTasks=function(t,e){return this.request("POST","/api/v2/tasks",t,e,"application/json")},e.prototype.getTasksID=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID,t,e)},e.prototype.patchTasksID=function(t,e){return this.request("PATCH","/api/v2/tasks/"+t.taskID,t,e,"application/json")},e.prototype.deleteTasksID=function(t,e){return this.request("DELETE","/api/v2/tasks/"+t.taskID,t,e)},e.prototype.getTasksIDRuns=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/runs"+this.queryString(t,["after","limit","afterTime","beforeTime"]),t,e)},e.prototype.postTasksIDRuns=function(t,e){return this.request("POST","/api/v2/tasks/"+t.taskID+"/runs",t,e,"application/json")},e.prototype.getTasksIDRunsID=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/runs/"+t.runID,t,e)},e.prototype.deleteTasksIDRunsID=function(t,e){return this.request("DELETE","/api/v2/tasks/"+t.taskID+"/runs/"+t.runID,t,e)},e.prototype.postTasksIDRunsIDRetry=function(t,e){return this.request("POST","/api/v2/tasks/"+t.taskID+"/runs/"+t.runID+"/retry",t,e)},e.prototype.getTasksIDLogs=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/logs",t,e)},e.prototype.getTasksIDRunsIDLogs=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/runs/"+t.runID+"/logs",t,e)},e.prototype.getTasksIDLabels=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/labels",t,e)},e.prototype.postTasksIDLabels=function(t,e){return this.request("POST","/api/v2/tasks/"+t.taskID+"/labels",t,e,"application/json")},e.prototype.deleteTasksIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/tasks/"+t.taskID+"/labels/"+t.labelID,t,e)},e.prototype.getTasksIDMembers=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/members",t,e)},e.prototype.postTasksIDMembers=function(t,e){return this.request("POST","/api/v2/tasks/"+t.taskID+"/members",t,e,"application/json")},e.prototype.deleteTasksIDMembersID=function(t,e){return this.request("DELETE","/api/v2/tasks/"+t.taskID+"/members/"+t.userID,t,e)},e.prototype.getTasksIDOwners=function(t,e){return this.request("GET","/api/v2/tasks/"+t.taskID+"/owners",t,e)},e.prototype.postTasksIDOwners=function(t,e){return this.request("POST","/api/v2/tasks/"+t.taskID+"/owners",t,e,"application/json")},e.prototype.deleteTasksIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/tasks/"+t.taskID+"/owners/"+t.userID,t,e)},e}(o),O=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getTelegrafPlugins=function(t,e){return this.request("GET","/api/v2/telegraf/plugins"+this.queryString(t,["type"]),t,e)},e}(o),L=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getTelegrafs=function(t,e){return this.request("GET","/api/v2/telegrafs"+this.queryString(t,["orgID"]),t,e)},e.prototype.postTelegrafs=function(t,e){return this.request("POST","/api/v2/telegrafs",t,e,"application/json")},e.prototype.getTelegrafsID=function(t,e){return this.request("GET","/api/v2/telegrafs/"+t.telegrafID,t,e)},e.prototype.putTelegrafsID=function(t,e){return this.request("PUT","/api/v2/telegrafs/"+t.telegrafID,t,e,"application/json")},e.prototype.deleteTelegrafsID=function(t,e){return this.request("DELETE","/api/v2/telegrafs/"+t.telegrafID,t,e)},e.prototype.getTelegrafsIDLabels=function(t,e){return this.request("GET","/api/v2/telegrafs/"+t.telegrafID+"/labels",t,e)},e.prototype.postTelegrafsIDLabels=function(t,e){return this.request("POST","/api/v2/telegrafs/"+t.telegrafID+"/labels",t,e,"application/json")},e.prototype.deleteTelegrafsIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/telegrafs/"+t.telegrafID+"/labels/"+t.labelID,t,e)},e.prototype.getTelegrafsIDMembers=function(t,e){return this.request("GET","/api/v2/telegrafs/"+t.telegrafID+"/members",t,e)},e.prototype.postTelegrafsIDMembers=function(t,e){return this.request("POST","/api/v2/telegrafs/"+t.telegrafID+"/members",t,e,"application/json")},e.prototype.deleteTelegrafsIDMembersID=function(t,e){return this.request("DELETE","/api/v2/telegrafs/"+t.telegrafID+"/members/"+t.userID,t,e)},e.prototype.getTelegrafsIDOwners=function(t,e){return this.request("GET","/api/v2/telegrafs/"+t.telegrafID+"/owners",t,e)},e.prototype.postTelegrafsIDOwners=function(t,e){return this.request("POST","/api/v2/telegrafs/"+t.telegrafID+"/owners",t,e,"application/json")},e.prototype.deleteTelegrafsIDOwnersID=function(t,e){return this.request("DELETE","/api/v2/telegrafs/"+t.telegrafID+"/owners/"+t.userID,t,e)},e}(o),j=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getUsers=function(t,e){return this.request("GET","/api/v2/users",t,e)},e.prototype.postUsers=function(t,e){return this.request("POST","/api/v2/users",t,e,"application/json")},e.prototype.getUsersID=function(t,e){return this.request("GET","/api/v2/users/"+t.userID,t,e)},e.prototype.patchUsersID=function(t,e){return this.request("PATCH","/api/v2/users/"+t.userID,t,e,"application/json")},e.prototype.deleteUsersID=function(t,e){return this.request("DELETE","/api/v2/users/"+t.userID,t,e)},e.prototype.putUsersIDPassword=function(t,e){return this.request("PUT","/api/v2/users/"+t.userID+"/password",t,e,"application/json")},e.prototype.getUsersIDLogs=function(t,e){return this.request("GET","/api/v2/users/"+t.userID+"/logs"+this.queryString(t,["offset","limit"]),t,e)},e}(o),G=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.getVariables=function(t,e){return this.request("GET","/api/v2/variables"+this.queryString(t,["org","orgID"]),t,e)},e.prototype.postVariables=function(t,e){return this.request("POST","/api/v2/variables",t,e,"application/json")},e.prototype.getVariablesID=function(t,e){return this.request("GET","/api/v2/variables/"+t.variableID,t,e)},e.prototype.putVariablesID=function(t,e){return this.request("PUT","/api/v2/variables/"+t.variableID,t,e,"application/json")},e.prototype.patchVariablesID=function(t,e){return this.request("PATCH","/api/v2/variables/"+t.variableID,t,e,"application/json")},e.prototype.deleteVariablesID=function(t,e){return this.request("DELETE","/api/v2/variables/"+t.variableID,t,e)},e.prototype.getVariablesIDLabels=function(t,e){return this.request("GET","/api/v2/variables/"+t.variableID+"/labels",t,e)},e.prototype.postVariablesIDLabels=function(t,e){return this.request("POST","/api/v2/variables/"+t.variableID+"/labels",t,e,"application/json")},e.prototype.deleteVariablesIDLabelsID=function(t,e){return this.request("DELETE","/api/v2/variables/"+t.variableID+"/labels/"+t.labelID,t,e)},e}(o),A=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.postWrite=function(t,e){return this.request("POST","/api/v2/write"+this.queryString(t,["org","orgID","bucket","precision"]),t,e,"text/plain")},e}(o);return t.AuthorizationsAPI=i,t.BucketsAPI=a,t.ChecksAPI=u,t.DashboardsAPI=p,t.DeleteAPI=c,t.DocumentsAPI=l,t.FlagsAPI=D,t.HealthAPI=h,t.LabelsAPI=I,t.MeAPI=f,t.NotificationEndpointsAPI=g,t.NotificationRulesAPI=y,t.OrgsAPI=b,t.PackagesAPI=T,t.QueryAPI=q,t.ReadyAPI=v,t.RootAPI=n,t.ScrapersAPI=E,t.SetupAPI=d,t.SigninAPI=k,t.SignoutAPI=S,t.SourcesAPI=P,t.TasksAPI=m,t.TelegrafAPI=O,t.TelegrafsAPI=L,t.UsersAPI=j,t.VariablesAPI=G,t.WriteAPI=A,t}({});
//# sourceMappingURL=influxdbApis.min.js.map
{
"name": "@influxdata/influxdb-client-apis",
"version": "1.3.0-nightly.5+962ed6e",
"version": "1.3.0-nightly.6+f170090",
"description": "InfluxDB 2.0 generated APIs",

@@ -11,3 +11,4 @@ "scripts": {

"generate": "yarn ts-node generator && yarn prettier --write src/generated/*.ts",
"test": "yarn run lint && yarn run typecheck",
"test": "yarn run lint && yarn run typecheck && yarn run test:unit",
"test:unit": "mocha --require ts-node/register 'test/unit/**/*.test.ts' --exit",
"typecheck": "tsc --noEmit --pretty",

@@ -39,5 +40,6 @@ "typedoc": "typedoc --excludePrivate --excludeNotExported --mode file --out ./doc/apidoc --module es2015 --tsconfig ./tsconfig.json ./src",

"devDependencies": {
"@influxdata/influxdb-client": "^1.3.0-nightly.5+962ed6e",
"@influxdata/influxdb-client": "^1.3.0-nightly.6+f170090",
"@typescript-eslint/eslint-plugin": "^2.9.0",
"@typescript-eslint/parser": "^2.9.0",
"chai": "^4.2.0",
"chalk": "^3.0.0",

@@ -47,2 +49,3 @@ "eslint": "^6.7.1",

"eslint-plugin-prettier": "^3.1.1",
"mocha": "^6.2.2",
"prettier": "^1.19.1",

@@ -57,3 +60,3 @@ "rimraf": "^3.0.0",

},
"gitHead": "962ed6e4b9be125c7e1a5040ca89a27912841277"
"gitHead": "f1700900611b58373ba274d3522e30dd4d0c8d73"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc