@coinbase/cdp-sdk
Version:
SDK for interacting with the Coinbase Developer Platform Wallet API
20 lines • 906 B
TypeScript
/**
* Generated by scripts/generate_public_operations.py from openapi.yaml. Do not edit manually.
*/
/** A single public (unauthenticated) OpenAPI operation. */
export interface PublicOperation {
method: string;
pathPattern: RegExp;
}
/** Operations that may be called without CDP API credentials, per openapi.yaml. */
export declare const PUBLIC_OPERATIONS: PublicOperation[];
/**
* Returns true if the given HTTP method and path correspond to a public (unauthenticated)
* operation, as declared by the `security` field in openapi.yaml.
*
* @param method - The HTTP method of the request (e.g. "GET").
* @param path - The URL path of the request (e.g. "/v2/x402/discovery/search").
* @returns True if the operation does not require CDP API credentials.
*/
export declare function isPublicOperation(method: string, path: string): boolean;
//# sourceMappingURL=publicOperations.gen.d.ts.map