import { TiktokConfig } from '../dto/request/config.request'; import { TiktokResponseCommon } from '../dto/response/config.response'; import { TiktokCreateConversationWithCreatorBody, TiktokCreateConversationwithCreatorBody, TiktokCreateOpenCollaborationBody, TiktokCreateTargetCollaborationBody, TiktokEditOpenCollaborationSampleRuleBody, TiktokEditOpenCollaborationSettingsBody, TiktokGetConversationListParams, TiktokGetMessageInTheConversationParams, TiktokGetOpenCollaborationCreatorContentDetailQuery, TiktokGetOpenCollaborationSampleRulesQuery, TiktokMarkConversationReadBody, TiktokRemoveCreatorFromOpenCollaborationParams, TiktokSearchOpenCollaborationParams, TiktokSearchSellerAffiliateOrdersParams, TiktokSearchTargetCollaborationsParams, TiktokSellerReviewSampleApplicationsParams, TiktokSellerSearchAffiliateOpenCollaborationProductParams, TiktokSellerSearchCreatorOnMarketplaceParams, TiktokSellerSearchSampleApplicationsFulfillmentsParams, TiktokSellerSearchSampleApplicationsParams, TiktokSendImMessageParams, TiktokUpdateTargetCollaborationParams } from '../dto/request/affiliate-seller-v3.request'; import { TiktokCreateConversationWithCreatorResponse, TiktokCreateConversationwithCreatorResponse, TiktokCreateOpenCollaborationResponse, TiktokCreateTargetCollaborationResponse, TiktokEditOpenCollaborationSampleRuleResponse, TiktokEditOpenCollaborationSettingsResponse, TiktokGenerateAffiliateProductPromotionLinkResponse, TiktokGetConversationListResponse, TiktokGetLatestUnreadMessagesResponse, TiktokGetMarketplaceCreatorPerformanceResponse, TiktokGetMessageInTheConversationResponse, TiktokGetOpenCollaborationCreatorContentDetailResponse, TiktokGetOpenCollaborationSampleRulesResponse, TiktokGetOpenCollaborationSettingsResponse, TiktokMarkConversationReadResponse, TiktokQueryTargetCollaborationDetailResponse, TiktokRemoveCreatorFromOpenCollaborationResponse, TiktokRemoveOpenCollaborationResponse, TiktokSearchOpenCollaborationResponse, TiktokSearchSellerAffiliateOrdersResponse, TiktokSearchTargetCollaborationsResponse, TiktokSellerReviewSampleApplicationsResponse, TiktokSellerSearchAffiliateOpenCollaborationProductResponse, TiktokSellerSearchCreatorOnMarketplaceResponse, TiktokSellerSearchSampleApplicationsFulfillmentsResponse, TiktokSellerSearchSampleApplicationsResponse, TiktokSendImMessageResponse, TiktokUpdateTargetCollaborationResponse } from '../dto/response/affiliate-seller-v3.response'; /** * Initiate a direct conversation with a creator. * * This API allows sellers to send a message and start a chat with a creator * to initiate affiliate cooperation. The message content must be provided in the request. * * @returns A promise resolving to the result of the conversation initiation. * Endpoint: `POST /affiliate_seller/202412/conversations` */ export declare function createConversationwithCreator(body: TiktokCreateConversationwithCreatorBody, config: TiktokConfig): Promise>; /** * Create a target collaboration with creators. * * Sellers initiate targeted affiliate partnerships by specifying goals and collaboration terms in the request body. * * @returns A promise resolving to the created collaboration result. * Endpoint: `POST /affiliate_seller/202405/target_collaborations` */ export declare function createTargetCollaboration(body: TiktokCreateTargetCollaborationBody, config: TiktokConfig): Promise>; /** * Edit open collaboration settings. * * Sellers update configuration options like eligibility rules, application limits, or pricing visibility. * * @returns A promise resolving to the updated settings. * Endpoint: `POST /affiliate_seller/202405/open_collaboration_settings` */ export declare function editOpenCollaborationSettings(body: TiktokEditOpenCollaborationSettingsBody, config: TiktokConfig): Promise>; /** * Remove a creator from an open collaboration. * * Excludes a selected creator from a collaboration, using the open_collaboration_id and request payload. * * @returns A promise indicating removal status. * Endpoint: `POST /affiliate_seller/202405/open_collaborations/{open_collaboration_id}/remove_creator` */ export declare function removeCreatorFromOpenCollaboration(params: TiktokRemoveCreatorFromOpenCollaborationParams, config: TiktokConfig): Promise>; /** * Generate a promotion link for a product. * * Sellers generate an affiliate link to promote a product through creators. * * @returns A promise resolving to the promotion link. * Endpoint: `POST /affiliate_seller/202405/products/{product_id}/promotion_link/generate` */ export declare function generateAffiliateProductPromotionLink(product_id: string, config: TiktokConfig): Promise>; /** * Search products open for affiliate collaboration. * * Enables product discovery based on filters provided via query and body. * * @returns A promise with search results. * Endpoint: `POST /affiliate_seller/202405/open_collaborations/products/search` */ export declare function sellerSearchAffiliateOpenCollaborationProduct(params: TiktokSellerSearchAffiliateOpenCollaborationProductParams, config: TiktokConfig): Promise>; /** * Search affiliate orders placed through seller collaborations. * * Retrieves orders made via affiliate campaigns using filter criteria such as status, time range, or product identifiers. * * @returns A promise resolving to the search result of affiliate orders. * Endpoint: `POST /affiliate_seller/202410/orders/search` */ export declare function searchSellerAffiliateOrders(params: TiktokSearchSellerAffiliateOrdersParams, config: TiktokConfig): Promise>; /** * Search fulfillments of sample applications. * * Allows sellers to fetch the fulfillment status of a submitted sample application using its application ID. * * @returns A promise resolving to fulfillment details. * Endpoint: `POST /affiliate_seller/202409/sample_applications/{application_id}/fulfillments/search` */ export declare function sellerSearchSampleApplicationsFulfillments(params: TiktokSellerSearchSampleApplicationsFulfillmentsParams, config: TiktokConfig): Promise>; /** * Review a sample application submitted by a creator. * * Enables sellers to approve or reject a sample application, including optional feedback message. * * @returns A promise resolving to the review result. * Endpoint: `POST /affiliate_seller/202409/sample_applications/{application_id}/review` */ export declare function sellerReviewSampleApplications(params: TiktokSellerReviewSampleApplicationsParams, config: TiktokConfig): Promise>; /** * Get current sample rules for open collaborations. * * Retrieves defined sample offer requirements for creators in open collaborations. * * @returns A promise resolving to the sample rules. * Endpoint: `GET /affiliate_seller/202410/open_collaborations/sample_rules` */ export declare function getOpenCollaborationSampleRules(query: TiktokGetOpenCollaborationSampleRulesQuery, config: TiktokConfig): Promise>; /** * Search submitted sample applications. * * Enables sellers to find sample applications using filtering criteria via query and body payload. * * @returns A promise resolving to the list of sample applications. * Endpoint: `POST /affiliate_seller/202409/sample_applications/search` */ export declare function sellerSearchSampleApplications(params: TiktokSellerSearchSampleApplicationsParams, config: TiktokConfig): Promise>; /** * Edit sample rules for open collaborations. * * Sellers modify eligibility requirements, sample limits, or content expectations via this API. * * @returns A promise resolving to the updated rule configuration. * Endpoint: `POST /affiliate_seller/202410/open_collaborations/sample_rules` */ export declare function editOpenCollaborationSampleRule(body: TiktokEditOpenCollaborationSampleRuleBody, config: TiktokConfig): Promise>; /** * Remove a target collaboration. * * Deletes an existing target collaboration specified by its ID. * * @returns A promise confirming the removal. * Endpoint: `DELETE /affiliate_seller/202409/target_collaborations/{target_collaboration_id}` */ export declare function removeTargetCollaboration(target_collaboration_id: string, config: TiktokConfig): Promise>; /** * Search target collaborations. * * Filters and retrieves target collaborations based on the provided criteria in query and body. * * @returns A promise resolving to the list of target collaborations. * Endpoint: `POST /affiliate_seller/202409/target_collaborations/search` */ export declare function searchTargetCollaborations(params: TiktokSearchTargetCollaborationsParams, config: TiktokConfig): Promise>; /** * Update a target collaboration. * * Modifies attributes of an existing target collaboration identified by its ID. * * @returns A promise resolving to the updated collaboration details. * Endpoint: `PUT /affiliate_seller/202409/target_collaborations/{target_collaboration_id}` */ export declare function updateTargetCollaboration(params: TiktokUpdateTargetCollaborationParams, config: TiktokConfig): Promise>; /** * Get open collaboration settings. * * Retrieves current configuration settings for open collaborations. * * @returns A promise resolving to the settings data. * Endpoint: `GET /affiliate_seller/202409/open_collaboration_settings` */ export declare function getOpenCollaborationSettings(config: TiktokConfig): Promise>; /** * Remove a product from open collaboration. * * Deletes a product listing from open collaboration offerings using the product ID. * * @returns A promise confirming removal success. * Endpoint: `DELETE /affiliate_seller/202409/open_collaborations/products/{product_id}` */ export declare function removeOpenCollaboration(product_id: string, config: TiktokConfig): Promise>; /** * Get details of a target collaboration. * * Fetches complete information about a target collaboration using its unique ID. * * @returns A promise resolving to the target collaboration details. * Endpoint: `GET /affiliate_seller/202412/target_collaborations/{target_collaboration_id}` */ export declare function queryTargetCollaborationDetail(target_collaboration_id: string, config: TiktokConfig): Promise>; /** * Get creator content detail in open collaborations. * * Retrieves submitted content by creators involved in active open collaboration campaigns. * * @returns A promise resolving to the creator content details. * Endpoint: `GET /affiliate_seller/202412/open_collaborations/creator_content_details` */ export declare function getOpenCollaborationCreatorContentDetail(query: TiktokGetOpenCollaborationCreatorContentDetailQuery, config: TiktokConfig): Promise>; /** * Search open collaborations. * * Allows sellers to browse open collaboration campaigns using filtering options via body and query. * * @returns A promise resolving to the list of open collaborations. * Endpoint: `POST /affiliate_seller/202412/open_collaborations/search` */ export declare function searchOpenCollaboration(params: TiktokSearchOpenCollaborationParams, config: TiktokConfig): Promise>; /** * Create an open collaboration campaign. * * Sellers launch a public collaboration invitation for creators by defining campaign details in the request body. * * @returns A promise resolving to the newly created collaboration. * Endpoint: `POST /affiliate_seller/202412/open_collaborations` */ export declare function createOpenCollaboration(body: TiktokCreateOpenCollaborationBody, config: TiktokConfig): Promise>; /** * Get messages within a conversation. * * Retrieves message history from a conversation between seller and creator based on conversation ID. * * @returns A promise resolving to the conversation messages. * Endpoint: `GET /affiliate_seller/202412/conversation/{conversation_id}/messages` */ export declare function getMessageInTheConversation(params: TiktokGetMessageInTheConversationParams, config: TiktokConfig): Promise>; /** * Get list of active conversations. * * Provides a paginated list of seller-creator conversations with optional filters via query and body. * * @returns A promise resolving to the list of conversations. * Endpoint: `GET /affiliate_seller/202412/conversations` */ export declare function getConversationList(params: TiktokGetConversationListParams, config: TiktokConfig): Promise>; /** * Send a message in a conversation thread. * * Allows sellers to send a new message to a creator within an existing conversation. * * @returns A promise resolving to the sent message confirmation. * Endpoint: `POST /affiliate_seller/202412/conversations/{conversation_id}/messages` */ export declare function sendImMessage(params: TiktokSendImMessageParams, config: TiktokConfig): Promise>; /** * Start a direct conversation with a creator. * * Initiates a new messaging thread with a creator to discuss affiliate collaboration opportunities. * * @returns A promise resolving to the newly created conversation. * Endpoint: `POST /affiliate_seller/202412/conversations` */ export declare function createConversationWithCreator(body: TiktokCreateConversationWithCreatorBody, config: TiktokConfig): Promise>; /** * Mark messages as read in a conversation. * * Updates the message status in a specific conversation so that unread messages are acknowledged. * * @returns A promise confirming the read status update. * Endpoint: `POST /affiliate_seller/202412/conversatons/read` */ export declare function markConversationRead(body: TiktokMarkConversationReadBody, config: TiktokConfig): Promise>; /** * Get the latest unread messages across all conversations. * * Returns the most recent unread messages received by the seller from various creators. * * @returns A promise resolving to a list of unread messages. * Endpoint: `GET /affiliate_seller/202412/conversations/messages/list/newest` */ export declare function getLatestUnreadMessages(config: TiktokConfig): Promise>; /** * Search for creators on the affiliate marketplace. * * Filters and retrieves creator profiles based on search parameters including demographics, performance, and niches. * * @returns A promise resolving to the list of matching creators. * Endpoint: `POST /affiliate_seller/202412/conversations/messages/list/newest` */ export declare function sellerSearchCreatorOnMarketplace(params: TiktokSellerSearchCreatorOnMarketplaceParams, config: TiktokConfig): Promise>; /** * Get performance data of a marketplace creator. * * Retrieves creator metrics such as conversion rates, engagement, and sales to evaluate potential collaboration. * * @returns A promise resolving to the creator's performance report. * Endpoint: `GET /affiliate_seller/202505/marketplace_creators/{creator_user_id}` */ export declare function getMarketplaceCreatorPerformance(creator_user_id: string, config: TiktokConfig): Promise>;