kibana/x-pack/plugins/enterprise_search/common/types/index.ts
James Rucker b6fb390ea9
[Workplace Search] OAuth flows for Custom Search and Default Search (#101996)
* Add OAuth authorize endpoint support for custom search experiences

* Add support for default search experience authentication

Co-authored-by: scottybollinger <scotty.bollinger@elastic.co>
2021-06-28 18:27:49 -04:00

51 lines
1.2 KiB
TypeScript

/*
* 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; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import {
Account as AppSearchAccount,
ConfiguredLimits as AppSearchConfiguredLimits,
} from './app_search';
import {
WorkplaceSearchInitialData,
ConfiguredLimits as WorkplaceSearchConfiguredLimits,
} from './workplace_search';
export interface InitialAppData {
readOnlyMode?: boolean;
ilmEnabled?: boolean;
searchOAuth?: SearchOAuth;
configuredLimits?: ConfiguredLimits;
access?: ProductAccess;
appSearch?: AppSearchAccount;
workplaceSearch?: WorkplaceSearchInitialData;
}
export interface ConfiguredLimits {
appSearch: AppSearchConfiguredLimits;
workplaceSearch: WorkplaceSearchConfiguredLimits;
}
export interface ProductAccess {
hasAppSearchAccess: boolean;
hasWorkplaceSearchAccess: boolean;
}
export interface SearchOAuth {
clientId: string;
redirectUrl: string;
}
export interface MetaPage {
current: number;
size: number;
total_pages: number;
total_results: number;
}
export interface Meta {
page: MetaPage;
}