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

@influxdata/influxdb-client-apis

Package Overview
Dependencies
Maintainers
21
Versions
738
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.4.0-nightly.9 to 1.4.0-nightly.10

dist/generated/DbrpsAPI.d.ts

2

dist/generated/index.d.ts

@@ -7,4 +7,6 @@ export * from './types';

export * from './DashboardsAPI';
export * from './DbrpsAPI';
export * from './DeleteAPI';
export * from './DocumentsAPI';
export * from './DprpsAPI';
export * from './FlagsAPI';

@@ -11,0 +13,0 @@ export * from './HealthAPI';

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

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

}
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 ResendOrgsIDInviteIDRequest {
/** 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 {

@@ -118,2 +146,7 @@ /** The ID of the owner to remove. */

* * https://v2.docs.influxdata.com/v2.0/api/#operation/PostOrgsIDOwners
* * https://v2.docs.influxdata.com/v2.0/api/#operation/PostOrgsIDInvites
* * https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteOrgsIDInviteID
* * https://v2.docs.influxdata.com/v2.0/api/#operation/ResendOrgsIDInviteID
* * https://v2.docs.influxdata.com/v2.0/api/#operation/GetCloudUsers
* * https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteOrgsIDCloudUserID
* * https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteOrgsIDOwnersID

@@ -240,2 +273,36 @@ * * https://v2.docs.influxdata.com/v2.0/api/#operation/GetOrgsIDLogs

/**
* Creates an invite to an organization.
* See https://v2.docs.influxdata.com/v2.0/api/#operation/PostOrgsIDInvites
* @param request
* @return promise of response
*/
postOrgsIDInvites(request: PostOrgsIDInvitesRequest, requestOptions?: RequestOptions): Promise<Invite>;
/**
* Remove an invite to an organization.
* See https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteOrgsIDInviteID
* @param request
* @return promise of response
*/
deleteOrgsIDInviteID(request: DeleteOrgsIDInviteIDRequest, requestOptions?: RequestOptions): Promise<void>;
/**
* Resends an invite.
* See https://v2.docs.influxdata.com/v2.0/api/#operation/ResendOrgsIDInviteID
* @param request
* @return promise of response
*/
resendOrgsIDInviteID(request: ResendOrgsIDInviteIDRequest, requestOptions?: RequestOptions): Promise<Invite>;
/**
* See https://v2.docs.influxdata.com/v2.0/api/#operation/GetCloudUsers
* @param request
* @return promise of response
*/
getCloudUsers(request: GetCloudUsersRequest, requestOptions?: RequestOptions): Promise<CloudUsers>;
/**
* Deletes a cloud user.
* See https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteOrgsIDCloudUserID
* @param request
* @return promise of response
*/
deleteOrgsIDCloudUserID(request: DeleteOrgsIDCloudUserIDRequest, requestOptions?: RequestOptions): Promise<void>;
/**
* Remove an owner from an organization.

@@ -242,0 +309,0 @@ * See https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteOrgsIDOwnersID

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

}
export interface ListStacksRequest {
/** The organization id of the stacks */
orgID: string;
/** A collection of names to filter the list by. */
name?: string;
/** A collection of stackIDs to filter the list by. */
stackID?: string;
}
export interface CreateStackRequest {

@@ -20,2 +28,8 @@ /** Influx package to create. */

}
export interface DeleteStackRequest {
/** The stack id to be removed */
stack_id: string;
/** The organization id of the user */
orgID: string;
}
/**

@@ -25,3 +39,5 @@ * See

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

@@ -48,2 +64,27 @@ export declare class PackagesAPI extends APIBase {

/**
* Grab a list of installed Influx packages.
* See https://v2.docs.influxdata.com/v2.0/api/#operation/ListStacks
* @param request
* @return promise of response
*/
listStacks(request: ListStacksRequest, requestOptions?: RequestOptions): Promise<Array<{
id?: string;
orgID?: string;
name?: string;
description?: string;
urls?: string[];
readonly createdAt?: string;
readonly updatedAt?: string;
resources?: {
apiVersion?: string;
resourceID?: string;
kind?: string;
pkgName?: string;
associations?: Array<{
kind?: string;
pkgName?: string;
}>;
};
}>>;
/**
* Create a new Influx package.

@@ -63,3 +104,10 @@ * See https://v2.docs.influxdata.com/v2.0/api/#operation/CreateStack

}>;
/**
* Delete a stack and remove all its associated resources.
* See https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteStack
* @param request
* @return promise of response
*/
deleteStack(request: DeleteStackRequest, requestOptions?: RequestOptions): Promise<void>;
}
//# sourceMappingURL=PackagesAPI.d.ts.map

@@ -9,2 +9,6 @@ import { APIBase, RequestOptions } from '../APIBase';

}
export interface PostSetupUserRequest {
/** Source to create */
body: OnboardingRequest;
}
/**

@@ -14,2 +18,3 @@ * See

* * https://v2.docs.influxdata.com/v2.0/api/#operation/PostSetup
* * https://v2.docs.influxdata.com/v2.0/api/#operation/PostSetupUser
*/

@@ -35,3 +40,10 @@ export declare class SetupAPI extends APIBase {

postSetup(request: PostSetupRequest, requestOptions?: RequestOptions): Promise<OnboardingResponse>;
/**
* Set up a new user, org and bucket.
* See https://v2.docs.influxdata.com/v2.0/api/#operation/PostSetupUser
* @param request
* @return promise of response
*/
postSetupUser(request: PostSetupUserRequest, requestOptions?: RequestOptions): Promise<OnboardingResponse>;
}
//# sourceMappingURL=SetupAPI.d.ts.map

@@ -164,14 +164,15 @@ export interface Error {

action: 'read' | 'write';
resource: {
type: 'authorizations' | 'buckets' | 'dashboards' | 'orgs' | 'sources' | 'tasks' | 'telegrafs' | 'users' | 'variables' | 'scrapers' | 'secrets' | 'labels' | 'views' | 'documents' | 'notificationRules' | 'notificationEndpoints' | 'checks';
/** If ID is set that is a permission for a specific resource. if it is not set it is a permission for all resources of that resource type. */
id?: string;
/** Optional name of the resource if the resource has a name field. */
name?: string;
/** If orgID is set that is a permission for all resources owned my that org. if it is not set it is a permission for all resources of that resource type. */
orgID?: string;
/** Optional name of the organization of the organization with orgID. */
org?: string;
};
resource: Resource;
}
export interface Resource {
type: 'authorizations' | 'buckets' | 'dashboards' | 'orgs' | 'sources' | 'tasks' | 'telegrafs' | 'users' | 'variables' | 'scrapers' | 'secrets' | 'labels' | 'views' | 'documents' | 'notificationRules' | 'notificationEndpoints' | 'checks' | 'dbrp';
/** If ID is set that is a permission for a specific resource. if it is not set it is a permission for all resources of that resource type. */
id?: string;
/** Optional name of the resource if the resource has a name field. */
name?: string;
/** If orgID is set that is a permission for all resources owned my that org. if it is not set it is a permission for all resources of that resource type. */
orgID?: string;
/** Optional name of the organization of the organization with orgID. */
org?: string;
}
export interface Documents {

@@ -238,2 +239,29 @@ documents?: DocumentListEntry[];

}
export interface DBRPs {
notificationEndpoints?: DBRP[];
links?: Links;
}
export interface DBRP {
/** the mapping identifier */
readonly id?: string;
/** the organization ID that owns this mapping. */
orgID: string;
/** the bucket ID used as target for the translation. */
bucketID: string;
/** InfluxDB v1 database */
database: string;
/** InfluxDB v1 retention policy */
retention_policy: string;
/** Specify if this mapping represents the default retention policy for the database specificed. */
default?: boolean;
links?: Links;
}
export interface DBRPUpdate {
/** InfluxDB v1 database */
database?: string;
/** InfluxDB v1 retention policy */
retention_policy?: string;
default?: boolean;
links?: Links;
}
export interface TelegrafPlugins {

@@ -399,2 +427,4 @@ version?: string;

status: 'pass' | 'fail';
version?: string;
commit?: string;
}

@@ -514,2 +544,3 @@ export interface Sources {

export interface LinePlusSingleStatProperties {
timeFormat?: string;
type: 'line-plus-single-stat';

@@ -1319,2 +1350,29 @@ queries: DashboardQuery[];

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 {

@@ -1356,2 +1414,3 @@ orgIDs?: Array<{

export interface PkgSummary {
stackID?: string;
summary?: {

@@ -1358,0 +1417,0 @@ buckets?: Array<{

8

dist/generated/UsersAPI.d.ts

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

}
export interface PutUsersIDPasswordRequest {
export interface PostUsersIDPasswordRequest {
/** The user ID. */

@@ -47,3 +47,3 @@ userID: string;

* * https://v2.docs.influxdata.com/v2.0/api/#operation/DeleteUsersID
* * https://v2.docs.influxdata.com/v2.0/api/#operation/PutUsersIDPassword
* * https://v2.docs.influxdata.com/v2.0/api/#operation/PostUsersIDPassword
* * https://v2.docs.influxdata.com/v2.0/api/#operation/GetUsersIDLogs

@@ -93,7 +93,7 @@ */

* Update a password.
* See https://v2.docs.influxdata.com/v2.0/api/#operation/PutUsersIDPassword
* See https://v2.docs.influxdata.com/v2.0/api/#operation/PostUsersIDPassword
* @param request
* @return promise of response
*/
putUsersIDPassword(request: PutUsersIDPasswordRequest, requestOptions?: RequestOptions): Promise<void>;
postUsersIDPassword(request: PostUsersIDPasswordRequest, requestOptions?: RequestOptions): Promise<void>;
/**

@@ -100,0 +100,0 @@ * Retrieve operation logs for a user.

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

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

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

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

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

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

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

"devDependencies": {
"@influxdata/influxdb-client": "^1.4.0-nightly.9+f6db2ab",
"@influxdata/influxdb-client": "^1.4.0-nightly.10+e5cbf2a",
"@typescript-eslint/eslint-plugin": "^2.9.0",

@@ -58,3 +58,3 @@ "@typescript-eslint/parser": "^2.9.0",

},
"gitHead": "f6db2abbd08b98ce8536558c4c0c9f59bbdb8448"
"gitHead": "e5cbf2a0661950c46771e5a5d7ae73ae4e3804f5"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is 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