import * as Shared from "./shared.mjs"; import * as ChatbotsAPI from "./chatbots.mjs"; import * as V2API from "./auth/whatsapp/v2.mjs"; import * as FilesAPI from "./library/files/files.mjs"; /** * Admin Chatbot model. * * Attributes: id (str): Chatbot ID. chatbot_id (str): Chatbot ID. chatbot_name * (str | None, optional): Chatbot name. Defaults to None. description (str | None, * optional): Chatbot description. Defaults to None. preset_id (str | None, * optional): Preset ID. Defaults to None. pipeline_id (str | None, optional): * Pipeline ID. Defaults to None. knowledge_base_ids (list[str], optional): List of * knowledge base IDs. Defaults to []. prompt_builder_catalog_id (str | None, * optional): Prompt builder catalog ID. Defaults to None. lmrp_catalog_id (str | * None, optional): LMRP catalog ID. Defaults to None. organization_id (str): * Organization ID. recommended_questions (list[RecommendedQuestion] | None, * optional): Recommended questions. Defaults to None. supported_agent_ids * (list[str], optional): List of supported agent IDs. Defaults to []. * is_question_library (bool | None, optional): Whether question library is * enabled. Defaults to None. click_behaviour (ClickBehaviour | None, optional): * Click behaviour for questions. Defaults to None. max_question_show (int | None, * optional): Maximum number of questions to show. Defaults to None. display_type * (DisplayType | None, optional): Display type for questions. Defaults to None. * created_by (str | None, optional): User ID who created the chatbot. Defaults to * None. updated_by (str | None, optional): User ID who last updated the chatbot. * Defaults to None. created_at (datetime | None, optional): Timestamp when chatbot * was created. Defaults to None. updated_at (datetime | None, optional): Timestamp * when chatbot was last updated. Defaults to None. connectors * (list[AdminConnectorModel], optional): List of connectors. Defaults to []. * phone_number (WhatsAppPhoneNumberModel | None, optional): WhatsApp phone number. * Defaults to None. chatbot_connectors (list[AdminChatbotConnectorModel], * optional): List of chatbot connectors. Defaults to []. light_logo_url (str | * None, optional): Light logo URL. Defaults to None. dark_logo_url (str | None, * optional): Dark logo URL. Defaults to None. use_tenant_logo (bool, optional): * Whether to use tenant logo. Defaults to False. show_app_logo (bool, optional): * Whether to show app logo. Defaults to False. default_agent_id (str | None, * optional): ID of the default agent. Defaults to None. enable_default_agent * (bool, optional): Whether the default agent is enabled. Defaults to False. * default_digital_employee_id (str | None, optional): GLChat id of the Digital * Employee the project is locked to when `enable_default_agent` (the focus-mode * switch) is on. Defaults to None. supported_digital_employee_ids (list[str], * optional): GLChat ids of the Digital Employees assigned to the project. They * live in a separate table, so they are filled in by the service that loads the * chatbot. Defaults to []. is_guest_mode_enabled (bool, optional): Whether guest * mode is enabled for this project. Defaults to False. guest_access * (list[GuestAccessType], optional): List of user groups that get broad access * when guest mode is enabled. Empty list means no broad access is granted beyond * explicit assignments. Defaults to []. knowledge_bases * (list[AdminKnowledgeBaseModel], optional): List of knowledge bases * (many-to-many). Defaults to []. chatbot_knowledge_base_links * (list[AdminChatbotKnowledgeBaseModel], optional): Junction rows. Defaults to []. * ttl (int, optional): Time to live for SS / FAQ behavior, shared across this * chatbot's knowledge bases. Defaults to DEFAULT_TTL. max_faq (int, optional): * Maximum FAQs allowed for this chatbot. Defaults to DEFAULT_MAX_FAQ. * is_faq_generation_enabled (bool, optional): Whether scheduled FAQ question * generation runs for this chatbot. Defaults to DEFAULT_IS_FAQ_GENERATION_ENABLED. */ export interface AdminChatbotModel { id: string; chatbot_id: string; organization_id: string; chatbot_connectors?: Array; chatbot_knowledge_base_links?: Array; chatbot_name?: string | null; /** * Enum for click behaviour. */ click_behaviour?: ChatbotsAPI.ClickBehaviour | null; connectors?: Array; created_at?: string | null; /** * User information shared across all providers. */ creator?: UserInfo | null; dark_logo_url?: string | null; default_agent_id?: string | null; default_digital_employee_id?: string | null; description?: string | null; /** * Enum for display type. */ display_type?: ChatbotsAPI.DisplayType | null; enable_default_agent?: boolean; guest_access?: Array<'LOGGED_OUT_USERS' | 'LOGGED_IN_USERS'>; is_enhance_prompt_enabled?: boolean; is_faq_generation_enabled?: boolean; is_guest_mode_enabled?: boolean; is_project_hidden?: boolean; is_question_library?: boolean; is_smart_hub_enabled?: boolean; knowledge_base_ids?: Array; knowledge_bases?: Array; light_logo_url?: string | null; /** * Admin LMRP Catalog model. */ lmrp_catalog?: AdminLmrpCatalogModel | null; lmrp_catalog_id?: string | null; max_faq?: number; max_question_show?: number | null; /** * Schema for complete organization response data. * * This class extends BaseOrganizationResponse and includes all organization fields * including styling and asset information. * * Args: support_contact_email (str | None): Support contact email. Defaults to * None. primary_color (str): Primary color in hex code format. secondary_color * (str): Secondary color in hex code format. accent_color (str): Accent color in * hex code format. light_logo_url (str): URL for the light theme logo. * dark_logo_url (str): URL for the dark theme logo. light_icon_url (str): URL for * the light theme icon. dark_icon_url (str): URL for the dark theme icon. * user_domains (list[str]): List of email domains for the organization. Defaults * to empty list. feedback_url (str | None): Feedback URL. Defaults to None. * user_guide_url (str | None): User guide URL. Defaults to None. admin_guide_url * (str | None): Admin guide URL. Defaults to None. description (str | None): * Organization description. Defaults to None. admin_username (str | None): Admin * username. Defaults to None. admin_email (str | None): Admin email. Defaults to * None. created_at (datetime | None): The organization created at. Defaults to * None. updated_at (datetime | None): The organization updated at. Defaults to * None. updated_by (str | None): The organization updated by. Defaults to None. * subscription (SubscriptionResponse | None): Organization subscription details. * Defaults to None. */ organization?: OrganizationResponse | null; /** * WhatsApp Phone Number model. * * Attributes: id (str): The unique identifier of the phone number. provider_id * (str): The unique identifier of the provider. phone_number (str): The phone * number in E.164 format. display_name (str | None): Optional display name for the * phone number. Defaults to None. provider_metadata (dict[str, Any] | None): * Provider-specific metadata. Defaults to None. is_active (bool): Whether the * phone number is active. created_at (datetime): When the phone number was * created. updated_at (datetime): When the phone number was last updated. provider * (WhatsAppProviderModel | None): The provider. Defaults to None. chatbots * (list[ChatbotModel] | None): Associated chatbots. Defaults to None. * default_chatbot (ChatbotModel | None): Default chatbot. Defaults to None. */ phone_number?: WhatsAppPhoneNumberModel | null; pipeline_id?: string | null; /** * Admin Preset model. * * Attributes: id (str): Preset ID. pipeline_id (str): Pipeline ID. * pipeline_preset_id (str): Pipeline preset ID. created_by (str | None, optional): * User ID who created the preset. Defaults to None. updated_by (str | None, * optional): User ID who last updated the preset. Defaults to None. created_at * (datetime | None, optional): Timestamp when preset was created. Defaults to * None. updated_at (datetime | None, optional): Timestamp when preset was last * updated. Defaults to None. pipeline (AdminPipelineModel | None, optional): * Pipeline. Defaults to None. */ preset?: AdminPresetModel | null; preset_id?: string | null; /** * Admin Prompt Builder Catalog model. */ prompt_builder_catalog?: AdminPromptBuilderCatalogModel | null; prompt_builder_catalog_id?: string | null; recommended_questions?: Array | null; show_app_logo?: boolean; smart_hub_links?: Array; supported_agent_ids?: Array; supported_digital_employee_ids?: Array; ttl?: number; updated_at?: string | null; /** * User information shared across all providers. */ updater?: UserInfo | null; use_tenant_logo?: boolean; } export declare namespace AdminChatbotModel { /** * Admin Chatbot Knowledge Base model. * * Attributes: id (str): Chatbot Knowledge Base ID. chatbot_id (str): Chatbot ID. * knowledge_base_id (str): Knowledge Base ID. knowledge_base * (AdminKnowledgeBaseModel | None, optional): Knowledge Base model. Defaults to * None. created_at (datetime): Creation timestamp. updated_at (datetime): Update * timestamp. */ interface ChatbotKnowledgeBaseLink { id: string; chatbot_id: string; created_at: string; knowledge_base_id: string; updated_at: string; /** * Admin Knowledge Base model. * * Attributes: id (str): Knowledge base ID. knowledge_base_id (str): Knowledge base * ID. knowledge_base_name (str): Knowledge base name. knowledge_base_description * (str | None, optional): Knowledge base description. Defaults to None. * information_classification (InformationClassification | None, optional): * Sensitivity level of the knowledge base. None for knowledge bases created before * classification was introduced. Defaults to None. dpo_preset_id (str | None, * optional): DPO preset ID. Defaults to None. is_processing_answer (bool | None, * optional): Whether processing answer is enabled. Defaults to False. * is_faq_enabled (bool, optional): True when any chatbot_knowledge_bases link has * FAQ generation enabled. Defaults to False. is_active (bool, optional): Whether * knowledge base is active. Defaults to True. created_by (str | None, optional): * User ID who created the knowledge base. Defaults to None. updated_by (str | * None, optional): User ID who last updated the knowledge base. Defaults to None. * created_at (datetime | None, optional): Timestamp when knowledge base was * created. Defaults to None. updated_at (datetime | None, optional): Timestamp * when knowledge base was last updated. Defaults to None. dpo_preset * (AdminPresetModel | None, optional): DPO preset. Defaults to None. chatbots * (list[ChatbotInfo], optional): Chatbots. Defaults to empty list. * knowledge_stores (list[AdminKnowledgeStoreModel], optional): Knowledge stores. * Defaults to empty list. */ knowledge_base?: Shared.AdminKnowledgeBaseModel | null; } /** * Domain model for a chatbot smart hub link. * * Attributes: id (str): Smart hub link ID. chatbot_id (str): Source chatbot ID * (the one configured as a smart hub). smart_hub_chatbot_id (str): Target chatbot * ID (the one linked-to). smart_hub_chatbot (Any): The target chatbot object. */ interface SmartHubLink { id: string; chatbot_id: string; smart_hub_chatbot_id: string; smart_hub_chatbot?: unknown; } } /** * Admin Knowledge Base model. * * Attributes: id (str): Knowledge base ID. knowledge_base_id (str): Knowledge base * ID. knowledge_base_name (str): Knowledge base name. knowledge_base_description * (str | None, optional): Knowledge base description. Defaults to None. * information_classification (InformationClassification | None, optional): * Sensitivity level of the knowledge base. None for knowledge bases created before * classification was introduced. Defaults to None. dpo_preset_id (str | None, * optional): DPO preset ID. Defaults to None. is_processing_answer (bool | None, * optional): Whether processing answer is enabled. Defaults to False. * is_faq_enabled (bool, optional): True when any chatbot_knowledge_bases link has * FAQ generation enabled. Defaults to False. is_active (bool, optional): Whether * knowledge base is active. Defaults to True. created_by (str | None, optional): * User ID who created the knowledge base. Defaults to None. updated_by (str | * None, optional): User ID who last updated the knowledge base. Defaults to None. * created_at (datetime | None, optional): Timestamp when knowledge base was * created. Defaults to None. updated_at (datetime | None, optional): Timestamp * when knowledge base was last updated. Defaults to None. dpo_preset * (AdminPresetModel | None, optional): DPO preset. Defaults to None. chatbots * (list[ChatbotInfo], optional): Chatbots. Defaults to empty list. * knowledge_stores (list[AdminKnowledgeStoreModel], optional): Knowledge stores. * Defaults to empty list. */ export interface AdminKnowledgeBaseModel { id: string; knowledge_base_id: string; knowledge_base_name: string; chatbots?: Array; created_at?: string | null; /** * User information shared across all providers. */ creator?: UserInfo | null; /** * Admin Preset model. * * Attributes: id (str): Preset ID. pipeline_id (str): Pipeline ID. * pipeline_preset_id (str): Pipeline preset ID. created_by (str | None, optional): * User ID who created the preset. Defaults to None. updated_by (str | None, * optional): User ID who last updated the preset. Defaults to None. created_at * (datetime | None, optional): Timestamp when preset was created. Defaults to * None. updated_at (datetime | None, optional): Timestamp when preset was last * updated. Defaults to None. pipeline (AdminPipelineModel | None, optional): * Pipeline. Defaults to None. */ dpo_preset?: AdminPresetModel | null; dpo_preset_id?: string | null; /** * Sensitivity level assigned to a knowledge base and the documents it holds. */ information_classification?: FilesAPI.InformationClassification | null; is_active?: boolean; is_faq_enabled?: boolean; is_processing_answer?: boolean | null; knowledge_base_description?: string | null; knowledge_stores?: Array; organization_id?: string | null; updated_at?: string | null; /** * User information shared across all providers. */ updater?: UserInfo | null; } export declare namespace AdminKnowledgeBaseModel { /** * Model for chatbot in preset response. */ interface Chatbot { chatbot_id: string; chatbot_name?: string | null; } } /** * Admin Knowledge Store model. * * Attributes: id (str): Knowledge store ID. knowledge_base_id (str): Knowledge * base ID. name (str): Knowledge store name. index_name (str): Index name. * knowledge_store_config_bundle_id (str): Knowledge store config bundle ID. * pipeline_knowledge_store_requirement_id (str): Pipeline knowledge store * requirement ID. is_active (bool, optional): Whether knowledge store is active. * Defaults to True. organization_id (str, optional): Organization ID. Defaults to * None. pipeline_knowledge_store_requirement_id (str): Pipeline knowledge store * requirement ID. pipeline_knowledge_store_requirement * (AdminPipelineKnowledgeStoreRequirementModel, optional): Pipeline knowledge * store requirement. Defaults to None. knowledge_store_config_bundle * (AdminKnowledgeStoreConfigBundleModel, optional): Knowledge store config bundle. * Defaults to None. */ export interface AdminKnowledgeStoreModel { id: string; index_name: string; knowledge_base_id: string; knowledge_store_config_bundle_id: string; name: string; pipeline_knowledge_store_requirement_id: string; config?: string | null; is_active?: boolean; /** * Admin Knowledge Store Config Bundle model. * * Attributes: id (str): Knowledge store config bundle ID. name (str): Knowledge * store config bundle name. db_engine (str): Database engine (e.g., * "elasticsearch", "chroma", "postgresql"). config (str): Encrypted configuration * string. is_active (bool): Whether the config bundle is active. Defaults to True. * created_by (str | None): User ID of creator. Defaults to None. updated_by (str | * None): User ID of last updater. Defaults to None. created_at (datetime | None): * Creation timestamp. Defaults to None. updated_at (datetime | None): Last update * timestamp. Defaults to None. organization_id (str, optional): Organization ID. * Defaults to None. */ knowledge_store_config_bundle?: AdminKnowledgeStoreModel.KnowledgeStoreConfigBundle | null; organization_id?: string | null; /** * Admin Pipeline Knowledge Store Requirement model. * * Attributes: id (str): Pipeline knowledge store requirement ID. pipeline_id * (str): Pipeline ID. name (str): Pipeline knowledge store requirement name. * db_type (str): Database type. description (str, optional): Pipeline knowledge * store requirement description. Defaults to None. organization_id (str, * optional): Organization ID. Defaults to None. component_relationships * (list[AdminPipelineKnowledgeStoreRequirementComponentModel], optional): List of * component relationships. Defaults to empty list. */ pipeline_knowledge_store_requirement?: AdminKnowledgeStoreModel.PipelineKnowledgeStoreRequirement | null; } export declare namespace AdminKnowledgeStoreModel { /** * Admin Knowledge Store Config Bundle model. * * Attributes: id (str): Knowledge store config bundle ID. name (str): Knowledge * store config bundle name. db_engine (str): Database engine (e.g., * "elasticsearch", "chroma", "postgresql"). config (str): Encrypted configuration * string. is_active (bool): Whether the config bundle is active. Defaults to True. * created_by (str | None): User ID of creator. Defaults to None. updated_by (str | * None): User ID of last updater. Defaults to None. created_at (datetime | None): * Creation timestamp. Defaults to None. updated_at (datetime | None): Last update * timestamp. Defaults to None. organization_id (str, optional): Organization ID. * Defaults to None. */ interface KnowledgeStoreConfigBundle { id: string; config: string; db_engine: string; name: string; created_at?: string | null; /** * User information shared across all providers. */ creator?: Shared.UserInfo | null; is_active?: boolean; organization_id?: string | null; updated_at?: string | null; /** * User information shared across all providers. */ updater?: Shared.UserInfo | null; } /** * Admin Pipeline Knowledge Store Requirement model. * * Attributes: id (str): Pipeline knowledge store requirement ID. pipeline_id * (str): Pipeline ID. name (str): Pipeline knowledge store requirement name. * db_type (str): Database type. description (str, optional): Pipeline knowledge * store requirement description. Defaults to None. organization_id (str, * optional): Organization ID. Defaults to None. component_relationships * (list[AdminPipelineKnowledgeStoreRequirementComponentModel], optional): List of * component relationships. Defaults to empty list. */ interface PipelineKnowledgeStoreRequirement { id: string; db_type: string; name: string; pipeline_id: string; components?: Array; description?: string | null; organization_id?: string | null; } namespace PipelineKnowledgeStoreRequirement { /** * Admin Pipeline Knowledge Store Requirement Component model. * * Attributes: id (str): Pipeline knowledge store requirement component ID. * pipeline_ks_requirement_id (str): Pipeline knowledge store requirement ID. * component_id (str): Component ID. */ interface Component { id: string; component_id: string; pipeline_ks_requirement_id: string; } } } /** * Admin LMRP Catalog Entry model. * * Attributes: id (str): The ID of the LMRP catalog entry. lmrp_catalog_id (str): * The ID of the LMRP catalog. name (str): The name of the LMRP catalog entry. * scope (str | None, optional): The scope of the LMRP catalog entry. Defaults to * None. prompt_builder_type (str): The type of the prompt builder. * prompt_builder_kwargs (str | None, optional): The kwargs of the prompt builder. * Defaults to None. prompt_builder_system_template (str | None, optional): The * system template of the prompt builder. Defaults to None. * prompt_builder_user_template (str | None, optional): The user template of the * prompt builder. Defaults to None. model_id (str | None, optional): The ID of the * model. Defaults to None. output_parser_type (str | None, optional): The type of * the output parser. Defaults to None. output_parser_kwargs (str | None, * optional): The kwargs of the output parser. Defaults to None. created_by (str | * None, optional): User ID who created the entry. Defaults to None. updated_by * (str | None, optional): User ID who last updated the entry. Defaults to None. * created_at (datetime | None, optional): Timestamp when entry was created. * Defaults to None. updated_at (datetime | None, optional): Timestamp when entry * was last updated. Defaults to None. */ export interface AdminLmrpCatalogEntryModel { id: string; lmrp_catalog_id: string; name: string; prompt_builder_type: string; created_at?: string | null; /** * User information shared across all providers. */ creator?: UserInfo | null; fallback_model_id?: string | null; model_id?: string | null; organization_id?: string | null; output_parser_kwargs?: string | null; output_parser_type?: string | null; prompt_builder_kwargs?: string | null; prompt_builder_system_template?: string | null; prompt_builder_user_template?: string | null; scope?: string | null; updated_at?: string | null; /** * User information shared across all providers. */ updater?: UserInfo | null; } /** * Admin LMRP Catalog model. */ export interface AdminLmrpCatalogModel { id: string; /** * Level type enum for catalogs. */ level: 'CHATBOT' | 'PIPELINE' | 'PRESET'; name: string; description?: string | null; is_override?: boolean; level_entity_id?: string | null; lmrp_catalog_entries?: Array; organization_id?: string | null; } /** * Admin Pipeline model. */ export interface AdminPipelineModel { id: string; name: string; /** * The type of pipeline. * * Values: RAGO. DPO. CSV. */ type: 'RAGO' | 'DPO' | 'CSV'; components?: Array; config_fields?: Array; description?: string | null; display_name?: string | null; is_active?: boolean; is_internal?: boolean; knowledge_store_requirements?: Array; metadata_?: string; organization_id?: string | null; } export declare namespace AdminPipelineModel { /** * Admin Component model. */ interface Component { id: string; name: string; description?: string | null; display_name?: string | null; organization_id?: string | null; } /** * Admin Config Field model. */ interface ConfigField { id: string; component_id: string; level: string; name: string; type: string; ui_type: string; /** * Config category information embedded in config field response. */ category?: ConfigField.Category | null; category_id?: string | null; constraints?: string | null; default_value?: string | null; dropdown_filter?: string | null; dropdown_key?: string | null; dropdown_source?: string | null; dropdown_value?: string | null; order?: number | null; organization_id?: string | null; } namespace ConfigField { /** * Config category information embedded in config field response. */ interface Category { id: string; name: string; order: number; organization_id?: string | null; } } /** * Admin Pipeline Knowledge Store Requirement model. * * Attributes: id (str): Pipeline knowledge store requirement ID. pipeline_id * (str): Pipeline ID. name (str): Pipeline knowledge store requirement name. * db_type (str): Database type. description (str, optional): Pipeline knowledge * store requirement description. Defaults to None. organization_id (str, * optional): Organization ID. Defaults to None. component_relationships * (list[AdminPipelineKnowledgeStoreRequirementComponentModel], optional): List of * component relationships. Defaults to empty list. */ interface KnowledgeStoreRequirement { id: string; db_type: string; name: string; pipeline_id: string; components?: Array; description?: string | null; organization_id?: string | null; } namespace KnowledgeStoreRequirement { /** * Admin Pipeline Knowledge Store Requirement Component model. * * Attributes: id (str): Pipeline knowledge store requirement component ID. * pipeline_ks_requirement_id (str): Pipeline knowledge store requirement ID. * component_id (str): Component ID. */ interface Component { id: string; component_id: string; pipeline_ks_requirement_id: string; } } } /** * Admin Preset model. * * Attributes: id (str): Preset ID. pipeline_id (str): Pipeline ID. * pipeline_preset_id (str): Pipeline preset ID. created_by (str | None, optional): * User ID who created the preset. Defaults to None. updated_by (str | None, * optional): User ID who last updated the preset. Defaults to None. created_at * (datetime | None, optional): Timestamp when preset was created. Defaults to * None. updated_at (datetime | None, optional): Timestamp when preset was last * updated. Defaults to None. pipeline (AdminPipelineModel | None, optional): * Pipeline. Defaults to None. */ export interface AdminPresetModel { id: string; pipeline_id: string; pipeline_preset_id: string; created_at?: string | null; /** * User information shared across all providers. */ creator?: UserInfo | null; organization_id?: string | null; /** * Admin Pipeline model. */ pipeline?: AdminPipelineModel | null; updated_at?: string | null; /** * User information shared across all providers. */ updater?: UserInfo | null; } /** * Admin Prompt Builder Catalog Entry model. * * Attributes: id (str): The ID of the prompt builder catalog entry. * prompt_builder_catalog_id (str): The ID of the prompt builder catalog. name * (str): The name of the prompt builder catalog entry. scope (str | None, * optional): The scope of the prompt builder catalog entry. Defaults to None. type * (str | None, optional): The type of the prompt builder catalog entry. Defaults * to None. model (str | None, optional): The model of the prompt builder catalog * entry. Defaults to None. system_instruction (str | None, optional): The system * instruction. Defaults to None. user_instruction (str | None, optional): The user * instruction. Defaults to None. prompt_template_group_id (str | None, optional): * The prompt template group ID. Defaults to None. prompt_template_group_name (str * | None, optional): The prompt template group name. Defaults to None. created_by * (str | None, optional): User ID who created the entry. Defaults to None. * updated_by (str | None, optional): User ID who last updated the entry. Defaults * to None. created_at (datetime | None, optional): Timestamp when entry was * created. Defaults to None. updated_at (datetime | None, optional): Timestamp * when entry was last updated. Defaults to None. */ export interface AdminPromptBuilderCatalogEntryModel { id: string; name: string; prompt_builder_catalog_id: string; created_at?: string | null; /** * User information shared across all providers. */ creator?: UserInfo | null; model?: string | null; organization_id?: string | null; prompt_template_group_id?: string | null; prompt_template_group_name?: string | null; scope?: string | null; system_instruction?: string | null; type?: string | null; updated_at?: string | null; /** * User information shared across all providers. */ updater?: UserInfo | null; user_instruction?: string | null; } /** * Admin Prompt Builder Catalog model. */ export interface AdminPromptBuilderCatalogModel { id: string; /** * Level type enum for catalogs. */ level: 'CHATBOT' | 'PIPELINE' | 'PRESET'; name: string; description?: string | null; is_override?: boolean; level_entity_id?: string | null; organization_id?: string | null; prompt_builder_catalog_entries?: Array; } /** * Admin User Domain model. */ export interface AdminUserDomainModel { id: string; domain: string; name: string; chatbots?: Array; is_active?: boolean; } /** * Chatbot model. * * Attributes: id (str): The unique identifier of the chatbot. chatbot_id (str): * The unique identifier of the chatbot. chatbot_name (str): The name of the * chatbot. */ export interface ChatbotModel { id: string; chatbot_id: string; chatbot_name: string; } /** * Admin Chatbot Connector model. * * Attributes: id (str): Chatbot Connector ID. chatbot_id (str): Chatbot ID. * connector_id (str): Connector ID. connector (AdminConnectorModel | None, * optional): Connector model. Defaults to None. */ export interface GLChatBeAdminChatbotConnectorModelModelAdminChatbotConnectorModel { id: string; chatbot_id: string; connector_id: string; /** * Admin Connector model. * * Attributes: id (str): The unique identifier of the connector. name (str): The * name of the connector. display_name (str): The display name of the connector. * description (str | None, optional): The description of the connector. Defaults * to None. icon (str | None, optional): The icon of the connector. Defaults to * None. is_active (bool): Whether the connector is active. knowledge_source(bool): * Determine if the connector will be shown in /connectors endpoint and admin * chatbot endpoints. is_connected (bool, optional): Whether the current user is * connected to the connector and can use it. Defaults to False. status * (ConnectorStatus, optional): The current user's connection state, including * whether the connector must be reconnected. Defaults to * ConnectorStatus.NOT_CONNECTED. chatbots (list[AdminChatbotConnectorModel], * optional): List of chatbot connectors. Defaults to []. */ connector?: V2API.AdminConnector | null; } /** * Schema for complete organization response data. * * This class extends BaseOrganizationResponse and includes all organization fields * including styling and asset information. * * Args: support_contact_email (str | None): Support contact email. Defaults to * None. primary_color (str): Primary color in hex code format. secondary_color * (str): Secondary color in hex code format. accent_color (str): Accent color in * hex code format. light_logo_url (str): URL for the light theme logo. * dark_logo_url (str): URL for the dark theme logo. light_icon_url (str): URL for * the light theme icon. dark_icon_url (str): URL for the dark theme icon. * user_domains (list[str]): List of email domains for the organization. Defaults * to empty list. feedback_url (str | None): Feedback URL. Defaults to None. * user_guide_url (str | None): User guide URL. Defaults to None. admin_guide_url * (str | None): Admin guide URL. Defaults to None. description (str | None): * Organization description. Defaults to None. admin_username (str | None): Admin * username. Defaults to None. admin_email (str | None): Admin email. Defaults to * None. created_at (datetime | None): The organization created at. Defaults to * None. updated_at (datetime | None): The organization updated at. Defaults to * None. updated_by (str | None): The organization updated by. Defaults to None. * subscription (SubscriptionResponse | None): Organization subscription details. * Defaults to None. */ export interface OrganizationResponse { id: string; accent_color: string; dark_icon_url: string; dark_logo_url: string; light_icon_url: string; light_logo_url: string; name: string; primary_color: string; secondary_color: string; admin_email?: string | null; admin_guide_url?: string | null; admin_username?: string | null; aip_account_id?: string | null; aip_api_key?: string | null; allow_all_domains?: boolean | null; created_at?: string | null; /** * Enumeration for crypto normalization modes. */ crypto_normalized_mode?: 'PLAINTEXT' | 'CIPHERTEXT' | 'NORMALIZING' | 'ENCRYPT_FAILED' | 'DECRYPT_FAILED' | null; description?: string | null; encrypt_messages_enabled?: boolean | null; feedback_url?: string | null; glconnector_api_key?: string | null; glmessaging_api_key?: string | null; slug?: string | null; smart_search_api_key?: string | null; smart_search_client_id?: string | null; /** * Subscription Response. */ subscription?: OrganizationResponse.Subscription | null; support_contact_email?: string | null; team_id?: string | null; updated_at?: string | null; updated_by?: string | null; user_domains?: Array; user_guide_url?: string | null; } export declare namespace OrganizationResponse { /** * Subscription Response. */ interface Subscription { id: string; created_at: string; name: string; quotas: Array; slug: string; updated_at: string; license_expiry_date?: string | null; updated_by?: string | null; } namespace Subscription { /** * Resource Quota with Remaining Response. */ interface Quota { id: string; limit: number; /** * Enum for quota names. */ name: 'message' | 'message_per_user' | 'application' | 'admin' | 'user'; usage: number; } } } /** * Model for recommended question with category. */ export interface RecommendedQuestion { category: string; question: string; } /** * User information shared across all providers. */ export interface UserInfo { id: string; username: string; display_name?: string | null; } /** * WhatsApp Phone Number model. * * Attributes: id (str): The unique identifier of the phone number. provider_id * (str): The unique identifier of the provider. phone_number (str): The phone * number in E.164 format. display_name (str | None): Optional display name for the * phone number. Defaults to None. provider_metadata (dict[str, Any] | None): * Provider-specific metadata. Defaults to None. is_active (bool): Whether the * phone number is active. created_at (datetime): When the phone number was * created. updated_at (datetime): When the phone number was last updated. provider * (WhatsAppProviderModel | None): The provider. Defaults to None. chatbots * (list[ChatbotModel] | None): Associated chatbots. Defaults to None. * default_chatbot (ChatbotModel | None): Default chatbot. Defaults to None. */ export interface WhatsAppPhoneNumberModel { id: string; created_at: string; is_active: boolean; phone_number: string; provider_id: string; updated_at: string; chatbots?: Array | null; /** * Chatbot model. * * Attributes: id (str): The unique identifier of the chatbot. chatbot_id (str): * The unique identifier of the chatbot. chatbot_name (str): The name of the * chatbot. */ default_chatbot?: ChatbotModel | null; display_name?: string | null; /** * WhatsApp Provider model. * * Attributes: id (str): The unique identifier of the provider. name (str): The * name of the provider. icon (str): The icon of the provider. client_id (str): The * client ID of the provider. client_secret (str): The client secret of the * provider. created_at (datetime): When the provider was created. updated_at * (datetime): When the provider was last updated. */ provider?: WhatsAppProviderModel | null; provider_metadata?: { [key: string]: unknown; } | null; } /** * WhatsApp Provider model. * * Attributes: id (str): The unique identifier of the provider. name (str): The * name of the provider. icon (str): The icon of the provider. client_id (str): The * client ID of the provider. client_secret (str): The client secret of the * provider. created_at (datetime): When the provider was created. updated_at * (datetime): When the provider was last updated. */ export interface WhatsAppProviderModel { id: string; client_id: string; client_secret: string; created_at: string; icon: string; name: string; updated_at: string; } //# sourceMappingURL=shared.d.mts.map