mentortools/libs/: chat-server-connector-v2-1.2.0+2426126258 metadata and description
Mentortools Chat API
| author | OpenAPI Generator community |
| author_email | OpenAPI Generator Community <team@openapitools.org> |
| description_content_type | text/markdown |
| keywords | OpenAPI, OpenAPI-Generator, Mentortools Chat API |
| project_urls |
|
| requires_dist |
|
| requires_python | >=3.9 |
| File | Tox results | History |
|---|---|---|
chat_server_connector_v2-1.2.0+2426126258-py3-none-any.whl
|
|
|
chat_server_connector_v2-1.2.0+2426126258.tar.gz
|
|
chat-server-connector-v2
Mentortools service for chatting
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 1.2.0+2426126258
- Generator version: 7.21.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import chat_server_connector_v2
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import chat_server_connector_v2
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import chat_server_connector_v2
from chat_server_connector_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = chat_server_connector_v2.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: APIKeyHeader
configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer'
# Configure Bearer authorization: HTTPBearer
configuration = chat_server_connector_v2.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
async with chat_server_connector_v2.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = chat_server_connector_v2.AdminApi(api_client)
try:
# Wipe Bots From Cache
api_response = await api_instance.chat_api_wipe_bots_from_cache()
print("The response of AdminApi->chat_api_wipe_bots_from_cache:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->chat_api_wipe_bots_from_cache: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AdminApi | chat_api_wipe_bots_from_cache | DELETE /admin/v1/bot/cache | Wipe Bots From Cache |
| AdminApi | chat_api_wipe_portal_community_settings_from_cache | DELETE /admin/v1/portal_community_settings/cache | Wipe Portal Community Settings From Cache |
| AdminApi | chat_api_wipe_portal_members_from_cache | DELETE /admin/v1/portal_member/cache | Wipe Portal Members From Cache |
| BotsApi | chat_api_bot_chat_by_topic_slug | GET /bots/v1/topic/{topic_slug} | Bot Chat By Topic Slug |
| BotsApi | chat_api_bot_chat_chat_get | GET /bots/v1/{bot_id}/chat | Bot Chat Chat Get |
| BotsApi | chat_api_bot_chat_get_or_create | PUT /bots/v1/{bot_id}/chat | Bot Chat Get Or Create |
| BotsApi | chat_api_bot_chat_topics_list | GET /bots/v1/{bot_id}/chats | Bot Chat Topics List |
| BotsApi | chat_api_bot_portal_chat_get | GET /bots/v1/primary/chat | Bot Portal Chat Get |
| BotsApi | chat_api_bot_portal_chat_get_or_create | PUT /bots/v1/primary/chat | Bot Portal Chat Get Or Create |
| BotsApi | chat_api_bot_primary_chat_topics_list | GET /bots/v1/primary/chats | Bot Primary Chat Topics List |
| BotsApi | chat_api_bot_shared_chat_get | GET /bots/v1/shared/primary/chat | Bot Shared Chat Get |
| BotsApi | chat_api_bot_shared_chat_get_or_create | PUT /bots/v1/shared/primary/chat | Bot Shared Chat Get Or Create |
| BotsApi | chat_api_bot_shared_primary_chat_topics_list | GET /bots/v1/shared/primary/chats | Bot Shared Primary Chat Topics List |
| ChatApiApi | chat_api_bot_chat_by_topic_slug | GET /bots/v1/topic/{topic_slug} | Bot Chat By Topic Slug |
| ChatApiApi | chat_api_bot_chat_chat_get | GET /bots/v1/{bot_id}/chat | Bot Chat Chat Get |
| ChatApiApi | chat_api_bot_chat_get_or_create | PUT /bots/v1/{bot_id}/chat | Bot Chat Get Or Create |
| ChatApiApi | chat_api_bot_chat_topics_list | GET /bots/v1/{bot_id}/chats | Bot Chat Topics List |
| ChatApiApi | chat_api_bot_portal_chat_get | GET /bots/v1/primary/chat | Bot Portal Chat Get |
| ChatApiApi | chat_api_bot_portal_chat_get_or_create | PUT /bots/v1/primary/chat | Bot Portal Chat Get Or Create |
| ChatApiApi | chat_api_bot_primary_chat_topics_list | GET /bots/v1/primary/chats | Bot Primary Chat Topics List |
| ChatApiApi | chat_api_bot_shared_chat_get | GET /bots/v1/shared/primary/chat | Bot Shared Chat Get |
| ChatApiApi | chat_api_bot_shared_chat_get_or_create | PUT /bots/v1/shared/primary/chat | Bot Shared Chat Get Or Create |
| ChatApiApi | chat_api_bot_shared_primary_chat_topics_list | GET /bots/v1/shared/primary/chats | Bot Shared Primary Chat Topics List |
| ChatApiApi | chat_api_chat_ai_usage_insert | POST /chats/v1/{chat_id}/ai_usage/insert | Chat Ai Usage Insert |
| ChatApiApi | chat_api_chat_ai_usage_insert_v2 | POST /chats/v2/{chat_id}/ai_usage/insert | Chat Ai Usage Insert V2 |
| ChatApiApi | chat_api_chat_delete | DELETE /chats/v1/{chat_id} | Chat Delete |
| ChatApiApi | chat_api_chat_get | GET /chats/v1/{chat_id} | Chat Get |
| ChatApiApi | chat_api_chat_join | POST /chats/v1/{chat_id}/join | Chat Join |
| ChatApiApi | chat_api_chat_leave | POST /chats/v1/{chat_id}/leave | Chat Leave |
| ChatApiApi | chat_api_chat_mark_as_read | POST /chats/v1/{chat_id}/mark_as_read | Chat Mark As Read |
| ChatApiApi | chat_api_chat_member_ban | POST /chats/v1/{chat_id}/members/{user_id}/ban | Chat Member Ban |
| ChatApiApi | chat_api_chat_members_list | GET /chats/v1/{chat_id}/members | Chat Members List |
| ChatApiApi | chat_api_chat_members_update | PATCH /chats/v1/{chat_id}/members | Chat Members Update |
| ChatApiApi | chat_api_chat_message_delete | DELETE /chats/v1/{chat_id}/messages/{message_id} | Chat Message Delete |
| ChatApiApi | chat_api_chat_message_get | GET /chats/v1/{chat_id}/messages/{message_id} | Chat Message Get |
| ChatApiApi | chat_api_chat_messages_add | POST /chats/v1/{chat_id}/messages | Chat Messages Add |
| ChatApiApi | chat_api_chat_messages_insert | POST /chats/v1/{chat_id}/messages/insert | Chat Messages Insert |
| ChatApiApi | chat_api_chat_messages_list | GET /chats/v1/{chat_id}/messages | Chat Messages List |
| ChatApiApi | chat_api_chat_mute | POST /chats/v1/{chat_id}/mute | Chat Mute |
| ChatApiApi | chat_api_chat_private_join | POST /chats/v1/private/{chat_uuid}/join | Chat Private Join |
| ChatApiApi | chat_api_chat_session_get | GET /chat_sessions/v1/{chat_session_id} | Chat Session Get |
| ChatApiApi | chat_api_chat_session_list_portal | GET /chat_sessions/v1/portal | Chat Session List Portal |
| ChatApiApi | chat_api_chat_session_portal_count | GET /chat_sessions/v1/portal/count | Chat Session Portal Count |
| ChatApiApi | chat_api_chat_session_start | POST /chats/v1/{chat_id}/session/start | Chat Session Start |
| ChatApiApi | chat_api_chat_session_stop | POST /chats/v1/session/stop/{session_id} | Chat Session Stop |
| ChatApiApi | chat_api_chat_unmute | POST /chats/v1/{chat_id}/unmute | Chat Unmute |
| ChatApiApi | chat_api_chat_update | PUT /chats/v1/{chat_id} | Chat Update |
| ChatApiApi | chat_api_chats_add | POST /chats/v1/ | Chats Add |
| ChatApiApi | chat_api_chats_list | GET /chats/v1/ | Chats List |
| ChatApiApi | chat_api_chats_list_available | GET /chats/v1/available | Chats List Available |
| ChatApiApi | chat_api_contact_chat_get | GET /contacts/v1/{user_id}/chat | Contact Chat Get |
| ChatApiApi | chat_api_contact_chat_get_or_create | PUT /contacts/v1/{user_id}/chat | Contact Chat Get Or Create |
| ChatApiApi | chat_api_contact_get | GET /contacts/v1/{user_id} | Contact Get |
| ChatApiApi | chat_api_contacts_list | GET /contacts/v1/ | Contacts List |
| ChatApiApi | chat_api_get_total_unread_messages | GET /chats/v1/unread/count | Get Total Unread Messages |
| ChatApiApi | chat_api_settings_get | GET /settings/v1/ | Settings Get |
| ChatApiApi | chat_api_settings_set | PUT /settings/v1/ | Settings Set |
| ChatApiApi | chat_api_wipe_bots_from_cache | DELETE /admin/v1/bot/cache | Wipe Bots From Cache |
| ChatApiApi | chat_api_wipe_portal_community_settings_from_cache | DELETE /admin/v1/portal_community_settings/cache | Wipe Portal Community Settings From Cache |
| ChatApiApi | chat_api_wipe_portal_members_from_cache | DELETE /admin/v1/portal_member/cache | Wipe Portal Members From Cache |
| ChatSessionsApi | chat_api_chat_session_get | GET /chat_sessions/v1/{chat_session_id} | Chat Session Get |
| ChatSessionsApi | chat_api_chat_session_list_portal | GET /chat_sessions/v1/portal | Chat Session List Portal |
| ChatSessionsApi | chat_api_chat_session_portal_count | GET /chat_sessions/v1/portal/count | Chat Session Portal Count |
| ChatSettingsApi | chat_api_settings_get | GET /settings/v1/ | Settings Get |
| ChatSettingsApi | chat_api_settings_set | PUT /settings/v1/ | Settings Set |
| ChatsApi | chat_api_chat_ai_usage_insert | POST /chats/v1/{chat_id}/ai_usage/insert | Chat Ai Usage Insert |
| ChatsApi | chat_api_chat_delete | DELETE /chats/v1/{chat_id} | Chat Delete |
| ChatsApi | chat_api_chat_get | GET /chats/v1/{chat_id} | Chat Get |
| ChatsApi | chat_api_chat_join | POST /chats/v1/{chat_id}/join | Chat Join |
| ChatsApi | chat_api_chat_leave | POST /chats/v1/{chat_id}/leave | Chat Leave |
| ChatsApi | chat_api_chat_mark_as_read | POST /chats/v1/{chat_id}/mark_as_read | Chat Mark As Read |
| ChatsApi | chat_api_chat_member_ban | POST /chats/v1/{chat_id}/members/{user_id}/ban | Chat Member Ban |
| ChatsApi | chat_api_chat_members_list | GET /chats/v1/{chat_id}/members | Chat Members List |
| ChatsApi | chat_api_chat_members_update | PATCH /chats/v1/{chat_id}/members | Chat Members Update |
| ChatsApi | chat_api_chat_message_delete | DELETE /chats/v1/{chat_id}/messages/{message_id} | Chat Message Delete |
| ChatsApi | chat_api_chat_message_get | GET /chats/v1/{chat_id}/messages/{message_id} | Chat Message Get |
| ChatsApi | chat_api_chat_messages_add | POST /chats/v1/{chat_id}/messages | Chat Messages Add |
| ChatsApi | chat_api_chat_messages_insert | POST /chats/v1/{chat_id}/messages/insert | Chat Messages Insert |
| ChatsApi | chat_api_chat_messages_list | GET /chats/v1/{chat_id}/messages | Chat Messages List |
| ChatsApi | chat_api_chat_mute | POST /chats/v1/{chat_id}/mute | Chat Mute |
| ChatsApi | chat_api_chat_private_join | POST /chats/v1/private/{chat_uuid}/join | Chat Private Join |
| ChatsApi | chat_api_chat_session_start | POST /chats/v1/{chat_id}/session/start | Chat Session Start |
| ChatsApi | chat_api_chat_session_stop | POST /chats/v1/session/stop/{session_id} | Chat Session Stop |
| ChatsApi | chat_api_chat_unmute | POST /chats/v1/{chat_id}/unmute | Chat Unmute |
| ChatsApi | chat_api_chat_update | PUT /chats/v1/{chat_id} | Chat Update |
| ChatsApi | chat_api_chats_add | POST /chats/v1/ | Chats Add |
| ChatsApi | chat_api_chats_list | GET /chats/v1/ | Chats List |
| ChatsApi | chat_api_chats_list_available | GET /chats/v1/available | Chats List Available |
| ChatsApi | chat_api_get_total_unread_messages | GET /chats/v1/unread/count | Get Total Unread Messages |
| ChatsV2Api | chat_api_chat_ai_usage_insert_v2 | POST /chats/v2/{chat_id}/ai_usage/insert | Chat Ai Usage Insert V2 |
| ContactsApi | chat_api_contact_chat_get | GET /contacts/v1/{user_id}/chat | Contact Chat Get |
| ContactsApi | chat_api_contact_chat_get_or_create | PUT /contacts/v1/{user_id}/chat | Contact Chat Get Or Create |
| ContactsApi | chat_api_contact_get | GET /contacts/v1/{user_id} | Contact Get |
| ContactsApi | chat_api_contacts_list | GET /contacts/v1/ | Contacts List |
| DefaultApi | default_health_check | GET / | Health Check |
| ExternalSystemUserApi | external_system_user_external_system_user_get | GET /external_system/v1/ | External System User Get |
| ExternalSystemUserApi | external_system_user_external_system_user_update | PUT /external_system/v1/ | External System User Update |
| ExternalSystemUserApi | external_system_user_get_user_by_external_system_info | GET /external_system/v1/{external_user_id} | Get User By External System Info |
| ExternalSystemUserApi | external_system_user_handle_message_from_external_system | POST /external_system/v1/message/handle | Handle Message From External System |
Documentation For Models
- AiAssistantGet
- AiAssistantGoalGet
- AiAssistantLexiconItem
- AssistantFunction
- AssistantUsageType
- ChatGetWithMembers
- ChatGetWithMembersAndMessages
- ChatGetWithMembersAndMessagesWithMetadata
- ChatListGet
- ChatMemberCreateOrUpdate
- ChatMemberGet
- ChatMemberRole
- ChatMemberRoleAdd
- ChatMessage
- ChatMessageAttachmentCreate
- ChatMessageAttachmentRead
- ChatMessageAttachmentReadWithMetadata
- ChatMessageAttachmentType
- ChatMessageCreate
- ChatMessageInsert
- ChatMessageRead
- ChatMessageReadWithMetadata
- ChatMessageType
- ChatNew
- ChatSessionGet
- ChatSessionGetWithChatData
- ChatSessionType
- ChatSettingsCreateOrUpdate
- ChatSettingsGet
- ChatType
- ChatUpdate
- CollectionState
- CollectionStatus
- ConsumedUnits
- Contact
- ContactAddress
- ConversationStyle
- CourseModulePublic
- CoursePaymentTypeStrEnum
- CoursePublic
- ExternalSystemMessage
- ExternalSystemType
- ExternalSystemUserGet
- ExternalSystemUserUpdate
- GoalEngagementPresetGet
- GoalInteractionsSummary
- HTTPValidationError
- KnowledgebaseState
- LocationInner
- ModuleLessonPublic
- ResponseWrapper
- ResponseWrapperBool
- ResponseWrapperChatGetWithMembersAndMessages
- ResponseWrapperChatGetWithMembersAndMessagesWithMetadata
- ResponseWrapperChatMessageReadWithMetadata
- ResponseWrapperChatSessionGet
- ResponseWrapperChatSessionGetWithChatData
- ResponseWrapperChatSettingsGet
- ResponseWrapperContact
- ResponseWrapperExternalSystemUserGet
- ResponseWrapperInt
- ResponseWrapperListChatListGet
- ResponseWrapperListChatMemberGet
- ResponseWrapperListChatMessageReadWithMetadata
- ResponseWrapperListChatSessionGetWithChatData
- ResponseWrapperListContact
- Result
- RoleEnum
- UsageDataFromFront
- UsageDataFromFrontV2
- UsageDataV2
- ValidationError
Documentation For Authorization
Authentication schemes defined for the API:
HTTPBearer
- Type: Bearer authentication
APIKeyHeader
- Type: API key
- API key parameter name: server_name
- Location: HTTP header