import { z } from 'zod'; import { I as Item, a as ItemCreateRequest, b as ItemUpdateRequest } from './item-DNCZNa4O.js'; export { c as ItemShipping, d as ItemVariation } from './item-DNCZNa4O.js'; export { A as AutoApprovePolicy, F as FetchLabelsInput, H as HitlConfig, a as HitlContext, b as HitlDecision, c as HitlOpKind, d as HitlRejectedError, L as LabelFormat, R as RequireConfirmation, S as Shipment, e as ShipmentHistoryEntry, f as ShipmentItem, g as ShipmentLogisticType, h as ShipmentMode, i as ShipmentReceiverAddress, j as ShipmentStatus, k as ShippingOption, l as ShippingOptionsResponse, m as classifyHitlSeverity, n as denyAllAutoApprove, o as fetchLabelsBlob, p as getShipment, q as getShipmentHistory, r as getShippingOptions } from './shipments-Bruwee4L.js'; import { ArAgentsError } from '@ar-agents/core'; import { M as MeliClient } from './client-CQBMd2Qk.js'; export { A as AuthMode, B as BuildAuthUrlInput, F as FetchOptions, I as InMemoryOAuthStore, a as MeliClientOptions, b as MeliOAuthTokens, N as NoopRateLimiter, O as OAuthAppCredentials, c as OAuthTokenStore, R as RateLimiter, d as RetryClassifier, e as RetryContext, f as RetryDecision, g as RetryOptions, T as TelemetryHooks, h as TelemetryRateLimitEvent, i as TelemetryRequestEvent, j as TelemetryResponseEvent, k as TelemetryRetryEvent, l as TokenBucketOptions, m as TokenBucketRateLimiter, n as buildAuthorizationUrl, o as defaultRetryClassifier, p as ensureAccessToken, q as exchangeAuthorizationCode, r as fetchWithRetry, s as generateRequestId, t as noopTelemetry, u as refreshTokens, v as sleep, w as withRetry } from './client-CQBMd2Qk.js'; declare const SiteId: z.ZodEnum<{ MLA: "MLA"; MLB: "MLB"; MLM: "MLM"; MLC: "MLC"; MCO: "MCO"; MLU: "MLU"; MPE: "MPE"; }>; type SiteId = z.infer; declare const Currency: z.ZodEnum<{ ARS: "ARS"; BRL: "BRL"; MXN: "MXN"; CLP: "CLP"; COP: "COP"; UYU: "UYU"; PEN: "PEN"; USD: "USD"; }>; type Currency = z.infer; declare const MeliItemId: z.ZodString; type MeliItemId = z.infer; declare const CategoryId: z.ZodString; type CategoryId = z.infer; declare const ListingType: z.ZodEnum<{ free: "free"; bronze: "bronze"; silver: "silver"; gold: "gold"; gold_premium: "gold_premium"; gold_special: "gold_special"; gold_pro: "gold_pro"; }>; type ListingType = z.infer; declare const ItemStatus: z.ZodEnum<{ active: "active"; paused: "paused"; closed: "closed"; under_review: "under_review"; inactive: "inactive"; payment_required: "payment_required"; not_yet_active: "not_yet_active"; }>; type ItemStatus = z.infer; declare const PagingResponse: z.ZodObject<{ total: z.ZodNumber; offset: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; type PagingResponse = z.infer; declare const ScrollPagingResponse: z.ZodObject<{ total: z.ZodNumber; scroll_id: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; type ScrollPagingResponse = z.infer; declare const Picture: z.ZodObject<{ id: z.ZodOptional; url: z.ZodOptional; secure_url: z.ZodOptional; size: z.ZodOptional; max_size: z.ZodOptional; quality: z.ZodOptional; }, z.core.$strip>; type Picture = z.infer; declare const ItemAttribute: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; value_id: z.ZodOptional>; value_name: z.ZodOptional>; value_struct: z.ZodOptional; unit: z.ZodOptional; }, z.core.$strip>>>; attribute_group_id: z.ZodOptional; attribute_group_name: z.ZodOptional; }, z.core.$strip>; type ItemAttribute = z.infer; declare const CategoryPrediction: z.ZodObject<{ category_id: z.ZodString; category_name: z.ZodString; domain_id: z.ZodOptional; domain_name: z.ZodOptional; prediction_probability: z.ZodOptional; attributes: z.ZodOptional; value_id: z.ZodOptional>; value_name: z.ZodOptional>; value_struct: z.ZodOptional; unit: z.ZodOptional; }, z.core.$strip>>>; attribute_group_id: z.ZodOptional; attribute_group_name: z.ZodOptional; }, z.core.$strip>>>; category_path: z.ZodOptional>>; }, z.core.$strip>; type CategoryPrediction = z.infer; declare const DomainDiscoveryResult: z.ZodObject<{ domain_id: z.ZodString; domain_name: z.ZodString; category_id: z.ZodString; category_name: z.ZodString; attributes: z.ZodOptional>; value_name: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; type DomainDiscoveryResult = z.infer; declare const TechnicalSpecAttribute: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; hierarchy: z.ZodOptional; relevance: z.ZodOptional; required: z.ZodOptional; values: z.ZodOptional; name: z.ZodOptional; metadata: z.ZodOptional>; }, z.core.$strip>>>; value_type: z.ZodOptional; value_max_length: z.ZodOptional; tags: z.ZodOptional>; }, z.core.$strip>; type TechnicalSpecAttribute = z.infer; declare const TechnicalSpecResponse: z.ZodObject<{ groups: z.ZodArray; components: z.ZodArray; hierarchy: z.ZodOptional; relevance: z.ZodOptional; required: z.ZodOptional; values: z.ZodOptional; name: z.ZodOptional; metadata: z.ZodOptional>; }, z.core.$strip>>>; value_type: z.ZodOptional; value_max_length: z.ZodOptional; tags: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; type TechnicalSpecResponse = z.infer; declare const CategoryMetadata: z.ZodObject<{ id: z.ZodString; name: z.ZodString; picture: z.ZodOptional>; permalink: z.ZodOptional>; total_items_in_this_category: z.ZodOptional; path_from_root: z.ZodOptional>>; children_categories: z.ZodOptional>>; attribute_types: z.ZodOptional; attributes: z.ZodOptional; hierarchy: z.ZodOptional; relevance: z.ZodOptional; required: z.ZodOptional; values: z.ZodOptional; name: z.ZodOptional; metadata: z.ZodOptional>; }, z.core.$strip>>>; value_type: z.ZodOptional; value_max_length: z.ZodOptional; tags: z.ZodOptional>; }, z.core.$strip>>>; settings: z.ZodOptional>; }, z.core.$strip>; type CategoryMetadata = z.infer; declare const QuestionStatus: z.ZodEnum<{ ANSWERED: "ANSWERED"; UNANSWERED: "UNANSWERED"; CLOSED_UNANSWERED: "CLOSED_UNANSWERED"; UNDER_REVIEW: "UNDER_REVIEW"; BANNED: "BANNED"; DELETED: "DELETED"; DISABLED: "DISABLED"; }>; type QuestionStatus = z.infer; declare const Answer: z.ZodObject<{ text: z.ZodString; status: z.ZodOptional>; date_created: z.ZodOptional; }, z.core.$strip>; type Answer = z.infer; declare const Question: z.ZodObject<{ id: z.ZodNumber; date_created: z.ZodString; item_id: z.ZodString; seller_id: z.ZodNumber; status: z.ZodEnum<{ ANSWERED: "ANSWERED"; UNANSWERED: "UNANSWERED"; CLOSED_UNANSWERED: "CLOSED_UNANSWERED"; UNDER_REVIEW: "UNDER_REVIEW"; BANNED: "BANNED"; DELETED: "DELETED"; DISABLED: "DISABLED"; }>; text: z.ZodString; answer: z.ZodOptional>; date_created: z.ZodOptional; }, z.core.$strip>>>; deleted_from_listing: z.ZodOptional; hold: z.ZodOptional; from: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; type Question = z.infer; declare const QuestionsSearchResponse: z.ZodObject<{ questions: z.ZodArray; text: z.ZodString; answer: z.ZodOptional>; date_created: z.ZodOptional; }, z.core.$strip>>>; deleted_from_listing: z.ZodOptional; hold: z.ZodOptional; from: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; total: z.ZodNumber; limit: z.ZodOptional; offset: z.ZodOptional; filters: z.ZodOptional; available_filters: z.ZodOptional; available_sorts: z.ZodOptional; }, z.core.$strip>; type QuestionsSearchResponse = z.infer; declare const AnswerRequest: z.ZodObject<{ question_id: z.ZodNumber; text: z.ZodString; }, z.core.$strip>; type AnswerRequest = z.infer; declare const QuestionSpamFeatures: z.ZodObject<{ asker_account_age_days: z.ZodOptional; asker_answered_questions: z.ZodOptional; contains_external_contact: z.ZodBoolean; cross_listing_repetition: z.ZodBoolean; text_length: z.ZodNumber; }, z.core.$strip>; type QuestionSpamFeatures = z.infer; declare const OrderStatus: z.ZodEnum<{ payment_required: "payment_required"; paid: "paid"; confirmed: "confirmed"; cancelled: "cancelled"; payment_in_process: "payment_in_process"; partially_paid: "partially_paid"; invalid: "invalid"; }>; type OrderStatus = z.infer; declare const OrderItem: z.ZodObject<{ item: z.ZodObject<{ id: z.ZodString; title: z.ZodString; category_id: z.ZodOptional; variation_id: z.ZodOptional>>; seller_custom_field: z.ZodOptional>; variation_attributes: z.ZodOptional; }, z.core.$strip>>>; warranty: z.ZodOptional>; condition: z.ZodOptional>; }, z.core.$strip>; quantity: z.ZodNumber; unit_price: z.ZodNumber; full_unit_price: z.ZodOptional; currency_id: z.ZodEnum<{ ARS: "ARS"; BRL: "BRL"; MXN: "MXN"; CLP: "CLP"; COP: "COP"; UYU: "UYU"; PEN: "PEN"; USD: "USD"; }>; manufacturing_days: z.ZodOptional>; sale_fee: z.ZodOptional>; listing_type_id: z.ZodOptional; }, z.core.$strip>; type OrderItem = z.infer; declare const OrderPayment: z.ZodObject<{ id: z.ZodUnion; status: z.ZodOptional>; status_detail: z.ZodOptional>; transaction_amount: z.ZodOptional; total_paid_amount: z.ZodOptional; currency_id: z.ZodOptional>; payer_id: z.ZodOptional; installments: z.ZodOptional; payment_method_id: z.ZodOptional; payment_type: z.ZodOptional; date_approved: z.ZodOptional>; date_created: z.ZodOptional; }, z.core.$strip>; type OrderPayment = z.infer; declare const OrderBuyer: z.ZodObject<{ id: z.ZodNumber; nickname: z.ZodOptional; first_name: z.ZodOptional>; last_name: z.ZodOptional>; email: z.ZodOptional>; billing_info: z.ZodOptional>; doc_number: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; type OrderBuyer = z.infer; declare const Order: z.ZodObject<{ id: z.ZodNumber; date_created: z.ZodString; date_closed: z.ZodOptional; last_updated: z.ZodOptional; expiration_date: z.ZodOptional>; status: z.ZodEnum<{ payment_required: "payment_required"; paid: "paid"; confirmed: "confirmed"; cancelled: "cancelled"; payment_in_process: "payment_in_process"; partially_paid: "partially_paid"; invalid: "invalid"; }>; status_detail: z.ZodOptional>; total_amount: z.ZodNumber; paid_amount: z.ZodOptional>; currency_id: z.ZodEnum<{ ARS: "ARS"; BRL: "BRL"; MXN: "MXN"; CLP: "CLP"; COP: "COP"; UYU: "UYU"; PEN: "PEN"; USD: "USD"; }>; pack_id: z.ZodOptional>; pickup_id: z.ZodOptional>; fulfilled: z.ZodOptional; shipping: z.ZodOptional>; }, z.core.$strip>>; order_items: z.ZodArray; variation_id: z.ZodOptional>>; seller_custom_field: z.ZodOptional>; variation_attributes: z.ZodOptional; }, z.core.$strip>>>; warranty: z.ZodOptional>; condition: z.ZodOptional>; }, z.core.$strip>; quantity: z.ZodNumber; unit_price: z.ZodNumber; full_unit_price: z.ZodOptional; currency_id: z.ZodEnum<{ ARS: "ARS"; BRL: "BRL"; MXN: "MXN"; CLP: "CLP"; COP: "COP"; UYU: "UYU"; PEN: "PEN"; USD: "USD"; }>; manufacturing_days: z.ZodOptional>; sale_fee: z.ZodOptional>; listing_type_id: z.ZodOptional; }, z.core.$strip>>; payments: z.ZodOptional; status: z.ZodOptional>; status_detail: z.ZodOptional>; transaction_amount: z.ZodOptional; total_paid_amount: z.ZodOptional; currency_id: z.ZodOptional>; payer_id: z.ZodOptional; installments: z.ZodOptional; payment_method_id: z.ZodOptional; payment_type: z.ZodOptional; date_approved: z.ZodOptional>; date_created: z.ZodOptional; }, z.core.$strip>>>; buyer: z.ZodObject<{ id: z.ZodNumber; nickname: z.ZodOptional; first_name: z.ZodOptional>; last_name: z.ZodOptional>; email: z.ZodOptional>; billing_info: z.ZodOptional>; doc_number: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; seller: z.ZodOptional; }, z.core.$strip>>; feedback: z.ZodOptional>; tags: z.ZodOptional>; manufacturing_ending_date: z.ZodOptional>; application_id: z.ZodOptional; context: z.ZodOptional; site: z.ZodOptional; flows: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; type Order = z.infer; declare const OrdersSearchResponse: z.ZodObject<{ results: z.ZodArray; last_updated: z.ZodOptional; expiration_date: z.ZodOptional>; status: z.ZodEnum<{ payment_required: "payment_required"; paid: "paid"; confirmed: "confirmed"; cancelled: "cancelled"; payment_in_process: "payment_in_process"; partially_paid: "partially_paid"; invalid: "invalid"; }>; status_detail: z.ZodOptional>; total_amount: z.ZodNumber; paid_amount: z.ZodOptional>; currency_id: z.ZodEnum<{ ARS: "ARS"; BRL: "BRL"; MXN: "MXN"; CLP: "CLP"; COP: "COP"; UYU: "UYU"; PEN: "PEN"; USD: "USD"; }>; pack_id: z.ZodOptional>; pickup_id: z.ZodOptional>; fulfilled: z.ZodOptional; shipping: z.ZodOptional>; }, z.core.$strip>>; order_items: z.ZodArray; variation_id: z.ZodOptional>>; seller_custom_field: z.ZodOptional>; variation_attributes: z.ZodOptional; }, z.core.$strip>>>; warranty: z.ZodOptional>; condition: z.ZodOptional>; }, z.core.$strip>; quantity: z.ZodNumber; unit_price: z.ZodNumber; full_unit_price: z.ZodOptional; currency_id: z.ZodEnum<{ ARS: "ARS"; BRL: "BRL"; MXN: "MXN"; CLP: "CLP"; COP: "COP"; UYU: "UYU"; PEN: "PEN"; USD: "USD"; }>; manufacturing_days: z.ZodOptional>; sale_fee: z.ZodOptional>; listing_type_id: z.ZodOptional; }, z.core.$strip>>; payments: z.ZodOptional; status: z.ZodOptional>; status_detail: z.ZodOptional>; transaction_amount: z.ZodOptional; total_paid_amount: z.ZodOptional; currency_id: z.ZodOptional>; payer_id: z.ZodOptional; installments: z.ZodOptional; payment_method_id: z.ZodOptional; payment_type: z.ZodOptional; date_approved: z.ZodOptional>; date_created: z.ZodOptional; }, z.core.$strip>>>; buyer: z.ZodObject<{ id: z.ZodNumber; nickname: z.ZodOptional; first_name: z.ZodOptional>; last_name: z.ZodOptional>; email: z.ZodOptional>; billing_info: z.ZodOptional>; doc_number: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; seller: z.ZodOptional; }, z.core.$strip>>; feedback: z.ZodOptional>; tags: z.ZodOptional>; manufacturing_ending_date: z.ZodOptional>; application_id: z.ZodOptional; context: z.ZodOptional; site: z.ZodOptional; flows: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; paging: z.ZodObject<{ total: z.ZodNumber; offset: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; type OrdersSearchResponse = z.infer; declare const Pack: z.ZodObject<{ id: z.ZodNumber; status: z.ZodString; orders: z.ZodArray>; }, z.core.$strip>>; shipment: z.ZodOptional>; }, z.core.$strip>; type Pack = z.infer; declare const ClaimStage: z.ZodEnum<{ cancelled: "cancelled"; claim: "claim"; dispute: "dispute"; mediation: "mediation"; resolved: "resolved"; }>; type ClaimStage = z.infer; declare const ClaimStatus: z.ZodEnum<{ closed: "closed"; opened: "opened"; expired: "expired"; potential_claim: "potential_claim"; }>; type ClaimStatus = z.infer; declare const ClaimReason: z.ZodObject<{ id: z.ZodString; name: z.ZodString; detail: z.ZodOptional; }, z.core.$strip>; type ClaimReason = z.infer; declare const ClaimPlayer: z.ZodObject<{ role: z.ZodEnum<{ complainant: "complainant"; respondent: "respondent"; mediator: "mediator"; }>; type: z.ZodEnum<{ buyer: "buyer"; seller: "seller"; ml: "ml"; }>; user_id: z.ZodNumber; available_actions: z.ZodOptional>; }, z.core.$strip>; type ClaimPlayer = z.infer; declare const Claim: z.ZodObject<{ id: z.ZodNumber; resource: z.ZodEnum<{ order: "order"; shipment: "shipment"; payment: "payment"; }>; resource_id: z.ZodNumber; status: z.ZodEnum<{ closed: "closed"; opened: "opened"; expired: "expired"; potential_claim: "potential_claim"; }>; stage: z.ZodEnum<{ cancelled: "cancelled"; claim: "claim"; dispute: "dispute"; mediation: "mediation"; resolved: "resolved"; }>; parent_id: z.ZodOptional>; type: z.ZodOptional; reason_id: z.ZodOptional; reason: z.ZodOptional; }, z.core.$strip>>; fulfilled: z.ZodOptional; quantity_type: z.ZodOptional; date_created: z.ZodString; last_updated: z.ZodOptional; resolution: z.ZodOptional>; decision: z.ZodOptional>; benefited: z.ZodOptional>; date_created: z.ZodOptional; }, z.core.$strip>>>; players: z.ZodOptional; type: z.ZodEnum<{ buyer: "buyer"; seller: "seller"; ml: "ml"; }>; user_id: z.ZodNumber; available_actions: z.ZodOptional>; }, z.core.$strip>>>; related_entities: z.ZodOptional>; site_id: z.ZodOptional; }, z.core.$strip>; type Claim = z.infer; declare const EvidenceType: z.ZodEnum<{ PROOF_OF_SHIPMENT: "PROOF_OF_SHIPMENT"; ITEM_DESCRIPTION_VS_RECEIVED: "ITEM_DESCRIPTION_VS_RECEIVED"; VIDEO_OF_PRODUCT: "VIDEO_OF_PRODUCT"; INVOICE: "INVOICE"; MESSAGE_THREAD: "MESSAGE_THREAD"; DELIVERY_PROOF: "DELIVERY_PROOF"; RETURN_PROOF: "RETURN_PROOF"; OTHER: "OTHER"; }>; type EvidenceType = z.infer; declare const ClaimEvidence: z.ZodObject<{ id: z.ZodOptional; type: z.ZodEnum<{ PROOF_OF_SHIPMENT: "PROOF_OF_SHIPMENT"; ITEM_DESCRIPTION_VS_RECEIVED: "ITEM_DESCRIPTION_VS_RECEIVED"; VIDEO_OF_PRODUCT: "VIDEO_OF_PRODUCT"; INVOICE: "INVOICE"; MESSAGE_THREAD: "MESSAGE_THREAD"; DELIVERY_PROOF: "DELIVERY_PROOF"; RETURN_PROOF: "RETURN_PROOF"; OTHER: "OTHER"; }>; text: z.ZodOptional; attachment_url: z.ZodOptional; attachment_id: z.ZodOptional; date_created: z.ZodOptional; }, z.core.$strip>; type ClaimEvidence = z.infer; declare const EvidenceUploadRequest: z.ZodObject<{ evidence_type: z.ZodEnum<{ PROOF_OF_SHIPMENT: "PROOF_OF_SHIPMENT"; ITEM_DESCRIPTION_VS_RECEIVED: "ITEM_DESCRIPTION_VS_RECEIVED"; VIDEO_OF_PRODUCT: "VIDEO_OF_PRODUCT"; INVOICE: "INVOICE"; MESSAGE_THREAD: "MESSAGE_THREAD"; DELIVERY_PROOF: "DELIVERY_PROOF"; RETURN_PROOF: "RETURN_PROOF"; OTHER: "OTHER"; }>; text: z.ZodOptional; attachment_id: z.ZodOptional; }, z.core.$strip>; type EvidenceUploadRequest = z.infer; declare const ClaimMessage: z.ZodObject<{ id: z.ZodOptional; date: z.ZodOptional; sender_role: z.ZodOptional>; sender_user_id: z.ZodOptional; message: z.ZodString; attachments: z.ZodOptional; name: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; type ClaimMessage = z.infer; declare const ReputationLevel: z.ZodEnum<{ "5_green": "5_green"; "4_light_green": "4_light_green"; "3_yellow": "3_yellow"; "2_orange": "2_orange"; "1_red": "1_red"; newbie: "newbie"; }>; type ReputationLevel = z.infer; declare const PowerSellerStatus: z.ZodNullable>; type PowerSellerStatus = z.infer; declare const ReputationMetric: z.ZodObject<{ rate: z.ZodOptional; value: z.ZodOptional; }, z.core.$strip>; type ReputationMetric = z.infer; declare const ReputationMetrics: z.ZodObject<{ claims: z.ZodOptional; value: z.ZodOptional; period: z.ZodOptional; excluded: z.ZodOptional; }, z.core.$strip>>; delayed_handling_time: z.ZodOptional; value: z.ZodOptional; period: z.ZodOptional; }, z.core.$strip>>; cancellations: z.ZodOptional; value: z.ZodOptional; period: z.ZodOptional; }, z.core.$strip>>; sales: z.ZodOptional; completed: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; type ReputationMetrics = z.infer; declare const SellerReputation: z.ZodObject<{ level_id: z.ZodOptional>>; power_seller_status: z.ZodOptional>>; protection_end_date: z.ZodOptional>; status: z.ZodOptional; codes: z.ZodOptional>; }, z.core.$strip>>; buy: z.ZodOptional; codes: z.ZodOptional>; }, z.core.$strip>>; sell: z.ZodOptional; codes: z.ZodOptional>; }, z.core.$strip>>; billing: z.ZodOptional; codes: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; transactions: z.ZodOptional; completed: z.ZodOptional; period: z.ZodOptional; ratings: z.ZodOptional; neutral: z.ZodOptional; positive: z.ZodOptional; }, z.core.$strip>>; total: z.ZodOptional; }, z.core.$strip>>; metrics: z.ZodOptional; value: z.ZodOptional; period: z.ZodOptional; excluded: z.ZodOptional; }, z.core.$strip>>; delayed_handling_time: z.ZodOptional; value: z.ZodOptional; period: z.ZodOptional; }, z.core.$strip>>; cancellations: z.ZodOptional; value: z.ZodOptional; period: z.ZodOptional; }, z.core.$strip>>; sales: z.ZodOptional; completed: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; type SellerReputation = z.infer; declare const ReputationAlertSeverity: z.ZodEnum<{ info: "info"; warning: "warning"; critical: "critical"; }>; type ReputationAlertSeverity = z.infer; declare const ReputationAlert: z.ZodObject<{ severity: z.ZodEnum<{ info: "info"; warning: "warning"; critical: "critical"; }>; title: z.ZodString; detail: z.ZodString; metric: z.ZodOptional; current_value: z.ZodOptional; threshold: z.ZodOptional; }, z.core.$strip>; type ReputationAlert = z.infer; declare const PromotionType: z.ZodEnum<{ DEAL: "DEAL"; DOD: "DOD"; LIGHTNING: "LIGHTNING"; SMART: "SMART"; PRICE_DISCOUNT: "PRICE_DISCOUNT"; SELLER_COUPON_CAMPAIGN: "SELLER_COUPON_CAMPAIGN"; MARKETPLACE_CAMPAIGN: "MARKETPLACE_CAMPAIGN"; PRICE_MATCHING: "PRICE_MATCHING"; UNHEALTHY_STOCK: "UNHEALTHY_STOCK"; VOLUME: "VOLUME"; PRE_NEGOTIATED: "PRE_NEGOTIATED"; }>; type PromotionType = z.infer; declare const PromotionCandidate: z.ZodObject<{ promotion_id: z.ZodString; promotion_type: z.ZodUnion, z.ZodString]>; start_date: z.ZodOptional; finish_date: z.ZodOptional; suggested_discount_percentage: z.ZodOptional>; max_discount_percentage: z.ZodOptional>; min_discount_percentage: z.ZodOptional>; items: z.ZodOptional; suggested_price: z.ZodOptional>; max_price: z.ZodOptional>; min_price: z.ZodOptional>; currency_id: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; type PromotionCandidate = z.infer; declare const PromotionOptInRequest: z.ZodObject<{ promotion_id: z.ZodString; promotion_type: z.ZodOptional, z.ZodString]>>; deal_price: z.ZodNumber; }, z.core.$strip>; type PromotionOptInRequest = z.infer; declare const PromotionOptInResponse: z.ZodObject<{ id: z.ZodString; status: z.ZodOptional>; promotion_id: z.ZodOptional; deal_price: z.ZodOptional; original_price: z.ZodOptional; }, z.core.$strip>; type PromotionOptInResponse = z.infer; declare const MeliWebhookTopic: z.ZodEnum<{ questions: "questions"; payments: "payments"; orders: "orders"; claims: "claims"; items: "items"; orders_v2: "orders_v2"; marketplace_orders: "marketplace_orders"; items_prices: "items_prices"; messages: "messages"; shipments: "shipments"; fbm_stock_operations: "fbm_stock_operations"; stock_locations: "stock_locations"; public_offers: "public_offers"; public_candidates: "public_candidates"; item_competition_status: "item_competition_status"; catalog_suggestions: "catalog_suggestions"; orders_feedback: "orders_feedback"; leads_credits: "leads_credits"; vis_leads: "vis_leads"; post_purchase: "post_purchase"; marketplace_questions: "marketplace_questions"; marketplace_messages: "marketplace_messages"; marketplace_claims: "marketplace_claims"; marketplace_items: "marketplace_items"; }>; type MeliWebhookTopic = z.infer; declare const MeliWebhookEvent: z.ZodObject<{ _id: z.ZodOptional; resource: z.ZodString; user_id: z.ZodNumber; topic: z.ZodUnion, z.ZodString]>; application_id: z.ZodOptional; attempts: z.ZodOptional; sent: z.ZodOptional; received: z.ZodOptional; actions: z.ZodOptional>; }, z.core.$strip>; type MeliWebhookEvent = z.infer; declare const MissedFeed: z.ZodObject<{ resource: z.ZodString; user_id: z.ZodNumber; topic: z.ZodUnion, z.ZodString]>; application_id: z.ZodOptional; sent: z.ZodOptional; attempts: z.ZodOptional; }, z.core.$strip>; type MissedFeed = z.infer; declare const MissedFeedsResponse: z.ZodArray, z.ZodString]>; application_id: z.ZodOptional; sent: z.ZodOptional; attempts: z.ZodOptional; }, z.core.$strip>>; type MissedFeedsResponse = z.infer; /** Common base. */ declare abstract class MeliError extends ArAgentsError { abstract readonly code: string; constructor(message: string, init?: { retryable?: boolean; context?: Record; cause?: unknown; }); } /** Shape of MELI's typical error envelope. The fields are not guaranteed — * legacy endpoints sometimes use `{ status, message }` only, and some * post-purchase routes return `{ error_code, description }`. We extract * both shapes opportunistically. */ interface MeliErrorBody { /** MELI's machine-readable error slug (e.g., "rate_limited", * "forbidden", "validation_error"). */ error?: string; /** Human-readable message MELI returns alongside `error`. */ message?: string; /** Echoed status code (some MELI endpoints duplicate it in the body). */ status?: number; /** Multi-issue causes — typically array of `{ code, message }` for * validation failures on `createItem` / `updateItem`. */ cause?: Array<{ code?: string | number; message?: string; [k: string]: unknown; }>; } /** A MELI API call returned a non-2xx after retries are exhausted. */ declare class MeliApiError extends MeliError { readonly status: number; readonly url: string; readonly body: unknown; readonly requestId?: string | undefined; readonly code = "meli_api_error"; /** MELI's error slug if present (`error` field on the body). Stable + * documented; safe to switch on in your code. */ readonly meliCode: string | null; /** MELI's human-readable error message if present. */ readonly meliMessage: string | null; /** Multi-issue causes (validation failures usually). */ readonly meliCauses: ReadonlyArray<{ code?: string | number; message?: string; [k: string]: unknown; }>; constructor(message: string, status: number, url: string, body: unknown, requestId?: string | undefined); /** Back-compat — same as `meliCode`. New code should read `meliCode` directly. */ meliErrorCode(): string | null; /** * True if MELI explicitly told us this was a rate-limit hit * (vs. a 429 with no body, or a 5xx). Use this to drive a longer backoff * in your retry loop. */ isRateLimited(): boolean; /** * True if the request hit the seller's permission boundary — typically * because the bearer token doesn't own the resource being addressed. * Don't retry; surface to the user. */ isForbidden(): boolean; /** * True if MELI says this access_token is invalid / expired. * The OAuth flow's `ensureAccessToken` should be re-driven before retrying. */ isUnauthorized(): boolean; /** True if MELI's body identifies this as validation-failure on inputs. */ isValidationError(): boolean; } /** OAuth-related failure (token refresh, callback, etc.). */ declare class MeliAuthError extends MeliError { readonly cause?: unknown | undefined; readonly code = "meli_auth_error"; constructor(message: string, cause?: unknown | undefined); } /** Rate limit hit and retries are exhausted. */ declare class MeliRateLimitError extends MeliError { readonly retryAfterSeconds: number; readonly url: string; readonly code = "meli_rate_limit"; constructor(retryAfterSeconds: number, url: string); } /** The host's network failed (DNS, TLS, fetch threw). */ declare class MeliNetworkError extends MeliError { readonly cause?: unknown | undefined; readonly code = "meli_network_error"; constructor(message: string, cause?: unknown | undefined); } /** A response body failed Zod validation. */ declare class MeliValidationError extends MeliError { readonly issues: unknown; readonly code = "meli_validation_error"; constructor(message: string, issues: unknown); } /** Webhook signature verification failed (where ML supports it). */ declare class MeliWebhookError extends MeliError { readonly detail: "missing_topic" | "missing_resource" | "unknown_topic" | "malformed_body" | "missed_feeds_unauthorized"; readonly code = "meli_webhook_error"; constructor(detail: "missing_topic" | "missing_resource" | "unknown_topic" | "malformed_body" | "missed_feeds_unauthorized", message: string); } /** Convenience type guard. */ declare function isMeliError(e: unknown): e is MeliError; interface GetItemOptions { /** Optionally project a subset of fields via the `attributes` param. */ attributes?: string[]; /** Include catalog data in the response. */ includeCatalog?: boolean; } declare function getItem(client: MeliClient, itemId: string, options?: GetItemOptions): Promise; interface MultigetOptions { /** How many chunks to fetch in parallel. Default 4 — high enough to halve * wall-clock time on a 100-item lookup, low enough that the per-seller * rate limit stays within burst on hot paths. */ concurrency?: number; } declare function multigetItems(client: MeliClient, itemIds: string[], options?: MultigetOptions): Promise; declare function createItem(client: MeliClient, payload: ItemCreateRequest): Promise; declare function updateItem(client: MeliClient, itemId: string, payload: ItemUpdateRequest): Promise; declare function pauseItem(client: MeliClient, itemId: string): Promise; declare function closeItem(client: MeliClient, itemId: string): Promise; declare function relistItem(client: MeliClient, itemId: string, args?: { listing_type_id?: Item["listing_type_id"]; quantity?: number; price?: number; }): Promise; declare const SellerItemsSearchResponse: z.ZodObject<{ paging: z.ZodObject<{ total: z.ZodNumber; offset: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; results: z.ZodArray; scroll_id: z.ZodOptional; }, z.core.$strip>; type SellerItemsSearchResponse = z.infer; interface SearchSellerItemsOptions { /** Status filter. */ status?: "active" | "paused" | "closed" | "all"; /** ISO date filter — items updated after this. */ updatedAfter?: string; /** Sort. */ sort?: "last_updated_desc" | "last_updated_asc"; /** Page size. Default 50. */ limit?: number; /** Continuation token from the previous call. */ scrollId?: string; } declare function searchSellerItems(client: MeliClient, sellerId: number, options?: SearchSellerItemsOptions): Promise; /** * Iterate ALL items for a seller, transparently paging via `scroll_id`. * Yields one item id at a time; the caller decides batching. */ declare function iterateSellerItems(client: MeliClient, sellerId: number, options?: Omit): AsyncGenerator; declare const ItemDescription: z.ZodObject<{ text: z.ZodOptional; plain_text: z.ZodOptional; last_updated: z.ZodOptional; }, z.core.$strip>; type ItemDescription = z.infer; declare function getItemDescription(client: MeliClient, itemId: string): Promise; declare function updateItemDescription(client: MeliClient, itemId: string, description: { plain_text: string; }): Promise; interface PredictCategoryInput { title: string; /** Optional price (currency-aware predictions). */ price?: number | undefined; /** Optional listing condition. */ condition?: "new" | "used" | undefined; } declare function predictCategory(client: MeliClient, site: SiteId, input: PredictCategoryInput): Promise; declare function discoverDomain(client: MeliClient, site: SiteId, query: string, options?: { limit?: number; }): Promise; declare function getDomainTechnicalSpecs(client: MeliClient, domainId: string): Promise; /** * Convenience: classify required attribute ids for a domain. Useful for * an agent flow that wants to ensure mandatory fields are filled BEFORE * trying to publish. */ declare function getRequiredAttributeIds(client: MeliClient, domainId: string): Promise; declare function getCategory(client: MeliClient, categoryId: string): Promise; declare function listSiteCategories(client: MeliClient, site: SiteId): Promise>; interface CategorizeAndPlanResult { prediction: CategoryPrediction; /** All required attribute ids for the predicted domain. */ requiredAttributeIds: string[]; /** Full technical specs (use to render the form / fill via LLM). */ technicalSpecs: TechnicalSpecResponse; } /** * One-shot: take a listing title (+ optional price/condition), predict the * category, fetch required attributes, and return everything needed for an * agent to publish a complete listing. * * This is the core of the "agent publishes a listing in 30 seconds" demo. */ declare function categorizeAndPlan(client: MeliClient, site: SiteId, input: PredictCategoryInput): Promise; interface ListQuestionsOptions { status?: "ANSWERED" | "UNANSWERED" | "CLOSED_UNANSWERED"; itemId?: string; /** Default 50. Max 100 per the docs. */ limit?: number; offset?: number; /** Sort, default `date_created.desc`. */ sort?: "date_created.desc" | "date_created.asc"; } declare function listQuestions(client: MeliClient, sellerId: number, options?: ListQuestionsOptions): Promise; declare function getQuestion(client: MeliClient, questionId: number): Promise; declare const AnswerResponse: z.ZodObject<{ id: z.ZodNumber; text: z.ZodString; status: z.ZodOptional; date_created: z.ZodOptional; }, z.core.$strip>; declare function answerQuestion(client: MeliClient, request: AnswerRequest): Promise>; declare function blacklistAsker(client: MeliClient, sellerId: number, askerUserId: number): Promise; declare function unblockAsker(client: MeliClient, sellerId: number, askerUserId: number): Promise; interface ClassifySpamInput { question: Question; /** Fetched separately when needed (asker history). */ askerProfile?: { answered_questions?: number; account_age_days?: number; }; /** Set of question texts (or hashes) seen across this seller's catalog. */ recentQuestionsByThisAsker?: string[]; } declare function extractSpamFeatures(input: ClassifySpamInput): QuestionSpamFeatures; /** * Score 0..1 — higher is more likely spam. Uses a transparent heuristic so * agents can explain their decision. */ declare function scoreSpam(features: QuestionSpamFeatures): number; type SpamLabel = "spam" | "borderline" | "ham"; declare function classifySpam(input: ClassifySpamInput): { label: SpamLabel; score: number; features: QuestionSpamFeatures; }; interface SearchOrdersOptions { /** Filter by order status. */ status?: "paid" | "confirmed" | "payment_in_process" | "cancelled" | "invalid"; /** Date filter: ISO 8601. */ dateCreatedFrom?: string; dateCreatedTo?: string; dateLastUpdatedFrom?: string; /** Sort. Default `date_desc`. */ sort?: "date_desc" | "date_asc"; limit?: number; offset?: number; /** Tag filter (e.g. `paid`, `not_delivered`). */ tags?: string[]; } declare function searchOrders(client: MeliClient, sellerId: number, options?: SearchOrdersOptions): Promise; declare function getOrder(client: MeliClient, orderId: number): Promise; declare const OrderBillingInfo: z.ZodObject<{ buyer: z.ZodObject<{ billing_info: z.ZodOptional>; doc_number: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>; type OrderBillingInfo = z.infer; declare function getOrderBillingInfo(client: MeliClient, orderId: number): Promise; declare function getPack(client: MeliClient, packId: number): Promise; /** * Given an array of orders, group cart-orders by `pack_id` and return * (single-order, packs) so callers can iterate without double-counting. */ declare function partitionByPack(orders: Order[]): { singleOrders: Order[]; packs: Map; }; declare const ClaimsSearchResponse: z.ZodObject<{ paging: z.ZodObject<{ total: z.ZodNumber; offset: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; data: z.ZodArray; resource_id: z.ZodNumber; status: z.ZodEnum<{ closed: "closed"; opened: "opened"; expired: "expired"; potential_claim: "potential_claim"; }>; stage: z.ZodEnum<{ cancelled: "cancelled"; claim: "claim"; dispute: "dispute"; mediation: "mediation"; resolved: "resolved"; }>; parent_id: z.ZodOptional>; type: z.ZodOptional; reason_id: z.ZodOptional; reason: z.ZodOptional; }, z.core.$strip>>; fulfilled: z.ZodOptional; quantity_type: z.ZodOptional; date_created: z.ZodString; last_updated: z.ZodOptional; resolution: z.ZodOptional>; decision: z.ZodOptional>; benefited: z.ZodOptional>; date_created: z.ZodOptional; }, z.core.$strip>>>; players: z.ZodOptional; type: z.ZodEnum<{ buyer: "buyer"; seller: "seller"; ml: "ml"; }>; user_id: z.ZodNumber; available_actions: z.ZodOptional>; }, z.core.$strip>>>; related_entities: z.ZodOptional>; site_id: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; type ClaimsSearchResponse = z.infer; interface SearchClaimsOptions { stage?: "claim" | "dispute" | "mediation"; status?: "opened" | "closed" | "expired"; resource?: "order" | "shipment" | "payment"; resourceId?: number; limit?: number; offset?: number; } declare function searchClaims(client: MeliClient, options?: SearchClaimsOptions): Promise; declare function getClaim(client: MeliClient, claimId: number): Promise; declare const ClaimEvidenceListResponse: z.ZodObject<{ evidences: z.ZodArray; type: z.ZodEnum<{ PROOF_OF_SHIPMENT: "PROOF_OF_SHIPMENT"; ITEM_DESCRIPTION_VS_RECEIVED: "ITEM_DESCRIPTION_VS_RECEIVED"; VIDEO_OF_PRODUCT: "VIDEO_OF_PRODUCT"; INVOICE: "INVOICE"; MESSAGE_THREAD: "MESSAGE_THREAD"; DELIVERY_PROOF: "DELIVERY_PROOF"; RETURN_PROOF: "RETURN_PROOF"; OTHER: "OTHER"; }>; text: z.ZodOptional; attachment_url: z.ZodOptional; attachment_id: z.ZodOptional; date_created: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; type ClaimEvidenceListResponse = z.infer; declare function listClaimEvidences(client: MeliClient, claimId: number): Promise; /** * Upload evidence to a claim. **Immutable per spec** — once submitted, * cannot be changed. The agent flow should compose all evidence in one * call; rejected submissions cannot be amended without opening a new * claim cycle. */ declare function uploadClaimEvidence(client: MeliClient, claimId: number, payload: EvidenceUploadRequest): Promise; declare const ClaimMessagesResponse: z.ZodObject<{ messages: z.ZodArray; date: z.ZodOptional; sender_role: z.ZodOptional>; sender_user_id: z.ZodOptional; message: z.ZodString; attachments: z.ZodOptional; name: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>; type ClaimMessagesResponse = z.infer; declare function listClaimMessages(client: MeliClient, claimId: number): Promise; declare function postClaimMessage(client: MeliClient, claimId: number, message: string): Promise; declare const ReturnReviewRequest: z.ZodObject<{ decision: z.ZodEnum<{ rejected: "rejected"; accepted: "accepted"; }>; reason: z.ZodOptional; }, z.core.$strip>; type ReturnReviewRequest = z.infer; declare const ReturnReviewResponse: z.ZodObject<{ status: z.ZodString; decision: z.ZodOptional>; date: z.ZodOptional; }, z.core.$strip>; type ReturnReviewResponse = z.infer; declare function reviewReturn(client: MeliClient, returnId: number, payload: ReturnReviewRequest): Promise; interface DefendClaimInput { claimId: number; evidences: EvidenceUploadRequest[]; /** Optional message to post in the mediation thread alongside evidence. */ message?: string; } interface DefendClaimResult { claim: Claim; uploadedEvidences: ClaimEvidence[]; /** Evidences that failed to upload, in the same order they were submitted. * When non-empty, the claim is partially defended — surface this to the * human for manual review. */ failedEvidences: { evidence: EvidenceUploadRequest; error: unknown; }[]; messagePosted: ClaimMessage | null; } /** * The 2-day SLA defender flow. Loads claim metadata, uploads evidences * **sequentially** (NOT in parallel — see below), and optionally posts a * closing message. * * Why sequential. MELI's `/claims/{id}/evidences` endpoint has one-shot * semantics per evidence-type: if N requests land concurrently, MELI may * persist some, reject others as duplicates, or close the evidence window * mid-batch — leaving the claim half-defended with no way to amend. * Sequential uploads cap the blast radius: on failure, we stop and return * the partial state so the caller can decide whether to retry, escalate, or * proceed with the message. * * The cost is latency (~N × 200ms instead of ~200ms). For a typical 3-piece * defence under MELI's 2-day SLA, that's a non-issue. */ declare function defendClaim(client: MeliClient, input: DefendClaimInput): Promise; declare function getSellerReputation(client: MeliClient, sellerId: number): Promise; interface ReputationThresholds { /** Fire `warning` when claim rate >= warningClaimRate. Default 0.04. */ warningClaimRate?: number; /** Fire `critical` when claim rate >= criticalClaimRate. Default 0.07. */ criticalClaimRate?: number; /** Same for delayed handling time. Defaults 0.03 / 0.06. */ warningDelayedHandlingRate?: number; criticalDelayedHandlingRate?: number; /** Cancellation rate. Defaults 0.02 / 0.05. */ warningCancellationRate?: number; criticalCancellationRate?: number; } declare function evaluateReputationAlerts(reputation: SellerReputation, thresholds?: ReputationThresholds): ReputationAlert[]; interface MonitorReputationOptions { /** Poll interval in milliseconds. Default 5 minutes. */ intervalMs?: number; thresholds?: ReputationThresholds; /** AbortSignal to stop the monitor. */ signal?: AbortSignal; /** Callback fired when a transient (recoverable) error is swallowed. Use * this to wire your telemetry/Sentry without breaking the polling loop. */ onTransientError?: (error: unknown) => void; } /** * Yields `{ snapshot, alerts }` on every poll. * * Error handling: * - **`MeliAuthError`** (revoked seller, banned app, OAuth refresh dead) → * RE-THROWN. The connection is permanently broken; the caller needs to * stop polling and surface this to the human. * - **`MeliValidationError`** (programmer error — schema drift) → * RE-THROWN. Bugs should fail loud, not silently. * - **`MeliApiError`** that `isUnauthorized()` / `isForbidden()` (401/403 — * revoked or expired token) → RE-THROWN. The endpoint is dead; polling it * forever is useless. * - **`MeliApiError`** with 5xx, **`MeliNetworkError`**, anything else → * swallowed and reported via `onTransientError`. The loop keeps polling * because transient failures are normal. */ declare function monitorReputation(client: MeliClient, sellerId: number, options?: MonitorReputationOptions): AsyncGenerator<{ snapshot: SellerReputation | null; alerts: ReputationAlert[]; }, void, void>; declare const PromotionCandidatesResponse: z.ZodObject<{ results: z.ZodArray, z.ZodString]>; start_date: z.ZodOptional; finish_date: z.ZodOptional; suggested_discount_percentage: z.ZodOptional>; max_discount_percentage: z.ZodOptional>; min_discount_percentage: z.ZodOptional>; items: z.ZodOptional; suggested_price: z.ZodOptional>; max_price: z.ZodOptional>; min_price: z.ZodOptional>; currency_id: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>; paging: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; type PromotionCandidatesResponse = z.infer; interface ListPromotionCandidatesOptions { promotionType?: "DEAL" | "DOD" | "LIGHTNING" | "SMART" | "PRICE_DISCOUNT" | "SELLER_COUPON_CAMPAIGN" | "MARKETPLACE_CAMPAIGN"; limit?: number; offset?: number; } declare function listPromotionCandidates(client: MeliClient, sellerId: number, options?: ListPromotionCandidatesOptions): Promise; declare function listActivePromotions(client: MeliClient, sellerId: number): Promise; declare function optInPromotion(client: MeliClient, itemId: string, payload: PromotionOptInRequest): Promise; interface MarginGuard { /** Item id → minimum margin we accept (decimal, e.g. 0.15 for 15%). */ minimumMarginByItem?: Record; /** Default minimum margin when item-specific isn't set. Default 0.15. */ defaultMinimumMargin?: number; /** Item id → COGS in major units (used to compute margin from candidate's * suggested_price). When absent, the candidate is SKIPPED (we'd rather * miss revenue than auto-opt-in below cost). */ cogsByItem: Record; } interface AutoOptInResult { optedIn: PromotionOptInResponse[]; skipped: Array<{ itemId: string; promotionId: string; reason: "no_cogs" | "below_margin" | "no_suggested_price"; detail: string; }>; } /** * Iterate candidates and opt-in to those that respect the configured * margin guard. Returns both opted-in items and skipped ones (with reason * codes for telemetry). */ declare function autoOptInPromotions(client: MeliClient, sellerId: number, guard: MarginGuard, options?: ListPromotionCandidatesOptions): Promise; interface ParseWebhookOptions { /** Optional set of topics this app subscribes to. Throws on unknown. */ expectedTopics?: ReadonlyArray; /** Optional application_id to assert. */ expectedApplicationId?: number; } declare function parseWebhook(body: unknown, options?: ParseWebhookOptions): MeliWebhookEvent; declare function extractResourceId(event: MeliWebhookEvent): string | null; interface ReplayMissedFeedsOptions { appId: number; topic: MeliWebhookTopic | string; /** Optional from/to date filters (ISO 8601). */ dateFrom?: string; dateTo?: string; /** Continuation cursor returned by previous call. */ offset?: number; /** Page size, default 50. */ limit?: number; } declare function replayMissedFeeds(client: MeliClient, options: ReplayMissedFeedsOptions): Promise; /** * Iterate ALL missed feeds across topics. For each topic in `topics`, * pages through the feed and yields one event at a time. * * Use this when an app comes back online after >5 minutes of downtime — * it'll replay everything MELI tried to deliver while you were away, * within the 2-day retention window. */ declare function iterateAllMissedFeeds(client: MeliClient, appId: number, topics: ReadonlyArray, dateFrom?: string): AsyncGenerator; export { Answer, AnswerRequest, type AutoOptInResult, type CategorizeAndPlanResult, CategoryId, CategoryMetadata, CategoryPrediction, Claim, ClaimEvidence, ClaimEvidenceListResponse, ClaimMessage, ClaimMessagesResponse, ClaimPlayer, ClaimReason, ClaimStage, ClaimStatus, ClaimsSearchResponse, type ClassifySpamInput, Currency, type DefendClaimInput, type DefendClaimResult, DomainDiscoveryResult, EvidenceType, EvidenceUploadRequest, type GetItemOptions, Item, ItemAttribute, ItemCreateRequest, ItemDescription, ItemStatus, ItemUpdateRequest, type ListPromotionCandidatesOptions, type ListQuestionsOptions, ListingType, type MarginGuard, MeliApiError, MeliAuthError, MeliClient, MeliError, type MeliErrorBody, MeliItemId, MeliNetworkError, MeliRateLimitError, MeliValidationError, MeliWebhookError, MeliWebhookEvent, MeliWebhookTopic, MissedFeed, MissedFeedsResponse, type MonitorReputationOptions, Order, OrderBillingInfo, OrderBuyer, OrderItem, OrderPayment, OrderStatus, OrdersSearchResponse, Pack, PagingResponse, type ParseWebhookOptions, Picture, PowerSellerStatus, type PredictCategoryInput, PromotionCandidate, PromotionCandidatesResponse, PromotionOptInRequest, PromotionOptInResponse, PromotionType, Question, QuestionSpamFeatures, QuestionStatus, QuestionsSearchResponse, type ReplayMissedFeedsOptions, ReputationAlert, ReputationAlertSeverity, ReputationLevel, ReputationMetric, ReputationMetrics, type ReputationThresholds, ReturnReviewRequest, ReturnReviewResponse, ScrollPagingResponse, type SearchClaimsOptions, type SearchOrdersOptions, type SearchSellerItemsOptions, SellerItemsSearchResponse, SellerReputation, SiteId, type SpamLabel, TechnicalSpecAttribute, TechnicalSpecResponse, answerQuestion, autoOptInPromotions, blacklistAsker, categorizeAndPlan, classifySpam, closeItem, createItem, defendClaim, discoverDomain, evaluateReputationAlerts, extractResourceId, extractSpamFeatures, getCategory, getClaim, getDomainTechnicalSpecs, getItem, getItemDescription, getOrder, getOrderBillingInfo, getPack, getQuestion, getRequiredAttributeIds, getSellerReputation, isMeliError, iterateAllMissedFeeds, iterateSellerItems, listActivePromotions, listClaimEvidences, listClaimMessages, listPromotionCandidates, listQuestions, listSiteCategories, monitorReputation, multigetItems, optInPromotion, parseWebhook, partitionByPack, pauseItem, postClaimMessage, predictCategory, relistItem, replayMissedFeeds, reviewReturn, scoreSpam, searchClaims, searchOrders, searchSellerItems, unblockAsker, updateItem, updateItemDescription, uploadClaimEvidence };