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
730
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.6.0-nightly.23 to 1.6.0-nightly.24

dist/generated/StacksAPI.d.ts

3

dist/generated/index.d.ts

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

export * from './OrgsAPI';
export * from './PackagesAPI';
export * from './QueryAPI';

@@ -26,5 +25,7 @@ export * from './ReadyAPI';

export * from './SourcesAPI';
export * from './StacksAPI';
export * from './TasksAPI';
export * from './TelegrafAPI';
export * from './TelegrafsAPI';
export * from './TemplatesAPI';
export * from './UsersAPI';

@@ -31,0 +32,0 @@ export * from './VariablesAPI';

import { InfluxDB } from '@influxdata/influxdb-client';
import { RequestOptions } from '../APIBase';
import { AddResourceMemberRequestBody, CloudUsers, Invite, LabelMapping, LabelResponse, LabelsResponse, Organization, Organizations, ResourceMember, ResourceMembers, ResourceOwner, ResourceOwners, SecretKeys, SecretKeysResponse, Secrets } from './types';
import { AddResourceMemberRequestBody, Organization, Organizations, ResourceMember, ResourceMembers, ResourceOwner, ResourceOwners, SecretKeys, SecretKeysResponse, Secrets } from './types';
export interface GetOrgsRequest {

@@ -30,18 +30,2 @@ /** Filter organizations to a specific organization name. */

}
export interface GetOrgsIDLabelsRequest {
/** The organization ID. */
orgID: string;
}
export interface PostOrgsIDLabelsRequest {
/** The organization ID. */
orgID: string;
/** Label to add */
body: LabelMapping;
}
export interface DeleteOrgsIDLabelsIDRequest {
/** The organization ID. */
orgID: string;
/** The label ID. */
labelID: string;
}
export interface GetOrgsIDSecretsRequest {

@@ -89,36 +73,2 @@ /** The organization ID. */

}
export interface PostOrgsIDInvitesRequest {
/** The organization ID. */
orgID: string;
/** Invite to be sent */
body: Invite;
}
export interface DeleteOrgsIDInviteIDRequest {
/** The ID of the invite to remove. */
inviteID: string;
/** The organization ID. */
orgID: string;
}
export interface PostOrgsIDInviteIDRequest {
/** The ID of the invite to resend. */
inviteID: string;
/** The organization ID. */
orgID: string;
}
export interface GetCloudUsersRequest {
/** Specifies the organization ID of the CloudUser. */
orgID: string;
}
export interface DeleteOrgsIDCloudUserIDRequest {
/** The ID of the user to remove. */
userID: string;
/** The organization ID. */
orgID: string;
}
export interface DeleteOrgsIDOwnersIDRequest {
/** The ID of the owner to remove. */
userID: string;
/** The organization ID. */
orgID: string;
}
/**

@@ -175,26 +125,2 @@ * Orgs API

/**
* List all labels for a organization.
* See {@link https://v2.docs.influxdata.com/v2.0/api/#operation/GetOrgsIDLabels }
* @param request - request parameters and body (if supported)
* @param requestOptions - optional transport options
* @returns promise of response
*/
getOrgsIDLabels(request: GetOrgsIDLabelsRequest, requestOptions?: RequestOptions): Promise<LabelsResponse>;
/**
* Add a label to an organization.
* See {@link https://v2.docs.influxdata.com/v2.0/api/#operation/PostOrgsIDLabels }
* @param request - request parameters and body (if supported)
* @param requestOptions - optional transport options
* @returns promise of response
*/
postOrgsIDLabels(request: PostOrgsIDLabelsRequest, requestOptions?: RequestOptions): Promise<LabelResponse>;
/**
* Delete a label from an organization.
* See {@link https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteOrgsIDLabelsID }
* @param request - request parameters and body (if supported)
* @param requestOptions - optional transport options
* @returns promise of response
*/
deleteOrgsIDLabelsID(request: DeleteOrgsIDLabelsIDRequest, requestOptions?: RequestOptions): Promise<void>;
/**
* List all secret keys for an organization.

@@ -263,50 +189,3 @@ * See {@link https://v2.docs.influxdata.com/v2.0/api/#operation/GetOrgsIDSecrets }

postOrgsIDOwners(request: PostOrgsIDOwnersRequest, requestOptions?: RequestOptions): Promise<ResourceOwner>;
/**
* Creates an invite to an organization.
* See {@link https://v2.docs.influxdata.com/v2.0/api/#operation/PostOrgsIDInvites }
* @param request - request parameters and body (if supported)
* @param requestOptions - optional transport options
* @returns promise of response
*/
postOrgsIDInvites(request: PostOrgsIDInvitesRequest, requestOptions?: RequestOptions): Promise<Invite>;
/**
* Remove an invite to an organization.
* See {@link https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteOrgsIDInviteID }
* @param request - request parameters and body (if supported)
* @param requestOptions - optional transport options
* @returns promise of response
*/
deleteOrgsIDInviteID(request: DeleteOrgsIDInviteIDRequest, requestOptions?: RequestOptions): Promise<void>;
/**
* Resends an invite.
* See {@link https://v2.docs.influxdata.com/v2.0/api/#operation/PostOrgsIDInviteID }
* @param request - request parameters and body (if supported)
* @param requestOptions - optional transport options
* @returns promise of response
*/
postOrgsIDInviteID(request: PostOrgsIDInviteIDRequest, requestOptions?: RequestOptions): Promise<Invite>;
/**
* See {@link https://v2.docs.influxdata.com/v2.0/api/#operation/GetCloudUsers }
* @param request - request parameters and body (if supported)
* @param requestOptions - optional transport options
* @returns promise of response
*/
getCloudUsers(request: GetCloudUsersRequest, requestOptions?: RequestOptions): Promise<CloudUsers>;
/**
* Deletes a cloud user.
* See {@link https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteOrgsIDCloudUserID }
* @param request - request parameters and body (if supported)
* @param requestOptions - optional transport options
* @returns promise of response
*/
deleteOrgsIDCloudUserID(request: DeleteOrgsIDCloudUserIDRequest, requestOptions?: RequestOptions): Promise<void>;
/**
* Remove an owner from an organization.
* See {@link https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteOrgsIDOwnersID }
* @param request - request parameters and body (if supported)
* @param requestOptions - optional transport options
* @returns promise of response
*/
deleteOrgsIDOwnersID(request: DeleteOrgsIDOwnersIDRequest, requestOptions?: RequestOptions): Promise<void>;
}
//# sourceMappingURL=OrgsAPI.d.ts.map

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

shadeBelow?: boolean;
hoverDimension?: 'auto' | 'x' | 'y' | 'xy';
position: 'overlaid' | 'stacked';

@@ -571,2 +572,3 @@ prefix: string;

period?: string;
fillValues?: boolean;
};

@@ -658,2 +660,3 @@ }

shadeBelow?: boolean;
hoverDimension?: 'auto' | 'x' | 'y' | 'xy';
position: 'overlaid' | 'stacked';

@@ -1310,3 +1313,3 @@ geom: XYGeom;

export interface PostBucketRequest {
orgID?: string;
orgID: string;
name: string;

@@ -1331,53 +1334,30 @@ description?: string;

export declare type Secrets = any;
export interface Invite {
/** the idpe id of the invite */
readonly id: string;
email: string;
role: 'member' | 'owner';
expiresAt?: string;
readonly links?: {
self?: string;
};
}
export interface CloudUsers {
links?: {
self?: string;
};
users?: CloudUser[];
}
export interface CloudUser {
/** the idpe id of the user */
readonly id: string;
firstName?: string;
lastName?: string;
email: string;
role: 'member' | 'owner';
readonly links?: {
self?: string;
};
}
export interface PkgCreate {
orgIDs?: Array<{
orgID?: string;
resourceFilters?: {
byLabel?: string[];
byResourceKind?: PkgCreateKind[];
};
export interface Stack {
id?: string;
orgID?: string;
readonly createdAt?: string;
events?: Array<{
eventType?: string;
name?: string;
description?: string;
sources?: string[];
resources?: Array<{
apiVersion?: string;
resourceID?: string;
kind?: TemplateKind;
templateMetaName?: string;
associations?: Array<{
kind?: TemplateKind;
metaName?: string;
}>;
links?: {
self?: string;
};
}>;
urls?: string[];
readonly updatedAt?: string;
}>;
resources?: {
id: string;
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' | 'Task' | 'Telegraf' | 'Variable';
meta?: {
name?: string;
};
spec?: any;
}>;
export interface PkgApply {
export declare type TemplateKind = 'Bucket' | 'Check' | 'CheckDeadman' | 'CheckThreshold' | 'Dashboard' | 'Label' | 'NotificationEndpoint' | 'NotificationEndpointHTTP' | 'NotificationEndpointPagerDuty' | 'NotificationEndpointSlack' | 'NotificationRule' | 'Task' | 'Telegraf' | 'Variable';
export interface TemplateApply {
dryRun?: boolean;

@@ -1389,3 +1369,3 @@ orgID?: string;

sources?: string[];
package?: Pkg;
contents?: Template;
};

@@ -1395,4 +1375,5 @@ templates?: Array<{

sources?: string[];
package?: Pkg;
contents?: Template;
}>;
envRefs?: any;
secrets?: any;

@@ -1404,5 +1385,10 @@ remotes?: Array<{

actions?: Array<{
action?: 'skipKind';
properties?: {
kind: TemplateKind;
};
} | {
action?: 'skipResource';
properties?: {
kind: string;
kind: TemplateKind;
resourceTemplateName: string;

@@ -1412,3 +1398,11 @@ };

}
export interface PkgSummary {
export declare type Template = Array<{
apiVersion?: string;
kind?: TemplateKind;
meta?: {
name?: string;
};
spec?: any;
}>;
export interface TemplateSummary {
sources?: string[];

@@ -1420,32 +1414,35 @@ stackID?: string;

orgID?: string;
pkgName?: string;
kind?: TemplateKind;
templateMetaName?: string;
name?: string;
description?: string;
retentionPeriod?: number;
labelAssociations?: PkgSummaryLabel[];
envReferences?: PkgEnvReferences;
labelAssociations?: TemplateSummaryLabel[];
envReferences?: TemplateEnvReferences;
}>;
checks?: Array<CheckDiscriminator & {
pkgName?: string;
labelAssociations?: PkgSummaryLabel[];
envReferences?: PkgEnvReferences;
kind?: TemplateKind;
templateMetaName?: string;
labelAssociations?: TemplateSummaryLabel[];
envReferences?: TemplateEnvReferences;
}>;
labels?: PkgSummaryLabel[];
dashboards?: Array<{
id?: string;
orgID?: string;
pkgName?: string;
kind?: TemplateKind;
templateMetaName?: string;
name?: string;
description?: string;
labelAssociations?: PkgSummaryLabel[];
charts?: PkgChart[];
envReferences?: PkgEnvReferences;
labelAssociations?: TemplateSummaryLabel[];
charts?: TemplateChart[];
envReferences?: TemplateEnvReferences;
}>;
labels?: TemplateSummaryLabel[];
labelMappings?: Array<{
status?: string;
resourcePkgName?: string;
resourceTemplateMetaName?: string;
resourceName?: string;
resourceID?: string;
resourceType?: string;
labelPkgName?: string;
labelTemplateMetaName?: string;
labelName?: string;

@@ -1457,11 +1454,13 @@ labelID?: string;

notificationEndpoints?: Array<NotificationEndpointDiscrimator & {
pkgName?: string;
labelAssociations?: PkgSummaryLabel[];
envReferences?: PkgEnvReferences;
kind?: TemplateKind;
templateMetaName?: string;
labelAssociations?: TemplateSummaryLabel[];
envReferences?: TemplateEnvReferences;
}>;
notificationRules?: Array<{
pkgName?: string;
kind?: TemplateKind;
templateMetaName?: string;
name?: string;
description?: string;
endpointPkgName?: string;
endpointTemplateMetaName?: string;
endpointID?: string;

@@ -1482,7 +1481,8 @@ endpointType?: string;

}>;
labelAssociations?: PkgSummaryLabel[];
envReferences?: PkgEnvReferences;
labelAssociations?: TemplateSummaryLabel[];
envReferences?: TemplateEnvReferences;
}>;
tasks?: Array<{
pkgName?: string;
kind?: TemplateKind;
templateMetaName?: string;
id?: string;

@@ -1496,11 +1496,13 @@ name?: string;

status?: string;
envReferences?: PkgEnvReferences;
envReferences?: TemplateEnvReferences;
}>;
telegrafConfigs?: Array<TelegrafRequest & {
pkgName?: string;
labelAssociations?: PkgSummaryLabel[];
envReferences?: PkgEnvReferences;
kind?: TemplateKind;
templateMetaName?: string;
labelAssociations?: TemplateSummaryLabel[];
envReferences?: TemplateEnvReferences;
}>;
variables?: Array<{
pkgName?: string;
kind?: TemplateKind;
templateMetaName?: string;
id?: string;

@@ -1511,4 +1513,4 @@ orgID?: string;

arguments?: VariableProperties;
labelAssociations?: PkgSummaryLabel[];
envReferences?: PkgEnvReferences;
labelAssociations?: TemplateSummaryLabel[];
envReferences?: TemplateEnvReferences;
}>;

@@ -1518,5 +1520,6 @@ };

buckets?: Array<{
kind?: TemplateKind;
stateStatus?: string;
id?: string;
pkgName?: string;
templateMetaName?: string;
new?: {

@@ -1534,5 +1537,6 @@ name?: string;

checks?: Array<{
kind?: TemplateKind;
stateStatus?: string;
id?: string;
pkgName?: string;
templateMetaName?: string;
new?: CheckDiscriminator;

@@ -1544,7 +1548,8 @@ old?: CheckDiscriminator;

id?: string;
pkgName?: string;
kind?: TemplateKind;
templateMetaName?: string;
new?: {
name?: string;
description?: string;
charts?: PkgChart[];
charts?: TemplateChart[];
};

@@ -1554,3 +1559,3 @@ old?: {

description?: string;
charts?: PkgChart[];
charts?: TemplateChart[];
};

@@ -1560,4 +1565,5 @@ }>;

stateStatus?: string;
kind?: TemplateKind;
id?: string;
pkgName?: string;
templateMetaName?: string;
new?: {

@@ -1578,12 +1584,13 @@ name?: string;

resourceID?: string;
resourcePkgName?: string;
resourceTemplateMetaName?: string;
resourceName?: string;
labelID?: string;
labelPkgName?: string;
labelTemplateMetaName?: string;
labelName?: string;
}>;
notificationEndpoints?: Array<{
kind?: TemplateKind;
stateStatus?: string;
id?: string;
pkgName?: string;
templateMetaName?: string;
new?: NotificationEndpointDiscrimator;

@@ -1593,5 +1600,6 @@ old?: NotificationEndpointDiscrimator;

notificationRules?: Array<{
kind?: TemplateKind;
stateStatus?: string;
id?: string;
pkgName?: string;
templateMetaName?: string;
new?: {

@@ -1639,5 +1647,6 @@ name?: string;

tasks?: Array<{
kind?: TemplateKind;
stateStatus?: string;
id?: string;
pkgName?: string;
templateMetaName?: string;
new?: {

@@ -1663,5 +1672,6 @@ name?: string;

telegrafConfigs?: Array<{
kind?: TemplateKind;
stateStatus?: string;
id?: string;
pkgName?: string;
templateMetaName?: string;
new?: TelegrafRequest;

@@ -1671,5 +1681,6 @@ old?: TelegrafRequest;

variables?: Array<{
kind?: TemplateKind;
stateStatus?: string;
id?: string;
pkgName?: string;
templateMetaName?: string;
new?: {

@@ -1688,3 +1699,3 @@ name?: string;

errors?: Array<{
kind?: string;
kind?: TemplateKind;
reason?: string;

@@ -1695,6 +1706,7 @@ fields?: string[];

}
export interface PkgSummaryLabel {
export interface TemplateSummaryLabel {
id?: string;
orgID?: string;
pkgName?: string;
kind?: TemplateKind;
templateMetaName?: string;
name?: string;

@@ -1705,5 +1717,5 @@ properties?: {

};
envReferences?: PkgEnvReferences;
envReferences?: TemplateEnvReferences;
}
export declare type PkgEnvReferences = Array<{
export declare type TemplateEnvReferences = Array<{
/** Field the environment reference corresponds too */

@@ -1716,5 +1728,5 @@ resourceField: string;

/** Default value that will be provided for the reference when no value is provided */
defaultValue: string;
defaultValue?: string | number | number | boolean;
}>;
export interface PkgChart {
export interface TemplateChart {
xPos?: number;

@@ -1779,21 +1791,16 @@ yPos?: number;

};
export interface Stack {
id?: string;
orgID?: string;
name?: string;
description?: string;
sources?: string[];
resources?: Array<{
apiVersion?: string;
resourceID?: string;
kind?: string;
pkgName?: string;
associations?: Array<{
kind?: string;
pkgName?: string;
}>;
export interface TemplateExport {
stackID?: string;
orgIDs?: Array<{
orgID?: string;
resourceFilters?: {
byLabel?: string[];
byResourceKind?: TemplateKind[];
};
}>;
urls?: string[];
readonly createdAt?: string;
readonly updatedAt?: string;
resources?: {
id: string;
kind: TemplateKind;
name?: string;
};
}

@@ -1800,0 +1807,0 @@ export interface Tasks {

@@ -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{constructor(e){this.base=new s(e)}getAuthorizations(e,s){return this.base.request("GET","/api/v2/authorizations"+this.base.queryString(e,["userID","user","orgID","org"]),e,s)}postAuthorizations(e,s){return this.base.request("POST","/api/v2/authorizations",e,s,"application/json")}getAuthorizationsID(e,s){return this.base.request("GET","/api/v2/authorizations/"+e.authID,e,s)}patchAuthorizationsID(e,s){return this.base.request("PATCH","/api/v2/authorizations/"+e.authID,e,s,"application/json")}deleteAuthorizationsID(e,s){return this.base.request("DELETE","/api/v2/authorizations/"+e.authID,e,s)}},e.BucketsAPI=class{constructor(e){this.base=new s(e)}getBuckets(e,s){return this.base.request("GET","/api/v2/buckets"+this.base.queryString(e,["offset","limit","org","orgID","name"]),e,s)}postBuckets(e,s){return this.base.request("POST","/api/v2/buckets",e,s,"application/json")}getBucketsID(e,s){return this.base.request("GET","/api/v2/buckets/"+e.bucketID,e,s)}patchBucketsID(e,s){return this.base.request("PATCH","/api/v2/buckets/"+e.bucketID,e,s,"application/json")}deleteBucketsID(e,s){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID,e,s)}getBucketsIDLabels(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/labels`,e,s)}postBucketsIDLabels(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/labels`,e,s,"application/json")}deleteBucketsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/labels/${e.labelID}`,e,s)}getBucketsIDMembers(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/members`,e,s)}postBucketsIDMembers(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/members`,e,s,"application/json")}deleteBucketsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/members/${e.userID}`,e,s)}getBucketsIDOwners(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/owners`,e,s)}postBucketsIDOwners(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/owners`,e,s,"application/json")}deleteBucketsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/owners/${e.userID}`,e,s)}},e.ChecksAPI=class{constructor(e){this.base=new s(e)}getChecks(e,s){return this.base.request("GET","/api/v2/checks"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createCheck(e,s){return this.base.request("POST","/api/v2/checks",e,s,"application/json")}getChecksID(e,s){return this.base.request("GET","/api/v2/checks/"+e.checkID,e,s)}putChecksID(e,s){return this.base.request("PUT","/api/v2/checks/"+e.checkID,e,s,"application/json")}patchChecksID(e,s){return this.base.request("PATCH","/api/v2/checks/"+e.checkID,e,s,"application/json")}deleteChecksID(e,s){return this.base.request("DELETE","/api/v2/checks/"+e.checkID,e,s)}getChecksIDLabels(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/labels`,e,s)}postChecksIDLabels(e,s){return this.base.request("POST",`/api/v2/checks/${e.checkID}/labels`,e,s,"application/json")}deleteChecksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/checks/${e.checkID}/labels/${e.labelID}`,e,s)}getChecksIDQuery(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/query`,e,s)}},e.DashboardsAPI=class{constructor(e){this.base=new s(e)}getDashboards(e,s){return this.base.request("GET","/api/v2/dashboards"+this.base.queryString(e,["owner","sortBy","id","orgID","org"]),e,s)}postDashboards(e,s){return this.base.request("POST","/api/v2/dashboards",e,s,"application/json")}getDashboardsID(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}${this.base.queryString(e,["include"])}`,e,s)}patchDashboardsID(e,s){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID,e,s,"application/json")}deleteDashboardsID(e,s){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID,e,s)}postDashboardsIDCells(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}putDashboardsIDCells(e,s){return this.base.request("PUT",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}patchDashboardsIDCellsID(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s,"application/json")}deleteDashboardsIDCellsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s)}getDashboardsIDCellsIDView(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s)}patchDashboardsIDCellsIDView(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s,"application/json")}getDashboardsIDLabels(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s)}postDashboardsIDLabels(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s,"application/json")}deleteDashboardsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/labels/${e.labelID}`,e,s)}getDashboardsIDMembers(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/members`,e,s)}postDashboardsIDMembers(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/members`,e,s,"application/json")}deleteDashboardsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/members/${e.userID}`,e,s)}getDashboardsIDOwners(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s)}postDashboardsIDOwners(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s,"application/json")}deleteDashboardsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/owners/${e.userID}`,e,s)}},e.DbrpsAPI=class{constructor(e){this.base=new s(e)}getDBRPs(e,s){return this.base.request("GET","/api/v2/dbrps"+this.base.queryString(e,["orgID","id","bucketID","default","db","rp"]),e,s)}postDBRP(e,s){return this.base.request("POST","/api/v2/dbrps",e,s,"application/json")}getDBRPsID(e,s){return this.base.request("GET",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}patchDBRPID(e,s){return this.base.request("PATCH",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s,"application/json")}deleteDBRPID(e,s){return this.base.request("DELETE",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}},e.DeleteAPI=class{constructor(e){this.base=new s(e)}postDelete(e,s){return this.base.request("POST","/api/v2/delete"+this.base.queryString(e,["org","bucket","orgID","bucketID"]),e,s,"application/json")}},e.DocumentsAPI=class{constructor(e){this.base=new s(e)}getDocumentsTemplates(e,s){return this.base.request("GET","/api/v2/documents/templates"+this.base.queryString(e,["org","orgID"]),e,s)}postDocumentsTemplates(e,s){return this.base.request("POST","/api/v2/documents/templates",e,s,"application/json")}getDocumentsTemplatesID(e,s){return this.base.request("GET","/api/v2/documents/templates/"+e.templateID,e,s)}putDocumentsTemplatesID(e,s){return this.base.request("PUT","/api/v2/documents/templates/"+e.templateID,e,s,"application/json")}deleteDocumentsTemplatesID(e,s){return this.base.request("DELETE","/api/v2/documents/templates/"+e.templateID,e,s)}getDocumentsTemplatesIDLabels(e,s){return this.base.request("GET",`/api/v2/documents/templates/${e.templateID}/labels`,e,s)}postDocumentsTemplatesIDLabels(e,s){return this.base.request("POST",`/api/v2/documents/templates/${e.templateID}/labels`,e,s,"application/json")}deleteDocumentsTemplatesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/documents/templates/${e.templateID}/labels/${e.labelID}`,e,s)}},e.FlagsAPI=class{constructor(e){this.base=new s(e)}getFlags(e,s){return this.base.request("GET","/api/v2/flags",e,s)}},e.HealthAPI=class{constructor(e){this.base=new s(e)}getHealth(e,s){return this.base.request("GET","/health",e,s)}},e.LabelsAPI=class{constructor(e){this.base=new s(e)}getLabels(e,s){return this.base.request("GET","/api/v2/labels"+this.base.queryString(e,["orgID"]),e,s)}postLabels(e,s){return this.base.request("POST","/api/v2/labels",e,s,"application/json")}getLabelsID(e,s){return this.base.request("GET","/api/v2/labels/"+e.labelID,e,s)}patchLabelsID(e,s){return this.base.request("PATCH","/api/v2/labels/"+e.labelID,e,s,"application/json")}deleteLabelsID(e,s){return this.base.request("DELETE","/api/v2/labels/"+e.labelID,e,s)}},e.MeAPI=class{constructor(e){this.base=new s(e)}getMe(e,s){return this.base.request("GET","/api/v2/me",e,s)}putMePassword(e,s){return this.base.request("PUT","/api/v2/me/password",e,s,"application/json")}},e.NotificationEndpointsAPI=class{constructor(e){this.base=new s(e)}getNotificationEndpoints(e,s){return this.base.request("GET","/api/v2/notificationEndpoints"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createNotificationEndpoint(e,s){return this.base.request("POST","/api/v2/notificationEndpoints",e,s,"application/json")}getNotificationEndpointsID(e,s){return this.base.request("GET","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}putNotificationEndpointsID(e,s){return this.base.request("PUT","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}patchNotificationEndpointsID(e,s){return this.base.request("PATCH","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}deleteNotificationEndpointsID(e,s){return this.base.request("DELETE","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}getNotificationEndpointsIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s)}postNotificationEndpointIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s,"application/json")}deleteNotificationEndpointsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}/labels/${e.labelID}`,e,s)}},e.NotificationRulesAPI=class{constructor(e){this.base=new s(e)}getNotificationRules(e,s){return this.base.request("GET","/api/v2/notificationRules"+this.base.queryString(e,["offset","limit","orgID","checkID","tag"]),e,s)}createNotificationRule(e,s){return this.base.request("POST","/api/v2/notificationRules",e,s,"application/json")}getNotificationRulesID(e,s){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID,e,s)}putNotificationRulesID(e,s){return this.base.request("PUT","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}patchNotificationRulesID(e,s){return this.base.request("PATCH","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}deleteNotificationRulesID(e,s){return this.base.request("DELETE","/api/v2/notificationRules/"+e.ruleID,e,s)}getNotificationRulesIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s)}postNotificationRuleIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s,"application/json")}deleteNotificationRulesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationRules/${e.ruleID}/labels/${e.labelID}`,e,s)}getNotificationRulesIDQuery(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/query`,e,s)}},e.OrgsAPI=class{constructor(e){this.base=new s(e)}getOrgs(e,s){return this.base.request("GET","/api/v2/orgs"+this.base.queryString(e,["org","orgID","userID"]),e,s)}postOrgs(e,s){return this.base.request("POST","/api/v2/orgs",e,s,"application/json")}getOrgsID(e,s){return this.base.request("GET","/api/v2/orgs/"+e.orgID,e,s)}patchOrgsID(e,s){return this.base.request("PATCH","/api/v2/orgs/"+e.orgID,e,s,"application/json")}deleteOrgsID(e,s){return this.base.request("DELETE","/api/v2/orgs/"+e.orgID,e,s)}getOrgsIDLabels(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/labels`,e,s)}postOrgsIDLabels(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/labels`,e,s,"application/json")}deleteOrgsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/labels/${e.labelID}`,e,s)}getOrgsIDSecrets(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/secrets`,e,s)}patchOrgsIDSecrets(e,s){return this.base.request("PATCH",`/api/v2/orgs/${e.orgID}/secrets`,e,s,"application/json")}postOrgsIDSecrets(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/secrets/delete`,e,s,"application/json")}getOrgsIDMembers(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/members`,e,s)}postOrgsIDMembers(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/members`,e,s,"application/json")}deleteOrgsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/members/${e.userID}`,e,s)}getOrgsIDOwners(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/owners`,e,s)}postOrgsIDOwners(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/owners`,e,s,"application/json")}postOrgsIDInvites(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/invites`,e,s,"application/json")}deleteOrgsIDInviteID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/invites/${e.inviteID}`,e,s)}postOrgsIDInviteID(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/invites/${e.inviteID}/resend`,e,s)}getCloudUsers(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/users`,e,s)}deleteOrgsIDCloudUserID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/users/${e.userID}`,e,s)}deleteOrgsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/owners/${e.userID}`,e,s)}},e.PackagesAPI=class{constructor(e){this.base=new s(e)}createPkg(e,s){return this.base.request("POST","/api/v2/packages",e,s,"application/json")}applyPkg(e,s){return this.base.request("POST","/api/v2/packages/apply",e,s,"application/json")}listStacks(e,s){return this.base.request("GET","/api/v2/packages/stacks"+this.base.queryString(e,["orgID","name","stackID"]),e,s)}createStack(e,s){return this.base.request("POST","/api/v2/packages/stacks",e,s,"application/json")}readStack(e,s){return this.base.request("GET","/api/v2/packages/stacks/"+e.stack_id,e,s)}updateStack(e,s){return this.base.request("PATCH","/api/v2/packages/stacks/"+e.stack_id,e,s,"application/json")}deleteStack(e,s){return this.base.request("DELETE",`/api/v2/packages/stacks/${e.stack_id}${this.base.queryString(e,["orgID"])}`,e,s)}exportStack(e,s){return this.base.request("DELETE",`/api/v2/packages/stacks/${e.stack_id}/export${this.base.queryString(e,["orgID"])}`,e,s)}},e.QueryAPI=class{constructor(e){this.base=new s(e)}postQueryAst(e,s){return this.base.request("POST","/api/v2/query/ast",e,s,"application/json")}getQuerySuggestions(e,s){return this.base.request("GET","/api/v2/query/suggestions",e,s)}getQuerySuggestionsName(e,s){return this.base.request("GET","/api/v2/query/suggestions/"+e.name,e,s)}postQueryAnalyze(e,s){return this.base.request("POST","/api/v2/query/analyze",e,s,"application/json")}postQuery(e,s){return this.base.request("POST","/api/v2/query"+this.base.queryString(e,["org","orgID"]),e,s,"application/json")}},e.ReadyAPI=class{constructor(e){this.base=new s(e)}getReady(e,s){return this.base.request("GET","/ready",e,s)}},e.RootAPI=class{constructor(e){this.base=new s(e)}getRoutes(e,s){return this.base.request("GET","/api/v2/",e,s)}},e.ScrapersAPI=class{constructor(e){this.base=new s(e)}getScrapers(e,s){return this.base.request("GET","/api/v2/scrapers"+this.base.queryString(e,["name","id","orgID","org"]),e,s)}postScrapers(e,s){return this.base.request("POST","/api/v2/scrapers",e,s,"application/json")}getScrapersID(e,s){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID,e,s)}patchScrapersID(e,s){return this.base.request("PATCH","/api/v2/scrapers/"+e.scraperTargetID,e,s,"application/json")}deleteScrapersID(e,s){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID,e,s)}getScrapersIDLabels(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s)}postScrapersIDLabels(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s,"application/json")}patchScrapersIDLabelsID(e,s){return this.base.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s,"application/json")}deleteScrapersIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s)}getScrapersIDMembers(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s)}postScrapersIDMembers(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s,"application/json")}deleteScrapersIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/members/${e.userID}`,e,s)}getScrapersIDOwners(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s)}postScrapersIDOwners(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s,"application/json")}deleteScrapersIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/owners/${e.userID}`,e,s)}},e.SetupAPI=class{constructor(e){this.base=new s(e)}getSetup(e,s){return this.base.request("GET","/api/v2/setup",e,s)}postSetup(e,s){return this.base.request("POST","/api/v2/setup",e,s,"application/json")}postSetupUser(e,s){return this.base.request("POST","/api/v2/setup/user",e,s,"application/json")}},e.SigninAPI=class{constructor(e){this.base=new s(e)}postSignin(e,s){return this.base.request("POST","/api/v2/signin",e,s)}},e.SignoutAPI=class{constructor(e){this.base=new s(e)}postSignout(e,s){return this.base.request("POST","/api/v2/signout",e,s)}},e.SourcesAPI=class{constructor(e){this.base=new s(e)}getSources(e,s){return this.base.request("GET","/api/v2/sources"+this.base.queryString(e,["org"]),e,s)}postSources(e,s){return this.base.request("POST","/api/v2/sources",e,s,"application/json")}getSourcesID(e,s){return this.base.request("GET","/api/v2/sources/"+e.sourceID,e,s)}patchSourcesID(e,s){return this.base.request("PATCH","/api/v2/sources/"+e.sourceID,e,s,"application/json")}deleteSourcesID(e,s){return this.base.request("DELETE","/api/v2/sources/"+e.sourceID,e,s)}getSourcesIDHealth(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/health`,e,s)}getSourcesIDBuckets(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/buckets${this.base.queryString(e,["org"])}`,e,s)}},e.TasksAPI=class{constructor(e){this.base=new s(e)}getTasks(e,s){return this.base.request("GET","/api/v2/tasks"+this.base.queryString(e,["name","after","user","org","orgID","status","limit"]),e,s)}postTasks(e,s){return this.base.request("POST","/api/v2/tasks",e,s,"application/json")}getTasksID(e,s){return this.base.request("GET","/api/v2/tasks/"+e.taskID,e,s)}patchTasksID(e,s){return this.base.request("PATCH","/api/v2/tasks/"+e.taskID,e,s,"application/json")}deleteTasksID(e,s){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID,e,s)}getTasksIDRuns(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs${this.base.queryString(e,["after","limit","afterTime","beforeTime"])}`,e,s)}postTasksIDRuns(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs`,e,s,"application/json")}getTasksIDRunsID(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}deleteTasksIDRunsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}postTasksIDRunsIDRetry(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/retry`,e,s)}getTasksIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/logs`,e,s)}getTasksIDRunsIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/logs`,e,s)}getTasksIDLabels(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/labels`,e,s)}postTasksIDLabels(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/labels`,e,s,"application/json")}deleteTasksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/labels/${e.labelID}`,e,s)}getTasksIDMembers(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/members`,e,s)}postTasksIDMembers(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/members`,e,s,"application/json")}deleteTasksIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/members/${e.userID}`,e,s)}getTasksIDOwners(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/owners`,e,s)}postTasksIDOwners(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/owners`,e,s,"application/json")}deleteTasksIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/owners/${e.userID}`,e,s)}},e.TelegrafAPI=class{constructor(e){this.base=new s(e)}getTelegrafPlugins(e,s){return this.base.request("GET","/api/v2/telegraf/plugins"+this.base.queryString(e,["type"]),e,s)}},e.TelegrafsAPI=class{constructor(e){this.base=new s(e)}getTelegrafs(e,s){return this.base.request("GET","/api/v2/telegrafs"+this.base.queryString(e,["orgID"]),e,s)}postTelegrafs(e,s){return this.base.request("POST","/api/v2/telegrafs",e,s,"application/json")}getTelegrafsID(e,s){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID,e,s)}putTelegrafsID(e,s){return this.base.request("PUT","/api/v2/telegrafs/"+e.telegrafID,e,s,"application/json")}deleteTelegrafsID(e,s){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID,e,s)}getTelegrafsIDLabels(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s)}postTelegrafsIDLabels(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s,"application/json")}deleteTelegrafsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/labels/${e.labelID}`,e,s)}getTelegrafsIDMembers(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s)}postTelegrafsIDMembers(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s,"application/json")}deleteTelegrafsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/members/${e.userID}`,e,s)}getTelegrafsIDOwners(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s)}postTelegrafsIDOwners(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s,"application/json")}deleteTelegrafsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/owners/${e.userID}`,e,s)}},e.UsersAPI=class{constructor(e){this.base=new s(e)}getUsers(e,s){return this.base.request("GET","/api/v2/users",e,s)}postUsers(e,s){return this.base.request("POST","/api/v2/users",e,s,"application/json")}getUsersID(e,s){return this.base.request("GET","/api/v2/users/"+e.userID,e,s)}patchUsersID(e,s){return this.base.request("PATCH","/api/v2/users/"+e.userID,e,s,"application/json")}deleteUsersID(e,s){return this.base.request("DELETE","/api/v2/users/"+e.userID,e,s)}postUsersIDPassword(e,s){return this.base.request("POST",`/api/v2/users/${e.userID}/password`,e,s,"application/json")}},e.VariablesAPI=class{constructor(e){this.base=new s(e)}getVariables(e,s){return this.base.request("GET","/api/v2/variables"+this.base.queryString(e,["org","orgID"]),e,s)}postVariables(e,s){return this.base.request("POST","/api/v2/variables",e,s,"application/json")}getVariablesID(e,s){return this.base.request("GET","/api/v2/variables/"+e.variableID,e,s)}putVariablesID(e,s){return this.base.request("PUT","/api/v2/variables/"+e.variableID,e,s,"application/json")}patchVariablesID(e,s){return this.base.request("PATCH","/api/v2/variables/"+e.variableID,e,s,"application/json")}deleteVariablesID(e,s){return this.base.request("DELETE","/api/v2/variables/"+e.variableID,e,s)}getVariablesIDLabels(e,s){return this.base.request("GET",`/api/v2/variables/${e.variableID}/labels`,e,s)}postVariablesIDLabels(e,s){return this.base.request("POST",`/api/v2/variables/${e.variableID}/labels`,e,s,"application/json")}deleteVariablesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/variables/${e.variableID}/labels/${e.labelID}`,e,s)}},e.WriteAPI=class{constructor(e){this.base=new s(e)}postWrite(e,s){return this.base.request("POST","/api/v2/write"+this.base.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{constructor(e){this.base=new s(e)}getAuthorizations(e,s){return this.base.request("GET","/api/v2/authorizations"+this.base.queryString(e,["userID","user","orgID","org"]),e,s)}postAuthorizations(e,s){return this.base.request("POST","/api/v2/authorizations",e,s,"application/json")}getAuthorizationsID(e,s){return this.base.request("GET","/api/v2/authorizations/"+e.authID,e,s)}patchAuthorizationsID(e,s){return this.base.request("PATCH","/api/v2/authorizations/"+e.authID,e,s,"application/json")}deleteAuthorizationsID(e,s){return this.base.request("DELETE","/api/v2/authorizations/"+e.authID,e,s)}},e.BucketsAPI=class{constructor(e){this.base=new s(e)}getBuckets(e,s){return this.base.request("GET","/api/v2/buckets"+this.base.queryString(e,["offset","limit","org","orgID","name"]),e,s)}postBuckets(e,s){return this.base.request("POST","/api/v2/buckets",e,s,"application/json")}getBucketsID(e,s){return this.base.request("GET","/api/v2/buckets/"+e.bucketID,e,s)}patchBucketsID(e,s){return this.base.request("PATCH","/api/v2/buckets/"+e.bucketID,e,s,"application/json")}deleteBucketsID(e,s){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID,e,s)}getBucketsIDLabels(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/labels`,e,s)}postBucketsIDLabels(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/labels`,e,s,"application/json")}deleteBucketsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/labels/${e.labelID}`,e,s)}getBucketsIDMembers(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/members`,e,s)}postBucketsIDMembers(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/members`,e,s,"application/json")}deleteBucketsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/members/${e.userID}`,e,s)}getBucketsIDOwners(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/owners`,e,s)}postBucketsIDOwners(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/owners`,e,s,"application/json")}deleteBucketsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/owners/${e.userID}`,e,s)}},e.ChecksAPI=class{constructor(e){this.base=new s(e)}getChecks(e,s){return this.base.request("GET","/api/v2/checks"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createCheck(e,s){return this.base.request("POST","/api/v2/checks",e,s,"application/json")}getChecksID(e,s){return this.base.request("GET","/api/v2/checks/"+e.checkID,e,s)}putChecksID(e,s){return this.base.request("PUT","/api/v2/checks/"+e.checkID,e,s,"application/json")}patchChecksID(e,s){return this.base.request("PATCH","/api/v2/checks/"+e.checkID,e,s,"application/json")}deleteChecksID(e,s){return this.base.request("DELETE","/api/v2/checks/"+e.checkID,e,s)}getChecksIDLabels(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/labels`,e,s)}postChecksIDLabels(e,s){return this.base.request("POST",`/api/v2/checks/${e.checkID}/labels`,e,s,"application/json")}deleteChecksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/checks/${e.checkID}/labels/${e.labelID}`,e,s)}getChecksIDQuery(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/query`,e,s)}},e.DashboardsAPI=class{constructor(e){this.base=new s(e)}getDashboards(e,s){return this.base.request("GET","/api/v2/dashboards"+this.base.queryString(e,["owner","sortBy","id","orgID","org"]),e,s)}postDashboards(e,s){return this.base.request("POST","/api/v2/dashboards",e,s,"application/json")}getDashboardsID(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}${this.base.queryString(e,["include"])}`,e,s)}patchDashboardsID(e,s){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID,e,s,"application/json")}deleteDashboardsID(e,s){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID,e,s)}postDashboardsIDCells(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}putDashboardsIDCells(e,s){return this.base.request("PUT",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}patchDashboardsIDCellsID(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s,"application/json")}deleteDashboardsIDCellsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s)}getDashboardsIDCellsIDView(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s)}patchDashboardsIDCellsIDView(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s,"application/json")}getDashboardsIDLabels(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s)}postDashboardsIDLabels(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s,"application/json")}deleteDashboardsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/labels/${e.labelID}`,e,s)}getDashboardsIDMembers(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/members`,e,s)}postDashboardsIDMembers(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/members`,e,s,"application/json")}deleteDashboardsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/members/${e.userID}`,e,s)}getDashboardsIDOwners(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s)}postDashboardsIDOwners(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s,"application/json")}deleteDashboardsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/owners/${e.userID}`,e,s)}},e.DbrpsAPI=class{constructor(e){this.base=new s(e)}getDBRPs(e,s){return this.base.request("GET","/api/v2/dbrps"+this.base.queryString(e,["orgID","id","bucketID","default","db","rp"]),e,s)}postDBRP(e,s){return this.base.request("POST","/api/v2/dbrps",e,s,"application/json")}getDBRPsID(e,s){return this.base.request("GET",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}patchDBRPID(e,s){return this.base.request("PATCH",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s,"application/json")}deleteDBRPID(e,s){return this.base.request("DELETE",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}},e.DeleteAPI=class{constructor(e){this.base=new s(e)}postDelete(e,s){return this.base.request("POST","/api/v2/delete"+this.base.queryString(e,["org","bucket","orgID","bucketID"]),e,s,"application/json")}},e.DocumentsAPI=class{constructor(e){this.base=new s(e)}getDocumentsTemplates(e,s){return this.base.request("GET","/api/v2/documents/templates"+this.base.queryString(e,["org","orgID"]),e,s)}postDocumentsTemplates(e,s){return this.base.request("POST","/api/v2/documents/templates",e,s,"application/json")}getDocumentsTemplatesID(e,s){return this.base.request("GET","/api/v2/documents/templates/"+e.templateID,e,s)}putDocumentsTemplatesID(e,s){return this.base.request("PUT","/api/v2/documents/templates/"+e.templateID,e,s,"application/json")}deleteDocumentsTemplatesID(e,s){return this.base.request("DELETE","/api/v2/documents/templates/"+e.templateID,e,s)}getDocumentsTemplatesIDLabels(e,s){return this.base.request("GET",`/api/v2/documents/templates/${e.templateID}/labels`,e,s)}postDocumentsTemplatesIDLabels(e,s){return this.base.request("POST",`/api/v2/documents/templates/${e.templateID}/labels`,e,s,"application/json")}deleteDocumentsTemplatesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/documents/templates/${e.templateID}/labels/${e.labelID}`,e,s)}},e.FlagsAPI=class{constructor(e){this.base=new s(e)}getFlags(e,s){return this.base.request("GET","/api/v2/flags",e,s)}},e.HealthAPI=class{constructor(e){this.base=new s(e)}getHealth(e,s){return this.base.request("GET","/health",e,s)}},e.LabelsAPI=class{constructor(e){this.base=new s(e)}getLabels(e,s){return this.base.request("GET","/api/v2/labels"+this.base.queryString(e,["orgID"]),e,s)}postLabels(e,s){return this.base.request("POST","/api/v2/labels",e,s,"application/json")}getLabelsID(e,s){return this.base.request("GET","/api/v2/labels/"+e.labelID,e,s)}patchLabelsID(e,s){return this.base.request("PATCH","/api/v2/labels/"+e.labelID,e,s,"application/json")}deleteLabelsID(e,s){return this.base.request("DELETE","/api/v2/labels/"+e.labelID,e,s)}},e.MeAPI=class{constructor(e){this.base=new s(e)}getMe(e,s){return this.base.request("GET","/api/v2/me",e,s)}putMePassword(e,s){return this.base.request("PUT","/api/v2/me/password",e,s,"application/json")}},e.NotificationEndpointsAPI=class{constructor(e){this.base=new s(e)}getNotificationEndpoints(e,s){return this.base.request("GET","/api/v2/notificationEndpoints"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createNotificationEndpoint(e,s){return this.base.request("POST","/api/v2/notificationEndpoints",e,s,"application/json")}getNotificationEndpointsID(e,s){return this.base.request("GET","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}putNotificationEndpointsID(e,s){return this.base.request("PUT","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}patchNotificationEndpointsID(e,s){return this.base.request("PATCH","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}deleteNotificationEndpointsID(e,s){return this.base.request("DELETE","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}getNotificationEndpointsIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s)}postNotificationEndpointIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s,"application/json")}deleteNotificationEndpointsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}/labels/${e.labelID}`,e,s)}},e.NotificationRulesAPI=class{constructor(e){this.base=new s(e)}getNotificationRules(e,s){return this.base.request("GET","/api/v2/notificationRules"+this.base.queryString(e,["offset","limit","orgID","checkID","tag"]),e,s)}createNotificationRule(e,s){return this.base.request("POST","/api/v2/notificationRules",e,s,"application/json")}getNotificationRulesID(e,s){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID,e,s)}putNotificationRulesID(e,s){return this.base.request("PUT","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}patchNotificationRulesID(e,s){return this.base.request("PATCH","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}deleteNotificationRulesID(e,s){return this.base.request("DELETE","/api/v2/notificationRules/"+e.ruleID,e,s)}getNotificationRulesIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s)}postNotificationRuleIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s,"application/json")}deleteNotificationRulesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationRules/${e.ruleID}/labels/${e.labelID}`,e,s)}getNotificationRulesIDQuery(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/query`,e,s)}},e.OrgsAPI=class{constructor(e){this.base=new s(e)}getOrgs(e,s){return this.base.request("GET","/api/v2/orgs"+this.base.queryString(e,["org","orgID","userID"]),e,s)}postOrgs(e,s){return this.base.request("POST","/api/v2/orgs",e,s,"application/json")}getOrgsID(e,s){return this.base.request("GET","/api/v2/orgs/"+e.orgID,e,s)}patchOrgsID(e,s){return this.base.request("PATCH","/api/v2/orgs/"+e.orgID,e,s,"application/json")}deleteOrgsID(e,s){return this.base.request("DELETE","/api/v2/orgs/"+e.orgID,e,s)}getOrgsIDSecrets(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/secrets`,e,s)}patchOrgsIDSecrets(e,s){return this.base.request("PATCH",`/api/v2/orgs/${e.orgID}/secrets`,e,s,"application/json")}postOrgsIDSecrets(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/secrets/delete`,e,s,"application/json")}getOrgsIDMembers(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/members`,e,s)}postOrgsIDMembers(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/members`,e,s,"application/json")}deleteOrgsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/members/${e.userID}`,e,s)}getOrgsIDOwners(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/owners`,e,s)}postOrgsIDOwners(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/owners`,e,s,"application/json")}},e.QueryAPI=class{constructor(e){this.base=new s(e)}postQueryAst(e,s){return this.base.request("POST","/api/v2/query/ast",e,s,"application/json")}getQuerySuggestions(e,s){return this.base.request("GET","/api/v2/query/suggestions",e,s)}getQuerySuggestionsName(e,s){return this.base.request("GET","/api/v2/query/suggestions/"+e.name,e,s)}postQueryAnalyze(e,s){return this.base.request("POST","/api/v2/query/analyze",e,s,"application/json")}postQuery(e,s){return this.base.request("POST","/api/v2/query"+this.base.queryString(e,["org","orgID"]),e,s,"application/json")}},e.ReadyAPI=class{constructor(e){this.base=new s(e)}getReady(e,s){return this.base.request("GET","/ready",e,s)}},e.RootAPI=class{constructor(e){this.base=new s(e)}getRoutes(e,s){return this.base.request("GET","/api/v2/",e,s)}},e.ScrapersAPI=class{constructor(e){this.base=new s(e)}getScrapers(e,s){return this.base.request("GET","/api/v2/scrapers"+this.base.queryString(e,["name","id","orgID","org"]),e,s)}postScrapers(e,s){return this.base.request("POST","/api/v2/scrapers",e,s,"application/json")}getScrapersID(e,s){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID,e,s)}patchScrapersID(e,s){return this.base.request("PATCH","/api/v2/scrapers/"+e.scraperTargetID,e,s,"application/json")}deleteScrapersID(e,s){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID,e,s)}getScrapersIDLabels(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s)}postScrapersIDLabels(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s,"application/json")}patchScrapersIDLabelsID(e,s){return this.base.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s,"application/json")}deleteScrapersIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s)}getScrapersIDMembers(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s)}postScrapersIDMembers(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s,"application/json")}deleteScrapersIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/members/${e.userID}`,e,s)}getScrapersIDOwners(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s)}postScrapersIDOwners(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s,"application/json")}deleteScrapersIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/owners/${e.userID}`,e,s)}},e.SetupAPI=class{constructor(e){this.base=new s(e)}getSetup(e,s){return this.base.request("GET","/api/v2/setup",e,s)}postSetup(e,s){return this.base.request("POST","/api/v2/setup",e,s,"application/json")}postSetupUser(e,s){return this.base.request("POST","/api/v2/setup/user",e,s,"application/json")}},e.SigninAPI=class{constructor(e){this.base=new s(e)}postSignin(e,s){return this.base.request("POST","/api/v2/signin",e,s)}},e.SignoutAPI=class{constructor(e){this.base=new s(e)}postSignout(e,s){return this.base.request("POST","/api/v2/signout",e,s)}},e.SourcesAPI=class{constructor(e){this.base=new s(e)}getSources(e,s){return this.base.request("GET","/api/v2/sources"+this.base.queryString(e,["org"]),e,s)}postSources(e,s){return this.base.request("POST","/api/v2/sources",e,s,"application/json")}getSourcesID(e,s){return this.base.request("GET","/api/v2/sources/"+e.sourceID,e,s)}patchSourcesID(e,s){return this.base.request("PATCH","/api/v2/sources/"+e.sourceID,e,s,"application/json")}deleteSourcesID(e,s){return this.base.request("DELETE","/api/v2/sources/"+e.sourceID,e,s)}getSourcesIDHealth(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/health`,e,s)}getSourcesIDBuckets(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/buckets${this.base.queryString(e,["org"])}`,e,s)}},e.StacksAPI=class{constructor(e){this.base=new s(e)}listStacks(e,s){return this.base.request("GET","/api/v2/stacks"+this.base.queryString(e,["orgID","name","stackID"]),e,s)}createStack(e,s){return this.base.request("POST","/api/v2/stacks",e,s,"application/json")}readStack(e,s){return this.base.request("GET","/api/v2/stacks/"+e.stack_id,e,s)}updateStack(e,s){return this.base.request("PATCH","/api/v2/stacks/"+e.stack_id,e,s,"application/json")}deleteStack(e,s){return this.base.request("DELETE",`/api/v2/stacks/${e.stack_id}${this.base.queryString(e,["orgID"])}`,e,s)}uninstallStack(e,s){return this.base.request("POST",`/api/v2/stacks/${e.stack_id}/uninstall`,e,s)}},e.TasksAPI=class{constructor(e){this.base=new s(e)}getTasks(e,s){return this.base.request("GET","/api/v2/tasks"+this.base.queryString(e,["name","after","user","org","orgID","status","limit"]),e,s)}postTasks(e,s){return this.base.request("POST","/api/v2/tasks",e,s,"application/json")}getTasksID(e,s){return this.base.request("GET","/api/v2/tasks/"+e.taskID,e,s)}patchTasksID(e,s){return this.base.request("PATCH","/api/v2/tasks/"+e.taskID,e,s,"application/json")}deleteTasksID(e,s){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID,e,s)}getTasksIDRuns(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs${this.base.queryString(e,["after","limit","afterTime","beforeTime"])}`,e,s)}postTasksIDRuns(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs`,e,s,"application/json")}getTasksIDRunsID(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}deleteTasksIDRunsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}postTasksIDRunsIDRetry(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/retry`,e,s)}getTasksIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/logs`,e,s)}getTasksIDRunsIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/logs`,e,s)}getTasksIDLabels(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/labels`,e,s)}postTasksIDLabels(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/labels`,e,s,"application/json")}deleteTasksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/labels/${e.labelID}`,e,s)}getTasksIDMembers(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/members`,e,s)}postTasksIDMembers(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/members`,e,s,"application/json")}deleteTasksIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/members/${e.userID}`,e,s)}getTasksIDOwners(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/owners`,e,s)}postTasksIDOwners(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/owners`,e,s,"application/json")}deleteTasksIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/owners/${e.userID}`,e,s)}},e.TelegrafAPI=class{constructor(e){this.base=new s(e)}getTelegrafPlugins(e,s){return this.base.request("GET","/api/v2/telegraf/plugins"+this.base.queryString(e,["type"]),e,s)}},e.TelegrafsAPI=class{constructor(e){this.base=new s(e)}getTelegrafs(e,s){return this.base.request("GET","/api/v2/telegrafs"+this.base.queryString(e,["orgID"]),e,s)}postTelegrafs(e,s){return this.base.request("POST","/api/v2/telegrafs",e,s,"application/json")}getTelegrafsID(e,s){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID,e,s)}putTelegrafsID(e,s){return this.base.request("PUT","/api/v2/telegrafs/"+e.telegrafID,e,s,"application/json")}deleteTelegrafsID(e,s){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID,e,s)}getTelegrafsIDLabels(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s)}postTelegrafsIDLabels(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s,"application/json")}deleteTelegrafsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/labels/${e.labelID}`,e,s)}getTelegrafsIDMembers(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s)}postTelegrafsIDMembers(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s,"application/json")}deleteTelegrafsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/members/${e.userID}`,e,s)}getTelegrafsIDOwners(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s)}postTelegrafsIDOwners(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s,"application/json")}deleteTelegrafsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/owners/${e.userID}`,e,s)}},e.TemplatesAPI=class{constructor(e){this.base=new s(e)}applyTemplate(e,s){return this.base.request("POST","/api/v2/templates/apply",e,s,"application/json")}exportTemplate(e,s){return this.base.request("POST","/api/v2/templates/export",e,s,"application/json")}},e.UsersAPI=class{constructor(e){this.base=new s(e)}getUsers(e,s){return this.base.request("GET","/api/v2/users",e,s)}postUsers(e,s){return this.base.request("POST","/api/v2/users",e,s,"application/json")}getUsersID(e,s){return this.base.request("GET","/api/v2/users/"+e.userID,e,s)}patchUsersID(e,s){return this.base.request("PATCH","/api/v2/users/"+e.userID,e,s,"application/json")}deleteUsersID(e,s){return this.base.request("DELETE","/api/v2/users/"+e.userID,e,s)}postUsersIDPassword(e,s){return this.base.request("POST",`/api/v2/users/${e.userID}/password`,e,s,"application/json")}},e.VariablesAPI=class{constructor(e){this.base=new s(e)}getVariables(e,s){return this.base.request("GET","/api/v2/variables"+this.base.queryString(e,["org","orgID"]),e,s)}postVariables(e,s){return this.base.request("POST","/api/v2/variables",e,s,"application/json")}getVariablesID(e,s){return this.base.request("GET","/api/v2/variables/"+e.variableID,e,s)}putVariablesID(e,s){return this.base.request("PUT","/api/v2/variables/"+e.variableID,e,s,"application/json")}patchVariablesID(e,s){return this.base.request("PATCH","/api/v2/variables/"+e.variableID,e,s,"application/json")}deleteVariablesID(e,s){return this.base.request("DELETE","/api/v2/variables/"+e.variableID,e,s)}getVariablesIDLabels(e,s){return this.base.request("GET",`/api/v2/variables/${e.variableID}/labels`,e,s)}postVariablesIDLabels(e,s){return this.base.request("POST",`/api/v2/variables/${e.variableID}/labels`,e,s,"application/json")}deleteVariablesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/variables/${e.variableID}/labels/${e.labelID}`,e,s)}},e.WriteAPI=class{constructor(e){this.base=new s(e)}postWrite(e,s){return this.base.request("POST","/api/v2/write"+this.base.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{constructor(s){this.base=new e(s)}getAuthorizations(e,s){return this.base.request("GET","/api/v2/authorizations"+this.base.queryString(e,["userID","user","orgID","org"]),e,s)}postAuthorizations(e,s){return this.base.request("POST","/api/v2/authorizations",e,s,"application/json")}getAuthorizationsID(e,s){return this.base.request("GET","/api/v2/authorizations/"+e.authID,e,s)}patchAuthorizationsID(e,s){return this.base.request("PATCH","/api/v2/authorizations/"+e.authID,e,s,"application/json")}deleteAuthorizationsID(e,s){return this.base.request("DELETE","/api/v2/authorizations/"+e.authID,e,s)}},exports.BucketsAPI=class{constructor(s){this.base=new e(s)}getBuckets(e,s){return this.base.request("GET","/api/v2/buckets"+this.base.queryString(e,["offset","limit","org","orgID","name"]),e,s)}postBuckets(e,s){return this.base.request("POST","/api/v2/buckets",e,s,"application/json")}getBucketsID(e,s){return this.base.request("GET","/api/v2/buckets/"+e.bucketID,e,s)}patchBucketsID(e,s){return this.base.request("PATCH","/api/v2/buckets/"+e.bucketID,e,s,"application/json")}deleteBucketsID(e,s){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID,e,s)}getBucketsIDLabels(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/labels`,e,s)}postBucketsIDLabels(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/labels`,e,s,"application/json")}deleteBucketsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/labels/${e.labelID}`,e,s)}getBucketsIDMembers(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/members`,e,s)}postBucketsIDMembers(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/members`,e,s,"application/json")}deleteBucketsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/members/${e.userID}`,e,s)}getBucketsIDOwners(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/owners`,e,s)}postBucketsIDOwners(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/owners`,e,s,"application/json")}deleteBucketsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/owners/${e.userID}`,e,s)}},exports.ChecksAPI=class{constructor(s){this.base=new e(s)}getChecks(e,s){return this.base.request("GET","/api/v2/checks"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createCheck(e,s){return this.base.request("POST","/api/v2/checks",e,s,"application/json")}getChecksID(e,s){return this.base.request("GET","/api/v2/checks/"+e.checkID,e,s)}putChecksID(e,s){return this.base.request("PUT","/api/v2/checks/"+e.checkID,e,s,"application/json")}patchChecksID(e,s){return this.base.request("PATCH","/api/v2/checks/"+e.checkID,e,s,"application/json")}deleteChecksID(e,s){return this.base.request("DELETE","/api/v2/checks/"+e.checkID,e,s)}getChecksIDLabels(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/labels`,e,s)}postChecksIDLabels(e,s){return this.base.request("POST",`/api/v2/checks/${e.checkID}/labels`,e,s,"application/json")}deleteChecksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/checks/${e.checkID}/labels/${e.labelID}`,e,s)}getChecksIDQuery(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/query`,e,s)}},exports.DashboardsAPI=class{constructor(s){this.base=new e(s)}getDashboards(e,s){return this.base.request("GET","/api/v2/dashboards"+this.base.queryString(e,["owner","sortBy","id","orgID","org"]),e,s)}postDashboards(e,s){return this.base.request("POST","/api/v2/dashboards",e,s,"application/json")}getDashboardsID(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}${this.base.queryString(e,["include"])}`,e,s)}patchDashboardsID(e,s){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID,e,s,"application/json")}deleteDashboardsID(e,s){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID,e,s)}postDashboardsIDCells(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}putDashboardsIDCells(e,s){return this.base.request("PUT",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}patchDashboardsIDCellsID(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s,"application/json")}deleteDashboardsIDCellsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s)}getDashboardsIDCellsIDView(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s)}patchDashboardsIDCellsIDView(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s,"application/json")}getDashboardsIDLabels(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s)}postDashboardsIDLabels(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s,"application/json")}deleteDashboardsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/labels/${e.labelID}`,e,s)}getDashboardsIDMembers(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/members`,e,s)}postDashboardsIDMembers(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/members`,e,s,"application/json")}deleteDashboardsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/members/${e.userID}`,e,s)}getDashboardsIDOwners(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s)}postDashboardsIDOwners(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s,"application/json")}deleteDashboardsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/owners/${e.userID}`,e,s)}},exports.DbrpsAPI=class{constructor(s){this.base=new e(s)}getDBRPs(e,s){return this.base.request("GET","/api/v2/dbrps"+this.base.queryString(e,["orgID","id","bucketID","default","db","rp"]),e,s)}postDBRP(e,s){return this.base.request("POST","/api/v2/dbrps",e,s,"application/json")}getDBRPsID(e,s){return this.base.request("GET",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}patchDBRPID(e,s){return this.base.request("PATCH",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s,"application/json")}deleteDBRPID(e,s){return this.base.request("DELETE",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}},exports.DeleteAPI=class{constructor(s){this.base=new e(s)}postDelete(e,s){return this.base.request("POST","/api/v2/delete"+this.base.queryString(e,["org","bucket","orgID","bucketID"]),e,s,"application/json")}},exports.DocumentsAPI=class{constructor(s){this.base=new e(s)}getDocumentsTemplates(e,s){return this.base.request("GET","/api/v2/documents/templates"+this.base.queryString(e,["org","orgID"]),e,s)}postDocumentsTemplates(e,s){return this.base.request("POST","/api/v2/documents/templates",e,s,"application/json")}getDocumentsTemplatesID(e,s){return this.base.request("GET","/api/v2/documents/templates/"+e.templateID,e,s)}putDocumentsTemplatesID(e,s){return this.base.request("PUT","/api/v2/documents/templates/"+e.templateID,e,s,"application/json")}deleteDocumentsTemplatesID(e,s){return this.base.request("DELETE","/api/v2/documents/templates/"+e.templateID,e,s)}getDocumentsTemplatesIDLabels(e,s){return this.base.request("GET",`/api/v2/documents/templates/${e.templateID}/labels`,e,s)}postDocumentsTemplatesIDLabels(e,s){return this.base.request("POST",`/api/v2/documents/templates/${e.templateID}/labels`,e,s,"application/json")}deleteDocumentsTemplatesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/documents/templates/${e.templateID}/labels/${e.labelID}`,e,s)}},exports.FlagsAPI=class{constructor(s){this.base=new e(s)}getFlags(e,s){return this.base.request("GET","/api/v2/flags",e,s)}},exports.HealthAPI=class{constructor(s){this.base=new e(s)}getHealth(e,s){return this.base.request("GET","/health",e,s)}},exports.LabelsAPI=class{constructor(s){this.base=new e(s)}getLabels(e,s){return this.base.request("GET","/api/v2/labels"+this.base.queryString(e,["orgID"]),e,s)}postLabels(e,s){return this.base.request("POST","/api/v2/labels",e,s,"application/json")}getLabelsID(e,s){return this.base.request("GET","/api/v2/labels/"+e.labelID,e,s)}patchLabelsID(e,s){return this.base.request("PATCH","/api/v2/labels/"+e.labelID,e,s,"application/json")}deleteLabelsID(e,s){return this.base.request("DELETE","/api/v2/labels/"+e.labelID,e,s)}},exports.MeAPI=class{constructor(s){this.base=new e(s)}getMe(e,s){return this.base.request("GET","/api/v2/me",e,s)}putMePassword(e,s){return this.base.request("PUT","/api/v2/me/password",e,s,"application/json")}},exports.NotificationEndpointsAPI=class{constructor(s){this.base=new e(s)}getNotificationEndpoints(e,s){return this.base.request("GET","/api/v2/notificationEndpoints"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createNotificationEndpoint(e,s){return this.base.request("POST","/api/v2/notificationEndpoints",e,s,"application/json")}getNotificationEndpointsID(e,s){return this.base.request("GET","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}putNotificationEndpointsID(e,s){return this.base.request("PUT","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}patchNotificationEndpointsID(e,s){return this.base.request("PATCH","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}deleteNotificationEndpointsID(e,s){return this.base.request("DELETE","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}getNotificationEndpointsIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s)}postNotificationEndpointIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s,"application/json")}deleteNotificationEndpointsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}/labels/${e.labelID}`,e,s)}},exports.NotificationRulesAPI=class{constructor(s){this.base=new e(s)}getNotificationRules(e,s){return this.base.request("GET","/api/v2/notificationRules"+this.base.queryString(e,["offset","limit","orgID","checkID","tag"]),e,s)}createNotificationRule(e,s){return this.base.request("POST","/api/v2/notificationRules",e,s,"application/json")}getNotificationRulesID(e,s){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID,e,s)}putNotificationRulesID(e,s){return this.base.request("PUT","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}patchNotificationRulesID(e,s){return this.base.request("PATCH","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}deleteNotificationRulesID(e,s){return this.base.request("DELETE","/api/v2/notificationRules/"+e.ruleID,e,s)}getNotificationRulesIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s)}postNotificationRuleIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s,"application/json")}deleteNotificationRulesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationRules/${e.ruleID}/labels/${e.labelID}`,e,s)}getNotificationRulesIDQuery(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/query`,e,s)}},exports.OrgsAPI=class{constructor(s){this.base=new e(s)}getOrgs(e,s){return this.base.request("GET","/api/v2/orgs"+this.base.queryString(e,["org","orgID","userID"]),e,s)}postOrgs(e,s){return this.base.request("POST","/api/v2/orgs",e,s,"application/json")}getOrgsID(e,s){return this.base.request("GET","/api/v2/orgs/"+e.orgID,e,s)}patchOrgsID(e,s){return this.base.request("PATCH","/api/v2/orgs/"+e.orgID,e,s,"application/json")}deleteOrgsID(e,s){return this.base.request("DELETE","/api/v2/orgs/"+e.orgID,e,s)}getOrgsIDLabels(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/labels`,e,s)}postOrgsIDLabels(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/labels`,e,s,"application/json")}deleteOrgsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/labels/${e.labelID}`,e,s)}getOrgsIDSecrets(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/secrets`,e,s)}patchOrgsIDSecrets(e,s){return this.base.request("PATCH",`/api/v2/orgs/${e.orgID}/secrets`,e,s,"application/json")}postOrgsIDSecrets(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/secrets/delete`,e,s,"application/json")}getOrgsIDMembers(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/members`,e,s)}postOrgsIDMembers(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/members`,e,s,"application/json")}deleteOrgsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/members/${e.userID}`,e,s)}getOrgsIDOwners(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/owners`,e,s)}postOrgsIDOwners(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/owners`,e,s,"application/json")}postOrgsIDInvites(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/invites`,e,s,"application/json")}deleteOrgsIDInviteID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/invites/${e.inviteID}`,e,s)}postOrgsIDInviteID(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/invites/${e.inviteID}/resend`,e,s)}getCloudUsers(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/users`,e,s)}deleteOrgsIDCloudUserID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/users/${e.userID}`,e,s)}deleteOrgsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/owners/${e.userID}`,e,s)}},exports.PackagesAPI=class{constructor(s){this.base=new e(s)}createPkg(e,s){return this.base.request("POST","/api/v2/packages",e,s,"application/json")}applyPkg(e,s){return this.base.request("POST","/api/v2/packages/apply",e,s,"application/json")}listStacks(e,s){return this.base.request("GET","/api/v2/packages/stacks"+this.base.queryString(e,["orgID","name","stackID"]),e,s)}createStack(e,s){return this.base.request("POST","/api/v2/packages/stacks",e,s,"application/json")}readStack(e,s){return this.base.request("GET","/api/v2/packages/stacks/"+e.stack_id,e,s)}updateStack(e,s){return this.base.request("PATCH","/api/v2/packages/stacks/"+e.stack_id,e,s,"application/json")}deleteStack(e,s){return this.base.request("DELETE",`/api/v2/packages/stacks/${e.stack_id}${this.base.queryString(e,["orgID"])}`,e,s)}exportStack(e,s){return this.base.request("DELETE",`/api/v2/packages/stacks/${e.stack_id}/export${this.base.queryString(e,["orgID"])}`,e,s)}},exports.QueryAPI=class{constructor(s){this.base=new e(s)}postQueryAst(e,s){return this.base.request("POST","/api/v2/query/ast",e,s,"application/json")}getQuerySuggestions(e,s){return this.base.request("GET","/api/v2/query/suggestions",e,s)}getQuerySuggestionsName(e,s){return this.base.request("GET","/api/v2/query/suggestions/"+e.name,e,s)}postQueryAnalyze(e,s){return this.base.request("POST","/api/v2/query/analyze",e,s,"application/json")}postQuery(e,s){return this.base.request("POST","/api/v2/query"+this.base.queryString(e,["org","orgID"]),e,s,"application/json")}},exports.ReadyAPI=class{constructor(s){this.base=new e(s)}getReady(e,s){return this.base.request("GET","/ready",e,s)}},exports.RootAPI=class{constructor(s){this.base=new e(s)}getRoutes(e,s){return this.base.request("GET","/api/v2/",e,s)}},exports.ScrapersAPI=class{constructor(s){this.base=new e(s)}getScrapers(e,s){return this.base.request("GET","/api/v2/scrapers"+this.base.queryString(e,["name","id","orgID","org"]),e,s)}postScrapers(e,s){return this.base.request("POST","/api/v2/scrapers",e,s,"application/json")}getScrapersID(e,s){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID,e,s)}patchScrapersID(e,s){return this.base.request("PATCH","/api/v2/scrapers/"+e.scraperTargetID,e,s,"application/json")}deleteScrapersID(e,s){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID,e,s)}getScrapersIDLabels(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s)}postScrapersIDLabels(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s,"application/json")}patchScrapersIDLabelsID(e,s){return this.base.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s,"application/json")}deleteScrapersIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s)}getScrapersIDMembers(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s)}postScrapersIDMembers(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s,"application/json")}deleteScrapersIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/members/${e.userID}`,e,s)}getScrapersIDOwners(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s)}postScrapersIDOwners(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s,"application/json")}deleteScrapersIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/owners/${e.userID}`,e,s)}},exports.SetupAPI=class{constructor(s){this.base=new e(s)}getSetup(e,s){return this.base.request("GET","/api/v2/setup",e,s)}postSetup(e,s){return this.base.request("POST","/api/v2/setup",e,s,"application/json")}postSetupUser(e,s){return this.base.request("POST","/api/v2/setup/user",e,s,"application/json")}},exports.SigninAPI=class{constructor(s){this.base=new e(s)}postSignin(e,s){return this.base.request("POST","/api/v2/signin",e,s)}},exports.SignoutAPI=class{constructor(s){this.base=new e(s)}postSignout(e,s){return this.base.request("POST","/api/v2/signout",e,s)}},exports.SourcesAPI=class{constructor(s){this.base=new e(s)}getSources(e,s){return this.base.request("GET","/api/v2/sources"+this.base.queryString(e,["org"]),e,s)}postSources(e,s){return this.base.request("POST","/api/v2/sources",e,s,"application/json")}getSourcesID(e,s){return this.base.request("GET","/api/v2/sources/"+e.sourceID,e,s)}patchSourcesID(e,s){return this.base.request("PATCH","/api/v2/sources/"+e.sourceID,e,s,"application/json")}deleteSourcesID(e,s){return this.base.request("DELETE","/api/v2/sources/"+e.sourceID,e,s)}getSourcesIDHealth(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/health`,e,s)}getSourcesIDBuckets(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/buckets${this.base.queryString(e,["org"])}`,e,s)}},exports.TasksAPI=class{constructor(s){this.base=new e(s)}getTasks(e,s){return this.base.request("GET","/api/v2/tasks"+this.base.queryString(e,["name","after","user","org","orgID","status","limit"]),e,s)}postTasks(e,s){return this.base.request("POST","/api/v2/tasks",e,s,"application/json")}getTasksID(e,s){return this.base.request("GET","/api/v2/tasks/"+e.taskID,e,s)}patchTasksID(e,s){return this.base.request("PATCH","/api/v2/tasks/"+e.taskID,e,s,"application/json")}deleteTasksID(e,s){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID,e,s)}getTasksIDRuns(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs${this.base.queryString(e,["after","limit","afterTime","beforeTime"])}`,e,s)}postTasksIDRuns(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs`,e,s,"application/json")}getTasksIDRunsID(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}deleteTasksIDRunsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}postTasksIDRunsIDRetry(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/retry`,e,s)}getTasksIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/logs`,e,s)}getTasksIDRunsIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/logs`,e,s)}getTasksIDLabels(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/labels`,e,s)}postTasksIDLabels(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/labels`,e,s,"application/json")}deleteTasksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/labels/${e.labelID}`,e,s)}getTasksIDMembers(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/members`,e,s)}postTasksIDMembers(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/members`,e,s,"application/json")}deleteTasksIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/members/${e.userID}`,e,s)}getTasksIDOwners(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/owners`,e,s)}postTasksIDOwners(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/owners`,e,s,"application/json")}deleteTasksIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/owners/${e.userID}`,e,s)}},exports.TelegrafAPI=class{constructor(s){this.base=new e(s)}getTelegrafPlugins(e,s){return this.base.request("GET","/api/v2/telegraf/plugins"+this.base.queryString(e,["type"]),e,s)}},exports.TelegrafsAPI=class{constructor(s){this.base=new e(s)}getTelegrafs(e,s){return this.base.request("GET","/api/v2/telegrafs"+this.base.queryString(e,["orgID"]),e,s)}postTelegrafs(e,s){return this.base.request("POST","/api/v2/telegrafs",e,s,"application/json")}getTelegrafsID(e,s){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID,e,s)}putTelegrafsID(e,s){return this.base.request("PUT","/api/v2/telegrafs/"+e.telegrafID,e,s,"application/json")}deleteTelegrafsID(e,s){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID,e,s)}getTelegrafsIDLabels(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s)}postTelegrafsIDLabels(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s,"application/json")}deleteTelegrafsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/labels/${e.labelID}`,e,s)}getTelegrafsIDMembers(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s)}postTelegrafsIDMembers(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s,"application/json")}deleteTelegrafsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/members/${e.userID}`,e,s)}getTelegrafsIDOwners(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s)}postTelegrafsIDOwners(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s,"application/json")}deleteTelegrafsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/owners/${e.userID}`,e,s)}},exports.UsersAPI=class{constructor(s){this.base=new e(s)}getUsers(e,s){return this.base.request("GET","/api/v2/users",e,s)}postUsers(e,s){return this.base.request("POST","/api/v2/users",e,s,"application/json")}getUsersID(e,s){return this.base.request("GET","/api/v2/users/"+e.userID,e,s)}patchUsersID(e,s){return this.base.request("PATCH","/api/v2/users/"+e.userID,e,s,"application/json")}deleteUsersID(e,s){return this.base.request("DELETE","/api/v2/users/"+e.userID,e,s)}postUsersIDPassword(e,s){return this.base.request("POST",`/api/v2/users/${e.userID}/password`,e,s,"application/json")}},exports.VariablesAPI=class{constructor(s){this.base=new e(s)}getVariables(e,s){return this.base.request("GET","/api/v2/variables"+this.base.queryString(e,["org","orgID"]),e,s)}postVariables(e,s){return this.base.request("POST","/api/v2/variables",e,s,"application/json")}getVariablesID(e,s){return this.base.request("GET","/api/v2/variables/"+e.variableID,e,s)}putVariablesID(e,s){return this.base.request("PUT","/api/v2/variables/"+e.variableID,e,s,"application/json")}patchVariablesID(e,s){return this.base.request("PATCH","/api/v2/variables/"+e.variableID,e,s,"application/json")}deleteVariablesID(e,s){return this.base.request("DELETE","/api/v2/variables/"+e.variableID,e,s)}getVariablesIDLabels(e,s){return this.base.request("GET",`/api/v2/variables/${e.variableID}/labels`,e,s)}postVariablesIDLabels(e,s){return this.base.request("POST",`/api/v2/variables/${e.variableID}/labels`,e,s,"application/json")}deleteVariablesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/variables/${e.variableID}/labels/${e.labelID}`,e,s)}},exports.WriteAPI=class{constructor(s){this.base=new e(s)}postWrite(e,s){return this.base.request("POST","/api/v2/write"+this.base.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{constructor(s){this.base=new e(s)}getAuthorizations(e,s){return this.base.request("GET","/api/v2/authorizations"+this.base.queryString(e,["userID","user","orgID","org"]),e,s)}postAuthorizations(e,s){return this.base.request("POST","/api/v2/authorizations",e,s,"application/json")}getAuthorizationsID(e,s){return this.base.request("GET","/api/v2/authorizations/"+e.authID,e,s)}patchAuthorizationsID(e,s){return this.base.request("PATCH","/api/v2/authorizations/"+e.authID,e,s,"application/json")}deleteAuthorizationsID(e,s){return this.base.request("DELETE","/api/v2/authorizations/"+e.authID,e,s)}},exports.BucketsAPI=class{constructor(s){this.base=new e(s)}getBuckets(e,s){return this.base.request("GET","/api/v2/buckets"+this.base.queryString(e,["offset","limit","org","orgID","name"]),e,s)}postBuckets(e,s){return this.base.request("POST","/api/v2/buckets",e,s,"application/json")}getBucketsID(e,s){return this.base.request("GET","/api/v2/buckets/"+e.bucketID,e,s)}patchBucketsID(e,s){return this.base.request("PATCH","/api/v2/buckets/"+e.bucketID,e,s,"application/json")}deleteBucketsID(e,s){return this.base.request("DELETE","/api/v2/buckets/"+e.bucketID,e,s)}getBucketsIDLabels(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/labels`,e,s)}postBucketsIDLabels(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/labels`,e,s,"application/json")}deleteBucketsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/labels/${e.labelID}`,e,s)}getBucketsIDMembers(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/members`,e,s)}postBucketsIDMembers(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/members`,e,s,"application/json")}deleteBucketsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/members/${e.userID}`,e,s)}getBucketsIDOwners(e,s){return this.base.request("GET",`/api/v2/buckets/${e.bucketID}/owners`,e,s)}postBucketsIDOwners(e,s){return this.base.request("POST",`/api/v2/buckets/${e.bucketID}/owners`,e,s,"application/json")}deleteBucketsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/buckets/${e.bucketID}/owners/${e.userID}`,e,s)}},exports.ChecksAPI=class{constructor(s){this.base=new e(s)}getChecks(e,s){return this.base.request("GET","/api/v2/checks"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createCheck(e,s){return this.base.request("POST","/api/v2/checks",e,s,"application/json")}getChecksID(e,s){return this.base.request("GET","/api/v2/checks/"+e.checkID,e,s)}putChecksID(e,s){return this.base.request("PUT","/api/v2/checks/"+e.checkID,e,s,"application/json")}patchChecksID(e,s){return this.base.request("PATCH","/api/v2/checks/"+e.checkID,e,s,"application/json")}deleteChecksID(e,s){return this.base.request("DELETE","/api/v2/checks/"+e.checkID,e,s)}getChecksIDLabels(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/labels`,e,s)}postChecksIDLabels(e,s){return this.base.request("POST",`/api/v2/checks/${e.checkID}/labels`,e,s,"application/json")}deleteChecksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/checks/${e.checkID}/labels/${e.labelID}`,e,s)}getChecksIDQuery(e,s){return this.base.request("GET",`/api/v2/checks/${e.checkID}/query`,e,s)}},exports.DashboardsAPI=class{constructor(s){this.base=new e(s)}getDashboards(e,s){return this.base.request("GET","/api/v2/dashboards"+this.base.queryString(e,["owner","sortBy","id","orgID","org"]),e,s)}postDashboards(e,s){return this.base.request("POST","/api/v2/dashboards",e,s,"application/json")}getDashboardsID(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}${this.base.queryString(e,["include"])}`,e,s)}patchDashboardsID(e,s){return this.base.request("PATCH","/api/v2/dashboards/"+e.dashboardID,e,s,"application/json")}deleteDashboardsID(e,s){return this.base.request("DELETE","/api/v2/dashboards/"+e.dashboardID,e,s)}postDashboardsIDCells(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}putDashboardsIDCells(e,s){return this.base.request("PUT",`/api/v2/dashboards/${e.dashboardID}/cells`,e,s,"application/json")}patchDashboardsIDCellsID(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s,"application/json")}deleteDashboardsIDCellsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}`,e,s)}getDashboardsIDCellsIDView(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s)}patchDashboardsIDCellsIDView(e,s){return this.base.request("PATCH",`/api/v2/dashboards/${e.dashboardID}/cells/${e.cellID}/view`,e,s,"application/json")}getDashboardsIDLabels(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s)}postDashboardsIDLabels(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/labels`,e,s,"application/json")}deleteDashboardsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/labels/${e.labelID}`,e,s)}getDashboardsIDMembers(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/members`,e,s)}postDashboardsIDMembers(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/members`,e,s,"application/json")}deleteDashboardsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/members/${e.userID}`,e,s)}getDashboardsIDOwners(e,s){return this.base.request("GET",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s)}postDashboardsIDOwners(e,s){return this.base.request("POST",`/api/v2/dashboards/${e.dashboardID}/owners`,e,s,"application/json")}deleteDashboardsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/dashboards/${e.dashboardID}/owners/${e.userID}`,e,s)}},exports.DbrpsAPI=class{constructor(s){this.base=new e(s)}getDBRPs(e,s){return this.base.request("GET","/api/v2/dbrps"+this.base.queryString(e,["orgID","id","bucketID","default","db","rp"]),e,s)}postDBRP(e,s){return this.base.request("POST","/api/v2/dbrps",e,s,"application/json")}getDBRPsID(e,s){return this.base.request("GET",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}patchDBRPID(e,s){return this.base.request("PATCH",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s,"application/json")}deleteDBRPID(e,s){return this.base.request("DELETE",`/api/v2/dbrps/${e.dbrpID}${this.base.queryString(e,["orgID"])}`,e,s)}},exports.DeleteAPI=class{constructor(s){this.base=new e(s)}postDelete(e,s){return this.base.request("POST","/api/v2/delete"+this.base.queryString(e,["org","bucket","orgID","bucketID"]),e,s,"application/json")}},exports.DocumentsAPI=class{constructor(s){this.base=new e(s)}getDocumentsTemplates(e,s){return this.base.request("GET","/api/v2/documents/templates"+this.base.queryString(e,["org","orgID"]),e,s)}postDocumentsTemplates(e,s){return this.base.request("POST","/api/v2/documents/templates",e,s,"application/json")}getDocumentsTemplatesID(e,s){return this.base.request("GET","/api/v2/documents/templates/"+e.templateID,e,s)}putDocumentsTemplatesID(e,s){return this.base.request("PUT","/api/v2/documents/templates/"+e.templateID,e,s,"application/json")}deleteDocumentsTemplatesID(e,s){return this.base.request("DELETE","/api/v2/documents/templates/"+e.templateID,e,s)}getDocumentsTemplatesIDLabels(e,s){return this.base.request("GET",`/api/v2/documents/templates/${e.templateID}/labels`,e,s)}postDocumentsTemplatesIDLabels(e,s){return this.base.request("POST",`/api/v2/documents/templates/${e.templateID}/labels`,e,s,"application/json")}deleteDocumentsTemplatesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/documents/templates/${e.templateID}/labels/${e.labelID}`,e,s)}},exports.FlagsAPI=class{constructor(s){this.base=new e(s)}getFlags(e,s){return this.base.request("GET","/api/v2/flags",e,s)}},exports.HealthAPI=class{constructor(s){this.base=new e(s)}getHealth(e,s){return this.base.request("GET","/health",e,s)}},exports.LabelsAPI=class{constructor(s){this.base=new e(s)}getLabels(e,s){return this.base.request("GET","/api/v2/labels"+this.base.queryString(e,["orgID"]),e,s)}postLabels(e,s){return this.base.request("POST","/api/v2/labels",e,s,"application/json")}getLabelsID(e,s){return this.base.request("GET","/api/v2/labels/"+e.labelID,e,s)}patchLabelsID(e,s){return this.base.request("PATCH","/api/v2/labels/"+e.labelID,e,s,"application/json")}deleteLabelsID(e,s){return this.base.request("DELETE","/api/v2/labels/"+e.labelID,e,s)}},exports.MeAPI=class{constructor(s){this.base=new e(s)}getMe(e,s){return this.base.request("GET","/api/v2/me",e,s)}putMePassword(e,s){return this.base.request("PUT","/api/v2/me/password",e,s,"application/json")}},exports.NotificationEndpointsAPI=class{constructor(s){this.base=new e(s)}getNotificationEndpoints(e,s){return this.base.request("GET","/api/v2/notificationEndpoints"+this.base.queryString(e,["offset","limit","orgID"]),e,s)}createNotificationEndpoint(e,s){return this.base.request("POST","/api/v2/notificationEndpoints",e,s,"application/json")}getNotificationEndpointsID(e,s){return this.base.request("GET","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}putNotificationEndpointsID(e,s){return this.base.request("PUT","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}patchNotificationEndpointsID(e,s){return this.base.request("PATCH","/api/v2/notificationEndpoints/"+e.endpointID,e,s,"application/json")}deleteNotificationEndpointsID(e,s){return this.base.request("DELETE","/api/v2/notificationEndpoints/"+e.endpointID,e,s)}getNotificationEndpointsIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s)}postNotificationEndpointIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationEndpoints/${e.endpointID}/labels`,e,s,"application/json")}deleteNotificationEndpointsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationEndpoints/${e.endpointID}/labels/${e.labelID}`,e,s)}},exports.NotificationRulesAPI=class{constructor(s){this.base=new e(s)}getNotificationRules(e,s){return this.base.request("GET","/api/v2/notificationRules"+this.base.queryString(e,["offset","limit","orgID","checkID","tag"]),e,s)}createNotificationRule(e,s){return this.base.request("POST","/api/v2/notificationRules",e,s,"application/json")}getNotificationRulesID(e,s){return this.base.request("GET","/api/v2/notificationRules/"+e.ruleID,e,s)}putNotificationRulesID(e,s){return this.base.request("PUT","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}patchNotificationRulesID(e,s){return this.base.request("PATCH","/api/v2/notificationRules/"+e.ruleID,e,s,"application/json")}deleteNotificationRulesID(e,s){return this.base.request("DELETE","/api/v2/notificationRules/"+e.ruleID,e,s)}getNotificationRulesIDLabels(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s)}postNotificationRuleIDLabels(e,s){return this.base.request("POST",`/api/v2/notificationRules/${e.ruleID}/labels`,e,s,"application/json")}deleteNotificationRulesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/notificationRules/${e.ruleID}/labels/${e.labelID}`,e,s)}getNotificationRulesIDQuery(e,s){return this.base.request("GET",`/api/v2/notificationRules/${e.ruleID}/query`,e,s)}},exports.OrgsAPI=class{constructor(s){this.base=new e(s)}getOrgs(e,s){return this.base.request("GET","/api/v2/orgs"+this.base.queryString(e,["org","orgID","userID"]),e,s)}postOrgs(e,s){return this.base.request("POST","/api/v2/orgs",e,s,"application/json")}getOrgsID(e,s){return this.base.request("GET","/api/v2/orgs/"+e.orgID,e,s)}patchOrgsID(e,s){return this.base.request("PATCH","/api/v2/orgs/"+e.orgID,e,s,"application/json")}deleteOrgsID(e,s){return this.base.request("DELETE","/api/v2/orgs/"+e.orgID,e,s)}getOrgsIDSecrets(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/secrets`,e,s)}patchOrgsIDSecrets(e,s){return this.base.request("PATCH",`/api/v2/orgs/${e.orgID}/secrets`,e,s,"application/json")}postOrgsIDSecrets(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/secrets/delete`,e,s,"application/json")}getOrgsIDMembers(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/members`,e,s)}postOrgsIDMembers(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/members`,e,s,"application/json")}deleteOrgsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/orgs/${e.orgID}/members/${e.userID}`,e,s)}getOrgsIDOwners(e,s){return this.base.request("GET",`/api/v2/orgs/${e.orgID}/owners`,e,s)}postOrgsIDOwners(e,s){return this.base.request("POST",`/api/v2/orgs/${e.orgID}/owners`,e,s,"application/json")}},exports.QueryAPI=class{constructor(s){this.base=new e(s)}postQueryAst(e,s){return this.base.request("POST","/api/v2/query/ast",e,s,"application/json")}getQuerySuggestions(e,s){return this.base.request("GET","/api/v2/query/suggestions",e,s)}getQuerySuggestionsName(e,s){return this.base.request("GET","/api/v2/query/suggestions/"+e.name,e,s)}postQueryAnalyze(e,s){return this.base.request("POST","/api/v2/query/analyze",e,s,"application/json")}postQuery(e,s){return this.base.request("POST","/api/v2/query"+this.base.queryString(e,["org","orgID"]),e,s,"application/json")}},exports.ReadyAPI=class{constructor(s){this.base=new e(s)}getReady(e,s){return this.base.request("GET","/ready",e,s)}},exports.RootAPI=class{constructor(s){this.base=new e(s)}getRoutes(e,s){return this.base.request("GET","/api/v2/",e,s)}},exports.ScrapersAPI=class{constructor(s){this.base=new e(s)}getScrapers(e,s){return this.base.request("GET","/api/v2/scrapers"+this.base.queryString(e,["name","id","orgID","org"]),e,s)}postScrapers(e,s){return this.base.request("POST","/api/v2/scrapers",e,s,"application/json")}getScrapersID(e,s){return this.base.request("GET","/api/v2/scrapers/"+e.scraperTargetID,e,s)}patchScrapersID(e,s){return this.base.request("PATCH","/api/v2/scrapers/"+e.scraperTargetID,e,s,"application/json")}deleteScrapersID(e,s){return this.base.request("DELETE","/api/v2/scrapers/"+e.scraperTargetID,e,s)}getScrapersIDLabels(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s)}postScrapersIDLabels(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/labels`,e,s,"application/json")}patchScrapersIDLabelsID(e,s){return this.base.request("PATCH",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s,"application/json")}deleteScrapersIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/labels/${e.labelID}`,e,s)}getScrapersIDMembers(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s)}postScrapersIDMembers(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/members`,e,s,"application/json")}deleteScrapersIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/members/${e.userID}`,e,s)}getScrapersIDOwners(e,s){return this.base.request("GET",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s)}postScrapersIDOwners(e,s){return this.base.request("POST",`/api/v2/scrapers/${e.scraperTargetID}/owners`,e,s,"application/json")}deleteScrapersIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/scrapers/${e.scraperTargetID}/owners/${e.userID}`,e,s)}},exports.SetupAPI=class{constructor(s){this.base=new e(s)}getSetup(e,s){return this.base.request("GET","/api/v2/setup",e,s)}postSetup(e,s){return this.base.request("POST","/api/v2/setup",e,s,"application/json")}postSetupUser(e,s){return this.base.request("POST","/api/v2/setup/user",e,s,"application/json")}},exports.SigninAPI=class{constructor(s){this.base=new e(s)}postSignin(e,s){return this.base.request("POST","/api/v2/signin",e,s)}},exports.SignoutAPI=class{constructor(s){this.base=new e(s)}postSignout(e,s){return this.base.request("POST","/api/v2/signout",e,s)}},exports.SourcesAPI=class{constructor(s){this.base=new e(s)}getSources(e,s){return this.base.request("GET","/api/v2/sources"+this.base.queryString(e,["org"]),e,s)}postSources(e,s){return this.base.request("POST","/api/v2/sources",e,s,"application/json")}getSourcesID(e,s){return this.base.request("GET","/api/v2/sources/"+e.sourceID,e,s)}patchSourcesID(e,s){return this.base.request("PATCH","/api/v2/sources/"+e.sourceID,e,s,"application/json")}deleteSourcesID(e,s){return this.base.request("DELETE","/api/v2/sources/"+e.sourceID,e,s)}getSourcesIDHealth(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/health`,e,s)}getSourcesIDBuckets(e,s){return this.base.request("GET",`/api/v2/sources/${e.sourceID}/buckets${this.base.queryString(e,["org"])}`,e,s)}},exports.StacksAPI=class{constructor(s){this.base=new e(s)}listStacks(e,s){return this.base.request("GET","/api/v2/stacks"+this.base.queryString(e,["orgID","name","stackID"]),e,s)}createStack(e,s){return this.base.request("POST","/api/v2/stacks",e,s,"application/json")}readStack(e,s){return this.base.request("GET","/api/v2/stacks/"+e.stack_id,e,s)}updateStack(e,s){return this.base.request("PATCH","/api/v2/stacks/"+e.stack_id,e,s,"application/json")}deleteStack(e,s){return this.base.request("DELETE",`/api/v2/stacks/${e.stack_id}${this.base.queryString(e,["orgID"])}`,e,s)}uninstallStack(e,s){return this.base.request("POST",`/api/v2/stacks/${e.stack_id}/uninstall`,e,s)}},exports.TasksAPI=class{constructor(s){this.base=new e(s)}getTasks(e,s){return this.base.request("GET","/api/v2/tasks"+this.base.queryString(e,["name","after","user","org","orgID","status","limit"]),e,s)}postTasks(e,s){return this.base.request("POST","/api/v2/tasks",e,s,"application/json")}getTasksID(e,s){return this.base.request("GET","/api/v2/tasks/"+e.taskID,e,s)}patchTasksID(e,s){return this.base.request("PATCH","/api/v2/tasks/"+e.taskID,e,s,"application/json")}deleteTasksID(e,s){return this.base.request("DELETE","/api/v2/tasks/"+e.taskID,e,s)}getTasksIDRuns(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs${this.base.queryString(e,["after","limit","afterTime","beforeTime"])}`,e,s)}postTasksIDRuns(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs`,e,s,"application/json")}getTasksIDRunsID(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}deleteTasksIDRunsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/runs/${e.runID}`,e,s)}postTasksIDRunsIDRetry(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/retry`,e,s)}getTasksIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/logs`,e,s)}getTasksIDRunsIDLogs(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/runs/${e.runID}/logs`,e,s)}getTasksIDLabels(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/labels`,e,s)}postTasksIDLabels(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/labels`,e,s,"application/json")}deleteTasksIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/labels/${e.labelID}`,e,s)}getTasksIDMembers(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/members`,e,s)}postTasksIDMembers(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/members`,e,s,"application/json")}deleteTasksIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/members/${e.userID}`,e,s)}getTasksIDOwners(e,s){return this.base.request("GET",`/api/v2/tasks/${e.taskID}/owners`,e,s)}postTasksIDOwners(e,s){return this.base.request("POST",`/api/v2/tasks/${e.taskID}/owners`,e,s,"application/json")}deleteTasksIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/tasks/${e.taskID}/owners/${e.userID}`,e,s)}},exports.TelegrafAPI=class{constructor(s){this.base=new e(s)}getTelegrafPlugins(e,s){return this.base.request("GET","/api/v2/telegraf/plugins"+this.base.queryString(e,["type"]),e,s)}},exports.TelegrafsAPI=class{constructor(s){this.base=new e(s)}getTelegrafs(e,s){return this.base.request("GET","/api/v2/telegrafs"+this.base.queryString(e,["orgID"]),e,s)}postTelegrafs(e,s){return this.base.request("POST","/api/v2/telegrafs",e,s,"application/json")}getTelegrafsID(e,s){return this.base.request("GET","/api/v2/telegrafs/"+e.telegrafID,e,s)}putTelegrafsID(e,s){return this.base.request("PUT","/api/v2/telegrafs/"+e.telegrafID,e,s,"application/json")}deleteTelegrafsID(e,s){return this.base.request("DELETE","/api/v2/telegrafs/"+e.telegrafID,e,s)}getTelegrafsIDLabels(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s)}postTelegrafsIDLabels(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/labels`,e,s,"application/json")}deleteTelegrafsIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/labels/${e.labelID}`,e,s)}getTelegrafsIDMembers(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s)}postTelegrafsIDMembers(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/members`,e,s,"application/json")}deleteTelegrafsIDMembersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/members/${e.userID}`,e,s)}getTelegrafsIDOwners(e,s){return this.base.request("GET",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s)}postTelegrafsIDOwners(e,s){return this.base.request("POST",`/api/v2/telegrafs/${e.telegrafID}/owners`,e,s,"application/json")}deleteTelegrafsIDOwnersID(e,s){return this.base.request("DELETE",`/api/v2/telegrafs/${e.telegrafID}/owners/${e.userID}`,e,s)}},exports.TemplatesAPI=class{constructor(s){this.base=new e(s)}applyTemplate(e,s){return this.base.request("POST","/api/v2/templates/apply",e,s,"application/json")}exportTemplate(e,s){return this.base.request("POST","/api/v2/templates/export",e,s,"application/json")}},exports.UsersAPI=class{constructor(s){this.base=new e(s)}getUsers(e,s){return this.base.request("GET","/api/v2/users",e,s)}postUsers(e,s){return this.base.request("POST","/api/v2/users",e,s,"application/json")}getUsersID(e,s){return this.base.request("GET","/api/v2/users/"+e.userID,e,s)}patchUsersID(e,s){return this.base.request("PATCH","/api/v2/users/"+e.userID,e,s,"application/json")}deleteUsersID(e,s){return this.base.request("DELETE","/api/v2/users/"+e.userID,e,s)}postUsersIDPassword(e,s){return this.base.request("POST",`/api/v2/users/${e.userID}/password`,e,s,"application/json")}},exports.VariablesAPI=class{constructor(s){this.base=new e(s)}getVariables(e,s){return this.base.request("GET","/api/v2/variables"+this.base.queryString(e,["org","orgID"]),e,s)}postVariables(e,s){return this.base.request("POST","/api/v2/variables",e,s,"application/json")}getVariablesID(e,s){return this.base.request("GET","/api/v2/variables/"+e.variableID,e,s)}putVariablesID(e,s){return this.base.request("PUT","/api/v2/variables/"+e.variableID,e,s,"application/json")}patchVariablesID(e,s){return this.base.request("PATCH","/api/v2/variables/"+e.variableID,e,s,"application/json")}deleteVariablesID(e,s){return this.base.request("DELETE","/api/v2/variables/"+e.variableID,e,s)}getVariablesIDLabels(e,s){return this.base.request("GET",`/api/v2/variables/${e.variableID}/labels`,e,s)}postVariablesIDLabels(e,s){return this.base.request("POST",`/api/v2/variables/${e.variableID}/labels`,e,s,"application/json")}deleteVariablesIDLabelsID(e,s){return this.base.request("DELETE",`/api/v2/variables/${e.variableID}/labels/${e.labelID}`,e,s)}},exports.WriteAPI=class{constructor(s){this.base=new e(s)}postWrite(e,s){return this.base.request("POST","/api/v2/write"+this.base.queryString(e,["org","orgID","bucket","precision"]),e,s,"text/plain")}};
//# sourceMappingURL=index.js.map

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

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

@@ -38,3 +38,3 @@ "scripts": {

"devDependencies": {
"@influxdata/influxdb-client": "^1.6.0-nightly.23+5c76d17",
"@influxdata/influxdb-client": "^1.6.0-nightly.24+53148c0",
"@microsoft/api-extractor": "^7.9.2",

@@ -59,3 +59,3 @@ "@typescript-eslint/eslint-plugin": "^2.9.0",

},
"gitHead": "5c76d17140a48cecf50025ce4f630bf940905edf"
"gitHead": "53148c030038c8b05d2ccd967be2bb5883c342fd"
}

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