openai
Version:
The official TypeScript library for the OpenAI API
37 lines • 1.34 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 Alerts extends APIResource {
/**
* Get a safety alert belonging to the authenticated API project.
*/
retrieve(id: string, options?: RequestOptions): APIPromise<SafetyAlert>;
}
export interface SafetyAlert {
id: string;
created_at: number;
error_type: 'potentially_unintended_data_transfer' | 'potentially_unintended_data_access' | 'potentially_unintended_destructive_activity' | 'other';
model: string;
object: 'safety.alert';
/**
* A customer-safe description derived from error_type, or null for zero data
* retention requests.
*/
reason: string | null;
request_id: string;
/**
* Whether block registration succeeded for this request. This does not confirm
* that response execution stopped.
*/
request_paused: boolean;
response_id: string;
/**
* A generated explanation, temporarily available for eligible zero data retention
* alerts. Omitted when unavailable.
*/
detailed_explanation?: string | null;
}
export declare namespace Alerts {
export { type SafetyAlert as SafetyAlert };
}
//# sourceMappingURL=alerts.d.ts.map