1## API Report File for "opensearch-dashboards" 2 3> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). 4 5```ts 6 7import { Action } from 'history'; 8import { ApiResponse } from '@elastic/elasticsearch/lib/Transport'; 9import Boom from 'boom'; 10import { ConfigPath } from '@osd/config'; 11import { EnvironmentMode } from '@osd/config'; 12import { EuiBreadcrumb } from '@elastic/eui'; 13import { EuiButtonEmptyProps } from '@elastic/eui'; 14import { EuiConfirmModalProps } from '@elastic/eui'; 15import { EuiGlobalToastListToast } from '@elastic/eui'; 16import { ExclusiveUnion } from '@elastic/eui'; 17import { History } from 'history'; 18import { Href } from 'history'; 19import { IconType } from '@elastic/eui'; 20import { KibanaClient } from '@elastic/elasticsearch/api/kibana'; 21import { Location } from 'history'; 22import { LocationDescriptorObject } from 'history'; 23import { Logger } from '@osd/logging'; 24import { LogMeta } from '@osd/logging'; 25import { MaybePromise } from '@osd/utility-types'; 26import { Observable } from 'rxjs'; 27import { OpenSearchDashboardsConfigType } from 'src/core/server/opensearch_dashboards_config'; 28import { PackageInfo } from '@osd/config'; 29import { Path } from 'history'; 30import { PublicMethodsOf } from '@osd/utility-types'; 31import { PublicUiSettingsParams as PublicUiSettingsParams_2 } from 'src/core/server/types'; 32import React from 'react'; 33import { RecursiveReadonly } from '@osd/utility-types'; 34import * as Rx from 'rxjs'; 35import { ShallowPromise } from '@osd/utility-types'; 36import { TransportRequestOptions } from '@elastic/elasticsearch/lib/Transport'; 37import { TransportRequestParams } from '@elastic/elasticsearch/lib/Transport'; 38import { TransportRequestPromise } from '@elastic/elasticsearch/lib/Transport'; 39import { Type } from '@osd/config-schema'; 40import { TypeOf } from '@osd/config-schema'; 41import { UnregisterCallback } from 'history'; 42import { UserProvidedValues as UserProvidedValues_2 } from 'src/core/server/types'; 43 44// @internal (undocumented) 45export function __osdBootstrap__(): Promise<void>; 46 47// @public (undocumented) 48export interface App<HistoryLocationState = unknown> { 49 appRoute?: string; 50 capabilities?: Partial<Capabilities>; 51 category?: AppCategory; 52 chromeless?: boolean; 53 defaultPath?: string; 54 euiIconType?: string; 55 exactRoute?: boolean; 56 icon?: string; 57 id: string; 58 mount: AppMount<HistoryLocationState> | AppMountDeprecated<HistoryLocationState>; 59 navLinkStatus?: AppNavLinkStatus; 60 order?: number; 61 status?: AppStatus; 62 title: string; 63 tooltip?: string; 64 updater$?: Observable<AppUpdater>; 65} 66 67// @public 68export interface AppCategory { 69 ariaLabel?: string; 70 euiIconType?: string; 71 id: string; 72 label: string; 73 order?: number; 74} 75 76// @public 77export type AppLeaveAction = AppLeaveDefaultAction | AppLeaveConfirmAction; 78 79// @public 80export enum AppLeaveActionType { 81 // (undocumented) 82 confirm = "confirm", 83 // (undocumented) 84 default = "default" 85} 86 87// Warning: (ae-unresolved-link) The @link reference could not be resolved: The package "opensearch-dashboards" does not have an export "AppLeaveActionFactory" 88// 89// @public 90export interface AppLeaveConfirmAction { 91 // (undocumented) 92 text: string; 93 // (undocumented) 94 title?: string; 95 // (undocumented) 96 type: AppLeaveActionType.confirm; 97} 98 99// Warning: (ae-unresolved-link) The @link reference could not be resolved: The package "opensearch-dashboards" does not have an export "AppLeaveActionFactory" 100// 101// @public 102export interface AppLeaveDefaultAction { 103 // (undocumented) 104 type: AppLeaveActionType.default; 105} 106 107// Warning: (ae-forgotten-export) The symbol "AppLeaveActionFactory" needs to be exported by the entry point index.d.ts 108// 109// @public 110export type AppLeaveHandler = (factory: AppLeaveActionFactory) => AppLeaveAction; 111 112// @public (undocumented) 113export interface ApplicationSetup { 114 register<HistoryLocationState = unknown>(app: App<HistoryLocationState>): void; 115 registerAppUpdater(appUpdater$: Observable<AppUpdater>): void; 116 // @deprecated 117 registerMountContext<T extends keyof AppMountContext>(contextName: T, provider: IContextProvider<AppMountDeprecated, T>): void; 118} 119 120// @public (undocumented) 121export interface ApplicationStart { 122 applications$: Observable<ReadonlyMap<string, PublicAppInfo>>; 123 capabilities: RecursiveReadonly<Capabilities>; 124 currentAppId$: Observable<string | undefined>; 125 getUrlForApp(appId: string, options?: { 126 path?: string; 127 absolute?: boolean; 128 }): string; 129 navigateToApp(appId: string, options?: NavigateToAppOptions): Promise<void>; 130 navigateToUrl(url: string): Promise<void>; 131 // @deprecated 132 registerMountContext<T extends keyof AppMountContext>(contextName: T, provider: IContextProvider<AppMountDeprecated, T>): void; 133} 134 135// @public 136export type AppMount<HistoryLocationState = unknown> = (params: AppMountParameters<HistoryLocationState>) => AppUnmount | Promise<AppUnmount>; 137 138// @public @deprecated 139export interface AppMountContext { 140 core: { 141 application: Pick<ApplicationStart, 'capabilities' | 'navigateToApp'>; 142 chrome: ChromeStart; 143 docLinks: DocLinksStart; 144 http: HttpStart; 145 i18n: I18nStart; 146 notifications: NotificationsStart; 147 overlays: OverlayStart; 148 savedObjects: SavedObjectsStart; 149 uiSettings: IUiSettingsClient; 150 injectedMetadata: { 151 getInjectedVar: (name: string, defaultValue?: any) => unknown; 152 }; 153 }; 154} 155 156// @public @deprecated 157export type AppMountDeprecated<HistoryLocationState = unknown> = (context: AppMountContext, params: AppMountParameters<HistoryLocationState>) => AppUnmount | Promise<AppUnmount>; 158 159// @public (undocumented) 160export interface AppMountParameters<HistoryLocationState = unknown> { 161 // @deprecated 162 appBasePath: string; 163 element: HTMLElement; 164 history: ScopedHistory<HistoryLocationState>; 165 onAppLeave: (handler: AppLeaveHandler) => void; 166 setHeaderActionMenu: (menuMount: MountPoint | undefined) => void; 167} 168 169// @public 170export enum AppNavLinkStatus { 171 default = 0, 172 disabled = 2, 173 hidden = 3, 174 visible = 1 175} 176 177// @public 178export enum AppStatus { 179 accessible = 0, 180 inaccessible = 1 181} 182 183// @public 184export type AppUnmount = () => void; 185 186// @public 187export type AppUpdatableFields = Pick<App, 'status' | 'navLinkStatus' | 'tooltip' | 'defaultPath'>; 188 189// @public 190export type AppUpdater = (app: App) => Partial<AppUpdatableFields> | undefined; 191 192// @public 193export interface Capabilities { 194 [key: string]: Record<string, boolean | Record<string, boolean>>; 195 catalogue: Record<string, boolean>; 196 management: { 197 [sectionId: string]: Record<string, boolean>; 198 }; 199 navLinks: Record<string, boolean>; 200} 201 202// @public (undocumented) 203export interface ChromeBadge { 204 // (undocumented) 205 iconType?: IconType; 206 // (undocumented) 207 text: string; 208 // (undocumented) 209 tooltip: string; 210} 211 212// @public (undocumented) 213export interface ChromeBrand { 214 // (undocumented) 215 logo?: string; 216 // (undocumented) 217 smallLogo?: string; 218} 219 220// @public (undocumented) 221export type ChromeBreadcrumb = EuiBreadcrumb; 222 223// @public 224export interface ChromeDocTitle { 225 change(newTitle: string | string[]): void; 226 reset(): void; 227} 228 229// @public (undocumented) 230export interface ChromeHelpExtension { 231 appName: string; 232 content?: (element: HTMLDivElement) => () => void; 233 links?: ChromeHelpExtensionMenuLink[]; 234} 235 236// @public (undocumented) 237export type ChromeHelpExtensionMenuCustomLink = EuiButtonEmptyProps & { 238 linkType: 'custom'; 239 content: React.ReactNode; 240}; 241 242// @public (undocumented) 243export type ChromeHelpExtensionMenuDiscussLink = EuiButtonEmptyProps & { 244 linkType: 'discuss'; 245 href: string; 246}; 247 248// @public (undocumented) 249export type ChromeHelpExtensionMenuDocumentationLink = EuiButtonEmptyProps & { 250 linkType: 'documentation'; 251 href: string; 252}; 253 254// @public (undocumented) 255export type ChromeHelpExtensionMenuGitHubLink = EuiButtonEmptyProps & { 256 linkType: 'github'; 257 labels: string[]; 258 title?: string; 259}; 260 261// @public (undocumented) 262export type ChromeHelpExtensionMenuLink = ExclusiveUnion<ChromeHelpExtensionMenuGitHubLink, ExclusiveUnion<ChromeHelpExtensionMenuDiscussLink, ExclusiveUnion<ChromeHelpExtensionMenuDocumentationLink, ChromeHelpExtensionMenuCustomLink>>>; 263 264// @public (undocumented) 265export interface ChromeNavControl { 266 // (undocumented) 267 mount: MountPoint; 268 // (undocumented) 269 order?: number; 270} 271 272// @public 273export interface ChromeNavControls { 274 // @internal (undocumented) 275 getCenter$(): Observable<ChromeNavControl[]>; 276 // @internal (undocumented) 277 getLeft$(): Observable<ChromeNavControl[]>; 278 // @internal (undocumented) 279 getRight$(): Observable<ChromeNavControl[]>; 280 registerCenter(navControl: ChromeNavControl): void; 281 registerLeft(navControl: ChromeNavControl): void; 282 registerRight(navControl: ChromeNavControl): void; 283} 284 285// @public (undocumented) 286export interface ChromeNavLink { 287 readonly baseUrl: string; 288 readonly category?: AppCategory; 289 readonly disabled?: boolean; 290 readonly euiIconType?: string; 291 readonly hidden?: boolean; 292 readonly href: string; 293 readonly icon?: string; 294 readonly id: string; 295 readonly order?: number; 296 readonly title: string; 297 readonly tooltip?: string; 298 // Warning: (ae-unresolved-link) The @link reference could not be resolved: The package "opensearch-dashboards" does not have an export "AppBase" 299 readonly url?: string; 300} 301 302// @public 303export interface ChromeNavLinks { 304 enableForcedAppSwitcherNavigation(): void; 305 get(id: string): ChromeNavLink | undefined; 306 getAll(): Array<Readonly<ChromeNavLink>>; 307 getForceAppSwitcherNavigation$(): Observable<boolean>; 308 getNavLinks$(): Observable<Array<Readonly<ChromeNavLink>>>; 309 has(id: string): boolean; 310 showOnly(id: string): void; 311 // Warning: (ae-unresolved-link) The @link reference could not be resolved: The package "opensearch-dashboards" does not have an export "AppBase" 312 // 313 // @deprecated 314 update(id: string, values: ChromeNavLinkUpdateableFields): ChromeNavLink | undefined; 315} 316 317// @public (undocumented) 318export type ChromeNavLinkUpdateableFields = Partial<Pick<ChromeNavLink, 'disabled' | 'hidden' | 'url' | 'href'>>; 319 320// @public 321export interface ChromeRecentlyAccessed { 322 // Warning: (ae-unresolved-link) The @link reference could not be resolved: No member was found with name "basePath" 323 add(link: string, label: string, id: string): void; 324 get$(): Observable<ChromeRecentlyAccessedHistoryItem[]>; 325 get(): ChromeRecentlyAccessedHistoryItem[]; 326} 327 328// @public (undocumented) 329export interface ChromeRecentlyAccessedHistoryItem { 330 // (undocumented) 331 id: string; 332 // (undocumented) 333 label: string; 334 // (undocumented) 335 link: string; 336} 337 338// @public 339export interface ChromeStart { 340 addApplicationClass(className: string): void; 341 docTitle: ChromeDocTitle; 342 getApplicationClasses$(): Observable<string[]>; 343 getBadge$(): Observable<ChromeBadge | undefined>; 344 getBrand$(): Observable<ChromeBrand>; 345 getBreadcrumbs$(): Observable<ChromeBreadcrumb[]>; 346 getCustomNavLink$(): Observable<Partial<ChromeNavLink> | undefined>; 347 getHelpExtension$(): Observable<ChromeHelpExtension | undefined>; 348 getIsNavDrawerLocked$(): Observable<boolean>; 349 getIsVisible$(): Observable<boolean>; 350 navControls: ChromeNavControls; 351 navLinks: ChromeNavLinks; 352 recentlyAccessed: ChromeRecentlyAccessed; 353 removeApplicationClass(className: string): void; 354 setAppTitle(appTitle: string): void; 355 setBadge(badge?: ChromeBadge): void; 356 setBrand(brand: ChromeBrand): void; 357 setBreadcrumbs(newBreadcrumbs: ChromeBreadcrumb[]): void; 358 setCustomNavLink(newCustomNavLink?: Partial<ChromeNavLink>): void; 359 setHelpExtension(helpExtension?: ChromeHelpExtension): void; 360 setHelpSupportUrl(url: string): void; 361 setIsVisible(isVisible: boolean): void; 362} 363 364// @public 365export interface ContextSetup { 366 createContextContainer<THandler extends HandlerFunction<any>>(): IContextContainer<THandler>; 367} 368 369// @internal (undocumented) 370export interface CoreContext { 371 // Warning: (ae-forgotten-export) The symbol "CoreId" needs to be exported by the entry point index.d.ts 372 // 373 // (undocumented) 374 coreId: CoreId; 375 // (undocumented) 376 env: { 377 mode: Readonly<EnvironmentMode>; 378 packageInfo: Readonly<PackageInfo>; 379 }; 380} 381 382// @public 383export interface CoreSetup<TPluginsStart extends object = object, TStart = unknown> { 384 // (undocumented) 385 application: ApplicationSetup; 386 // @deprecated (undocumented) 387 context: ContextSetup; 388 // (undocumented) 389 fatalErrors: FatalErrorsSetup; 390 // (undocumented) 391 getStartServices: StartServicesAccessor<TPluginsStart, TStart>; 392 // (undocumented) 393 http: HttpSetup; 394 // @deprecated 395 injectedMetadata: { 396 getInjectedVar: (name: string, defaultValue?: any) => unknown; 397 }; 398 // (undocumented) 399 notifications: NotificationsSetup; 400 // (undocumented) 401 uiSettings: IUiSettingsClient; 402} 403 404// @public 405export interface CoreStart { 406 // (undocumented) 407 application: ApplicationStart; 408 // (undocumented) 409 chrome: ChromeStart; 410 // (undocumented) 411 docLinks: DocLinksStart; 412 // (undocumented) 413 fatalErrors: FatalErrorsStart; 414 // (undocumented) 415 http: HttpStart; 416 // (undocumented) 417 i18n: I18nStart; 418 // @deprecated 419 injectedMetadata: { 420 getInjectedVar: (name: string, defaultValue?: any) => unknown; 421 }; 422 // (undocumented) 423 notifications: NotificationsStart; 424 // (undocumented) 425 overlays: OverlayStart; 426 // (undocumented) 427 savedObjects: SavedObjectsStart; 428 // (undocumented) 429 uiSettings: IUiSettingsClient; 430} 431 432// @internal 433export class CoreSystem { 434 // Warning: (ae-forgotten-export) The symbol "Params" needs to be exported by the entry point index.d.ts 435 constructor(params: Params); 436 // (undocumented) 437 setup(): Promise<{ 438 fatalErrors: FatalErrorsSetup; 439 } | undefined>; 440 // (undocumented) 441 start(): Promise<{ 442 application: InternalApplicationStart; 443 } | undefined>; 444 // (undocumented) 445 stop(): void; 446 } 447 448// @internal (undocumented) 449export const DEFAULT_APP_CATEGORIES: Record<string, AppCategory>; 450 451// @public (undocumented) 452export interface DocLinksStart { 453 // (undocumented) 454 readonly DOC_LINK_VERSION: string; 455 // (undocumented) 456 readonly links: { 457 readonly dashboard: { 458 readonly drilldowns: string; 459 readonly drilldownsTriggerPicker: string; 460 readonly urlDrilldownTemplateSyntax: string; 461 readonly urlDrilldownVariables: string; 462 }; 463 readonly filebeat: { 464 readonly base: string; 465 readonly installation: string; 466 readonly configuration: string; 467 readonly elasticsearchOutput: string; 468 readonly startup: string; 469 readonly exportedFields: string; 470 }; 471 readonly auditbeat: { 472 readonly base: string; 473 }; 474 readonly metricbeat: { 475 readonly base: string; 476 }; 477 readonly heartbeat: { 478 readonly base: string; 479 }; 480 readonly logstash: { 481 readonly base: string; 482 }; 483 readonly functionbeat: { 484 readonly base: string; 485 }; 486 readonly winlogbeat: { 487 readonly base: string; 488 }; 489 readonly aggs: { 490 readonly date_histogram: string; 491 readonly date_range: string; 492 readonly filter: string; 493 readonly filters: string; 494 readonly geohash_grid: string; 495 readonly histogram: string; 496 readonly ip_range: string; 497 readonly range: string; 498 readonly significant_terms: string; 499 readonly terms: string; 500 readonly avg: string; 501 readonly avg_bucket: string; 502 readonly max_bucket: string; 503 readonly min_bucket: string; 504 readonly sum_bucket: string; 505 readonly cardinality: string; 506 readonly count: string; 507 readonly cumulative_sum: string; 508 readonly derivative: string; 509 readonly geo_bounds: string; 510 readonly geo_centroid: string; 511 readonly max: string; 512 readonly median: string; 513 readonly min: string; 514 readonly moving_avg: string; 515 readonly percentile_ranks: string; 516 readonly serial_diff: string; 517 readonly std_dev: string; 518 readonly sum: string; 519 readonly top_hits: string; 520 }; 521 readonly scriptedFields: { 522 readonly scriptFields: string; 523 readonly scriptAggs: string; 524 readonly painless: string; 525 readonly painlessApi: string; 526 readonly painlessSyntax: string; 527 readonly luceneExpressions: string; 528 }; 529 readonly indexPatterns: { 530 readonly loadingData: string; 531 readonly introduction: string; 532 }; 533 readonly addData: string; 534 readonly opensearchDashboards: string; 535 readonly siem: { 536 readonly guide: string; 537 readonly gettingStarted: string; 538 }; 539 readonly query: { 540 readonly eql: string; 541 readonly luceneQuerySyntax: string; 542 readonly queryDsl: string; 543 readonly kueryQuerySyntax: string; 544 }; 545 readonly date: { 546 readonly dateMath: string; 547 }; 548 readonly management: Record<string, string>; 549 readonly visualize: Record<string, string>; 550 }; 551 // (undocumented) 552 readonly OPENSEARCH_WEBSITE_URL: string; 553} 554 555export { EnvironmentMode } 556 557// @public 558export interface ErrorToastOptions extends ToastOptions { 559 title: string; 560 toastMessage?: string; 561} 562 563// @public 564export interface FatalErrorInfo { 565 // (undocumented) 566 message: string; 567 // (undocumented) 568 stack: string | undefined; 569} 570 571// @public 572export interface FatalErrorsSetup { 573 add: (error: string | Error, source?: string) => never; 574 get$: () => Rx.Observable<FatalErrorInfo>; 575} 576 577// @public 578export type FatalErrorsStart = FatalErrorsSetup; 579 580// @public 581export type HandlerContextType<T extends HandlerFunction<any>> = T extends HandlerFunction<infer U> ? U : never; 582 583// @public 584export type HandlerFunction<T extends object> = (context: T, ...args: any[]) => any; 585 586// @public 587export type HandlerParameters<T extends HandlerFunction<any>> = T extends (context: any, ...args: infer U) => any ? U : never; 588 589// @internal (undocumented) 590export class HttpFetchError extends Error implements IHttpFetchError { 591 constructor(message: string, name: string, request: Request, response?: Response | undefined, body?: any); 592 // (undocumented) 593 readonly body?: any; 594 // (undocumented) 595 readonly name: string; 596 // (undocumented) 597 readonly req: Request; 598 // (undocumented) 599 readonly request: Request; 600 // (undocumented) 601 readonly res?: Response; 602 // (undocumented) 603 readonly response?: Response | undefined; 604} 605 606// @public 607export interface HttpFetchOptions extends HttpRequestInit { 608 asResponse?: boolean; 609 asSystemRequest?: boolean; 610 headers?: HttpHeadersInit; 611 prependBasePath?: boolean; 612 query?: HttpFetchQuery; 613} 614 615// @public 616export interface HttpFetchOptionsWithPath extends HttpFetchOptions { 617 // (undocumented) 618 path: string; 619} 620 621// @public (undocumented) 622export interface HttpFetchQuery { 623 // (undocumented) 624 [key: string]: string | number | boolean | undefined | Array<string | number | boolean | undefined>; 625} 626 627// @public 628export interface HttpHandler { 629 // (undocumented) 630 <TResponseBody = any>(path: string, options: HttpFetchOptions & { 631 asResponse: true; 632 }): Promise<HttpResponse<TResponseBody>>; 633 // (undocumented) 634 <TResponseBody = any>(options: HttpFetchOptionsWithPath & { 635 asResponse: true; 636 }): Promise<HttpResponse<TResponseBody>>; 637 // (undocumented) 638 <TResponseBody = any>(path: string, options?: HttpFetchOptions): Promise<TResponseBody>; 639 // (undocumented) 640 <TResponseBody = any>(options: HttpFetchOptionsWithPath): Promise<TResponseBody>; 641} 642 643// @public 644export interface HttpHeadersInit { 645 // (undocumented) 646 [name: string]: any; 647} 648 649// @public 650export interface HttpInterceptor { 651 request?(fetchOptions: Readonly<HttpFetchOptionsWithPath>, controller: IHttpInterceptController): MaybePromise<Partial<HttpFetchOptionsWithPath>> | void; 652 requestError?(httpErrorRequest: HttpInterceptorRequestError, controller: IHttpInterceptController): MaybePromise<Partial<HttpFetchOptionsWithPath>> | void; 653 response?(httpResponse: HttpResponse, controller: IHttpInterceptController): MaybePromise<IHttpResponseInterceptorOverrides> | void; 654 responseError?(httpErrorResponse: HttpInterceptorResponseError, controller: IHttpInterceptController): MaybePromise<IHttpResponseInterceptorOverrides> | void; 655} 656 657// @public (undocumented) 658export interface HttpInterceptorRequestError { 659 // (undocumented) 660 error: Error; 661 // (undocumented) 662 fetchOptions: Readonly<HttpFetchOptionsWithPath>; 663} 664 665// @public (undocumented) 666export interface HttpInterceptorResponseError extends HttpResponse { 667 // (undocumented) 668 error: Error | IHttpFetchError; 669 // (undocumented) 670 request: Readonly<Request>; 671} 672 673// @public 674export interface HttpRequestInit { 675 body?: BodyInit | null; 676 cache?: RequestCache; 677 credentials?: RequestCredentials; 678 // (undocumented) 679 headers?: HttpHeadersInit; 680 integrity?: string; 681 keepalive?: boolean; 682 method?: string; 683 mode?: RequestMode; 684 redirect?: RequestRedirect; 685 referrer?: string; 686 referrerPolicy?: ReferrerPolicy; 687 signal?: AbortSignal | null; 688 window?: null; 689} 690 691// @public (undocumented) 692export interface HttpResponse<TResponseBody = any> { 693 readonly body?: TResponseBody; 694 readonly fetchOptions: Readonly<HttpFetchOptionsWithPath>; 695 readonly request: Readonly<Request>; 696 readonly response?: Readonly<Response>; 697} 698 699// @public (undocumented) 700export interface HttpSetup { 701 addLoadingCountSource(countSource$: Observable<number>): void; 702 anonymousPaths: IAnonymousPaths; 703 basePath: IBasePath; 704 delete: HttpHandler; 705 fetch: HttpHandler; 706 get: HttpHandler; 707 getLoadingCount$(): Observable<number>; 708 head: HttpHandler; 709 intercept(interceptor: HttpInterceptor): () => void; 710 options: HttpHandler; 711 patch: HttpHandler; 712 post: HttpHandler; 713 put: HttpHandler; 714} 715 716// @public 717export type HttpStart = HttpSetup; 718 719// @public 720export interface I18nStart { 721 Context: ({ children }: { 722 children: React.ReactNode; 723 }) => JSX.Element; 724} 725 726// Warning: (ae-missing-release-tag) "IAnonymousPaths" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) 727// 728// @public 729export interface IAnonymousPaths { 730 isAnonymous(path: string): boolean; 731 register(path: string): void; 732} 733 734// @public 735export interface IBasePath { 736 get: () => string; 737 prepend: (url: string) => string; 738 remove: (url: string) => string; 739 // Warning: (ae-unresolved-link) The @link reference could not be resolved: The package "opensearch-dashboards" does not have an export "BasePath" 740 readonly serverBasePath: string; 741} 742 743// @public 744export interface IContextContainer<THandler extends HandlerFunction<any>> { 745 createHandler(pluginOpaqueId: PluginOpaqueId, handler: THandler): (...rest: HandlerParameters<THandler>) => ShallowPromise<ReturnType<THandler>>; 746 registerContext<TContextName extends keyof HandlerContextType<THandler>>(pluginOpaqueId: PluginOpaqueId, contextName: TContextName, provider: IContextProvider<THandler, TContextName>): this; 747} 748 749// Warning: (ae-forgotten-export) The symbol "PartialExceptFor" needs to be exported by the entry point index.d.ts 750// 751// @public 752export type IContextProvider<THandler extends HandlerFunction<any>, TContextName extends keyof HandlerContextType<THandler>> = (context: PartialExceptFor<HandlerContextType<THandler>, 'core'>, ...rest: HandlerParameters<THandler>) => Promise<HandlerContextType<THandler>[TContextName]> | HandlerContextType<THandler>[TContextName]; 753 754// @public (undocumented) 755export interface IHttpFetchError extends Error { 756 // (undocumented) 757 readonly body?: any; 758 // (undocumented) 759 readonly name: string; 760 // @deprecated (undocumented) 761 readonly req: Request; 762 // (undocumented) 763 readonly request: Request; 764 // @deprecated (undocumented) 765 readonly res?: Response; 766 // (undocumented) 767 readonly response?: Response; 768} 769 770// @public 771export interface IHttpInterceptController { 772 halt(): void; 773 halted: boolean; 774} 775 776// @public 777export interface IHttpResponseInterceptorOverrides<TResponseBody = any> { 778 readonly body?: TResponseBody; 779 readonly response?: Readonly<Response>; 780} 781 782// @public (undocumented) 783export interface ImageValidation { 784 // (undocumented) 785 maxSize: { 786 length: number; 787 description: string; 788 }; 789} 790 791// @public 792export type IToasts = Pick<ToastsApi, 'get$' | 'add' | 'remove' | 'addSuccess' | 'addWarning' | 'addDanger' | 'addError' | 'addInfo'>; 793 794// @public 795export interface IUiSettingsClient { 796 get$: <T = any>(key: string, defaultOverride?: T) => Observable<T>; 797 get: <T = any>(key: string, defaultOverride?: T) => T; 798 getAll: () => Readonly<Record<string, PublicUiSettingsParams_2 & UserProvidedValues_2>>; 799 getSaved$: <T = any>() => Observable<{ 800 key: string; 801 newValue: T; 802 oldValue: T; 803 }>; 804 getUpdate$: <T = any>() => Observable<{ 805 key: string; 806 newValue: T; 807 oldValue: T; 808 }>; 809 getUpdateErrors$: () => Observable<Error>; 810 isCustom: (key: string) => boolean; 811 isDeclared: (key: string) => boolean; 812 isDefault: (key: string) => boolean; 813 isOverridden: (key: string) => boolean; 814 overrideLocalDefault: (key: string, newDefault: any) => void; 815 remove: (key: string) => Promise<boolean>; 816 set: (key: string, value: any) => Promise<boolean>; 817} 818 819// @public 820export type MountPoint<T extends HTMLElement = HTMLElement> = (element: T) => UnmountCallback; 821 822// Warning: (ae-missing-release-tag) "NavigateToAppOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) 823// 824// @public 825export interface NavigateToAppOptions { 826 path?: string; 827 replace?: boolean; 828 state?: unknown; 829} 830 831// Warning: (ae-missing-release-tag) "NavType" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) 832// 833// @public (undocumented) 834export type NavType = 'modern' | 'legacy'; 835 836// @public (undocumented) 837export interface NotificationsSetup { 838 // (undocumented) 839 toasts: ToastsSetup; 840} 841 842// @public (undocumented) 843export interface NotificationsStart { 844 // (undocumented) 845 toasts: ToastsStart; 846} 847 848// @public (undocumented) 849export interface OverlayBannersStart { 850 add(mount: MountPoint, priority?: number): string; 851 // Warning: (ae-forgotten-export) The symbol "OverlayBanner" needs to be exported by the entry point index.d.ts 852 // 853 // @internal (undocumented) 854 get$(): Observable<OverlayBanner[]>; 855 // (undocumented) 856 getComponent(): JSX.Element; 857 remove(id: string): boolean; 858 replace(id: string | undefined, mount: MountPoint, priority?: number): string; 859} 860 861// @public 862export interface OverlayRef { 863 close(): Promise<void>; 864 onClose: Promise<void>; 865} 866 867// @public (undocumented) 868export interface OverlayStart { 869 // (undocumented) 870 banners: OverlayBannersStart; 871 // (undocumented) 872 openConfirm: OverlayModalStart['openConfirm']; 873 // Warning: (ae-forgotten-export) The symbol "OverlayFlyoutStart" needs to be exported by the entry point index.d.ts 874 // 875 // (undocumented) 876 openFlyout: OverlayFlyoutStart['open']; 877 // Warning: (ae-forgotten-export) The symbol "OverlayModalStart" needs to be exported by the entry point index.d.ts 878 // 879 // (undocumented) 880 openModal: OverlayModalStart['open']; 881} 882 883export { PackageInfo } 884 885// @public 886export interface Plugin<TSetup = void, TStart = void, TPluginsSetup extends object = object, TPluginsStart extends object = object> { 887 // (undocumented) 888 setup(core: CoreSetup<TPluginsStart, TStart>, plugins: TPluginsSetup): TSetup | Promise<TSetup>; 889 // (undocumented) 890 start(core: CoreStart, plugins: TPluginsStart): TStart | Promise<TStart>; 891 // (undocumented) 892 stop?(): void; 893} 894 895// @public 896export type PluginInitializer<TSetup, TStart, TPluginsSetup extends object = object, TPluginsStart extends object = object> = (core: PluginInitializerContext) => Plugin<TSetup, TStart, TPluginsSetup, TPluginsStart>; 897 898// @public 899export interface PluginInitializerContext<ConfigSchema extends object = object> { 900 // (undocumented) 901 readonly config: { 902 get: <T extends object = ConfigSchema>() => T; 903 }; 904 // (undocumented) 905 readonly env: { 906 mode: Readonly<EnvironmentMode>; 907 packageInfo: Readonly<PackageInfo>; 908 }; 909 readonly opaqueId: PluginOpaqueId; 910} 911 912// @public (undocumented) 913export type PluginOpaqueId = symbol; 914 915// @public 916export type PublicAppInfo = Omit<App, 'mount' | 'updater$'> & { 917 status: AppStatus; 918 navLinkStatus: AppNavLinkStatus; 919 appRoute: string; 920}; 921 922// @public 923export type PublicUiSettingsParams = Omit<UiSettingsParams, 'schema'>; 924 925// Warning: (ae-missing-release-tag) "SavedObject" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) 926// 927// @public (undocumented) 928export interface SavedObject<T = unknown> { 929 attributes: T; 930 // (undocumented) 931 error?: SavedObjectError; 932 id: string; 933 migrationVersion?: SavedObjectsMigrationVersion; 934 namespaces?: string[]; 935 originId?: string; 936 references: SavedObjectReference[]; 937 type: string; 938 updated_at?: string; 939 version?: string; 940} 941 942// @public 943export type SavedObjectAttribute = SavedObjectAttributeSingle | SavedObjectAttributeSingle[]; 944 945// @public 946export interface SavedObjectAttributes { 947 // (undocumented) 948 [key: string]: SavedObjectAttribute; 949} 950 951// @public 952export type SavedObjectAttributeSingle = string | number | boolean | null | undefined | SavedObjectAttributes; 953 954// Warning: (ae-missing-release-tag) "SavedObjectError" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) 955// 956// @public (undocumented) 957export interface SavedObjectError { 958 // (undocumented) 959 error: string; 960 // (undocumented) 961 message: string; 962 // (undocumented) 963 metadata?: Record<string, unknown>; 964 // (undocumented) 965 statusCode: number; 966} 967 968// @public 969export interface SavedObjectReference { 970 // (undocumented) 971 id: string; 972 // (undocumented) 973 name: string; 974 // (undocumented) 975 type: string; 976} 977 978// @public (undocumented) 979export interface SavedObjectsBaseOptions { 980 namespace?: string; 981} 982 983// @public (undocumented) 984export interface SavedObjectsBatchResponse<T = unknown> { 985 // (undocumented) 986 savedObjects: Array<SimpleSavedObject<T>>; 987} 988 989// @public (undocumented) 990export interface SavedObjectsBulkCreateObject<T = unknown> extends SavedObjectsCreateOptions { 991 // (undocumented) 992 attributes: T; 993 // (undocumented) 994 type: string; 995} 996 997// @public (undocumented) 998export interface SavedObjectsBulkCreateOptions { 999 overwrite?: boolean; 1000} 1001 1002// @public (undocumented) 1003export interface SavedObjectsBulkUpdateObject<T = unknown> { 1004 // (undocumented) 1005 attributes: T; 1006 // (undocumented) 1007 id: string; 1008 // (undocumented) 1009 references?: SavedObjectReference[]; 1010 // (undocumented) 1011 type: string; 1012 // (undocumented) 1013 version?: string; 1014} 1015 1016// @public (undocumented) 1017export interface SavedObjectsBulkUpdateOptions { 1018 // (undocumented) 1019 namespace?: string; 1020} 1021 1022// @public 1023export class SavedObjectsClient { 1024 // @internal 1025 constructor(http: HttpSetup); 1026 bulkCreate: (objects?: SavedObjectsBulkCreateObject[], options?: SavedObjectsBulkCreateOptions) => Promise<SavedObjectsBatchResponse<unknown>>; 1027 bulkGet: (objects?: Array<{ 1028 id: string; 1029 type: string; 1030 }>) => Promise<SavedObjectsBatchResponse<unknown>>; 1031 bulkUpdate<T = unknown>(objects?: SavedObjectsBulkUpdateObject[]): Promise<SavedObjectsBatchResponse<unknown>>; 1032 create: <T = unknown>(type: string, attributes: T, options?: SavedObjectsCreateOptions) => Promise<SimpleSavedObject<T>>; 1033 // Warning: (ae-forgotten-export) The symbol "SavedObjectsDeleteOptions" needs to be exported by the entry point index.d.ts 1034 // Warning: (ae-forgotten-export) The symbol "SavedObjectsClientContract" needs to be exported by the entry point index.d.ts 1035 delete: (type: string, id: string, options?: SavedObjectsDeleteOptions | undefined) => ReturnType<SavedObjectsClientContract_2['delete']>; 1036 // Warning: (ae-forgotten-export) The symbol "SavedObjectsFindOptions" needs to be exported by the entry point index.d.ts 1037 find: <T = unknown>(options: SavedObjectsFindOptions_2) => Promise<SavedObjectsFindResponsePublic<T>>; 1038 get: <T = unknown>(type: string, id: string) => Promise<SimpleSavedObject<T>>; 1039 update<T = unknown>(type: string, id: string, attributes: T, { version, migrationVersion, references }?: SavedObjectsUpdateOptions): Promise<SimpleSavedObject<T>>; 1040} 1041 1042// @public 1043export type SavedObjectsClientContract = PublicMethodsOf<SavedObjectsClient>; 1044 1045// @public (undocumented) 1046export interface SavedObjectsCreateOptions { 1047 id?: string; 1048 migrationVersion?: SavedObjectsMigrationVersion; 1049 overwrite?: boolean; 1050 // (undocumented) 1051 references?: SavedObjectReference[]; 1052} 1053 1054// @public (undocumented) 1055export interface SavedObjectsFindOptions { 1056 // (undocumented) 1057 defaultSearchOperator?: 'AND' | 'OR'; 1058 fields?: string[]; 1059 // Warning: (ae-forgotten-export) The symbol "KueryNode" needs to be exported by the entry point index.d.ts 1060 // 1061 // (undocumented) 1062 filter?: string | KueryNode; 1063 // (undocumented) 1064 hasReference?: { 1065 type: string; 1066 id: string; 1067 }; 1068 // (undocumented) 1069 namespaces?: string[]; 1070 // (undocumented) 1071 page?: number; 1072 // (undocumented) 1073 perPage?: number; 1074 preference?: string; 1075 rootSearchFields?: string[]; 1076 search?: string; 1077 searchFields?: string[]; 1078 // (undocumented) 1079 sortField?: string; 1080 // (undocumented) 1081 sortOrder?: string; 1082 // (undocumented) 1083 type: string | string[]; 1084 typeToNamespacesMap?: Map<string, string[] | undefined>; 1085} 1086 1087// @public 1088export interface SavedObjectsFindResponsePublic<T = unknown> extends SavedObjectsBatchResponse<T> { 1089 // (undocumented) 1090 page: number; 1091 // (undocumented) 1092 perPage: number; 1093 // (undocumented) 1094 total: number; 1095} 1096 1097// @public 1098export interface SavedObjectsImportAmbiguousConflictError { 1099 // (undocumented) 1100 destinations: Array<{ 1101 id: string; 1102 title?: string; 1103 updatedAt?: string; 1104 }>; 1105 // (undocumented) 1106 type: 'ambiguous_conflict'; 1107} 1108 1109// @public 1110export interface SavedObjectsImportConflictError { 1111 // (undocumented) 1112 destinationId?: string; 1113 // (undocumented) 1114 type: 'conflict'; 1115} 1116 1117// @public 1118export interface SavedObjectsImportError { 1119 // (undocumented) 1120 error: SavedObjectsImportConflictError | SavedObjectsImportAmbiguousConflictError | SavedObjectsImportUnsupportedTypeError | SavedObjectsImportMissingReferencesError | SavedObjectsImportUnknownError; 1121 // (undocumented) 1122 id: string; 1123 // (undocumented) 1124 meta: { 1125 title?: string; 1126 icon?: string; 1127 }; 1128 overwrite?: boolean; 1129 // @deprecated (undocumented) 1130 title?: string; 1131 // (undocumented) 1132 type: string; 1133} 1134 1135// @public 1136export interface SavedObjectsImportMissingReferencesError { 1137 // (undocumented) 1138 references: Array<{ 1139 type: string; 1140 id: string; 1141 }>; 1142 // (undocumented) 1143 type: 'missing_references'; 1144} 1145 1146// @public 1147export interface SavedObjectsImportResponse { 1148 // (undocumented) 1149 errors?: SavedObjectsImportError[]; 1150 // (undocumented) 1151 success: boolean; 1152 // (undocumented) 1153 successCount: number; 1154 // (undocumented) 1155 successResults?: SavedObjectsImportSuccess[]; 1156} 1157 1158// @public 1159export interface SavedObjectsImportRetry { 1160 createNewCopy?: boolean; 1161 destinationId?: string; 1162 // (undocumented) 1163 id: string; 1164 ignoreMissingReferences?: boolean; 1165 // (undocumented) 1166 overwrite: boolean; 1167 // (undocumented) 1168 replaceReferences: Array<{ 1169 type: string; 1170 from: string; 1171 to: string; 1172 }>; 1173 // (undocumented) 1174 type: string; 1175} 1176 1177// @public 1178export interface SavedObjectsImportSuccess { 1179 // @deprecated (undocumented) 1180 createNewCopy?: boolean; 1181 destinationId?: string; 1182 // (undocumented) 1183 id: string; 1184 // (undocumented) 1185 meta: { 1186 title?: string; 1187 icon?: string; 1188 }; 1189 overwrite?: boolean; 1190 // (undocumented) 1191 type: string; 1192} 1193 1194// @public 1195export interface SavedObjectsImportUnknownError { 1196 // (undocumented) 1197 message: string; 1198 // (undocumented) 1199 statusCode: number; 1200 // (undocumented) 1201 type: 'unknown'; 1202} 1203 1204// @public 1205export interface SavedObjectsImportUnsupportedTypeError { 1206 // (undocumented) 1207 type: 'unsupported_type'; 1208} 1209 1210// @public 1211export interface SavedObjectsMigrationVersion { 1212 // (undocumented) 1213 [pluginName: string]: string; 1214} 1215 1216// @public 1217export type SavedObjectsNamespaceType = 'single' | 'multiple' | 'agnostic'; 1218 1219// @public (undocumented) 1220export interface SavedObjectsStart { 1221 // (undocumented) 1222 client: SavedObjectsClientContract; 1223} 1224 1225// @public (undocumented) 1226export interface SavedObjectsUpdateOptions { 1227 migrationVersion?: SavedObjectsMigrationVersion; 1228 // (undocumented) 1229 references?: SavedObjectReference[]; 1230 // (undocumented) 1231 version?: string; 1232} 1233 1234// @public 1235export class ScopedHistory<HistoryLocationState = unknown> implements History<HistoryLocationState> { 1236 constructor(parentHistory: History, basePath: string); 1237 get action(): Action; 1238 block: (prompt?: string | boolean | History.TransitionPromptHook<HistoryLocationState> | undefined) => UnregisterCallback; 1239 createHref: (location: LocationDescriptorObject<HistoryLocationState>, { prependBasePath }?: { 1240 prependBasePath?: boolean | undefined; 1241 }) => Href; 1242 createSubHistory: <SubHistoryLocationState = unknown>(basePath: string) => ScopedHistory<SubHistoryLocationState>; 1243 go: (n: number) => void; 1244 goBack: () => void; 1245 goForward: () => void; 1246 get length(): number; 1247 listen: (listener: (location: Location<HistoryLocationState>, action: Action) => void) => UnregisterCallback; 1248 get location(): Location<HistoryLocationState>; 1249 push: (pathOrLocation: Path | LocationDescriptorObject<HistoryLocationState>, state?: HistoryLocationState | undefined) => void; 1250 replace: (pathOrLocation: Path | LocationDescriptorObject<HistoryLocationState>, state?: HistoryLocationState | undefined) => void; 1251 } 1252 1253// @public 1254export class SimpleSavedObject<T = unknown> { 1255 constructor(client: SavedObjectsClientContract, { id, type, version, attributes, error, references, migrationVersion }: SavedObject<T>); 1256 // (undocumented) 1257 attributes: T; 1258 // (undocumented) 1259 delete(): Promise<{}>; 1260 // (undocumented) 1261 error: SavedObject<T>['error']; 1262 // (undocumented) 1263 get(key: string): any; 1264 // (undocumented) 1265 has(key: string): boolean; 1266 // (undocumented) 1267 id: SavedObject<T>['id']; 1268 // (undocumented) 1269 migrationVersion: SavedObject<T>['migrationVersion']; 1270 // (undocumented) 1271 references: SavedObject<T>['references']; 1272 // (undocumented) 1273 save(): Promise<SimpleSavedObject<T>>; 1274 // (undocumented) 1275 set(key: string, value: any): T; 1276 // (undocumented) 1277 type: SavedObject<T>['type']; 1278 // (undocumented) 1279 _version?: SavedObject<T>['version']; 1280} 1281 1282// @public 1283export type StartServicesAccessor<TPluginsStart extends object = object, TStart = unknown> = () => Promise<[CoreStart, TPluginsStart, TStart]>; 1284 1285// @public 1286export type StringValidation = StringValidationRegex | StringValidationRegexString; 1287 1288// @public 1289export interface StringValidationRegex { 1290 // (undocumented) 1291 message: string; 1292 // (undocumented) 1293 regex: RegExp; 1294} 1295 1296// @public 1297export interface StringValidationRegexString { 1298 // (undocumented) 1299 message: string; 1300 // (undocumented) 1301 regexString: string; 1302} 1303 1304// Warning: (ae-missing-release-tag) "Toast" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) 1305// 1306// @public (undocumented) 1307export type Toast = ToastInputFields & { 1308 id: string; 1309}; 1310 1311// @public 1312export type ToastInput = string | ToastInputFields; 1313 1314// @public 1315export type ToastInputFields = Pick<EuiGlobalToastListToast, Exclude<keyof EuiGlobalToastListToast, 'id' | 'text' | 'title'>> & { 1316 title?: string | MountPoint; 1317 text?: string | MountPoint; 1318}; 1319 1320// @public 1321export interface ToastOptions { 1322 toastLifeTimeMs?: number; 1323} 1324 1325// @public 1326export class ToastsApi implements IToasts { 1327 constructor(deps: { 1328 uiSettings: IUiSettingsClient; 1329 }); 1330 add(toastOrTitle: ToastInput): Toast; 1331 addDanger(toastOrTitle: ToastInput, options?: ToastOptions): Toast; 1332 addError(error: Error, options: ErrorToastOptions): Toast; 1333 addInfo(toastOrTitle: ToastInput, options?: ToastOptions): Toast; 1334 addSuccess(toastOrTitle: ToastInput, options?: ToastOptions): Toast; 1335 addWarning(toastOrTitle: ToastInput, options?: ToastOptions): Toast; 1336 get$(): Rx.Observable<Toast[]>; 1337 remove(toastOrId: Toast | string): void; 1338 // @internal (undocumented) 1339 start({ overlays, i18n }: { 1340 overlays: OverlayStart; 1341 i18n: I18nStart; 1342 }): void; 1343 } 1344 1345// @public (undocumented) 1346export type ToastsSetup = IToasts; 1347 1348// @public (undocumented) 1349export type ToastsStart = IToasts; 1350 1351// @public 1352export interface UiSettingsParams<T = unknown> { 1353 category?: string[]; 1354 // Warning: (ae-forgotten-export) The symbol "DeprecationSettings" needs to be exported by the entry point index.d.ts 1355 deprecation?: DeprecationSettings; 1356 description?: string; 1357 name?: string; 1358 optionLabels?: Record<string, string>; 1359 options?: string[]; 1360 readonly?: boolean; 1361 requiresPageReload?: boolean; 1362 // (undocumented) 1363 schema: Type<T>; 1364 type?: UiSettingsType; 1365 // (undocumented) 1366 validation?: ImageValidation | StringValidation; 1367 value?: T; 1368} 1369 1370// @public (undocumented) 1371export interface UiSettingsState { 1372 // (undocumented) 1373 [key: string]: PublicUiSettingsParams_2 & UserProvidedValues_2; 1374} 1375 1376// @public 1377export type UiSettingsType = 'undefined' | 'json' | 'markdown' | 'number' | 'select' | 'boolean' | 'string' | 'array' | 'image'; 1378 1379// @public 1380export type UnmountCallback = () => void; 1381 1382// @public 1383export const URL_MAX_LENGTH: number; 1384 1385// @public 1386export interface UserProvidedValues<T = any> { 1387 // (undocumented) 1388 isOverridden?: boolean; 1389 // (undocumented) 1390 userValue?: T; 1391} 1392 1393 1394// Warnings were encountered during analysis: 1395// 1396// src/core/public/core_system.ts:185:21 - (ae-forgotten-export) The symbol "InternalApplicationStart" needs to be exported by the entry point index.d.ts 1397 1398``` 1399