import { camelCase } from "es-toolkit";
export function getEndpointId(namespace, path, sdkMethodName, operationId) {
    if (path == null) {
        return undefined;
    }
    const endpointName = path.split("/").at(-1);
    if (endpointName == null) {
        return undefined;
    }
    return `endpoint_${camelCase(namespace != null ? (typeof namespace === "string" ? namespace : namespace.join("_")) : "")}.${camelCase(sdkMethodName ?? "") || operationId || camelCase(endpointName)}`;
}
