import { APIResource } from '../resource.js'; import { APIPromise } from '../api-promise.js'; import type { RequestOptions } from '../internal/request-options.js'; export declare class ImageSources extends APIResource { /** * This endpoint allows users to create image source. * * @param {ImageSourceCreateParams} body - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} 200 * * @example * ```ts * const imageSource = await client.imageSources.create({ * type: 'webfolder', * webfolder: { base_url: 'https://www.google.com' }, * namespace: 'google-demo', * }); * ``` */ create(body: ImageSourceCreateParams, options?: RequestOptions): APIPromise; /** * This endpoint list image sources which are assigned to the user or token. * * Pagination uses `page_number` / `page_size`. Use `next_page_token` for cursor-based pagination. * * @param {ImageSourceListParams} [query] - The parameters to send with the request. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} List all image sources * * @example * ```ts * const imageSource = await client.imageSources.list({ * page_number: 1, * page_size: 20, * }); * ``` */ list(query?: ImageSourceListParams | null | undefined, options?: RequestOptions): APIPromise; /** * Get all details about image source. * * @param {string} imageSourceID - Image source id. You can get it on Gumlet dashboard or using list sources API endpoint. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} * * @example * ```ts * const imageSource = await client.imageSources.retrieve('imageSourceId'); * ``` */ retrieve(imageSourceID: string, options?: RequestOptions): APIPromise; /** * Update settings on an image source that already exists. This does not create a source or purge cached images. * * @param {string} imageSourceID - image source id which you want to update * @param {ImageSourceUpdateParams} [body] - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} 200 * * @example * ```ts * const imageSource = await client.imageSources.update('imageSourceId'); * ``` */ update(imageSourceID: string, body?: ImageSourceUpdateParams | null | undefined, options?: RequestOptions): APIPromise; /** * This endpoint removes a image source. All image delivery using this subdomain will be stopped. * * @param {string} imageSourceID - Image source ID to delete. You can get this on Gumlet dashboard or in list source API. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} * * @example * ```ts * const imageSource = await client.imageSources.delete('imageSourceId'); * ``` */ delete(imageSourceID: string, options?: RequestOptions): APIPromise; /** * You can purge cache for any image by using our cache purge API. * * @param {string} subdomain - Subdomain is same subdomain you created while creating source. If you serve image from example.gumlet.com, please enter only 'example' for this parameter. * @param {ImageSourcePurgeCacheParams} [body] - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} 200 * * @example * ```ts * const imageSource = await client.imageSources.purgeCache('subdomain'); * ``` * * @deprecated */ purgeCache(subdomain: string, body?: ImageSourcePurgeCacheParams | null | undefined, options?: RequestOptions): APIPromise; /** * You can purge the cache for any image path by using this cache purge API. * * @param {string} sourceID - Image Source ID * @param {ImageSourcePurgeParams} body - The request body to send. * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} Successful response * * @example * ```ts * const imageSource = await client.imageSources.purge('sourceId', { paths: ['image.jpeg', 'image2.png'] }); * ``` */ purge(sourceID: string, body: ImageSourcePurgeParams, options?: RequestOptions): APIPromise; } export interface ImageSourceCreateParams { /** * unique subdomain associated with the image source */ namespace: string; type: 'proxy' | 'webfolder' | 'aws' | 'gcs' | 'dostorage' | 'wasabi' | 'cloudinary' | 'azure' | 'linode' | 'backblaze' | 'cloudflare' | 'zoom'; /** * This is a required field if source type is aws. */ aws?: ImageSourceCreateParams.Aws; /** * This is a required field if source type is proxy. */ proxy?: ImageSourceCreateParams.Proxy; /** * This is a required field if source type is gcs. */ gcs?: ImageSourceCreateParams.Gcs; /** * This is a required field if source type is dostorage. */ dostorage?: ImageSourceCreateParams.Dostorage; /** * This is a required field if source type is wasabi. */ wasabi?: ImageSourceCreateParams.Wasabi; /** * This is a required field if source type is cloudinary. */ cloudinary?: ImageSourceCreateParams.Cloudinary; /** * This is a required field if source type is azure. */ azure?: ImageSourceCreateParams.Azure; /** * This is a required field if source type is linode. */ linode?: ImageSourceCreateParams.Linode; /** * This is a required field if source type is backblaze. */ backblaze?: ImageSourceCreateParams.Backblaze; /** * This is a required field if source type is cloudflare. */ cloudflare?: ImageSourceCreateParams.Cloudflare; webfolder?: ImageSourceCreateParams.Webfolder; } export declare namespace ImageSourceCreateParams { interface Aws { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; endpoint?: string; } interface Proxy { whitelisted_domains: string; } interface Gcs { bucket_name: string; service_account_key: string; } interface Dostorage { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Wasabi { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Cloudinary { host_name: string; cloud_name: string; } interface Azure { azure_account_name: string; azure_container_name: string; azure_shared_token: string; azure_path: string; } interface Linode { bucket_name: string; bucket_region: string; access_key: string; secret: string; } interface Backblaze { bucket_name: string; access_key: string; secret: string; /** * bucket_region or endpoint */ bucket_region?: string; /** * bucket_region or endpoint */ endpoint?: string; base_path?: string; } interface Cloudflare { bucket_name: string; access_key: string; account_id: string; secret: string; base_path?: string; } interface Webfolder { base_url?: string; } } export interface ImageSourceCreateResponse { /** * Image source ID */ id?: string; /** * Souce namespace */ namespace?: string; /** * Source type */ type?: string; /** * CDN cache time in seconds */ cdn_cache_time?: number; canonical_url?: boolean; /** * Browser cache time in seconds */ browser_cache_time?: number; is_cloudfront?: boolean; /** * Source created timestamp in ISO 8601 * @format date-time */ created_at?: string; /** * Source updated timestamp in ISO 8601 * @format date-time */ updated_at?: string; webfolder?: ImageSourceCreateResponse.Webfolder; default_params?: ImageSourceCreateResponse.DefaultParams; subdomain?: string; /** * Boolean flag indicating if source is active */ is_active?: boolean; } export declare namespace ImageSourceCreateResponse { interface Webfolder { base_url?: string; } interface DefaultParams { format?: string; compress?: string; } } export interface ImageSourceListParams { /** * Page number to retrieve. Starts at `1`. * @default 1 * @minimum 1 */ page_number?: number; /** * Number of items to return per page. **Default: `20`**. **Maximum: `100`**. * @minimum 1 * @maximum 100 */ page_size?: number; /** * Cursor for the next page. Pass the `next_page_token` value returned in the previous response. * @pattern ^[a-fA-F0-9]{24}$ */ next_page_token?: string; } export interface ImageSourceListResponse { all_sources?: Array; /** * Cursor for the next page when more results exist. Empty string when there is no next page. */ next_page_token?: string; /** * Page size used for this response when it differs from the default. */ page_size?: number; /** * Total number of image sources available */ total_count?: number; } export declare namespace ImageSourceListResponse { interface AllSource { /** * Image source ID */ id: string; /** * Source namespace (i.e. subdomain of gumlet.io) */ namespace: string; /** * Source type */ type?: string | null; /** * Created at timestamo in ISO 8601 * @format date-time */ created_at?: string; /** * Updated at timestamo in ISO 8601 * @format date-time */ updated_at?: string; aws?: AllSource.Aws; webfolder?: AllSource.Webfolder; /** * Custom domains assigned to this source. */ cname?: Array; wasabi?: AllSource.Wasabi; gcs?: AllSource.Gcs; wordpress?: AllSource.Wordpress; backblaze?: AllSource.Backblaze; hetzner?: AllSource.Hetzner; dostorage?: AllSource.Dostorage; azure?: AllSource.Azure; linode?: AllSource.Linode; cloudinary?: AllSource.Cloudinary; } namespace AllSource { interface Aws { bucket_name?: string; bucket_region?: string; access_key?: string; secret?: string; base_path?: string; } interface Webfolder { base_url: string; } interface Wasabi { bucket_name: string; base_path?: string; } interface Gcs { bucket_name: string; base_path?: string; } interface Wordpress { website_url: string; } interface Backblaze { bucket_name: string; base_path?: string; } interface Hetzner { bucket_name?: string; base_path?: string; } interface Dostorage { bucket_name: string; base_path?: string; } interface Azure { azure_account_name: string; azure_path: string; azure_container_name?: string; } interface Linode { bucket_name: string; bucket_region: string; } interface Cloudinary { cloud_name: string; } } } export interface ImageSourceRetrieveResponse { /** * Image source ID */ id: string; /** * Source namespace (i.e. subdomain of gumlet.io) */ namespace: string; type: 'dostorage' | 'aws' | 'wasabi' | 'hetzner' | 'backblaze' | 'webfolder' | 'gcs' | 'azure' | 'cloudflare' | 'imgix' | 'cloudinary' | 'proxy' | 'wordpress' | 'linode'; /** * CDN cache time in seconds */ cdn_cache_time?: number; canonical_url?: boolean; /** * Browser cache time in seconds */ browser_cache_time?: number; is_cloudfront?: boolean; /** * Created timestamp in ISO 8601 * @format date-time */ created_at?: string; /** * Updated timestamp in ISO 8601 * @format date-time */ updated_at?: string; /** * This is a required field if source type is webfolder. */ webfolder?: ImageSourceRetrieveResponse.Webfolder; /** * This is a required field if source type is aws. */ aws?: ImageSourceRetrieveResponse.Aws; /** * This is a required field if source type is proxy. */ proxy?: ImageSourceRetrieveResponse.Proxy; /** * This is a required field if source type is gcs. */ gcs?: ImageSourceRetrieveResponse.Gcs; /** * This is a required field if source type is dostorage. */ dostorage?: ImageSourceRetrieveResponse.Dostorage; /** * This is a required field if source type is wasabi. */ wasabi?: ImageSourceRetrieveResponse.Wasabi; /** * This is a required field if source type is linode. */ linode?: ImageSourceRetrieveResponse.Linode; /** * This is a required field if source type is backblaze. */ backblaze?: ImageSourceRetrieveResponse.Backblaze; /** * This is a required field if source type is cloudflare. */ cloudflare?: ImageSourceRetrieveResponse.Cloudflare; /** * This is a required field if source type is cloudinary. */ cloudinary?: ImageSourceRetrieveResponse.Cloudinary; /** * This is a required field if source type is azure. */ azure?: ImageSourceRetrieveResponse.Azure; default_params?: Record; request_headers?: Array>; subdomain?: string; is_active?: boolean; /** * Gives information if signed URLs are enabled. */ secure_urls?: boolean; /** * This is the token that you can use to sign URLs. */ secure_token?: string; imgix?: Record; hetzner?: Record; fallback_origins?: Array; wordpress?: ImageSourceRetrieveResponse.Wordpress; response_headers?: Array>; temp_cname?: Array; } export declare namespace ImageSourceRetrieveResponse { interface Webfolder { base_url?: string; } interface Aws { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; endpoint?: string; } interface Proxy { whitelisted_domains: string; } interface Gcs { bucket_name: string; service_account_key: string; } interface Dostorage { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Wasabi { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Linode { bucket_name: string; bucket_region: string; access_key: string; secret: string; } interface Backblaze { bucket_name: string; access_key: string; secret: string; /** * bucket_region or endpoint */ bucket_region?: string; /** * bucket_region or endpoint */ endpoint?: string; base_path?: string; } interface Cloudflare { bucket_name: string; access_key: string; account_id: string; secret: string; base_path?: string; } interface Cloudinary { host_name: string; cloud_name: string; } interface Azure { azure_account_name: string; azure_container_name: string; azure_shared_token: string; azure_path: string; } interface FallbackOrigin { name: string; type: 'dostorage' | 'aws' | 'wasabi' | 'hetzner' | 'backblaze' | 'webfolder' | 'gcs' | 'azure' | 'cloudflare' | 'imgix' | 'cloudinary' | 'proxy' | 'wordpress' | 'linode'; conditions?: Array; replace_operation?: FallbackOrigin.ReplaceOperation; /** * This is a required field if source type is webfolder. */ webfolder?: FallbackOrigin.Webfolder; /** * This is a required field if source type is aws. */ aws?: FallbackOrigin.Aws; /** * This is a required field if source type is proxy. */ proxy?: FallbackOrigin.Proxy; /** * This is a required field if source type is gcs. */ gcs?: FallbackOrigin.Gcs; /** * This is a required field if source type is dostorage. */ dostorage?: FallbackOrigin.Dostorage; /** * This is a required field if source type is wasabi. */ wasabi?: FallbackOrigin.Wasabi; /** * This is a required field if source type is linode. */ linode?: FallbackOrigin.Linode; /** * This is a required field if source type is backblaze. */ backblaze?: FallbackOrigin.Backblaze; /** * This is a required field if source type is cloudflare. */ cloudflare?: FallbackOrigin.Cloudflare; /** * This is a required field if source type is cloudinary. */ cloudinary?: FallbackOrigin.Cloudinary; /** * This is a required field if source type is azure. */ azure?: FallbackOrigin.Azure; _id?: string; hetzner?: Record; imgix?: Record; } namespace FallbackOrigin { interface Condition { function: string; value: string; } interface ReplaceOperation { from?: string; to?: string; } interface Webfolder { base_url?: string; } interface Aws { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; endpoint?: string; } interface Proxy { whitelisted_domains: string; } interface Gcs { bucket_name: string; service_account_key: string; } interface Dostorage { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Wasabi { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Linode { bucket_name: string; bucket_region: string; access_key: string; secret: string; } interface Backblaze { bucket_name: string; access_key: string; secret: string; /** * bucket_region or endpoint */ bucket_region?: string; /** * bucket_region or endpoint */ endpoint?: string; base_path?: string; } interface Cloudflare { bucket_name: string; access_key: string; account_id: string; secret: string; base_path?: string; } interface Cloudinary { host_name: string; cloud_name: string; } interface Azure { azure_account_name: string; azure_container_name: string; azure_shared_token: string; azure_path: string; } } interface Wordpress { website_url: string; } } export interface ImageSourceUpdateParams { type?: 'proxy' | 'direct-upload' | 'webfolder' | 'aws' | 'gcs' | 'dostorage' | 'wasabi' | 'cloudinary' | 'azure' | 'linode' | 'backblaze' | 'cloudflare' | 'imgix' | 'wordpress' | 'hetzner'; /** * This is a required field if source type is webfolder. */ webfolder?: ImageSourceUpdateParams.Webfolder; /** * This is a required field if source type is aws. */ aws?: ImageSourceUpdateParams.Aws; /** * This is a required field if source type is proxy. */ proxy?: ImageSourceUpdateParams.Proxy; /** * This is a required field if source type is gcs. */ gcs?: ImageSourceUpdateParams.Gcs; /** * This is a required field if source type is dostorage. */ dostorage?: ImageSourceUpdateParams.Dostorage; /** * This is a required field if source type is wasabi. */ wasabi?: ImageSourceUpdateParams.Wasabi; /** * This is a required field if source type is linode. */ linode?: ImageSourceUpdateParams.Linode; /** * This is a required field if source type is backblaze. */ backblaze?: ImageSourceUpdateParams.Backblaze; /** * This is a required field if source type is cloudflare. */ cloudflare?: ImageSourceUpdateParams.Cloudflare; /** * This is a required field if source type is cloudinary. */ cloudinary?: ImageSourceUpdateParams.Cloudinary; /** * This is a required field if source type is azure. */ azure?: ImageSourceUpdateParams.Azure; default_params?: Record; /** * URL for error image to display when we get broken image from your origin. */ error_image?: string; request_headers?: Array>; response_headers?: Array>; temp_cname?: Array; /** * Browser cache time in seconds. For example setting this to 3600 caches the image in browser for 3600 seconds (1 hour) * @format int32 */ browser_cache_time?: number; /** * CDN cache time in seconds. * @format int32 */ cdn_cache_time?: number; /** * Enable / disable source. */ is_active?: boolean; /** * List of verified CNAMEs */ cname?: Array; /** * List of fallback origins */ fallback_origins?: Array; /** * Whether the URL signing is enabled */ secure_urls?: boolean; } export declare namespace ImageSourceUpdateParams { interface Webfolder { base_url?: string; } interface Aws { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; endpoint?: string; } interface Proxy { whitelisted_domains: string; } interface Gcs { bucket_name: string; service_account_key: string; } interface Dostorage { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Wasabi { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Linode { bucket_name: string; bucket_region: string; access_key: string; secret: string; } interface Backblaze { bucket_name: string; access_key: string; secret: string; /** * bucket_region or endpoint */ bucket_region?: string; /** * bucket_region or endpoint */ endpoint?: string; base_path?: string; } interface Cloudflare { bucket_name: string; access_key: string; account_id: string; secret: string; base_path?: string; } interface Cloudinary { host_name: string; cloud_name: string; } interface Azure { azure_account_name: string; azure_container_name: string; azure_shared_token: string; azure_path: string; } interface FallbackOrigin { /** * Name of fallback */ name: string; /** * Type of fallback origin */ type: 'dostorage' | 'aws' | 'wasabi' | 'hetzner' | 'backblaze' | 'webfolder' | 'gcs' | 'azure' | 'cloudflare' | 'imgix' | 'cloudinary' | 'proxy' | 'wordpress' | 'linode'; conditions?: Array; replace_operation?: FallbackOrigin.ReplaceOperation; /** * This is a required field if source type is webfolder. */ webfolder?: FallbackOrigin.Webfolder; /** * This is a required field if source type is aws. */ aws?: FallbackOrigin.Aws; /** * This is a required field if source type is proxy. */ proxy?: FallbackOrigin.Proxy; /** * This is a required field if source type is gcs. */ gcs?: FallbackOrigin.Gcs; /** * This is a required field if source type is dostorage. */ dostorage?: FallbackOrigin.Dostorage; /** * This is a required field if source type is wasabi. */ wasabi?: FallbackOrigin.Wasabi; /** * This is a required field if source type is linode. */ linode?: FallbackOrigin.Linode; /** * This is a required field if source type is backblaze. */ backblaze?: FallbackOrigin.Backblaze; /** * This is a required field if source type is cloudflare. */ cloudflare?: FallbackOrigin.Cloudflare; /** * This is a required field if source type is cloudinary. */ cloudinary?: FallbackOrigin.Cloudinary; /** * This is a required field if source type is azure. */ azure?: FallbackOrigin.Azure; } namespace FallbackOrigin { interface Condition { function: string; value: string; } interface ReplaceOperation { from?: string; to?: string; } interface Webfolder { base_url?: string; } interface Aws { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; endpoint?: string; } interface Proxy { whitelisted_domains: string; } interface Gcs { bucket_name: string; service_account_key: string; } interface Dostorage { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Wasabi { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Linode { bucket_name: string; bucket_region: string; access_key: string; secret: string; } interface Backblaze { bucket_name: string; access_key: string; secret: string; /** * bucket_region or endpoint */ bucket_region?: string; /** * bucket_region or endpoint */ endpoint?: string; base_path?: string; } interface Cloudflare { bucket_name: string; access_key: string; account_id: string; secret: string; base_path?: string; } interface Cloudinary { host_name: string; cloud_name: string; } interface Azure { azure_account_name: string; azure_container_name: string; azure_shared_token: string; azure_path: string; } } } export interface ImageSourceUpdateResponse { type: 'dostorage' | 'aws' | 'wasabi' | 'hetzner' | 'backblaze' | 'webfolder' | 'gcs' | 'azure' | 'cloudflare' | 'imgix' | 'cloudinary' | 'proxy' | 'wordpress' | 'linode'; /** * Image source ID */ id?: string; /** * Source namespace */ namespace?: string; /** * CDN cache time in seconds */ cdn_cache_time?: number; canonical_url?: boolean; /** * Browser cache time in seconds */ browser_cache_time?: number; is_cloudfront?: boolean; /** * @format date-time */ created_at?: string; /** * @format date-time */ updated_at?: string; /** * This is a required field if source type is webfolder. */ webfolder?: ImageSourceUpdateResponse.Webfolder; /** * This is a required field if source type is aws. */ aws?: ImageSourceUpdateResponse.Aws; /** * This is a required field if source type is proxy. */ proxy?: ImageSourceUpdateResponse.Proxy; fallback_origins?: Array; /** * This is a required field if source type is gcs. */ gcs?: ImageSourceUpdateResponse.Gcs; /** * This is a required field if source type is dostorage. */ dostorage?: ImageSourceUpdateResponse.Dostorage; /** * This is a required field if source type is wasabi. */ wasabi?: ImageSourceUpdateResponse.Wasabi; /** * This is a required field if source type is linode. */ linode?: ImageSourceUpdateResponse.Linode; /** * This is a required field if source type is backblaze. */ backblaze?: ImageSourceUpdateResponse.Backblaze; /** * This is a required field if source type is cloudflare. */ cloudflare?: ImageSourceUpdateResponse.Cloudflare; /** * This is a required field if source type is cloudinary. */ cloudinary?: ImageSourceUpdateResponse.Cloudinary; /** * This is a required field if source type is azure. */ azure?: ImageSourceUpdateResponse.Azure; default_params?: Record; request_headers?: Array>; subdomain?: string; is_active?: boolean; secure_urls?: boolean; secure_token?: string; response_headers?: Array>; imgix?: Record; temp_cname?: Array; } export declare namespace ImageSourceUpdateResponse { interface Webfolder { base_url?: string; } interface Aws { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; endpoint?: string; } interface Proxy { whitelisted_domains: string; } interface FallbackOrigin { name: string; type: 'dostorage' | 'aws' | 'wasabi' | 'hetzner' | 'backblaze' | 'webfolder' | 'gcs' | 'azure' | 'cloudflare' | 'imgix' | 'cloudinary' | 'proxy' | 'wordpress' | 'linode'; conditions?: Array; replace_operation?: FallbackOrigin.ReplaceOperation; /** * This is a required field if source type is webfolder. */ webfolder?: FallbackOrigin.Webfolder; /** * This is a required field if source type is aws. */ aws?: FallbackOrigin.Aws; /** * This is a required field if source type is proxy. */ proxy?: FallbackOrigin.Proxy; /** * This is a required field if source type is gcs. */ gcs?: FallbackOrigin.Gcs; /** * This is a required field if source type is dostorage. */ dostorage?: FallbackOrigin.Dostorage; /** * This is a required field if source type is wasabi. */ wasabi?: FallbackOrigin.Wasabi; /** * This is a required field if source type is linode. */ linode?: FallbackOrigin.Linode; /** * This is a required field if source type is backblaze. */ backblaze?: FallbackOrigin.Backblaze; /** * This is a required field if source type is cloudflare. */ cloudflare?: FallbackOrigin.Cloudflare; /** * This is a required field if source type is cloudinary. */ cloudinary?: FallbackOrigin.Cloudinary; /** * This is a required field if source type is azure. */ azure?: FallbackOrigin.Azure; _id?: string; hetzner?: Record; imgix?: Record; } namespace FallbackOrigin { interface ReplaceOperation { from?: string; to?: string; } interface Webfolder { base_url?: string; } interface Aws { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; endpoint?: string; } interface Proxy { whitelisted_domains: string; } interface Gcs { bucket_name: string; service_account_key: string; } interface Dostorage { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Wasabi { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Linode { bucket_name: string; bucket_region: string; access_key: string; secret: string; } interface Backblaze { bucket_name: string; access_key: string; secret: string; /** * bucket_region or endpoint */ bucket_region?: string; /** * bucket_region or endpoint */ endpoint?: string; base_path?: string; } interface Cloudflare { bucket_name: string; access_key: string; account_id: string; secret: string; base_path?: string; } interface Cloudinary { host_name: string; cloud_name: string; } interface Azure { azure_account_name: string; azure_container_name: string; azure_shared_token: string; azure_path: string; } } interface Gcs { bucket_name: string; service_account_key: string; } interface Dostorage { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Wasabi { bucket_name: string; bucket_region: string; access_key: string; secret: string; base_path?: string; } interface Linode { bucket_name: string; bucket_region: string; access_key: string; secret: string; } interface Backblaze { bucket_name: string; access_key: string; secret: string; /** * bucket_region or endpoint */ bucket_region?: string; /** * bucket_region or endpoint */ endpoint?: string; base_path?: string; } interface Cloudflare { bucket_name: string; access_key: string; account_id: string; secret: string; base_path?: string; } interface Cloudinary { host_name: string; cloud_name: string; } interface Azure { azure_account_name: string; azure_container_name: string; azure_shared_token: string; azure_path: string; } } export type ImageSourceDeleteResponse = Record; export interface ImageSourcePurgeCacheParams { /** * An array of path of images to purge. It should be provided without any query parameters. */ paths?: Array; } export interface ImageSourcePurgeCacheResponse { status: string; } export interface ImageSourcePurgeParams { /** * An array of path of images to purge. It should be provided without any query parameters. */ paths: Array; } export interface ImageSourcePurgeResponse { status: string; } export declare namespace ImageSources { export { type ImageSourceCreateResponse as ImageSourceCreateResponse, type ImageSourceListResponse as ImageSourceListResponse, type ImageSourceRetrieveResponse as ImageSourceRetrieveResponse, type ImageSourceUpdateResponse as ImageSourceUpdateResponse, type ImageSourceDeleteResponse as ImageSourceDeleteResponse, type ImageSourcePurgeCacheResponse as ImageSourcePurgeCacheResponse, type ImageSourcePurgeResponse as ImageSourcePurgeResponse, type ImageSourceCreateParams as ImageSourceCreateParams, type ImageSourceListParams as ImageSourceListParams, type ImageSourceUpdateParams as ImageSourceUpdateParams, type ImageSourcePurgeCacheParams as ImageSourcePurgeCacheParams, type ImageSourcePurgeParams as ImageSourcePurgeParams, }; } //# sourceMappingURL=image-sources.d.ts.map