Files
ozon-seller-typescript/dist/apis/ChatAPI.d.ts
2026-08-21 12:19:50 +00:00

64 lines
6.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* Документация Ozon Seller API
* По вопросам работы с Seller API обращайтесь в поддержку через личный кабинет. <aside class=\"warning\">Обновляем корневой TLS/SSL-сертификат GlobalSign — вместо него будем использовать <a href=\"https://app.harica.gr/\">HARICA</a>.<br><a href=\"https://dev.ozon.ru/news/775-Izmeneniia-v-Ozon-API-migratsiia-kornevogo-sertifikata-UTs-Ozon/\">Подробнее о переходе на HARICA на платформе разработчиков Ozon for dev</a></aside> > [Инструкции по работе с маркетплейсом](https://seller-edu.ozon.ru) > [Информационная платформа и сообщество разработчиков Ozon for dev](https://dev.ozon.ru/)
*
* The version of the OpenAPI document: 2.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type { ChatChatSendFileRequest, ChatChatSendFileResponse, V3ChatHistoryRequest, V3ChatHistoryResponse, V3ChatList, V3ChatListResponse } from '../models/index';
export interface ChatAPIChatHistoryV3Request {
clientId: string;
apiKey: string;
v3ChatHistoryRequest: V3ChatHistoryRequest;
}
export interface ChatAPIChatListV3Request {
clientId: string;
apiKey: string;
v3ChatList: V3ChatList;
}
export interface ChatAPIChatSendFileRequest {
clientId: string;
apiKey: string;
chatChatSendFileRequest: ChatChatSendFileRequest;
}
/**
*
*/
export declare class ChatAPI extends runtime.BaseAPI {
/**
* Возвращает историю сообщений чата. По умолчанию от самого нового сообщения к старым. <br><br> Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3).
* История чата
*/
chatAPIChatHistoryV3Raw(requestParameters: ChatAPIChatHistoryV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V3ChatHistoryResponse>>;
/**
* Возвращает историю сообщений чата. По умолчанию от самого нового сообщения к старым. <br><br> Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3).
* История чата
*/
chatAPIChatHistoryV3(clientId: string, apiKey: string, v3ChatHistoryRequest: V3ChatHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V3ChatHistoryResponse>;
/**
* Возвращает информацию о чатах по указанным фильтрам.
* Список чатов
*/
chatAPIChatListV3Raw(requestParameters: ChatAPIChatListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V3ChatListResponse>>;
/**
* Возвращает информацию о чатах по указанным фильтрам.
* Список чатов
*/
chatAPIChatListV3(clientId: string, apiKey: string, v3ChatList: V3ChatList, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V3ChatListResponse>;
/**
* Отправляет файл в существующий чат по его идентификатору. <br><br> Отправить файл в чат с покупателем могут только продавцы с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить файл в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить файл покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя.
* Отправить файл
*/
chatAPIChatSendFileRaw(requestParameters: ChatAPIChatSendFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChatChatSendFileResponse>>;
/**
* Отправляет файл в существующий чат по его идентификатору. <br><br> Отправить файл в чат с покупателем могут только продавцы с подпиской [Premium Plus](https://seller-edu.ozon.ru/seller-rating/about-rating/subscription-premium-plus) или [Premium Pro](https://seller-edu.ozon.ru/seller-rating/about-rating/podpiska-premium-pro). Получите список чатов с покупателем `chats.chat.chat_type=\"Buyer_Seller\"` в ответе метода [/v3/chat/list](#operation/ChatAPI_ChatListV3). Для отправлений: - FBO — вы можете отправить файл в течение 48 часов с момента получения последнего сообщения от покупателя. - FBS или rFBS — вы можете отправить файл покупателю после оплаты и в течение 72 часов после доставки отправления. После этого вы можете только отвечать на сообщения в течение 48 часов с момента получения последнего сообщения от покупателя.
* Отправить файл
*/
chatAPIChatSendFile(clientId: string, apiKey: string, chatChatSendFileRequest: ChatChatSendFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChatChatSendFileResponse>;
}