@monkeyscanjump/cloudflare-dyndns
Version:
A robust TypeScript application that automatically updates Cloudflare DNS records when your public IP address changes. Perfect for maintaining consistent domain names for home servers, WireGuard VPN, self-hosted services, or any system with a dynamic IP a
39 lines (38 loc) • 1.34 kB
TypeScript
/**
* Centralized configuration for Cloudflare API endpoints and version information
* Provides URL builder functions for accessing different Cloudflare resources
*/
export declare const CloudflareApiConfig: {
/** Base URL for Cloudflare API including the client path */
baseUrl: string;
/** Default API version to use */
version: string;
/**
* API endpoint paths and functions
* Functions construct endpoint paths with required IDs
*/
endpoints: {
/** Get all zones (domains) for the authenticated account */
listZones: string;
/**
* Get all DNS records for a specific zone
* @param zoneId The Cloudflare zone ID
* @returns Formatted endpoint path
*/
listRecords: (zoneId: string) => string;
/**
* Get a specific DNS record
* @param zoneId The Cloudflare zone ID
* @param recordId The DNS record ID
* @returns Formatted endpoint path
*/
getRecord: (zoneId: string, recordId: string) => string;
/**
* Update a specific DNS record
* @param zoneId The Cloudflare zone ID
* @param recordId The DNS record ID
* @returns Formatted endpoint path
*/
updateRecord: (zoneId: string, recordId: string) => string;
};
};