cloudflare
Version:
The official TypeScript library for the Cloudflare API
32 lines • 1.08 kB
TypeScript
import { APIResource } from "../../core/resource.js";
import { APIPromise } from "../../core/api-promise.js";
import { RequestOptions } from "../../internal/request-options.js";
export declare class BaseURLs extends APIResource {
static readonly _key: readonly ['aiGateway', 'urls'];
/**
* Retrieves the endpoint URL for an AI Gateway.
*
* @example
* ```ts
* const url = await client.aiGateway.urls.get('workers-ai', {
* account_id: '0d37909e38d3e99c29fa2cd343ac421a',
* gateway_id: 'my-gateway',
* });
* ```
*/
get(provider: string, params: URLGetParams, options?: RequestOptions): APIPromise<URLGetResponse>;
}
export declare class URLs extends BaseURLs {
}
export type URLGetResponse = string;
export interface URLGetParams {
account_id: string;
/**
* Unique identifier of the AI Gateway within the account.
*/
gateway_id: string;
}
export declare namespace URLs {
export { type URLGetResponse as URLGetResponse, type URLGetParams as URLGetParams };
}
//# sourceMappingURL=urls.d.ts.map