-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into versioned-http-browser-client
- Loading branch information
Showing
122 changed files
with
2,296 additions
and
1,059 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export * from './v2'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export interface Telemetry { | ||
/** Whether telemetry is enabled */ | ||
enabled?: boolean | null; | ||
lastVersionChecked?: string; | ||
/** Whether to send usage from the server or browser. */ | ||
sendUsageFrom?: 'browser' | 'server'; | ||
lastReported?: number; | ||
allowChangingOptInStatus?: boolean; | ||
userHasSeenNotice?: boolean; | ||
reportFailureCount?: number; | ||
reportFailureVersion?: string; | ||
} | ||
|
||
export interface FetchTelemetryConfigResponse { | ||
allowChangingOptInStatus: boolean; | ||
optIn: boolean | null; | ||
sendUsageFrom: 'server' | 'browser'; | ||
telemetryNotifyUserAboutOptInDefault: boolean; | ||
} | ||
|
||
export interface FetchLastReportedResponse { | ||
lastReported: undefined | number; | ||
} | ||
|
||
export type UpdateLastReportedResponse = undefined; | ||
|
||
export interface OptInStatsBody { | ||
enabled: boolean; | ||
/** @default true */ | ||
unencrypted?: boolean; | ||
} | ||
|
||
export interface StatsPayload { | ||
cluster_uuid: string; | ||
opt_in_status: boolean; | ||
} | ||
|
||
export type OptInStatsResponse = Array<{ | ||
clusterUuid: string; | ||
stats: StatsPayload; | ||
}>; | ||
|
||
export interface OptInBody { | ||
enabled: boolean; | ||
} | ||
|
||
export type OptInResponse = Array<{ | ||
clusterUuid: string; | ||
stats: string; | ||
}>; | ||
|
||
export interface UsageStatsBody { | ||
/** @default false */ | ||
unencrypted: boolean; | ||
/** @default false */ | ||
refreshCache: boolean; | ||
} | ||
|
||
export type UseHasSeenNoticeResponse = Telemetry; | ||
|
||
export type EncryptedTelemetryPayload = Array<{ clusterUuid: string; stats: string }>; | ||
|
||
export type UnencryptedTelemetryPayload = Array<{ clusterUuid: string; stats: object }>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.