import { APIResource } from "../../core/resource.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class Deliverables extends APIResource { /** * Retrieve all deliverables associated with a specific campaign. This includes * product details, pricing, and marketing guidelines that influencers will use for * content creation. * * @example * ```ts * const deliverables = * await client.campaigns.deliverables.list( * '123e4567-e89b-12d3-a456-426614174000', * ); * ``` */ list(id: string, options?: RequestOptions): APIPromise; /** * Accept a deliverable associated with a specific campaign. * * @example * ```ts * const response = await client.campaigns.deliverables.accept( * '456e7890-e12b-34c5-d678-901234567890', * { id: '123e4567-e89b-12d3-a456-426614174000' }, * ); * ``` */ accept(deliverableID: string, params: DeliverableAcceptParams, options?: RequestOptions): APIPromise; /** * Reject a deliverable associated with a specific campaign. * * @example * ```ts * const response = await client.campaigns.deliverables.reject( * '456e7890-e12b-34c5-d678-901234567890', * { * id: '123e4567-e89b-12d3-a456-426614174000', * rejectReason: * 'Content does not meet brand guidelines. Please ensure proper logo placement and adjust lighting.', * }, * ); * ``` */ reject(deliverableID: string, params: DeliverableRejectParams, options?: RequestOptions): APIPromise; } /** * List of deliverables for a campaign */ export type DeliverableListResponse = Array; export declare namespace DeliverableListResponse { /** * Complete deliverable information */ interface DeliverableListResponseItem { /** * Unique identifier for the deliverable */ id: string; /** * Unique identifier of the campaign this deliverable belongs to */ campaignId: string; /** * Type of content being delivered */ contentType: 'post' | 'story' | 'reel' | 'video' | 'live'; /** * URL link to the published deliverable (Instagram, TikTok, YouTube, etc.) */ deliverableLink: string | null; /** * S3 key for the deliverable file */ fileUrl: string | null; /** * Unique identifier of the influencer who created this deliverable */ influencerId: string; /** * Additional notes about the deliverable */ notes: string | null; /** * Social media platform where the content will be published */ platform: 'instagram' | 'youtube' | 'tiktok' | 'facebook' | 'twitter'; /** * Reason for rejection if the deliverable was rejected */ rejectReason: string | null; /** * ISO 8601 timestamp of when the deliverable was last reviewed by admin or brand */ reviewedAt: string | null; /** * Current status of the deliverable */ status: 'pending' | 'pending_admin_approval' | 'pending_brand_approval' | 'approved' | 'rejected'; /** * ISO 8601 timestamp of when the deliverable was uploaded */ uploadedAt: string; /** * Profile picture URL of the influencer */ influencerAvatar?: string | null; /** * Handle of the influencer who created this deliverable */ influencerHandle?: string; /** * Name of the influencer who created this deliverable */ influencerName?: string; } } /** * Response schema for approving campaign deliverables */ export interface DeliverableAcceptResponse { /** * ID of the deliverable that was approved */ approvedId: string; /** * Confirmation message */ message: string; } /** * Response schema for rejecting campaign deliverables */ export interface DeliverableRejectResponse { /** * Confirmation message */ message: string; /** * ID of the deliverable that was rejected */ rejectedId: string; /** * Reason provided for the rejection */ rejectReason: string; } export interface DeliverableAcceptParams { /** * Unique identifier of the campaign */ id: string; } export interface DeliverableRejectParams { /** * Path param: Unique identifier of the campaign */ id: string; /** * Body param: Reason for rejecting the deliverables. Must be between 1 and 500 * characters. */ rejectReason: string; } export declare namespace Deliverables { export { type DeliverableListResponse as DeliverableListResponse, type DeliverableAcceptResponse as DeliverableAcceptResponse, type DeliverableRejectResponse as DeliverableRejectResponse, type DeliverableAcceptParams as DeliverableAcceptParams, type DeliverableRejectParams as DeliverableRejectParams, }; } //# sourceMappingURL=deliverables.d.mts.map