/** * CDN Provider API Endpoints Configuration * Cloudflare, AWS CloudFront, and Fastly CDN cache invalidation endpoints * * Third-party providers for CDN cache management * Supports: Cache purging/invalidation, health checks */ /** * Cloudflare CDN endpoints - Zone-based cache purging * API v4 for cache management * @see https://developers.cloudflare.com/api/operations/zone-purge */ export declare const cloudflareEndpoints: { /** * POST /zones/{zoneId}/purge_cache - Purge files from cache * Purge specific files or all files in a zone * Rate limits may change; see official documentation for current limits: * https://developers.cloudflare.com/api/operations/zone-purge#rate-limits * * @param {string} zoneId - Cloudflare Zone ID * @returns {object} response - Purge result with success status */ readonly cloudflarePurgeCache: { readonly url: "/zones/:zoneId/purge_cache"; readonly method: "POST"; readonly cacheTime: 0; }; }; /** * AWS CloudFront endpoints - Distribution-based invalidation * REST API for cache invalidation * @see https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateInvalidation.html */ export declare const cloudFrontEndpoints: { /** * POST /{apiVersion}/distribution/{distributionId}/invalidation - Create invalidation * Creates an invalidation batch for specified paths * Rate limits may change; see the official AWS documentation for current limits: * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html * Requires AWS Signature Version 4 authentication * * @param {string} distributionId - CloudFront Distribution ID * @returns {object} response - Invalidation result with ID and status */ readonly cloudFrontCreateInvalidation: { readonly url: "/2020-05-31/distribution/:distributionId/invalidation"; readonly method: "POST"; readonly cacheTime: 0; }; }; /** * Fastly CDN endpoints - URL-based purging * API for instant cache purging * @see https://developer.fastly.com/reference/api/purging/ */ export declare const fastlyEndpoints: { /** * POST /service/{serviceId}/purge/{url} - Purge single URL * Instant soft-purge of specific URL * Rate limit: Unlimited soft-purges. Hard-purges are limited to 1000 requests per hour per service (as of 2024-06). See Fastly documentation for updates: * @see https://developer.fastly.com/reference/api/purging/#rate-limits * * @param {string} serviceId - Fastly Service ID * @param {string} url - URL to purge (URL-encoded) * @returns {object} response - Purge result with status */ readonly fastlyPurgeUrl: { readonly url: "/service/:serviceId/purge/:url"; readonly method: "POST"; readonly cacheTime: 0; }; }; /** * ALL CDN endpoints combined */ export declare const cdnEndpoints: { /** * POST /service/{serviceId}/purge/{url} - Purge single URL * Instant soft-purge of specific URL * Rate limit: Unlimited soft-purges. Hard-purges are limited to 1000 requests per hour per service (as of 2024-06). See Fastly documentation for updates: * @see https://developer.fastly.com/reference/api/purging/#rate-limits * * @param {string} serviceId - Fastly Service ID * @param {string} url - URL to purge (URL-encoded) * @returns {object} response - Purge result with status */ readonly fastlyPurgeUrl: { readonly url: "/service/:serviceId/purge/:url"; readonly method: "POST"; readonly cacheTime: 0; }; /** * POST /{apiVersion}/distribution/{distributionId}/invalidation - Create invalidation * Creates an invalidation batch for specified paths * Rate limits may change; see the official AWS documentation for current limits: * https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html * Requires AWS Signature Version 4 authentication * * @param {string} distributionId - CloudFront Distribution ID * @returns {object} response - Invalidation result with ID and status */ readonly cloudFrontCreateInvalidation: { readonly url: "/2020-05-31/distribution/:distributionId/invalidation"; readonly method: "POST"; readonly cacheTime: 0; }; /** * POST /zones/{zoneId}/purge_cache - Purge files from cache * Purge specific files or all files in a zone * Rate limits may change; see official documentation for current limits: * https://developers.cloudflare.com/api/operations/zone-purge#rate-limits * * @param {string} zoneId - Cloudflare Zone ID * @returns {object} response - Purge result with success status */ readonly cloudflarePurgeCache: { readonly url: "/zones/:zoneId/purge_cache"; readonly method: "POST"; readonly cacheTime: 0; }; }; //# sourceMappingURL=cdn.d.ts.map