import { APIResource } from "../../resource.js"; import * as Core from "../../core.js"; import { V4PagePaginationArray, type V4PagePaginationArrayParams } from "../../pagination.js"; export declare class ProviderConfigs extends APIResource { /** * Creates a new AI Gateway. * * @example * ```ts * const providerConfig = * await client.aiGateway.providerConfigs.create( * 'my-gateway', * { * account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0', * alias: 'alias', * default_config: true, * provider_slug: 'provider_slug', * secret: 'secret', * secret_id: 'secret_id', * }, * ); * ``` */ create(gatewayId: string, params: ProviderConfigCreateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Lists all AI Gateway evaluator types configured for the account. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const providerConfigListResponse of client.aiGateway.providerConfigs.list( * 'my-gateway', * { account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0' }, * )) { * // ... * } * ``` */ list(gatewayId: string, params: ProviderConfigListParams, options?: Core.RequestOptions): Core.PagePromise; } export declare class ProviderConfigListResponsesV4PagePaginationArray extends V4PagePaginationArray { } export interface ProviderConfigCreateResponse { id: string; alias: string; default_config: boolean; /** * gateway id */ gateway_id: string; modified_at: string; provider_slug: string; secret_id: string; secret_preview: string; rate_limit?: number; rate_limit_period?: number; } export interface ProviderConfigListResponse { id: string; alias: string; default_config: boolean; /** * gateway id */ gateway_id: string; modified_at: string; provider_slug: string; secret_id: string; secret_preview: string; rate_limit?: number; rate_limit_period?: number; } export interface ProviderConfigCreateParams { /** * Path param */ account_id: string; /** * Body param */ alias: string; /** * Body param */ default_config: boolean; /** * Body param */ provider_slug: string; /** * Body param */ secret: string; /** * Body param */ secret_id: string; /** * Body param */ rate_limit?: number; /** * Body param */ rate_limit_period?: number; } export interface ProviderConfigListParams extends V4PagePaginationArrayParams { /** * Path param */ account_id: string; } export declare namespace ProviderConfigs { export { type ProviderConfigCreateResponse as ProviderConfigCreateResponse, type ProviderConfigListResponse as ProviderConfigListResponse, ProviderConfigListResponsesV4PagePaginationArray as ProviderConfigListResponsesV4PagePaginationArray, type ProviderConfigCreateParams as ProviderConfigCreateParams, type ProviderConfigListParams as ProviderConfigListParams, }; } //# sourceMappingURL=provider-configs.d.ts.map