import { APIResource } from "../../core/resource.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class Assets extends APIResource { /** * Associate an uploaded asset with a product. The asset must have been previously * uploaded using the upload URL endpoint. * * @example * ```ts * const response = await client.products.assets.associate( * '123e4567-e89b-12d3-a456-426614174000', * { key: 'product-image-1.jpg' }, * ); * ``` */ associate(id: string, body: AssetAssociateParams, options?: RequestOptions): APIPromise; /** * Generate a pre-signed URL for uploading product assets (images, videos, * documents). The URL expires after 1 hour and allows direct upload to cloud * storage. * * @example * ```ts * const response = * await client.products.assets.generateUploadURL( * '123e4567-e89b-12d3-a456-426614174000', * { key: 'product-image-1.jpg' }, * ); * ``` */ generateUploadURL(id: string, body: AssetGenerateUploadURLParams, options?: RequestOptions): APIPromise; } /** * Response schema for adding an asset to a product */ export interface AssetAssociateResponse { /** * Unique identifier for the product */ id: string; /** * List of assets associated with the product */ assets: Array; /** * Unique identifier of the brand that owns the product */ brandId: string; /** * The call-to-action text for the product */ callToAction: string; /** * ISO 8601 timestamp of when the product was created */ createdAt: string; /** * A detailed description of the product */ description: string; /** * Key phrases that must be included in influencer content */ mandatoryPhrases: Array; /** * The name of the product */ name: string; /** * ISO 8601 timestamp of when the product was last updated */ updatedAt: string; /** * The URL where customers can purchase or learn more about the product */ url: string; /** * Guidelines for what influencers should NOT say about the product */ whatNotToSay: string; /** * Guidelines for what influencers should say about the product */ whatToSay: string; } /** * Response schema for generating a pre-signed upload URL for product assets */ export interface AssetGenerateUploadURLResponse { /** * Time in seconds until the upload URL expires */ expiresIn: number; /** * Pre-signed URL for uploading the asset */ url: string; } export interface AssetAssociateParams { /** * The key/filename for the asset to be uploaded. Must be between 1 and 255 * characters. */ key: string; } export interface AssetGenerateUploadURLParams { /** * The key/filename for the asset to be uploaded. Must be between 1 and 255 * characters. */ key: string; } export declare namespace Assets { export { type AssetAssociateResponse as AssetAssociateResponse, type AssetGenerateUploadURLResponse as AssetGenerateUploadURLResponse, type AssetAssociateParams as AssetAssociateParams, type AssetGenerateUploadURLParams as AssetGenerateUploadURLParams, }; } //# sourceMappingURL=assets.d.mts.map