kibana/x-pack/platform/plugins/shared/onechat/common/features.ts
Pierre Gayvallet 2c02bce5f4
[onechat] add chat agent & APIs (#222146)
## Summary

Fix https://github.com/elastic/search-team/issues/10018

- introduce the concept of onechat agents (add types and APIs)
- implement the default onechat agent (chat agent)
- add support for conversations (persistence / APIs)
- expose a "chat" API to start and resume conversations
- add browser-side services to utilize all those features and APIs
- add a new `onechat` Kibana feature (and secure our endpoints
accordingly)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-06-05 16:59:44 +02:00

20 lines
578 B
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.
*/
export const ONECHAT_FEATURE_ID = 'onechat';
export const ONECHAT_FEATURE_NAME = 'onechat';
export const ONECHAT_APP_ID = 'onechat_app';
export const uiPrivileges = {
show: 'show',
showManagement: 'showManagement',
};
export const apiPrivileges = {
readOnechat: 'read_onechat',
manageOnechat: 'manage_onechat',
};