2021-05-06 19:09:09 +02:00
|
|
|
{
|
|
|
|
"id": "licenseApiGuard",
|
|
|
|
"client": {
|
|
|
|
"classes": [],
|
|
|
|
"functions": [],
|
|
|
|
"interfaces": [],
|
|
|
|
"enums": [],
|
|
|
|
"misc": [],
|
|
|
|
"objects": []
|
|
|
|
},
|
|
|
|
"server": {
|
|
|
|
"classes": [
|
|
|
|
{
|
2021-05-06 21:29:47 +02:00
|
|
|
"parentPluginId": "licenseApiGuard",
|
2021-05-06 19:09:09 +02:00
|
|
|
"id": "def-server.License",
|
|
|
|
"type": "Class",
|
|
|
|
"tags": [],
|
|
|
|
"label": "License",
|
|
|
|
"description": [],
|
2021-05-06 21:29:47 +02:00
|
|
|
"source": {
|
|
|
|
"path": "x-pack/plugins/license_api_guard/server/license.ts",
|
|
|
|
"lineNumber": 33
|
|
|
|
},
|
|
|
|
"deprecated": false,
|
2021-05-06 19:09:09 +02:00
|
|
|
"children": [
|
|
|
|
{
|
2021-05-06 21:29:47 +02:00
|
|
|
"parentPluginId": "licenseApiGuard",
|
2021-05-06 19:09:09 +02:00
|
|
|
"id": "def-server.License.setup",
|
|
|
|
"type": "Function",
|
2021-05-06 21:29:47 +02:00
|
|
|
"tags": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"label": "setup",
|
2021-05-06 21:29:47 +02:00
|
|
|
"description": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"signature": [
|
|
|
|
"({ pluginName, logger }: SetupSettings) => void"
|
|
|
|
],
|
2021-05-06 21:29:47 +02:00
|
|
|
"source": {
|
|
|
|
"path": "x-pack/plugins/license_api_guard/server/license.ts",
|
|
|
|
"lineNumber": 41
|
|
|
|
},
|
|
|
|
"deprecated": false,
|
2021-05-06 19:09:09 +02:00
|
|
|
"children": [
|
|
|
|
{
|
2021-05-06 21:29:47 +02:00
|
|
|
"parentPluginId": "licenseApiGuard",
|
2021-05-06 19:09:09 +02:00
|
|
|
"id": "def-server.License.setup.$1",
|
|
|
|
"type": "Object",
|
2021-05-06 21:29:47 +02:00
|
|
|
"tags": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"label": "{ pluginName, logger }",
|
2021-05-06 21:29:47 +02:00
|
|
|
"description": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"signature": [
|
|
|
|
"SetupSettings"
|
|
|
|
],
|
|
|
|
"source": {
|
|
|
|
"path": "x-pack/plugins/license_api_guard/server/license.ts",
|
|
|
|
"lineNumber": 41
|
2021-05-06 21:29:47 +02:00
|
|
|
},
|
|
|
|
"deprecated": false,
|
|
|
|
"isRequired": true
|
2021-05-06 19:09:09 +02:00
|
|
|
}
|
|
|
|
],
|
2021-05-06 21:29:47 +02:00
|
|
|
"returnComment": []
|
2021-05-06 19:09:09 +02:00
|
|
|
},
|
|
|
|
{
|
2021-05-06 21:29:47 +02:00
|
|
|
"parentPluginId": "licenseApiGuard",
|
2021-05-06 19:09:09 +02:00
|
|
|
"id": "def-server.License.start",
|
|
|
|
"type": "Function",
|
2021-05-06 21:29:47 +02:00
|
|
|
"tags": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"label": "start",
|
2021-05-06 21:29:47 +02:00
|
|
|
"description": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"signature": [
|
|
|
|
"({ pluginId, minimumLicenseType, licensing }: StartSettings) => void"
|
|
|
|
],
|
2021-05-06 21:29:47 +02:00
|
|
|
"source": {
|
|
|
|
"path": "x-pack/plugins/license_api_guard/server/license.ts",
|
|
|
|
"lineNumber": 46
|
|
|
|
},
|
|
|
|
"deprecated": false,
|
2021-05-06 19:09:09 +02:00
|
|
|
"children": [
|
|
|
|
{
|
2021-05-06 21:29:47 +02:00
|
|
|
"parentPluginId": "licenseApiGuard",
|
2021-05-06 19:09:09 +02:00
|
|
|
"id": "def-server.License.start.$1",
|
|
|
|
"type": "Object",
|
2021-05-06 21:29:47 +02:00
|
|
|
"tags": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"label": "{ pluginId, minimumLicenseType, licensing }",
|
2021-05-06 21:29:47 +02:00
|
|
|
"description": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"signature": [
|
|
|
|
"StartSettings"
|
|
|
|
],
|
|
|
|
"source": {
|
|
|
|
"path": "x-pack/plugins/license_api_guard/server/license.ts",
|
|
|
|
"lineNumber": 46
|
2021-05-06 21:29:47 +02:00
|
|
|
},
|
|
|
|
"deprecated": false,
|
|
|
|
"isRequired": true
|
2021-05-06 19:09:09 +02:00
|
|
|
}
|
|
|
|
],
|
2021-05-06 21:29:47 +02:00
|
|
|
"returnComment": []
|
2021-05-06 19:09:09 +02:00
|
|
|
},
|
|
|
|
{
|
2021-05-06 21:29:47 +02:00
|
|
|
"parentPluginId": "licenseApiGuard",
|
2021-05-06 19:09:09 +02:00
|
|
|
"id": "def-server.License.guardApiRoute",
|
|
|
|
"type": "Function",
|
2021-05-06 21:29:47 +02:00
|
|
|
"tags": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"label": "guardApiRoute",
|
2021-05-06 21:29:47 +02:00
|
|
|
"description": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"signature": [
|
|
|
|
"<Context extends ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCorePluginApi",
|
|
|
|
"section": "def-server.RequestHandlerContext",
|
|
|
|
"text": "RequestHandlerContext"
|
|
|
|
},
|
|
|
|
", Params, Query, Body>(handler: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.RequestHandler",
|
|
|
|
"text": "RequestHandler"
|
|
|
|
},
|
2021-06-07 23:55:35 +02:00
|
|
|
"<Params, Query, Body, Context, any, { custom: <T extends string | Record<string, any> | Error | { message: string | Error; attributes?: Record<string, any> | undefined; } | Buffer | ",
|
2021-05-06 19:09:09 +02:00
|
|
|
"Stream",
|
|
|
|
" | undefined>(options: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.CustomHttpResponseOptions",
|
|
|
|
"text": "CustomHttpResponseOptions"
|
|
|
|
},
|
|
|
|
"<T>) => ",
|
2021-06-07 23:55:35 +02:00
|
|
|
"KibanaResponse",
|
|
|
|
"<T>; badRequest: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; unauthorized: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; forbidden: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; notFound: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; conflict: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; customError: (options: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.CustomHttpResponseOptions",
|
|
|
|
"text": "CustomHttpResponseOptions"
|
|
|
|
},
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">) => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; redirected: (options: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.RedirectResponseOptions",
|
|
|
|
"text": "RedirectResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<string | Record<string, any> | Buffer | ",
|
|
|
|
"Stream",
|
|
|
|
">; ok: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.HttpResponseOptions",
|
|
|
|
"text": "HttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<string | Record<string, any> | Buffer | ",
|
|
|
|
"Stream",
|
|
|
|
">; accepted: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.HttpResponseOptions",
|
|
|
|
"text": "HttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<string | Record<string, any> | Buffer | ",
|
|
|
|
"Stream",
|
|
|
|
">; noContent: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.HttpResponseOptions",
|
|
|
|
"text": "HttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<undefined>; }>) => (ctx: Context, request: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.KibanaRequest",
|
|
|
|
"text": "KibanaRequest"
|
|
|
|
},
|
|
|
|
"<Params, Query, Body, any>, response: { custom: <T extends string | Record<string, any> | Error | { message: string | Error; attributes?: Record<string, any> | undefined; } | Buffer | ",
|
|
|
|
"Stream",
|
|
|
|
" | undefined>(options: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.CustomHttpResponseOptions",
|
|
|
|
"text": "CustomHttpResponseOptions"
|
|
|
|
},
|
|
|
|
"<T>) => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<T>; badRequest: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; unauthorized: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; forbidden: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; notFound: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; conflict: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; customError: (options: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.CustomHttpResponseOptions",
|
|
|
|
"text": "CustomHttpResponseOptions"
|
|
|
|
},
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">) => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; redirected: (options: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.RedirectResponseOptions",
|
|
|
|
"text": "RedirectResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<string | Record<string, any> | Buffer | ",
|
|
|
|
"Stream",
|
|
|
|
">; ok: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.HttpResponseOptions",
|
|
|
|
"text": "HttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<string | Record<string, any> | Buffer | ",
|
|
|
|
"Stream",
|
|
|
|
">; accepted: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.HttpResponseOptions",
|
|
|
|
"text": "HttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<string | Record<string, any> | Buffer | ",
|
|
|
|
"Stream",
|
|
|
|
">; noContent: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.HttpResponseOptions",
|
|
|
|
"text": "HttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<undefined>; }) => ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.IKibanaResponse",
|
|
|
|
"text": "IKibanaResponse"
|
|
|
|
},
|
|
|
|
"<any> | Promise<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.IKibanaResponse",
|
|
|
|
"text": "IKibanaResponse"
|
|
|
|
},
|
|
|
|
"<any>>"
|
2021-05-06 19:09:09 +02:00
|
|
|
],
|
2021-05-06 21:29:47 +02:00
|
|
|
"source": {
|
|
|
|
"path": "x-pack/plugins/license_api_guard/server/license.ts",
|
|
|
|
"lineNumber": 92
|
|
|
|
},
|
|
|
|
"deprecated": false,
|
2021-05-06 19:09:09 +02:00
|
|
|
"children": [
|
|
|
|
{
|
2021-05-06 21:29:47 +02:00
|
|
|
"parentPluginId": "licenseApiGuard",
|
2021-05-06 19:09:09 +02:00
|
|
|
"id": "def-server.License.guardApiRoute.$1",
|
|
|
|
"type": "Function",
|
2021-05-06 21:29:47 +02:00
|
|
|
"tags": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"label": "handler",
|
2021-05-06 21:29:47 +02:00
|
|
|
"description": [],
|
2021-05-06 19:09:09 +02:00
|
|
|
"signature": [
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.RequestHandler",
|
|
|
|
"text": "RequestHandler"
|
|
|
|
},
|
2021-06-07 23:55:35 +02:00
|
|
|
"<Params, Query, Body, Context, any, { custom: <T extends string | Record<string, any> | Error | { message: string | Error; attributes?: Record<string, any> | undefined; } | Buffer | ",
|
2021-05-06 19:09:09 +02:00
|
|
|
"Stream",
|
|
|
|
" | undefined>(options: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.CustomHttpResponseOptions",
|
|
|
|
"text": "CustomHttpResponseOptions"
|
|
|
|
},
|
|
|
|
"<T>) => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<T>; badRequest: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
2021-06-07 23:55:35 +02:00
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; unauthorized: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; forbidden: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; notFound: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; conflict: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ErrorHttpResponseOptions",
|
|
|
|
"text": "ErrorHttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; customError: (options: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.CustomHttpResponseOptions",
|
|
|
|
"text": "CustomHttpResponseOptions"
|
|
|
|
},
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">) => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.ResponseError",
|
|
|
|
"text": "ResponseError"
|
|
|
|
},
|
|
|
|
">; redirected: (options: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.RedirectResponseOptions",
|
|
|
|
"text": "RedirectResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<string | Record<string, any> | Buffer | ",
|
|
|
|
"Stream",
|
|
|
|
">; ok: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.HttpResponseOptions",
|
|
|
|
"text": "HttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<string | Record<string, any> | Buffer | ",
|
|
|
|
"Stream",
|
|
|
|
">; accepted: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.HttpResponseOptions",
|
|
|
|
"text": "HttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<string | Record<string, any> | Buffer | ",
|
|
|
|
"Stream",
|
|
|
|
">; noContent: (options?: ",
|
|
|
|
{
|
|
|
|
"pluginId": "core",
|
|
|
|
"scope": "server",
|
|
|
|
"docId": "kibCoreHttpPluginApi",
|
|
|
|
"section": "def-server.HttpResponseOptions",
|
|
|
|
"text": "HttpResponseOptions"
|
|
|
|
},
|
|
|
|
") => ",
|
|
|
|
"KibanaResponse",
|
|
|
|
"<undefined>; }>"
|
2021-05-06 19:09:09 +02:00
|
|
|
],
|
|
|
|
"source": {
|
|
|
|
"path": "x-pack/plugins/license_api_guard/server/license.ts",
|
|
|
|
"lineNumber": 93
|
2021-05-06 21:29:47 +02:00
|
|
|
},
|
|
|
|
"deprecated": false,
|
|
|
|
"isRequired": true
|
2021-05-06 19:09:09 +02:00
|
|
|
}
|
|
|
|
],
|
2021-05-06 21:29:47 +02:00
|
|
|
"returnComment": []
|
2021-05-06 19:09:09 +02:00
|
|
|
},
|
|
|
|
{
|
2021-05-06 21:29:47 +02:00
|
|
|
"parentPluginId": "licenseApiGuard",
|
2021-05-06 19:09:09 +02:00
|
|
|
"id": "def-server.License.isEsSecurityEnabled",
|
|
|
|
"type": "boolean",
|
|
|
|
"tags": [],
|
2021-05-06 21:29:47 +02:00
|
|
|
"label": "isEsSecurityEnabled",
|
2021-05-06 19:09:09 +02:00
|
|
|
"description": [],
|
|
|
|
"source": {
|
|
|
|
"path": "x-pack/plugins/license_api_guard/server/license.ts",
|
|
|
|
"lineNumber": 116
|
2021-05-06 21:29:47 +02:00
|
|
|
},
|
|
|
|
"deprecated": false
|
2021-05-06 19:09:09 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"initialIsOpen": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"functions": [],
|
|
|
|
"interfaces": [],
|
|
|
|
"enums": [],
|
|
|
|
"misc": [],
|
|
|
|
"objects": []
|
|
|
|
},
|
|
|
|
"common": {
|
|
|
|
"classes": [],
|
|
|
|
"functions": [],
|
|
|
|
"interfaces": [],
|
|
|
|
"enums": [],
|
|
|
|
"misc": [],
|
|
|
|
"objects": []
|
|
|
|
}
|
|
|
|
}
|