SYMBOL INDEX (2617 symbols across 237 files) FILE: ecosystem-tests/browser-direct-import/public/index.js function runTests (line 12) | async function runTests() { function describe (line 53) | function describe(description, handler) { function it (line 67) | function it(description, run, timeout = 60000) { function expect (line 78) | function expect(received) { function typeTests (line 114) | async function typeTests() { FILE: ecosystem-tests/browser-direct-import/src/test.ts function debugEvent (line 10) | function debugEvent(subj: string) { FILE: ecosystem-tests/bun/openai.test.ts function typeTests (line 16) | async function typeTests() { function expectSimilar (line 25) | function expectSimilar(received: any, comparedTo: string, expectedDistan... FILE: ecosystem-tests/cli.ts constant TAR_NAME (line 9) | const TAR_NAME = 'openai.tgz'; constant PACK_FOLDER (line 10) | const PACK_FOLDER = '.pack'; constant PACK_FILE (line 11) | const PACK_FILE = `${PACK_FOLDER}/${TAR_NAME}`; constant IS_CI (line 12) | const IS_CI = Boolean(process.env['CI'] && process.env['CI'] !== 'false'); function defaultNodeRunner (line 14) | async function defaultNodeRunner() { function startProxy (line 114) | async function startProxy() { function parseArgs (line 143) | function parseArgs() { type Args (line 210) | type Args = Awaited>; type ChildOutputChunk (line 213) | type ChildOutputChunk = { dest: 'stdout' | 'stderr'; data: string | Buff... function main (line 215) | async function main() { function withRetry (line 462) | async function withRetry( function errorMessage (line 486) | function errorMessage(err: unknown): string { function isLikelyNodeCrash (line 498) | function isLikelyNodeCrash(err: unknown): boolean { function centerPad (line 509) | function centerPad(text: string, width = text.length, char = ' '): string { function banner (line 513) | function banner(name: string, width = 80): string { function buildPackage (line 523) | async function buildPackage() { function installPackage (line 553) | async function installPackage() { function getPackFile (line 569) | function getPackFile() { type RunOpts (line 575) | interface RunOpts extends execa.Options { function run (line 579) | async function run(command: string, args: string[], config?: RunOpts): P... function withChdir (line 597) | async function withChdir(newDir: string, fn: () => Promise): Promi... function pathExists (line 608) | async function pathExists(path: string) { function defaultNodeCleanup (line 685) | async function defaultNodeCleanup(projectName: string) { function fileExists (line 699) | async function fileExists(filePath: string) { FILE: ecosystem-tests/cloudflare-worker/src/uploadWebApiTestCases.ts function uploadWebApiTestCases (line 10) | function uploadWebApiTestCases({ FILE: ecosystem-tests/cloudflare-worker/src/worker.ts type Env (line 13) | interface Env { type Test (line 32) | type Test = { description: string; handler: () => Promise }; method fetch (line 35) | async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<... FILE: ecosystem-tests/deno/main_test.ts function _typeTests (line 14) | async function _typeTests() { function assertSimilar (line 23) | function assertSimilar(received: string, expected: string, maxDistance: ... FILE: ecosystem-tests/node-ts-cjs-auto/moduleResolution/node/type-tests.ts function typeTests (line 5) | async function typeTests() { FILE: ecosystem-tests/node-ts-cjs-auto/moduleResolution/nodenext/type-tests.ts function typeTests (line 3) | async function typeTests(client: OpenAI) { FILE: ecosystem-tests/node-ts-cjs-auto/tests/test.ts function typeTests (line 16) | async function typeTests() { type Matchers (line 27) | interface Matchers { method toBeSimilarTo (line 33) | toBeSimilarTo(received, comparedTo: string, expectedDistance: number) { FILE: ecosystem-tests/node-ts-cjs-web/tests/test-jsdom.ts function typeTests (line 17) | async function typeTests() { type Matchers (line 28) | interface Matchers { method toBeSimilarTo (line 34) | toBeSimilarTo(received, comparedTo: string, expectedDistance: number) { FILE: ecosystem-tests/node-ts-cjs-web/tests/test-node.ts function typeTests (line 14) | async function typeTests() { type Matchers (line 25) | interface Matchers { method toBeSimilarTo (line 31) | toBeSimilarTo(received, comparedTo: string, expectedDistance: number) { FILE: ecosystem-tests/node-ts-cjs-web/types-test.ts function typeTests (line 3) | async function typeTests(client: OpenAI) { FILE: ecosystem-tests/node-ts-cjs/tests/test-jsdom.ts function typeTests (line 19) | async function typeTests() { type Matchers (line 30) | interface Matchers { method toBeSimilarTo (line 36) | toBeSimilarTo(received, comparedTo: string, expectedDistance: number) { FILE: ecosystem-tests/node-ts-cjs/tests/test-node.ts function typeTests (line 18) | async function typeTests() { type Matchers (line 29) | interface Matchers { method toBeSimilarTo (line 35) | toBeSimilarTo(received, comparedTo: string, expectedDistance: number) { FILE: ecosystem-tests/node-ts-esm-auto/esnext-type-tests.ts function typeTests (line 3) | async function typeTests(client: OpenAI) { FILE: ecosystem-tests/node-ts-esm-auto/tests/test.ts function typeTests (line 17) | async function typeTests() { type Matchers (line 28) | interface Matchers { method toBeSimilarTo (line 34) | toBeSimilarTo(received, comparedTo: string, expectedDistance: number) { FILE: ecosystem-tests/node-ts-esm-web/tests/test.ts function typeTests (line 14) | async function typeTests() { type Matchers (line 25) | interface Matchers { method toBeSimilarTo (line 31) | toBeSimilarTo(received, comparedTo: string, expectedDistance: number) { FILE: ecosystem-tests/node-ts-esm-web/types-test.ts function typeTests (line 3) | async function typeTests(client: OpenAI) { FILE: ecosystem-tests/node-ts-esm/tests/test-esnext.ts function typeTests (line 7) | async function typeTests(client: OpenAI) { type Matchers (line 16) | interface Matchers { method toBeSimilarTo (line 22) | toBeSimilarTo(received, comparedTo: string, expectedDistance: number) { FILE: ecosystem-tests/node-ts-esm/tests/test.ts function typeTests (line 16) | async function typeTests() { type Matchers (line 27) | interface Matchers { method toBeSimilarTo (line 33) | toBeSimilarTo(received, comparedTo: string, expectedDistance: number) { FILE: ecosystem-tests/node-ts4.5-jest28/tests/test.ts function typeTests (line 17) | async function typeTests() { type Matchers (line 28) | interface Matchers { method toBeSimilarTo (line 34) | toBeSimilarTo(received, comparedTo: string, expectedDistance: number) { FILE: ecosystem-tests/proxy.ts function startProxy (line 4) | async function startProxy() { FILE: ecosystem-tests/ts-browser-webpack/src/index.ts type TestCase (line 5) | type TestCase = { type TestResult (line 13) | type TestResult = { path: string[]; passed: boolean; error?: string }; function runTests (line 15) | async function runTests() { function describe (line 50) | function describe(description: string, handler: () => void) { function it (line 59) | function it(description: string, run: () => any, timeout = 60000) { function expect (line 63) | function expect(received: any) { function typeTests (line 99) | async function typeTests() { FILE: ecosystem-tests/ts-browser-webpack/src/test.ts function debugEvent (line 10) | function debugEvent(subj: string) { FILE: ecosystem-tests/vercel-edge/src/pages/_app.tsx function App (line 3) | function App({ Component, pageProps }: AppProps) { FILE: ecosystem-tests/vercel-edge/src/pages/_document.tsx function Document (line 3) | function Document() { FILE: ecosystem-tests/vercel-edge/src/pages/ai-streaming.tsx function Chat (line 3) | function Chat() { FILE: ecosystem-tests/vercel-edge/src/pages/api/edge-test.ts type Test (line 16) | type Test = { description: string; handler: () => Promise }; function it (line 19) | function it(description: string, handler: () => Promise) { function expectEqual (line 22) | function expectEqual(a: any, b: any) { function expectSimilar (line 27) | function expectSimilar(received: string, expected: string, maxDistance: ... FILE: ecosystem-tests/vercel-edge/src/pages/api/node-test.ts type Test (line 6) | type Test = { description: string; handler: () => Promise }; function it (line 9) | function it(description: string, handler: () => Promise) { function expectEqual (line 12) | function expectEqual(a: any, b: any) { function expectSimilar (line 17) | function expectSimilar(received: string, expected: string, maxDistance: ... FILE: ecosystem-tests/vercel-edge/src/pages/api/transcribe.ts function typeTests (line 18) | async function typeTests() { FILE: ecosystem-tests/vercel-edge/src/pages/index.tsx function Home (line 3) | function Home() { FILE: ecosystem-tests/vercel-edge/src/uploadWebApiTestCases.ts function uploadWebApiTestCases (line 10) | function uploadWebApiTestCases({ FILE: examples/assistant-stream-raw.ts function main (line 7) | async function main() { FILE: examples/assistant-stream.ts function main (line 11) | async function main() { FILE: examples/assistants.ts function main (line 11) | async function main() { FILE: examples/audio.ts function main (line 12) | async function main() { function streamingDemoNode (line 18) | async function streamingDemoNode() { function blockingDemo (line 33) | async function blockingDemo() { function streamToFile (line 63) | async function streamToFile(stream: NodeJS.ReadableStream, path: fs.Path... FILE: examples/azure/chat.ts function main (line 19) | async function main() { FILE: examples/azure/realtime/websocket.ts function main (line 6) | async function main() { FILE: examples/azure/realtime/ws.ts function main (line 6) | async function main() { FILE: examples/chat-params-types.ts function main (line 9) | async function main() { function createCompletionParams (line 102) | async function createCompletionParams( FILE: examples/demo.ts function main (line 8) | async function main() { FILE: examples/errors.ts function main (line 8) | async function main() { FILE: examples/fine-tuning.ts function main (line 17) | async function main() { FILE: examples/function-call-diy.ts function callFunction (line 43) | async function callFunction(function_call: ChatCompletionMessage.Functio... function main (line 60) | async function main() { function list (line 130) | async function list(genre: string) { function search (line 134) | async function search(name: string) { function get (line 138) | async function get(id: string) { FILE: examples/function-call-stream-raw.ts function callFunction (line 48) | async function callFunction(function_call: ChatCompletionMessage.Functio... function main (line 65) | async function main() { function messageReducer (line 122) | function messageReducer(previous: ChatCompletionMessage, item: ChatCompl... function lineRewriter (line 140) | function lineRewriter() { function list (line 173) | async function list(genre: string) { function search (line 177) | async function search(name: string) { function get (line 181) | async function get(id: string) { FILE: examples/function-call-stream.ts function callFunction (line 48) | async function callFunction(function_call: ChatCompletionMessage.Functio... function main (line 65) | async function main() { function messageReducer (line 122) | function messageReducer(previous: ChatCompletionMessage, item: ChatCompl... function lineRewriter (line 140) | function lineRewriter() { function list (line 173) | async function list(genre: string) { function search (line 177) | async function search(name: string) { function get (line 181) | async function get(id: string) { FILE: examples/function-call.ts function callFunction (line 43) | async function callFunction(function_call: ChatCompletionMessage.Functio... function main (line 60) | async function main() { function list (line 130) | async function list(genre: string) { function search (line 134) | async function search(name: string) { function get (line 138) | async function get(id: string) { FILE: examples/logprobs.ts function main (line 8) | async function main() { FILE: examples/parsing-run-tools.ts function main (line 30) | async function main() { FILE: examples/parsing-stream.ts function main (line 15) | async function main() { FILE: examples/parsing-tools-stream.ts function main (line 11) | async function main() { FILE: examples/parsing-tools.ts function main (line 38) | async function main() { FILE: examples/parsing.ts function main (line 15) | async function main() { FILE: examples/raw-response.ts function main (line 8) | async function main() { FILE: examples/realtime/websocket.ts function main (line 3) | async function main() { FILE: examples/realtime/ws.ts function main (line 3) | async function main() { FILE: examples/responses/stream.ts function main (line 7) | async function main() { FILE: examples/responses/stream_background.ts function main (line 7) | async function main() { FILE: examples/responses/streaming-tools.ts function main (line 36) | async function main() { FILE: examples/responses/structured-outputs-tools.ts function main (line 36) | async function main() { FILE: examples/responses/structured-outputs.ts function main (line 19) | async function main() { FILE: examples/responses/websocket.ts type ToolName (line 14) | type ToolName = 'get_sku_inventory' | 'get_supplier_eta' | 'get_quality_... type ToolChoice (line 15) | type ToolChoice = NonNullable; type DemoTurn (line 17) | type DemoTurn = { type SKUArguments (line 22) | type SKUArguments = { type SKUInventoryOutput (line 26) | type SKUInventoryOutput = { type SupplierShipment (line 35) | type SupplierShipment = { type SupplierETAOutput (line 42) | type SupplierETAOutput = { type QualityAlert (line 47) | type QualityAlert = { type QualityAlertsOutput (line 54) | type QualityAlertsOutput = { type ToolOutput (line 59) | type ToolOutput = SKUInventoryOutput | SupplierETAOutput | QualityAlerts... type FunctionCallRequest (line 61) | type FunctionCallRequest = { type RunResponseResult (line 67) | type RunResponseResult = { type RunTurnResult (line 73) | type RunTurnResult = { type CLIArgs (line 78) | type CLIArgs = { constant BETA_HEADER_VALUE (line 85) | const BETA_HEADER_VALUE = 'responses_websockets=2026-02-06'; constant TOOLS (line 87) | const TOOLS: Array = [ constant DEMO_TURNS (line 141) | const DEMO_TURNS: Array = [ FILE: examples/speech-to-text.ts function main (line 6) | async function main(): Promise { FILE: examples/stream-to-client-next.ts function handler (line 25) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: examples/stream.ts function main (line 7) | async function main() { FILE: examples/text-to-speech.ts function main (line 13) | async function main(): Promise { FILE: examples/tool-call-helpers-zod.ts type ListParams (line 15) | type ListParams = z.infer; function listBooks (line 16) | async function listBooks({ genre }: ListParams) { type SearchParams (line 23) | type SearchParams = z.infer; function searchBooks (line 24) | async function searchBooks({ name }: SearchParams) { type GetParams (line 31) | type GetParams = z.infer; function getBook (line 32) | async function getBook({ id }: GetParams) { function main (line 36) | async function main() { FILE: examples/tool-call-helpers.ts function main (line 65) | async function main() { function list (line 123) | async function list({ genre }: { genre: string }) { function search (line 127) | async function search({ name }: { name: string }) { function get (line 131) | async function get({ id }: { id: string }) { FILE: examples/tool-calls-stream.ts constant CHUNK_DELAY_MS (line 31) | const CHUNK_DELAY_MS = 100; function callTool (line 79) | async function callTool( function main (line 98) | async function main() { function messageReducer (line 164) | function messageReducer(previous: ChatCompletionMessage, item: ChatCompl... function lineRewriter (line 206) | function lineRewriter() { function list (line 255) | async function list(genre: string) { function search (line 259) | async function search(name: string) { function get (line 263) | async function get(id: string) { FILE: examples/types.ts function main (line 8) | async function main() { FILE: examples/ui-generation.ts type UI (line 9) | interface UI { function main (line 33) | async function main() { FILE: scripts/utils/convert-jsr-readme.cjs function traverse (line 8) | function traverse(node, visitor) { function replaceRanges (line 25) | function replaceRanges(code, replacer) { function replaceProcessEnv (line 56) | function replaceProcessEnv(content) { function replaceProcessStdout (line 61) | function replaceProcessStdout(content) { function replaceInstallationDirections (line 65) | function replaceInstallationDirections(content) { function replaceImports (line 73) | function replaceImports(code, config) { function processReadme (line 104) | function processReadme(config, file) { FILE: scripts/utils/make-dist-package-json.cjs function processExportMap (line 3) | function processExportMap(m) { FILE: scripts/utils/postprocess-files.cjs function postprocess (line 18) | async function postprocess() { FILE: src/_vendor/partial-json-parser/parser.ts constant STR (line 1) | const STR = 0b000000001; constant NUM (line 2) | const NUM = 0b000000010; constant ARR (line 3) | const ARR = 0b000000100; constant OBJ (line 4) | const OBJ = 0b000001000; constant NULL (line 5) | const NULL = 0b000010000; constant BOOL (line 6) | const BOOL = 0b000100000; constant NAN (line 7) | const NAN = 0b001000000; constant INFINITY (line 8) | const INFINITY = 0b010000000; constant MINUS_INFINITY (line 9) | const MINUS_INFINITY = 0b100000000; constant INF (line 11) | const INF = INFINITY | MINUS_INFINITY; constant SPECIAL (line 12) | const SPECIAL = NULL | BOOL | INF | NAN; constant ATOM (line 13) | const ATOM = STR | NUM | SPECIAL; constant COLLECTION (line 14) | const COLLECTION = ARR | OBJ; constant ALL (line 15) | const ALL = ATOM | COLLECTION; class PartialJSON (line 35) | class PartialJSON extends Error {} class MalformedJSON (line 37) | class MalformedJSON extends Error {} function parseJSON (line 47) | function parseJSON(jsonString: string, allowPartial: number = Allow.ALL)... FILE: src/_vendor/zod-to-json-schema/Options.ts type Targets (line 5) | type Targets = 'jsonSchema7' | 'jsonSchema2019-09' | 'openApi3'; type DateStrategy (line 7) | type DateStrategy = 'format:date-time' | 'format:date' | 'string' | 'int... type Options (line 11) | type Options = { FILE: src/_vendor/zod-to-json-schema/Refs.ts type Refs (line 6) | type Refs = { type Seen (line 18) | type Seen = { FILE: src/_vendor/zod-to-json-schema/errorMessages.ts type ErrorMessages (line 4) | type ErrorMessages }>( function setResponseValueAndErrors (line 23) | function setResponseValueAndErrors< FILE: src/_vendor/zod-to-json-schema/parseDef.ts type JsonSchema7RefType (line 35) | type JsonSchema7RefType = { $ref: string }; type JsonSchema7Meta (line 36) | type JsonSchema7Meta = { type JsonSchema7TypeUnion (line 43) | type JsonSchema7TypeUnion = type JsonSchema7Type (line 69) | type JsonSchema7Type = JsonSchema7TypeUnion & JsonSchema7Meta; function parseDef (line 71) | function parseDef( FILE: src/_vendor/zod-to-json-schema/parsers/any.ts type JsonSchema7AnyType (line 1) | type JsonSchema7AnyType = {}; function parseAnyDef (line 3) | function parseAnyDef(): JsonSchema7AnyType { FILE: src/_vendor/zod-to-json-schema/parsers/array.ts type JsonSchema7ArrayType (line 6) | type JsonSchema7ArrayType = { function parseArrayDef (line 14) | function parseArrayDef(def: ZodArrayDef, refs: Refs) { FILE: src/_vendor/zod-to-json-schema/parsers/bigint.ts type JsonSchema7BigintType (line 5) | type JsonSchema7BigintType = { function parseBigintDef (line 16) | function parseBigintDef(def: ZodBigIntDef, refs: Refs): JsonSchema7Bigin... FILE: src/_vendor/zod-to-json-schema/parsers/boolean.ts type JsonSchema7BooleanType (line 1) | type JsonSchema7BooleanType = { function parseBooleanDef (line 5) | function parseBooleanDef(): JsonSchema7BooleanType { FILE: src/_vendor/zod-to-json-schema/parsers/branded.ts function parseBrandedDef (line 5) | function parseBrandedDef(_def: ZodBrandedDef, refs: Refs) { FILE: src/_vendor/zod-to-json-schema/parsers/date.ts type JsonSchema7DateType (line 7) | type JsonSchema7DateType = function parseDateDef (line 19) | function parseDateDef( FILE: src/_vendor/zod-to-json-schema/parsers/default.ts function parseDefaultDef (line 5) | function parseDefaultDef(_def: ZodDefaultDef, refs: Refs): JsonSchema7Ty... FILE: src/_vendor/zod-to-json-schema/parsers/effects.ts function parseEffectsDef (line 5) | function parseEffectsDef( FILE: src/_vendor/zod-to-json-schema/parsers/enum.ts type JsonSchema7EnumType (line 3) | type JsonSchema7EnumType = { function parseEnumDef (line 8) | function parseEnumDef(def: ZodEnumDef): JsonSchema7EnumType { FILE: src/_vendor/zod-to-json-schema/parsers/intersection.ts type JsonSchema7AllOfType (line 6) | type JsonSchema7AllOfType = { function parseIntersectionDef (line 18) | function parseIntersectionDef( FILE: src/_vendor/zod-to-json-schema/parsers/literal.ts type JsonSchema7LiteralType (line 4) | type JsonSchema7LiteralType = function parseLiteralDef (line 13) | function parseLiteralDef(def: ZodLiteralDef, refs: Refs): JsonSchema7Lit... FILE: src/_vendor/zod-to-json-schema/parsers/map.ts type JsonSchema7MapType (line 6) | type JsonSchema7MapType = { function parseMapDef (line 17) | function parseMapDef(def: ZodMapDef, refs: Refs): JsonSchema7MapType | J... FILE: src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts type JsonSchema7NativeEnumType (line 3) | type JsonSchema7NativeEnumType = { function parseNativeEnumDef (line 8) | function parseNativeEnumDef(def: ZodNativeEnumDef): JsonSchema7NativeEnu... FILE: src/_vendor/zod-to-json-schema/parsers/never.ts type JsonSchema7NeverType (line 1) | type JsonSchema7NeverType = { function parseNeverDef (line 5) | function parseNeverDef(): JsonSchema7NeverType { FILE: src/_vendor/zod-to-json-schema/parsers/null.ts type JsonSchema7NullType (line 3) | type JsonSchema7NullType = { function parseNullDef (line 7) | function parseNullDef(refs: Refs): JsonSchema7NullType { FILE: src/_vendor/zod-to-json-schema/parsers/nullable.ts type JsonSchema7NullableType (line 7) | type JsonSchema7NullableType = function parseNullableDef (line 15) | function parseNullableDef(def: ZodNullableDef, refs: Refs): JsonSchema7N... FILE: src/_vendor/zod-to-json-schema/parsers/number.ts type JsonSchema7NumberType (line 5) | type JsonSchema7NumberType = { function parseNumberDef (line 15) | function parseNumberDef(def: ZodNumberDef, refs: Refs): JsonSchema7Numbe... FILE: src/_vendor/zod-to-json-schema/parsers/object.ts function decideAdditionalProperties (line 5) | function decideAdditionalProperties(def: ZodObjectDef, refs: Refs) { type JsonSchema7ObjectType (line 23) | type JsonSchema7ObjectType = { function parseObjectDef (line 30) | function parseObjectDef(def: ZodObjectDef, refs: Refs) { FILE: src/_vendor/zod-to-json-schema/parsers/promise.ts function parsePromiseDef (line 5) | function parsePromiseDef(def: ZodPromiseDef, refs: Refs): JsonSchema7Typ... FILE: src/_vendor/zod-to-json-schema/parsers/record.ts type JsonSchema7RecordPropertyNamesType (line 8) | type JsonSchema7RecordPropertyNamesType = type JsonSchema7RecordType (line 12) | type JsonSchema7RecordType = { function parseRecordDef (line 18) | function parseRecordDef( FILE: src/_vendor/zod-to-json-schema/parsers/set.ts type JsonSchema7SetType (line 6) | type JsonSchema7SetType = { function parseSetDef (line 15) | function parseSetDef(def: ZodSetDef, refs: Refs): JsonSchema7SetType { FILE: src/_vendor/zod-to-json-schema/parsers/string.ts type JsonSchema7StringType (line 58) | type JsonSchema7StringType = { function parseStringDef (line 86) | function parseStringDef(def: ZodStringDef, refs: Refs): JsonSchema7Strin... FILE: src/_vendor/zod-to-json-schema/parsers/tuple.ts type JsonSchema7TupleType (line 5) | type JsonSchema7TupleType = { function parseTupleDef (line 18) | function parseTupleDef( FILE: src/_vendor/zod-to-json-schema/parsers/undefined.ts type JsonSchema7UndefinedType (line 1) | type JsonSchema7UndefinedType = { function parseUndefinedDef (line 5) | function parseUndefinedDef(): JsonSchema7UndefinedType { FILE: src/_vendor/zod-to-json-schema/parsers/union.ts type ZodPrimitive (line 12) | type ZodPrimitive = keyof typeof primitiveMappings; type JsonSchema7Primitive (line 13) | type JsonSchema7Primitive = (typeof primitiveMappings)[keyof typeof prim... type JsonSchema7UnionType (line 15) | type JsonSchema7UnionType = JsonSchema7PrimitiveUnionType | JsonSchema7A... type JsonSchema7PrimitiveUnionType (line 17) | type JsonSchema7PrimitiveUnionType = type JsonSchema7AnyOfType (line 26) | type JsonSchema7AnyOfType = { function parseUnionDef (line 30) | function parseUnionDef( FILE: src/_vendor/zod-to-json-schema/parsers/unknown.ts type JsonSchema7UnknownType (line 1) | type JsonSchema7UnknownType = {}; function parseUnknownDef (line 3) | function parseUnknownDef(): JsonSchema7UnknownType { FILE: src/_vendor/zod-to-json-schema/util.ts function isEmptyObj (line 7) | function isEmptyObj(obj: Object | null | undefined): boolean { FILE: src/azure.ts type AzureClientOptions (line 10) | interface AzureClientOptions extends ClientOptions { class AzureOpenAI (line 40) | class AzureOpenAI extends OpenAI { method constructor (line 61) | constructor({ method buildRequest (line 124) | override async buildRequest( method authHeaders (line 140) | protected override async authHeaders(opts: FinalRequestOptions): Promi... FILE: src/beta/realtime/internal-base.ts class OpenAIRealtimeError (line 6) | class OpenAIRealtimeError extends OpenAIError { method constructor (line 17) | constructor(message: string, event: ErrorEvent | null) { type Simplify (line 25) | type Simplify = { [KeyType in keyof T]: T[KeyType] } & {}; type RealtimeEvents (line 27) | type RealtimeEvents = Simplify< method _onError (line 51) | protected _onError(event: ErrorEvent | null, message?: string | undefine... function isAzure (line 77) | function isAzure(client: Pick): client is ... function buildRealtimeURL (line 81) | function buildRealtimeURL(client: Pick, mo... FILE: src/beta/realtime/websocket.ts type MessageEvent (line 7) | interface MessageEvent { type _WebSocket (line 11) | type _WebSocket = class OpenAIRealtimeWebSocket (line 21) | class OpenAIRealtimeWebSocket extends OpenAIRealtimeEmitter { method constructor (line 25) | constructor( method create (line 108) | static async create( method azure (line 115) | static async azure( method send (line 143) | send(event: RealtimeClientEvent) { method close (line 151) | close(props?: { code: number; reason: string }) { FILE: src/beta/realtime/ws.ts class OpenAIRealtimeWS (line 6) | class OpenAIRealtimeWS extends OpenAIRealtimeEmitter { method constructor (line 10) | constructor( method create (line 67) | static async create( method azure (line 74) | static async azure( method send (line 99) | send(event: RealtimeClientEvent) { method close (line 107) | close(props?: { code: number; reason: string }) { FILE: src/client.ts type ApiKeySetter (line 241) | type ApiKeySetter = () => Promise; type ClientOptions (line 243) | interface ClientOptions { class OpenAI (line 349) | class OpenAI { method constructor (line 383) | constructor({ method withOptions (line 438) | withOptions(options: Partial): this { method #baseURLOverridden (line 460) | #baseURLOverridden(): boolean { method defaultQuery (line 464) | protected defaultQuery(): Record | undefin... method validateHeaders (line 468) | protected validateHeaders({ values, nulls }: NullableHeaders) { method authHeaders (line 472) | protected async authHeaders(opts: FinalRequestOptions): Promise): str... method getUserAgent (line 480) | private getUserAgent(): string { method defaultIdempotencyKey (line 484) | protected defaultIdempotencyKey(): string { method makeStatusError (line 488) | protected makeStatusError( method _callApiKey (line 497) | async _callApiKey(): Promise { method buildURL (line 522) | buildURL( method prepareOptions (line 549) | protected async prepareOptions(options: FinalRequestOptions): Promise<... method prepareRequest (line 559) | protected async prepareRequest( method get (line 564) | get(path: string, opts?: PromiseOrValue): APIProm... method post (line 568) | post(path: string, opts?: PromiseOrValue): APIPro... method patch (line 572) | patch(path: string, opts?: PromiseOrValue): APIPr... method put (line 576) | put(path: string, opts?: PromiseOrValue): APIProm... method delete (line 580) | delete(path: string, opts?: PromiseOrValue): APIP... method methodRequest (line 584) | private methodRequest( method request (line 596) | request( method makeRequest (line 603) | private async makeRequest( method getAPIList (line 764) | getAPIList = Pag... method requestAPIList (line 777) | requestAPIList< method fetchWithTimeout (line 788) | async fetchWithTimeout( method shouldRetry (line 824) | private async shouldRetry(response: Response): Promise { method retryRequest (line 847) | private async retryRequest( method calculateDefaultRetryTimeoutMillis (line 886) | private calculateDefaultRetryTimeoutMillis(retriesRemaining: number, m... method buildRequest (line 901) | async buildRequest( method buildHeaders (line 928) | private async buildHeaders({ method _makeAbort (line 967) | private _makeAbort(controller: AbortController) { method buildBody (line 973) | private buildBody({ options: { body, headers: rawHeaders } }: { option... type RequestOptions (line 1116) | type RequestOptions = Opts.RequestOptions; type AllModels (line 1355) | type AllModels = API.AllModels; type ChatModel (line 1356) | type ChatModel = API.ChatModel; type ComparisonFilter (line 1357) | type ComparisonFilter = API.ComparisonFilter; type CompoundFilter (line 1358) | type CompoundFilter = API.CompoundFilter; type CustomToolInputFormat (line 1359) | type CustomToolInputFormat = API.CustomToolInputFormat; type ErrorObject (line 1360) | type ErrorObject = API.ErrorObject; type FunctionDefinition (line 1361) | type FunctionDefinition = API.FunctionDefinition; type FunctionParameters (line 1362) | type FunctionParameters = API.FunctionParameters; type Metadata (line 1363) | type Metadata = API.Metadata; type Reasoning (line 1364) | type Reasoning = API.Reasoning; type ReasoningEffort (line 1365) | type ReasoningEffort = API.ReasoningEffort; type ResponseFormatJSONObject (line 1366) | type ResponseFormatJSONObject = API.ResponseFormatJSONObject; type ResponseFormatJSONSchema (line 1367) | type ResponseFormatJSONSchema = API.ResponseFormatJSONSchema; type ResponseFormatText (line 1368) | type ResponseFormatText = API.ResponseFormatText; type ResponseFormatTextGrammar (line 1369) | type ResponseFormatTextGrammar = API.ResponseFormatTextGrammar; type ResponseFormatTextPython (line 1370) | type ResponseFormatTextPython = API.ResponseFormatTextPython; type ResponsesModel (line 1371) | type ResponsesModel = API.ResponsesModel; FILE: src/core/EventEmitter.ts type EventListener (line 1) | type EventListener = Events[Even... type EventListeners (line 3) | type EventListeners = Array<{ type EventParameters (line 8) | type EventParameters = { class EventEmitter (line 12) | class EventEmitter a... method on (line 24) | on(event: Event, listener: EventListen... method off (line 38) | off(event: Event, listener: EventListe... method once (line 51) | once(event: Event, listener: EventList... method emitted (line 69) | emitted( method _emit (line 82) | protected _emit( method _hasListener (line 94) | protected _hasListener(event: keyof EventTypes): boolean { FILE: src/core/api-promise.ts class APIPromise (line 17) | class APIPromise extends Promise> { method constructor (line 21) | constructor( method _thenUnwrap (line 38) | _thenUnwrap(transform: (data: T, props: APIResponseProps) => U): AP... method asResponse (line 55) | asResponse(): Promise { method withResponse (line 71) | async withResponse(): Promise<{ data: T; response: Response; request_i... method parse (line 76) | private parse(): Promise> { method then (line 85) | override then, TResult2 = never>( method catch (line 92) | override catch( method finally (line 98) | override finally(onfinally?: (() => void) | undefined | null): Promise... FILE: src/core/error.ts class OpenAIError (line 5) | class OpenAIError extends Error {} class APIError (line 7) | class APIError< method constructor (line 25) | constructor(status: TStatus, error: TError, message: string | undefine... method makeMessage (line 38) | private static makeMessage(status: number | undefined, error: any, mes... method generate (line 59) | static generate( class APIUserAbortError (line 107) | class APIUserAbortError extends APIError { method constructor (line 108) | constructor({ message }: { message?: string } = {}) { class APIConnectionError (line 113) | class APIConnectionError extends APIError {} class AuthenticationError (line 130) | class AuthenticationError extends APIError<401, Headers> {} class PermissionDeniedError (line 132) | class PermissionDeniedError extends APIError<403, Headers> {} class NotFoundError (line 134) | class NotFoundError extends APIError<404, Headers> {} class ConflictError (line 136) | class ConflictError extends APIError<409, Headers> {} class UnprocessableEntityError (line 138) | class UnprocessableEntityError extends APIError<422, Headers> {} class RateLimitError (line 140) | class RateLimitError extends APIError<429, Headers> {} class InternalServerError (line 142) | class InternalServerError extends APIError {} class LengthFinishReasonError (line 144) | class LengthFinishReasonError extends OpenAIError { method constructor (line 145) | constructor() { class ContentFilterFinishReasonError (line 150) | class ContentFilterFinishReasonError extends OpenAIError { method constructor (line 151) | constructor() { class InvalidWebhookSignatureError (line 156) | class InvalidWebhookSignatureError extends Error { method constructor (line 157) | constructor(message: string) { FILE: src/core/pagination.ts type PageRequestOptions (line 11) | type PageRequestOptions = Pick { method iterPages (line 48) | async *iterPages(): AsyncGenerator { method [Symbol.asyncIterator] (line 57) | async *[Symbol.asyncIterator](): AsyncGenerator { class PagePromise (line 75) | class PagePromise< method constructor (line 82) | constructor( method [Symbol.asyncIterator] (line 107) | async *[Symbol.asyncIterator](): AsyncGenerator { type PageResponse (line 115) | interface PageResponse { class Page (line 124) | class Page extends AbstractPage implements PageResponse { method constructor (line 129) | constructor(client: OpenAI, response: Response, body: PageResponse { type CursorPageParams (line 151) | interface CursorPageParams { class CursorPage (line 157) | class CursorPage method constructor (line 165) | constructor( method getPaginatedItems (line 177) | getPaginatedItems(): Item[] { method hasNextPage (line 181) | override hasNextPage(): boolean { method nextPageRequestOptions (line 189) | nextPageRequestOptions(): PageRequestOptions | null { type ConversationCursorPageResponse (line 206) | interface ConversationCursorPageResponse { type ConversationCursorPageParams (line 214) | interface ConversationCursorPageParams { class ConversationCursorPage (line 220) | class ConversationCursorPage method constructor (line 230) | constructor( method getPaginatedItems (line 243) | getPaginatedItems(): Item[] { method hasNextPage (line 247) | override hasNextPage(): boolean { method nextPageRequestOptions (line 255) | nextPageRequestOptions(): PageRequestOptions | null { FILE: src/core/resource.ts method constructor (line 8) | constructor(client: OpenAI) { FILE: src/core/streaming.ts type Bytes (line 13) | type Bytes = string | ArrayBuffer | Uint8Array | null | undefined; type ServerSentEvent (line 15) | type ServerSentEvent = { class Stream (line 21) | class Stream implements AsyncIterable { method constructor (line 25) | constructor( method fromSSEResponse (line 34) | static fromSSEResponse( method fromReadableStream (line 108) | static fromReadableStream( method tee (line 163) | tee(): [Stream, Stream] { method toReadableStream (line 192) | toReadableStream(): ReadableStream { method [Symbol.asyncIterator] (line 155) | [Symbol.asyncIterator](): AsyncIterator { class SSEDecoder (line 287) | class SSEDecoder { method constructor (line 292) | constructor() { method decode (line 298) | decode(line: string) { function partition (line 342) | function partition(str: string, delimiter: string): [string, string, str... FILE: src/helpers/audio.ts constant DEFAULT_SAMPLE_RATE (line 6) | const DEFAULT_SAMPLE_RATE = 24000; constant DEFAULT_CHANNELS (line 7) | const DEFAULT_CHANNELS = 1; function isResponse (line 25) | function isResponse(stream: NodeJS.ReadableStream | Response | File): st... function isFile (line 29) | function isFile(stream: NodeJS.ReadableStream | Response | File): stream... function nodejsPlayAudio (line 34) | async function nodejsPlayAudio(stream: NodeJS.ReadableStream | Response ... function playAudio (line 59) | async function playAudio(input: NodeJS.ReadableStream | Response | File)... type RecordAudioOptions (line 69) | type RecordAudioOptions = { function nodejsRecordAudio (line 75) | function nodejsRecordAudio({ signal, device, timeout }: RecordAudioOptio... function recordAudio (line 138) | async function recordAudio(options: RecordAudioOptions = {}) { FILE: src/helpers/zod.ts type InferZodType (line 18) | type InferZodType = function zodV3ToJsonSchema (line 23) | function zodV3ToJsonSchema(schema: z3.ZodType, options: { name: string }... function zodV4ToJsonSchema (line 33) | function zodV4ToJsonSchema(schema: z4.ZodType): Record { function isZodV4 (line 41) | function isZodV4(zodObject: z3.ZodType | z4.ZodType): zodObject is z4.Zo... function zodResponseFormat (line 82) | function zodResponseFormat( function zodTextFormat (line 101) | function zodTextFormat( function zodFunction (line 123) | function zodFunction(options: { function zodResponsesFunction (line 154) | function zodResponsesFunction Prom... type _RequestInit (line 11) | type _RequestInit = RequestInit; type _Response (line 19) | type _Response = Response; type _RequestInfo (line 26) | type _RequestInfo = Request | URL | string; type _HeadersInit (line 33) | type _HeadersInit = RequestInit['headers']; type _BodyInit (line 40) | type _BodyInit = RequestInit['body']; type _Array (line 46) | type _Array = Array; type _Record (line 52) | type _Record = Record; type EndingType (line 70) | type EndingType = 'native' | 'transparent'; type BlobPropertyBag (line 79) | interface BlobPropertyBag { type FilePropertyBag (line 91) | interface FilePropertyBag extends BlobPropertyBag { FILE: src/internal/decoders/line.ts type Bytes (line 3) | type Bytes = string | ArrayBuffer | Uint8Array | null | undefined; class LineDecoder (line 11) | class LineDecoder { method constructor (line 19) | constructor() { method decode (line 24) | decode(chunk: Bytes): string[] { method flush (line 69) | flush(): string[] { function findNewlineIndex (line 86) | function findNewlineIndex( function findDoubleNewlineIndex (line 106) | function findDoubleNewlineIndex(buffer: Uint8Array): number { FILE: src/internal/detect-platform.ts type DetectedPlatform (line 16) | type DetectedPlatform = 'deno' | 'node' | 'edge' | 'unknown'; function getDetectedPlatform (line 21) | function getDetectedPlatform(): DetectedPlatform { type Arch (line 40) | type Arch = 'x32' | 'x64' | 'arm' | 'arm64' | `other:${string}` | 'unkno... type PlatformName (line 41) | type PlatformName = type Browser (line 51) | type Browser = 'ie' | 'edge' | 'chrome' | 'firefox' | 'safari'; type PlatformProperties (line 52) | type PlatformProperties = { type BrowserInfo (line 118) | type BrowserInfo = { function getBrowserInfo (line 126) | function getBrowserInfo(): BrowserInfo | null { FILE: src/internal/errors.ts function isAbortError (line 3) | function isAbortError(err: unknown) { FILE: src/internal/headers.ts type HeaderValue (line 5) | type HeaderValue = string | undefined | null; type HeadersLike (line 6) | type HeadersLike = type NullableHeaders (line 21) | type NullableHeaders = { FILE: src/internal/parse.ts type APIResponseProps (line 9) | type APIResponseProps = { function defaultParseResponse (line 18) | async function defaultParseResponse( type WithRequestID (line 86) | type WithRequestID = function addRequestID (line 91) | function addRequestID(value: T, response: Response): WithRequestID { FILE: src/internal/qs/formats.ts constant RFC1738 (line 9) | const RFC1738 = 'RFC1738'; constant RFC3986 (line 10) | const RFC3986 = 'RFC3986'; FILE: src/internal/qs/stringify.ts method brackets (line 7) | brackets(prefix: PropertyKey) { method indices (line 11) | indices(prefix: PropertyKey, key: string) { method repeat (line 14) | repeat(prefix: PropertyKey) { method serializeDate (line 41) | serializeDate(date) { function is_non_nullish_primitive (line 48) | function is_non_nullish_primitive(v: unknown): v is string | number | bo... function inner_stringify (line 60) | function inner_stringify( function normalize_stringify_options (line 222) | function normalize_stringify_options( function stringify (line 306) | function stringify(object: any, opts: StringifyOptions = {}) { FILE: src/internal/qs/types.ts type Format (line 1) | type Format = 'RFC1738' | 'RFC3986'; type DefaultEncoder (line 3) | type DefaultEncoder = (str: any, defaultEncoder?: any, charset?: string)... type DefaultDecoder (line 4) | type DefaultDecoder = (str: string, decoder?: any, charset?: string) => ... type BooleanOptional (line 6) | type BooleanOptional = boolean | undefined; type StringifyBaseOptions (line 8) | type StringifyBaseOptions = { type StringifyOptions (line 37) | type StringifyOptions = StringifyBaseOptions; type ParseBaseOptions (line 39) | type ParseBaseOptions = { type ParseOptions (line 62) | type ParseOptions = ParseBaseOptions; type ParsedQs (line 64) | type ParsedQs = { type NonNullableProperties (line 69) | type NonNullableProperties = { FILE: src/internal/qs/utils.ts function compact_queue (line 19) | function compact_queue>(queue: Array<{ obj... function array_to_object (line 41) | function array_to_object(source: any[], options: { plainObjects: boolean... function merge (line 52) | function merge( function assign_single_source (line 113) | function assign_single_source(target: any, source: any) { function decode (line 120) | function decode(str: string, _: any, charset: string) { function compact (line 215) | function compact(value: any) { function is_regexp (line 240) | function is_regexp(obj: any) { function is_buffer (line 244) | function is_buffer(obj: any) { function combine (line 252) | function combine(a: any, b: any) { function maybe_map (line 256) | function maybe_map(val: T[], fn: (v: T) => T) { FILE: src/internal/request-options.ts type FinalRequestOptions (line 10) | type FinalRequestOptions = RequestOptions & { method: HTTPMethod; path: ... type RequestOptions (line 12) | type RequestOptions = { type EncodedContent (line 85) | type EncodedContent = { bodyHeaders: HeadersLike; body: BodyInit }; type RequestEncoder (line 86) | type RequestEncoder = (request: { headers: NullableHeaders; body: unknow... FILE: src/internal/shim-types.ts type NeverToAny (line 10) | type NeverToAny = T extends never ? any : T; type _DOMReadableStream (line 13) | type _DOMReadableStream = globalThis.ReadableStream; type _NodeReadableStream (line 16) | type _NodeReadableStream = import('stream/web').ReadableStream type _ConditionalNodeReadableStream (line 18) | type _ConditionalNodeReadableStream = type _ReadableStream (line 21) | type _ReadableStream = NeverToAny< FILE: src/internal/shims.ts function getDefaultFetch (line 13) | function getDefaultFetch(): Fetch { type ReadableStreamArgs (line 23) | type ReadableStreamArgs = ConstructorParameters; function makeReadableStream (line 25) | function makeReadableStream(...args: ReadableStreamArgs): ReadableStream { function ReadableStreamFrom (line 38) | function ReadableStreamFrom(iterable: Iterable | AsyncIterable)... function ReadableStreamToAsyncIterable (line 64) | function ReadableStreamToAsyncIterable(stream: any): AsyncIterableIte... function CancelReadableStream (line 95) | async function CancelReadableStream(stream: any): Promise { FILE: src/internal/stream-utils.ts function ReadableStreamToAsyncIterable (line 7) | function ReadableStreamToAsyncIterable(stream: any): AsyncIterableIte... FILE: src/internal/to-file.ts type BlobLikePart (line 5) | type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | ... type BlobLike (line 11) | interface BlobLike { type FileLike (line 37) | interface FileLike extends BlobLike { type ResponseLike (line 57) | interface ResponseLike { type ToFileInput (line 68) | type ToFileInput = function toFile (line 83) | async function toFile( function getBytes (line 122) | async function getBytes(value: BlobLikePart | AsyncIterable = T | Promise; type HTTPMethod (line 4) | type HTTPMethod = 'get' | 'post' | 'put' | 'patch' | 'delete'; type KeysEnum (line 6) | type KeysEnum = { [P in keyof Required]: true }; type FinalizedRequestInit (line 8) | type FinalizedRequestInit = RequestInit & { headers: Headers }; type NotAny (line 10) | type NotAny = [0] extends [1 & T] ? never : T; type OverloadedParameters (line 15) | type OverloadedParameters = type UndiciTypesRequestInit (line 67) | type UndiciTypesRequestInit = NotAny[1]>; type RequestInits (line 80) | type RequestInits = type MergedRequestInit (line 93) | type MergedRequestInit = RequestInits & FILE: src/internal/uploads.ts type BlobPart (line 6) | type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | DataView; type FsReadStream (line 7) | type FsReadStream = AsyncIterable & { path: string | { toStr... type BunFile (line 10) | interface BunFile extends Blob { type Uploadable (line 37) | type Uploadable = File | Response | FsReadStream | BunFile; function makeFile (line 43) | function makeFile( function getName (line 52) | function getName(value: any): string | undefined { type MultipartFormRequestOptions (line 84) | type MultipartFormRequestOptions = Omit & { body... function supportsFormData (line 101) | function supportsFormData(fetchObject: OpenAI | Fetch): Promise { FILE: src/internal/utils/bytes.ts function concatBytes (line 1) | function concatBytes(buffers: Uint8Array[]): Uint8Array { function encodeUTF8 (line 17) | function encodeUTF8(str: string) { function decodeUTF8 (line 26) | function decodeUTF8(bytes: Uint8Array) { FILE: src/internal/utils/log.ts type LogFn (line 7) | type LogFn = (message: string, ...rest: unknown[]) => void; type Logger (line 8) | type Logger = { type LogLevel (line 14) | type LogLevel = 'off' | 'error' | 'warn' | 'info' | 'debug'; function noop (line 43) | function noop() {} function makeLogFn (line 45) | function makeLogFn(fnLevel: keyof Logger, logger: Logger | undefined, lo... function loggerFor (line 63) | function loggerFor(client: OpenAI): Logger { FILE: src/internal/utils/path.ts function encodeURIPath (line 11) | function encodeURIPath(str: string) { constant EMPTY (line 15) | const EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.creat... FILE: src/internal/utils/query.ts function stringifyQuery (line 5) | function stringifyQuery(query: object | Record) { FILE: src/internal/utils/values.ts function maybeObj (line 16) | function maybeObj(x: unknown): object { function isEmptyObj (line 25) | function isEmptyObj(obj: Object | null | undefined): boolean { function hasOwn (line 32) | function hasOwn(obj: T, key: PropertyKey): ke... function isObj (line 36) | function isObj(obj: unknown): obj is Record { FILE: src/lib/AbstractChatCompletionRunner.ts constant DEFAULT_MAX_CHAT_COMPLETIONS (line 26) | const DEFAULT_MAX_CHAT_COMPLETIONS = 10; type RunnerOptions (line 27) | interface RunnerOptions extends RequestOptions { class AbstractChatCompletionRunner (line 32) | class AbstractChatCompletionRunner< method _addChatCompletion (line 39) | protected _addChatCompletion( method _addMessage (line 50) | protected _addMessage( method finalChatCompletion (line 78) | async finalChatCompletion(): Promise> { method #getFinalContent (line 85) | #getFinalContent(): string | null { method finalContent (line 93) | async finalContent(): Promise { method #getFinalMessage (line 98) | #getFinalMessage(): ChatCompletionMessage { method finalMessage (line 119) | async finalMessage(): Promise { method #getFinalFunctionToolCall (line 124) | #getFinalFunctionToolCall(): ChatCompletionMessageFunctionToolCall.Fun... method finalFunctionToolCall (line 139) | async finalFunctionToolCall(): Promise { method #calculateTotalUsage (line 169) | #calculateTotalUsage(): CompletionUsage { method totalUsage (line 185) | async totalUsage(): Promise { method allChatCompletions (line 190) | allChatCompletions(): ChatCompletion[] { method _emitFinal (line 194) | protected override _emitFinal( method #validateParams (line 215) | #validateParams(params: ChatCompletionCreateParams): void { method _createChatCompletion (line 223) | protected async _createChatCompletion( method _runChatCompletion (line 243) | protected async _runChatCompletion( method _runTools (line 254) | protected async _runTools( method #stringifyFunctionCallResult (line 384) | #stringifyFunctionCallResult(rawContent: unknown): string { type AbstractChatCompletionRunnerEvents (line 393) | interface AbstractChatCompletionRunnerEvents extends BaseEvents { FILE: src/lib/AssistantStream.ts type AssistantStreamEvents (line 35) | interface AssistantStreamEvents extends BaseEvents { type ThreadCreateAndRunParamsBaseStream (line 61) | type ThreadCreateAndRunParamsBaseStream = Omit & { type RunSubmitToolOutputsParamsStream (line 69) | type RunSubmitToolOutputsParamsStream = Omit { method finalMessages (line 288) | async finalMessages(): Promise { method finalRun (line 294) | async finalRun(): Promise { method _createThreadAssistantStream (line 301) | protected async _createThreadAssistantStream( method _createAssistantStream (line 327) | protected async _createAssistantStream( method #addEvent (line 354) | #addEvent(event: AssistantStreamEvent) { method #endRequest (line 407) | #endRequest(): Run { method #handleMessage (line 417) | #handleMessage(this: AssistantStream, event: MessageStreamEvent) { method #handleRunStep (line 500) | #handleRunStep(this: AssistantStream, event: RunStepStreamEvent) { method #handleEvent (line 556) | #handleEvent(this: AssistantStream, event: AssistantStreamEvent) { method #accumulateRunStep (line 561) | #accumulateRunStep(event: RunStepStreamEvent): Runs.RunStep { method #accumulateMessage (line 595) | #accumulateMessage( method #accumulateContent (line 647) | #accumulateContent( method accumulateDelta (line 656) | static accumulateDelta(acc: Record, delta: Record { function assertNever (line 778) | function assertNever(_x: never) {} FILE: src/lib/ChatCompletionRunner.ts type ChatCompletionRunnerEvents (line 15) | interface ChatCompletionRunnerEvents extends AbstractChatCompletionRunne... type ChatCompletionToolRunnerParams (line 19) | type ChatCompletionToolRunnerParams extends AbstractChatCompletio... method runTools (line 30) | static runTools( method _addMessage (line 44) | override _addMessage( FILE: src/lib/ChatCompletionStream.ts type ContentDeltaEvent (line 36) | interface ContentDeltaEvent { type ContentDoneEvent (line 42) | interface ContentDoneEvent { type RefusalDeltaEvent (line 47) | interface RefusalDeltaEvent { type RefusalDoneEvent (line 52) | interface RefusalDoneEvent { type FunctionToolCallArgumentsDeltaEvent (line 56) | interface FunctionToolCallArgumentsDeltaEvent { type FunctionToolCallArgumentsDoneEvent (line 68) | interface FunctionToolCallArgumentsDoneEvent { type LogProbsContentDeltaEvent (line 78) | interface LogProbsContentDeltaEvent { type LogProbsContentDoneEvent (line 83) | interface LogProbsContentDoneEvent { type LogProbsRefusalDeltaEvent (line 87) | interface LogProbsRefusalDeltaEvent { type LogProbsRefusalDoneEvent (line 92) | interface LogProbsRefusalDoneEvent { type ChatCompletionStreamEvents (line 96) | interface ChatCompletionStreamEvents extends AbstractCha... type ChatCompletionStreamParams (line 116) | type ChatCompletionStreamParams = Omit method constructor (line 137) | constructor(params: ChatCompletionCreateParams | null) { method currentChatCompletionSnapshot (line 143) | get currentChatCompletionSnapshot(): ChatCompletionSnapshot | undefined { method fromReadableStream (line 154) | static fromReadableStream(stream: ReadableStream): ChatCompletionStrea... method createChatCompletion (line 160) | static createChatCompletion( method #beginRequest (line 176) | #beginRequest() { method #getChoiceEventState (line 181) | #getChoiceEventState(choice: ChatCompletionSnapshot.Choice): ChoiceEve... method #addChunk (line 199) | #addChunk(this: ChatCompletionStream, chunk: ChatCompletionCh... method #emitToolCallDoneEvent (line 290) | #emitToolCallDoneEvent(choiceSnapshot: ChatCompletionSnapshot.Choice, ... method #emitContentDoneEvents (line 324) | #emitContentDoneEvents(choiceSnapshot: ChatCompletionSnapshot.Choice) { method #endRequest (line 357) | #endRequest(): ParsedChatCompletion { method _createChatCompletion (line 370) | protected override async _createChatCompletion( method _fromReadableStream (line 397) | protected async _fromReadableStream( method #getAutoParseableResponseFormat (line 425) | #getAutoParseableResponseFormat(): AutoParseableResponseFormat): AsyncIterat... function finalizeChatCompletion (line 609) | function finalizeChatCompletion( function str (line 707) | function str(x: unknown) { type ChatCompletionSnapshot (line 715) | interface ChatCompletionSnapshot { type Choice (line 751) | interface Choice { type Message (line 781) | interface Message { type ToolCall (line 806) | interface ToolCall { type Function (line 821) | interface Function { type FunctionCall (line 843) | interface FunctionCall { type AssertIsEmpty (line 861) | type AssertIsEmpty = keyof T extends never ? T : never; function assertIsEmpty (line 868) | function assertIsEmpty(obj: AssertIsEmpty): asserts obj... function assertNever (line 872) | function assertNever(_x: never) {} FILE: src/lib/ChatCompletionStreamingRunner.ts type ChatCompletionStreamEvents (line 12) | interface ChatCompletionStreamEvents extends AbstractChatCompletionRunne... type ChatCompletionStreamingToolRunnerParams (line 17) | type ChatCompletionStreamingToolRunnerParams method fromReadableStream (line 28) | static override fromReadableStream(stream: ReadableStream): ChatComple... method runTools (line 34) | static runTools( FILE: src/lib/EventEmitter.ts type EventListener (line 1) | type EventListener = Events[Even... type EventListeners (line 3) | type EventListeners = Array<{ type EventParameters (line 8) | type EventParameters = { class EventEmitter (line 12) | class EventEmitter a... method on (line 24) | on(event: Event, listener: EventListen... method off (line 38) | off(event: Event, listener: EventListe... method once (line 51) | once(event: Event, listener: EventList... method emitted (line 69) | emitted( method _emit (line 82) | protected _emit( method _hasListener (line 94) | protected _hasListener(event: keyof EventTypes): boolean { FILE: src/lib/EventStream.ts class EventStream (line 3) | class EventStream { method constructor (line 23) | constructor() { method _run (line 42) | protected _run(this: EventStream, executor: () => Promise<... method _connected (line 53) | protected _connected(this: EventStream) { method ended (line 59) | get ended(): boolean { method errored (line 63) | get errored(): boolean { method aborted (line 67) | get aborted(): boolean { method abort (line 71) | abort() { method on (line 82) | on(event: Event, listener: EventListen... method off (line 96) | off(event: Event, listener: EventListe... method once (line 109) | once(event: Event, listener: EventList... method emitted (line 127) | emitted( method done (line 141) | async done(): Promise { method #handleError (line 146) | #handleError(this: EventStream, error: unknown) { method _emit (line 169) | _emit( method _emitFinal (line 220) | protected _emitFinal(): void {} type EventListener (line 223) | type EventListener = Events[Even... type EventListeners (line 225) | type EventListeners = Array<{ type EventParameters (line 230) | type EventParameters = { type BaseEvents (line 234) | interface BaseEvents { FILE: src/lib/ResponsesParser.ts type ParseableToolsParams (line 18) | type ParseableToolsParams = Array | ChatCompletionTool | null; type ResponseCreateParamsWithTools (line 20) | type ResponseCreateParamsWithTools = ResponseCreateParamsBase & { type TextConfigParams (line 24) | type TextConfigParams = { text?: ResponseTextConfig }; type ExtractParsedContentFromParams (line 26) | type ExtractParsedContentFromParams = function maybeParseResponse (line 29) | function maybeParseResponse< function parseResponse (line 63) | function parseResponse< function parseTextFormat (line 124) | function parseTextFormat< function hasAutoParseableInput (line 140) | function hasAutoParseableInput(params: ResponseCreateParamsWithTools): b... type ToolOptions (line 148) | type ToolOptions = { type AutoParseableResponseTool (line 154) | type AutoParseableResponseTool< function makeParseableResponseTool (line 166) | function makeParseableResponseTool( function isAutoParsableTool (line 196) | function isAutoParsableTool(tool: any): tool is AutoParseableResponseToo... function getInputToolByName (line 200) | function getInputToolByName(input_tools: Array, name: string): Fun... function parseToolCall (line 206) | function parseToolCall( function shouldParseToolCall (line 222) | function shouldParseToolCall( function validateInputTools (line 234) | function validateInputTools(tools: ChatCompletionTool[] | undefined) { function addOutputText (line 250) | function addOutputText(rsp: Response): void { FILE: src/lib/RunnableFunction.ts type PromiseOrValue (line 5) | type PromiseOrValue = T | Promise; type RunnableFunctionWithParse (line 7) | type RunnableFunctionWithParse = { type RunnableFunctionWithoutParse (line 37) | type RunnableFunctionWithoutParse = { type RunnableFunction (line 61) | type RunnableFunction = type RunnableToolFunction (line 66) | type RunnableToolFunction = type RunnableToolFunctionWithoutParse (line 71) | type RunnableToolFunctionWithoutParse = { type RunnableToolFunctionWithParse (line 75) | type RunnableToolFunctionWithParse = { function isRunnableFunctionWithParse (line 80) | function isRunnableFunctionWithParse( type BaseFunctionsArgs (line 86) | type BaseFunctionsArgs = readonly (object | string)[]; type RunnableFunctions (line 88) | type RunnableFunctions = type RunnableTools (line 95) | type RunnableTools = class ParsingToolFunction (line 106) | class ParsingToolFunction { method constructor (line 110) | constructor(input: RunnableFunctionWithParse) { FILE: src/lib/chatCompletionUtils.ts function isPresent (line 19) | function isPresent(obj: T | null | undefined): obj is T { FILE: src/lib/jsonschema.ts type JSONSchemaTypeName (line 14) | type JSONSchemaTypeName = type JSONSchemaType (line 28) | type JSONSchemaType = type JSONSchemaObject (line 37) | interface JSONSchemaObject { type JSONSchemaArray (line 43) | interface JSONSchemaArray extends Array {} type JSONSchemaVersion (line 56) | type JSONSchemaVersion = string; type JSONSchemaDefinition (line 62) | type JSONSchemaDefinition = JSONSchema | boolean; type JSONSchema (line 63) | interface JSONSchema { FILE: src/lib/parser.ts type AnyChatCompletionCreateParams (line 19) | type AnyChatCompletionCreateParams = type Unpacked (line 25) | type Unpacked = T extends (infer U)[] ? U : T; type ToolCall (line 27) | type ToolCall = Unpacked; function isChatCompletionFunctionTool (line 29) | function isChatCompletionFunctionTool(tool: ToolCall): tool is ChatCompl... type ExtractParsedContentFromParams (line 33) | type ExtractParsedContentFromParams = ResponseFormatJSONSchema & { function makeParseableResponseFormat (line 43) | function makeParseableResponseFormat( type AutoParseableTextFormat (line 63) | type AutoParseableTextFormat = ResponseFormatTextJSONSchemaConf... function makeParseableTextFormat (line 70) | function makeParseableTextFormat( function isAutoParsableResponseFormat (line 90) | function isAutoParsableResponseFormat( type ToolOptions (line 96) | type ToolOptions = { type AutoParseableTool (line 102) | type AutoParseableTool< function makeParseableTool (line 115) | function makeParseableTool( function isAutoParsableTool (line 145) | function isAutoParsableTool(tool: any): tool is AutoParseableTool { function maybeParseChatCompletion (line 149) | function maybeParseChatCompletion< function parseChatCompletion (line 178) | function parseChatCompletion< function parseResponseFormat (line 214) | function parseResponseFormat< function parseToolCall (line 235) | function parseToolCall( function shouldParseToolCall (line 255) | function shouldParseToolCall( function hasAutoParseableInput (line 273) | function hasAutoParseableInput(params: AnyChatCompletionCreateParams): b... function assertToolCallsAreChatCompletionFunctionToolCalls (line 285) | function assertToolCallsAreChatCompletionFunctionToolCalls( function validateInputTools (line 297) | function validateInputTools(tools: ChatCompletionCreateParamsBase['tools... FILE: src/lib/responses/EventTypes.ts type ResponseFunctionCallArgumentsDeltaEvent (line 35) | type ResponseFunctionCallArgumentsDeltaEvent = RawResponseFunctionCallAr... type ResponseTextDeltaEvent (line 39) | type ResponseTextDeltaEvent = RawResponseTextDeltaEvent & { type ParsedResponseStreamEvent (line 43) | type ParsedResponseStreamEvent = FILE: src/lib/responses/ResponseStream.ts type ResponseStreamParams (line 17) | type ResponseStreamParams = ResponseCreateAndStreamParams | ResponseStre... type ResponseCreateAndStreamParams (line 19) | type ResponseCreateAndStreamParams = Omit & { class ResponseStream (line 64) | class ResponseStream method constructor (line 72) | constructor(params: ResponseStreamingParams | null) { method createResponse (line 77) | static createResponse( method #beginRequest (line 92) | #beginRequest() { method #addEvent (line 97) | #addEvent(this: ResponseStream, event: ResponseStreamEvent, s... method #endRequest (line 150) | #endRequest(): ParsedResponse { method _createOrRetrieveResponse (line 165) | protected async _createOrRetrieveResponse( method #accumulateResponse (line 203) | #accumulateResponse(event: ResponseStreamEvent): Response { method finalResponse (line 355) | async finalResponse(): Promise> { method [Symbol.asyncIterator] (line 290) | [Symbol.asyncIterator](this: ResponseStream): AsyncIterator( FILE: src/lib/transform.ts function toStrictJsonSchema (line 3) | function toStrictJsonSchema(schema: JSONSchema): JSONSchema { function isNullable (line 14) | function isNullable(schema: JSONSchemaDefinition): boolean { function ensureStrictJsonSchema (line 38) | function ensureStrictJsonSchema( function resolveRef (line 158) | function resolveRef(root: JSONSchema, ref: string): JSONSchemaDefinition { function isObject (line 180) | function isObject(obj: T | Array): obj is Extract, n: number): boolean { FILE: src/realtime/internal-base.ts class OpenAIRealtimeError (line 11) | class OpenAIRealtimeError extends OpenAIError { method constructor (line 22) | constructor(message: string, event: RealtimeErrorEvent | null) { type Simplify (line 30) | type Simplify = { [KeyType in keyof T]: T[KeyType] } & {}; type RealtimeEvents (line 32) | type RealtimeEvents = Simplify< method _onError (line 56) | protected _onError(event: RealtimeErrorEvent | null, message?: string | ... function isAzure (line 82) | function isAzure(client: Pick): client is ... function buildRealtimeURL (line 86) | function buildRealtimeURL(client: Pick, mo... FILE: src/realtime/websocket.ts type MessageEvent (line 7) | interface MessageEvent { type _WebSocket (line 11) | type _WebSocket = class OpenAIRealtimeWebSocket (line 21) | class OpenAIRealtimeWebSocket extends OpenAIRealtimeEmitter { method constructor (line 25) | constructor( method create (line 107) | static async create( method azure (line 114) | static async azure( method send (line 142) | send(event: RealtimeClientEvent) { method close (line 150) | close(props?: { code: number; reason: string }) { FILE: src/realtime/ws.ts class OpenAIRealtimeWS (line 6) | class OpenAIRealtimeWS extends OpenAIRealtimeEmitter { method constructor (line 10) | constructor( method create (line 66) | static async create( method azure (line 73) | static async azure( method send (line 98) | send(event: RealtimeClientEvent) { method close (line 106) | close(props?: { code: number; reason: string }) { FILE: src/resources/audio/audio.ts class Audio (line 34) | class Audio extends APIResource { type AudioModel (line 40) | type AudioModel = type AudioResponseFormat (line 54) | type AudioResponseFormat = 'json' | 'text' | 'srt' | 'verbose_json' | 'v... FILE: src/resources/audio/speech.ts class Speech (line 11) | class Speech extends APIResource { method create (line 29) | create(body: SpeechCreateParams, options?: RequestOptions): APIPromise... type SpeechModel (line 39) | type SpeechModel = 'tts-1' | 'tts-1-hd' | 'gpt-4o-mini-tts' | 'gpt-4o-mi... type SpeechCreateParams (line 41) | interface SpeechCreateParams { type ID (line 104) | interface ID { FILE: src/resources/audio/transcriptions.ts class Transcriptions (line 15) | class Transcriptions extends APIResource { method create (line 52) | create( type Transcription (line 75) | interface Transcription { type Logprob (line 95) | interface Logprob { type Tokens (line 115) | interface Tokens { type InputTokenDetails (line 146) | interface InputTokenDetails { type Duration (line 162) | interface Duration { type TranscriptionDiarized (line 179) | interface TranscriptionDiarized { type Tokens (line 210) | interface Tokens { type InputTokenDetails (line 241) | interface InputTokenDetails { type Duration (line 257) | interface Duration { type TranscriptionDiarizedSegment (line 273) | interface TranscriptionDiarizedSegment { type TranscriptionInclude (line 307) | type TranscriptionInclude = 'logprobs'; type TranscriptionSegment (line 309) | interface TranscriptionSegment { type TranscriptionStreamEvent (line 370) | type TranscriptionStreamEvent = type TranscriptionTextDeltaEvent (line 381) | interface TranscriptionTextDeltaEvent { type Logprob (line 407) | interface Logprob { type TranscriptionTextDoneEvent (line 431) | interface TranscriptionTextDoneEvent { type Logprob (line 457) | interface Logprob { type Usage (line 477) | interface Usage { type InputTokenDetails (line 508) | interface InputTokenDetails { type TranscriptionTextSegmentEvent (line 528) | interface TranscriptionTextSegmentEvent { type TranscriptionVerbose (line 564) | interface TranscriptionVerbose { type Usage (line 600) | interface Usage { type TranscriptionWord (line 613) | interface TranscriptionWord { type TranscriptionCreateResponse (line 634) | type TranscriptionCreateResponse = Transcription | TranscriptionDiarized... type TranscriptionCreateParams (line 636) | type TranscriptionCreateParams< type TranscriptionCreateParamsBase (line 640) | interface TranscriptionCreateParamsBase< type VadConfig (line 751) | interface VadConfig { type TranscriptionCreateParamsNonStreaming (line 777) | type TranscriptionCreateParamsNonStreaming = TranscriptionsAPI.Transcrip... type TranscriptionCreateParamsStreaming (line 778) | type TranscriptionCreateParamsStreaming = TranscriptionsAPI.Transcriptio... type TranscriptionCreateParamsNonStreaming (line 781) | interface TranscriptionCreateParamsNonStreaming< type TranscriptionCreateParamsStreaming (line 797) | interface TranscriptionCreateParamsStreaming extends TranscriptionCreate... FILE: src/resources/audio/translations.ts class Translations (line 14) | class Translations extends APIResource { method create (line 36) | create( type Translation (line 47) | interface Translation { type TranslationVerbose (line 51) | interface TranslationVerbose { type TranslationCreateResponse (line 73) | type TranslationCreateResponse = Translation | TranslationVerbose; type TranslationCreateParams (line 75) | interface TranslationCreateParams< FILE: src/resources/batches.ts class Batches (line 14) | class Batches extends APIResource { method create (line 18) | create(body: BatchCreateParams, options?: RequestOptions): APIPromise<... method retrieve (line 25) | retrieve(batchID: string, options?: RequestOptions): APIPromise { method list (line 32) | list( method cancel (line 44) | cancel(batchID: string, options?: RequestOptions): APIPromise { type BatchesPage (line 49) | type BatchesPage = CursorPage; type Batch (line 51) | interface Batch { type Errors (line 177) | interface Errors { type BatchError (line 187) | interface BatchError { type BatchRequestCounts (line 212) | interface BatchRequestCounts { type BatchUsage (line 234) | interface BatchUsage { type InputTokensDetails (line 265) | interface InputTokensDetails { type OutputTokensDetails (line 276) | interface OutputTokensDetails { type BatchCreateParams (line 284) | interface BatchCreateParams { type OutputExpiresAfter (line 344) | interface OutputExpiresAfter { type BatchListParams (line 360) | interface BatchListParams extends CursorPageParams {} FILE: src/resources/beta/assistants.ts class Assistants (line 19) | class Assistants extends APIResource { method create (line 25) | create(body: AssistantCreateParams, options?: RequestOptions): APIProm... method retrieve (line 38) | retrieve(assistantID: string, options?: RequestOptions): APIPromise; type Assistant (line 92) | interface Assistant { type ToolResources (line 206) | interface ToolResources { type CodeInterpreter (line 213) | interface CodeInterpreter { type FileSearch (line 222) | interface FileSearch { type AssistantDeleted (line 234) | interface AssistantDeleted { type AssistantStreamEvent (line 264) | type AssistantStreamEvent = type ThreadCreated (line 296) | interface ThreadCreated { type ThreadRunCreated (line 315) | interface ThreadRunCreated { type ThreadRunQueued (line 329) | interface ThreadRunQueued { type ThreadRunInProgress (line 343) | interface ThreadRunInProgress { type ThreadRunRequiresAction (line 357) | interface ThreadRunRequiresAction { type ThreadRunCompleted (line 371) | interface ThreadRunCompleted { type ThreadRunIncomplete (line 385) | interface ThreadRunIncomplete { type ThreadRunFailed (line 399) | interface ThreadRunFailed { type ThreadRunCancelling (line 413) | interface ThreadRunCancelling { type ThreadRunCancelled (line 427) | interface ThreadRunCancelled { type ThreadRunExpired (line 441) | interface ThreadRunExpired { type ThreadRunStepCreated (line 456) | interface ThreadRunStepCreated { type ThreadRunStepInProgress (line 470) | interface ThreadRunStepInProgress { type ThreadRunStepDelta (line 484) | interface ThreadRunStepDelta { type ThreadRunStepCompleted (line 499) | interface ThreadRunStepCompleted { type ThreadRunStepFailed (line 513) | interface ThreadRunStepFailed { type ThreadRunStepCancelled (line 527) | interface ThreadRunStepCancelled { type ThreadRunStepExpired (line 541) | interface ThreadRunStepExpired { type ThreadMessageCreated (line 555) | interface ThreadMessageCreated { type ThreadMessageInProgress (line 570) | interface ThreadMessageInProgress { type ThreadMessageDelta (line 585) | interface ThreadMessageDelta { type ThreadMessageCompleted (line 600) | interface ThreadMessageCompleted { type ThreadMessageIncomplete (line 615) | interface ThreadMessageIncomplete { type ErrorEvent (line 630) | interface ErrorEvent { type AssistantTool (line 637) | type AssistantTool = CodeInterpreterTool | FileSearchTool | FunctionTool; type CodeInterpreterTool (line 639) | interface CodeInterpreterTool { type FileSearchTool (line 646) | interface FileSearchTool { type FileSearch (line 662) | interface FileSearch { type RankingOptions (line 695) | interface RankingOptions { type FunctionTool (line 711) | interface FunctionTool { type MessageStreamEvent (line 725) | type MessageStreamEvent = type ThreadMessageCreated (line 738) | interface ThreadMessageCreated { type ThreadMessageInProgress (line 753) | interface ThreadMessageInProgress { type ThreadMessageDelta (line 768) | interface ThreadMessageDelta { type ThreadMessageCompleted (line 783) | interface ThreadMessageCompleted { type ThreadMessageIncomplete (line 798) | interface ThreadMessageIncomplete { type RunStepStreamEvent (line 814) | type RunStepStreamEvent = type ThreadRunStepCreated (line 829) | interface ThreadRunStepCreated { type ThreadRunStepInProgress (line 843) | interface ThreadRunStepInProgress { type ThreadRunStepDelta (line 857) | interface ThreadRunStepDelta { type ThreadRunStepCompleted (line 872) | interface ThreadRunStepCompleted { type ThreadRunStepFailed (line 886) | interface ThreadRunStepFailed { type ThreadRunStepCancelled (line 900) | interface ThreadRunStepCancelled { type ThreadRunStepExpired (line 914) | interface ThreadRunStepExpired { type RunStreamEvent (line 928) | type RunStreamEvent = type ThreadRunCreated (line 945) | interface ThreadRunCreated { type ThreadRunQueued (line 959) | interface ThreadRunQueued { type ThreadRunInProgress (line 973) | interface ThreadRunInProgress { type ThreadRunRequiresAction (line 987) | interface ThreadRunRequiresAction { type ThreadRunCompleted (line 1001) | interface ThreadRunCompleted { type ThreadRunIncomplete (line 1015) | interface ThreadRunIncomplete { type ThreadRunFailed (line 1029) | interface ThreadRunFailed { type ThreadRunCancelling (line 1043) | interface ThreadRunCancelling { type ThreadRunCancelled (line 1057) | interface ThreadRunCancelled { type ThreadRunExpired (line 1071) | interface ThreadRunExpired { type ThreadStreamEvent (line 1087) | interface ThreadStreamEvent { type AssistantCreateParams (line 1102) | interface AssistantCreateParams { type ToolResources (line 1218) | interface ToolResources { type CodeInterpreter (line 1225) | interface CodeInterpreter { type FileSearch (line 1234) | interface FileSearch { type VectorStore (line 1253) | interface VectorStore { type Auto (line 1284) | interface Auto { type Static (line 1291) | interface Static { type Static (line 1301) | interface Static { type AssistantUpdateParams (line 1321) | interface AssistantUpdateParams { type ToolResources (line 1480) | interface ToolResources { type CodeInterpreter (line 1487) | interface CodeInterpreter { type FileSearch (line 1497) | interface FileSearch { type AssistantListParams (line 1509) | interface AssistantListParams extends CursorPageParams { FILE: src/resources/beta/beta.ts class Beta (line 96) | class Beta extends APIResource { FILE: src/resources/beta/chatkit/chatkit.ts class ChatKit (line 34) | class ChatKit extends APIResource { type ChatKitWorkflow (line 42) | interface ChatKitWorkflow { type Tracing (line 70) | interface Tracing { FILE: src/resources/beta/chatkit/sessions.ts class Sessions (line 10) | class Sessions extends APIResource { method create (line 23) | create(body: SessionCreateParams, options?: RequestOptions): APIPromis... method cancel (line 42) | cancel(sessionID: string, options?: RequestOptions): APIPromise; type ChatKitThreadItemListDataPage (line 114) | type ChatKitThreadItemListDataPage = ConversationCursorPage< type ChatSession (line 126) | interface ChatSession { type ChatSessionAutomaticThreadTitling (line 181) | interface ChatSessionAutomaticThreadTitling { type ChatSessionChatKitConfiguration (line 191) | interface ChatSessionChatKitConfiguration { type ChatSessionChatKitConfigurationParam (line 211) | interface ChatSessionChatKitConfigurationParam { type AutomaticThreadTitling (line 236) | interface AutomaticThreadTitling { type FileUpload (line 247) | interface FileUpload { type History (line 269) | interface History { type ChatSessionExpiresAfterParam (line 286) | interface ChatSessionExpiresAfterParam { type ChatSessionFileUpload (line 301) | interface ChatSessionFileUpload { type ChatSessionHistory (line 321) | interface ChatSessionHistory { type ChatSessionRateLimits (line 337) | interface ChatSessionRateLimits { type ChatSessionRateLimitsParam (line 347) | interface ChatSessionRateLimitsParam { type ChatSessionStatus (line 354) | type ChatSessionStatus = 'active' | 'expired' | 'cancelled'; type ChatSessionWorkflowParam (line 359) | interface ChatSessionWorkflowParam { type Tracing (line 388) | interface Tracing { type ChatKitAttachment (line 399) | interface ChatKitAttachment { type ChatKitResponseOutputText (line 429) | interface ChatKitResponseOutputText { type File (line 450) | interface File { type Source (line 466) | interface Source { type URL (line 482) | interface URL { type Source (line 498) | interface Source { type ChatKitThread (line 515) | interface ChatKitThread { type Active (line 552) | interface Active { type Locked (line 562) | interface Locked { type Closed (line 577) | interface Closed { type ChatKitThreadAssistantMessageItem (line 593) | interface ChatKitThreadAssistantMessageItem { type ChatKitThreadItemList (line 628) | interface ChatKitThreadItemList { type ChatKitClientToolCall (line 666) | interface ChatKitClientToolCall { type ChatKitTask (line 722) | interface ChatKitTask { type ChatKitTaskGroup (line 767) | interface ChatKitTaskGroup { type Task (line 803) | interface Task { type ChatKitThreadUserMessageItem (line 825) | interface ChatKitThreadUserMessageItem { type InputText (line 868) | interface InputText { type QuotedText (line 883) | interface QuotedText { type InferenceOptions (line 898) | interface InferenceOptions { type ToolChoice (line 915) | interface ToolChoice { type ChatKitWidgetItem (line 927) | interface ChatKitWidgetItem { type ThreadDeleteResponse (line 962) | interface ThreadDeleteResponse { type ThreadListParams (line 979) | interface ThreadListParams extends ConversationCursorPageParams { type ThreadListItemsParams (line 998) | interface ThreadListItemsParams extends ConversationCursorPageParams { FILE: src/resources/beta/realtime/realtime.ts class Realtime (line 23) | class Realtime extends APIResource { type ConversationCreatedEvent (line 32) | interface ConversationCreatedEvent { type Conversation (line 53) | interface Conversation { type ConversationItem (line 69) | interface ConversationItem { type ConversationItemContent (line 132) | interface ConversationItemContent { type ConversationItemCreateEvent (line 171) | interface ConversationItemCreateEvent { type ConversationItemCreatedEvent (line 210) | interface ConversationItemCreatedEvent { type ConversationItemDeleteEvent (line 240) | interface ConversationItemDeleteEvent { type ConversationItemDeletedEvent (line 262) | interface ConversationItemDeletedEvent { type ConversationItemInputAudioTranscriptionCompletedEvent (line 291) | interface ConversationItemInputAudioTranscriptionCompletedEvent { type TranscriptTextUsageTokens (line 334) | interface TranscriptTextUsageTokens { type InputTokenDetails (line 365) | interface InputTokenDetails { type TranscriptTextUsageDuration (line 381) | interface TranscriptTextUsageDuration { type Logprob (line 396) | interface Logprob { type ConversationItemInputAudioTranscriptionDeltaEvent (line 418) | interface ConversationItemInputAudioTranscriptionDeltaEvent { type Logprob (line 454) | interface Logprob { type ConversationItemInputAudioTranscriptionFailedEvent (line 477) | interface ConversationItemInputAudioTranscriptionFailedEvent { type Error (line 508) | interface Error { type ConversationItemRetrieveEvent (line 538) | interface ConversationItemRetrieveEvent { type ConversationItemTruncateEvent (line 568) | interface ConversationItemTruncateEvent { type ConversationItemTruncatedEvent (line 606) | interface ConversationItemTruncatedEvent { type ConversationItemWithReference (line 636) | interface ConversationItemWithReference { type Content (line 704) | interface Content { type ErrorEvent (line 739) | interface ErrorEvent { type Error (line 760) | interface Error { type InputAudioBufferAppendEvent (line 800) | interface InputAudioBufferAppendEvent { type InputAudioBufferClearEvent (line 822) | interface InputAudioBufferClearEvent { type InputAudioBufferClearedEvent (line 838) | interface InputAudioBufferClearedEvent { type InputAudioBufferCommitEvent (line 860) | interface InputAudioBufferCommitEvent { type InputAudioBufferCommittedEvent (line 878) | interface InputAudioBufferCommittedEvent { type InputAudioBufferSpeechStartedEvent (line 913) | interface InputAudioBufferSpeechStartedEvent { type InputAudioBufferSpeechStoppedEvent (line 943) | interface InputAudioBufferSpeechStoppedEvent { type RateLimitsUpdatedEvent (line 973) | interface RateLimitsUpdatedEvent { type RateLimit (line 991) | interface RateLimit { type RealtimeClientEvent (line 1017) | type RealtimeClientEvent = type OutputAudioBufferClear (line 1039) | interface OutputAudioBufferClear { type RealtimeResponse (line 1055) | interface RealtimeResponse { type RealtimeResponseStatus (line 1144) | interface RealtimeResponseStatus { type Error (line 1172) | interface Error { type RealtimeResponseUsage (line 1191) | interface RealtimeResponseUsage { type InputTokenDetails (line 1225) | interface InputTokenDetails { type OutputTokenDetails (line 1245) | interface OutputTokenDetails { type RealtimeServerEvent (line 1261) | type RealtimeServerEvent = type ConversationItemRetrieved (line 1302) | interface ConversationItemRetrieved { type OutputAudioBufferStarted (line 1325) | interface OutputAudioBufferStarted { type OutputAudioBufferStopped (line 1348) | interface OutputAudioBufferStopped { type OutputAudioBufferCleared (line 1373) | interface OutputAudioBufferCleared { type ResponseAudioDeltaEvent (line 1394) | interface ResponseAudioDeltaEvent { type ResponseAudioDoneEvent (line 1435) | interface ResponseAudioDoneEvent { type ResponseAudioTranscriptDeltaEvent (line 1470) | interface ResponseAudioTranscriptDeltaEvent { type ResponseAudioTranscriptDoneEvent (line 1512) | interface ResponseAudioTranscriptDoneEvent { type ResponseCancelEvent (line 1554) | interface ResponseCancelEvent { type ResponseContentPartAddedEvent (line 1576) | interface ResponseContentPartAddedEvent { type Part (line 1617) | interface Part { type ResponseContentPartDoneEvent (line 1644) | interface ResponseContentPartDoneEvent { type Part (line 1685) | interface Part { type ResponseCreateEvent (line 1725) | interface ResponseCreateEvent { type Response (line 1746) | interface Response { type Tool (line 1832) | interface Tool { type ResponseCreatedEvent (line 1861) | interface ResponseCreatedEvent { type ResponseDoneEvent (line 1883) | interface ResponseDoneEvent { type ResponseFunctionCallArgumentsDeltaEvent (line 1903) | interface ResponseFunctionCallArgumentsDeltaEvent { type ResponseFunctionCallArgumentsDoneEvent (line 1944) | interface ResponseFunctionCallArgumentsDoneEvent { type ResponseOutputItemAddedEvent (line 1984) | interface ResponseOutputItemAddedEvent { type ResponseOutputItemDoneEvent (line 2015) | interface ResponseOutputItemDoneEvent { type ResponseTextDeltaEvent (line 2045) | interface ResponseTextDeltaEvent { type ResponseTextDoneEvent (line 2086) | interface ResponseTextDoneEvent { type SessionCreatedEvent (line 2128) | interface SessionCreatedEvent { type SessionUpdateEvent (line 2156) | interface SessionUpdateEvent { type Session (line 2177) | interface Session { type ClientSecret (line 2315) | interface ClientSecret { type ExpiresAfter (line 2326) | interface ExpiresAfter { type InputAudioNoiseReduction (line 2348) | interface InputAudioNoiseReduction { type InputAudioTranscription (line 2367) | interface InputAudioTranscription { type Tool (line 2391) | interface Tool { type TracingConfiguration (line 2417) | interface TracingConfiguration { type TurnDetection (line 2449) | interface TurnDetection { type SessionUpdatedEvent (line 2502) | interface SessionUpdatedEvent { type TranscriptionSessionUpdate (line 2522) | interface TranscriptionSessionUpdate { type Session (line 2543) | interface Session { type ClientSecret (line 2604) | interface ClientSecret { type ExpiresAt (line 2615) | interface ExpiresAt { type InputAudioNoiseReduction (line 2637) | interface InputAudioNoiseReduction { type InputAudioTranscription (line 2651) | interface InputAudioTranscription { type TurnDetection (line 2687) | interface TurnDetection { type TranscriptionSessionUpdatedEvent (line 2740) | interface TranscriptionSessionUpdatedEvent { FILE: src/resources/beta/realtime/sessions.ts class Sessions (line 8) | class Sessions extends APIResource { method create (line 24) | create(body: SessionCreateParams, options?: RequestOptions): APIPromis... type Session (line 36) | interface Session { type InputAudioNoiseReduction (line 178) | interface InputAudioNoiseReduction { type InputAudioTranscription (line 197) | interface InputAudioTranscription { type Tool (line 221) | interface Tool { type TracingConfiguration (line 247) | interface TracingConfiguration { type TurnDetection (line 279) | interface TurnDetection { type SessionCreateResponse (line 331) | interface SessionCreateResponse { type ClientSecret (line 435) | interface ClientSecret { type InputAudioTranscription (line 457) | interface InputAudioTranscription { type Tool (line 464) | interface Tool { type TracingConfiguration (line 490) | interface TracingConfiguration { type TurnDetection (line 515) | interface TurnDetection { type SessionCreateParams (line 543) | interface SessionCreateParams { type ClientSecret (line 681) | interface ClientSecret { type ExpiresAfter (line 692) | interface ExpiresAfter { type InputAudioNoiseReduction (line 714) | interface InputAudioNoiseReduction { type InputAudioTranscription (line 733) | interface InputAudioTranscription { type Tool (line 757) | interface Tool { type TracingConfiguration (line 783) | interface TracingConfiguration { type TurnDetection (line 815) | interface TurnDetection { FILE: src/resources/beta/realtime/transcription-sessions.ts class TranscriptionSessions (line 8) | class TranscriptionSessions extends APIResource { method create (line 24) | create(body: TranscriptionSessionCreateParams, options?: RequestOption... type TranscriptionSession (line 40) | interface TranscriptionSession { type ClientSecret (line 76) | interface ClientSecret { type InputAudioTranscription (line 94) | interface InputAudioTranscription { type TurnDetection (line 122) | interface TurnDetection { type TranscriptionSessionCreateParams (line 150) | interface TranscriptionSessionCreateParams { type ClientSecret (line 211) | interface ClientSecret { type ExpiresAt (line 222) | interface ExpiresAt { type InputAudioNoiseReduction (line 244) | interface InputAudioNoiseReduction { type InputAudioTranscription (line 258) | interface InputAudioTranscription { type TurnDetection (line 294) | interface TurnDetection { FILE: src/resources/beta/threads/messages.ts class Messages (line 17) | class Messages extends APIResource { method create (line 23) | create(threadID: string, body: MessageCreateParams, options?: RequestO... method retrieve (line 36) | retrieve(messageID: string, params: MessageRetrieveParams, options?: R... method update (line 49) | update(messageID: string, params: MessageUpdateParams, options?: Reque... method list (line 63) | list( method delete (line 80) | delete( type MessagesPage (line 93) | type MessagesPage = CursorPage; type Annotation (line 100) | type Annotation = FileCitationAnnotation | FilePathAnnotation; type AnnotationDelta (line 107) | type AnnotationDelta = FileCitationDeltaAnnotation | FilePathDeltaAnnota... type FileCitationAnnotation (line 114) | interface FileCitationAnnotation { type FileCitation (line 133) | interface FileCitation { type FileCitationDeltaAnnotation (line 146) | interface FileCitationDeltaAnnotation { type FileCitation (line 170) | interface FileCitation { type FilePathAnnotation (line 187) | interface FilePathAnnotation { type FilePath (line 206) | interface FilePath { type FilePathDeltaAnnotation (line 218) | interface FilePathDeltaAnnotation { type FilePath (line 242) | interface FilePath { type ImageFile (line 250) | interface ImageFile { type ImageFileContentBlock (line 269) | interface ImageFileContentBlock { type ImageFileDelta (line 278) | interface ImageFileDelta { type ImageFileDeltaBlock (line 297) | interface ImageFileDeltaBlock { type ImageURL (line 311) | interface ImageURL { type ImageURLContentBlock (line 328) | interface ImageURLContentBlock { type ImageURLDelta (line 337) | interface ImageURLDelta { type ImageURLDeltaBlock (line 354) | interface ImageURLDeltaBlock { type Message (line 372) | interface Message { type Attachment (line 456) | interface Attachment { type AssistantToolsFileSearchTypeOnly (line 469) | interface AssistantToolsFileSearchTypeOnly { type IncompleteDetails (line 480) | interface IncompleteDetails { type MessageContent (line 492) | type MessageContent = type MessageContentDelta (line 502) | type MessageContentDelta = type MessageContentPartParam (line 512) | type MessageContentPartParam = ImageFileContentBlock | ImageURLContentBl... type MessageDeleted (line 514) | interface MessageDeleted { type MessageDelta (line 525) | interface MessageDelta { type MessageDeltaEvent (line 541) | interface MessageDeltaEvent { type RefusalContentBlock (line 561) | interface RefusalContentBlock { type RefusalDeltaBlock (line 573) | interface RefusalDeltaBlock { type Text (line 587) | interface Text { type TextContentBlock (line 599) | interface TextContentBlock { type TextContentBlockParam (line 611) | interface TextContentBlockParam { type TextDelta (line 623) | interface TextDelta { type TextDeltaBlock (line 635) | interface TextDeltaBlock { type MessageCreateParams (line 649) | interface MessageCreateParams { type Attachment (line 682) | interface Attachment { type FileSearch (line 695) | interface FileSearch { type MessageRetrieveParams (line 704) | interface MessageRetrieveParams { type MessageUpdateParams (line 712) | interface MessageUpdateParams { type MessageListParams (line 729) | interface MessageListParams extends CursorPageParams { type MessageDeleteParams (line 750) | interface MessageDeleteParams { FILE: src/resources/beta/threads/runs/runs.ts class Runs (line 49) | class Runs extends APIResource { method create (line 68) | create( method retrieve (line 89) | retrieve(runID: string, params: RunRetrieveParams, options?: RequestOp... method update (line 102) | update(runID: string, params: RunUpdateParams, options?: RequestOption... method list (line 116) | list( method cancel (line 133) | cancel(runID: string, params: RunCancelParams, options?: RequestOption... method createAndPoll (line 146) | async createAndPoll( method createAndStream (line 160) | createAndStream( method poll (line 173) | async poll( method stream (line 227) | stream(threadId: string, body: RunCreateParamsBaseStream, options?: Re... method submitToolOutputs (line 254) | submitToolOutputs( method submitToolOutputsAndPoll (line 274) | async submitToolOutputsAndPoll( method submitToolOutputsStream (line 288) | submitToolOutputsStream( type RunsPage (line 297) | type RunsPage = CursorPage; type RequiredActionFunctionToolCall (line 302) | interface RequiredActionFunctionToolCall { type Function (line 327) | interface Function { type Run (line 344) | interface Run { type IncompleteDetails (line 535) | interface IncompleteDetails { type LastError (line 546) | interface LastError { type RequiredAction (line 562) | interface RequiredAction { type SubmitToolOutputs (line 578) | interface SubmitToolOutputs { type TruncationStrategy (line 590) | interface TruncationStrategy { type Usage (line 610) | interface Usage { type RunStatus (line 633) | type RunStatus = type RunCreateParams (line 644) | type RunCreateParams = RunCreateParamsNonStreaming | RunCreateParamsStre... type RunCreateParamsBase (line 646) | interface RunCreateParamsBase { type AdditionalMessage (line 820) | interface AdditionalMessage { type Attachment (line 853) | interface Attachment { type FileSearch (line 866) | interface FileSearch { type TruncationStrategy (line 879) | interface TruncationStrategy { type RunCreateParamsNonStreaming (line 895) | type RunCreateParamsNonStreaming = RunsAPI.RunCreateParamsNonStreaming; type RunCreateParamsStreaming (line 896) | type RunCreateParamsStreaming = RunsAPI.RunCreateParamsStreaming; type RunCreateParamsNonStreaming (line 899) | interface RunCreateParamsNonStreaming extends RunCreateParamsBase { type RunCreateParamsStreaming (line 908) | interface RunCreateParamsStreaming extends RunCreateParamsBase { type RunRetrieveParams (line 917) | interface RunRetrieveParams { type RunUpdateParams (line 925) | interface RunUpdateParams { type RunListParams (line 943) | interface RunListParams extends CursorPageParams { type RunCancelParams (line 959) | interface RunCancelParams { type RunCreateAndPollParams (line 966) | type RunCreateAndPollParams = ThreadsAPI.ThreadCreateAndRunParamsNonStre... type RunCreateAndStreamParams (line 968) | type RunCreateAndStreamParams = RunCreateParamsBaseStream; type RunStreamParams (line 970) | type RunStreamParams = RunCreateParamsBaseStream; type RunSubmitToolOutputsParams (line 972) | type RunSubmitToolOutputsParams = type RunSubmitToolOutputsParamsBase (line 976) | interface RunSubmitToolOutputsParamsBase { type ToolOutput (line 998) | interface ToolOutput { type RunSubmitToolOutputsParamsNonStreaming (line 1011) | type RunSubmitToolOutputsParamsNonStreaming = RunsAPI.RunSubmitToolOutpu... type RunSubmitToolOutputsParamsStreaming (line 1012) | type RunSubmitToolOutputsParamsStreaming = RunsAPI.RunSubmitToolOutputsP... type RunSubmitToolOutputsParamsNonStreaming (line 1015) | interface RunSubmitToolOutputsParamsNonStreaming extends RunSubmitToolOu... type RunSubmitToolOutputsParamsStreaming (line 1024) | interface RunSubmitToolOutputsParamsStreaming extends RunSubmitToolOutpu... type RunSubmitToolOutputsAndPollParams (line 1033) | type RunSubmitToolOutputsAndPollParams = RunSubmitToolOutputsParamsNonSt... type RunSubmitToolOutputsStreamParams (line 1034) | type RunSubmitToolOutputsStreamParams = RunSubmitToolOutputsParamsStream; FILE: src/resources/beta/threads/runs/steps.ts class Steps (line 17) | class Steps extends APIResource { method retrieve (line 23) | retrieve(stepID: string, params: StepRetrieveParams, options?: Request... method list (line 37) | list(runID: string, params: StepListParams, options?: RequestOptions):... type RunStepsPage (line 47) | type RunStepsPage = CursorPage; type CodeInterpreterLogs (line 52) | interface CodeInterpreterLogs { type CodeInterpreterOutputImage (line 69) | interface CodeInterpreterOutputImage { type Image (line 84) | interface Image { type CodeInterpreterToolCall (line 96) | interface CodeInterpreterToolCall { type CodeInterpreter (line 118) | interface CodeInterpreter { type Logs (line 136) | interface Logs { type Image (line 148) | interface Image { type Image (line 158) | interface Image { type CodeInterpreterToolCallDelta (line 172) | interface CodeInterpreterToolCallDelta { type CodeInterpreter (line 199) | interface CodeInterpreter { type FileSearchToolCall (line 214) | interface FileSearchToolCall { type FileSearch (line 236) | interface FileSearch { type RankingOptions (line 252) | interface RankingOptions { type Result (line 269) | interface Result { type Content (line 294) | interface Content { type FileSearchToolCallDelta (line 309) | interface FileSearchToolCallDelta { type FunctionToolCall (line 332) | interface FunctionToolCall { type Function (line 354) | interface Function { type FunctionToolCallDelta (line 374) | interface FunctionToolCallDelta { type Function (line 401) | interface Function { type MessageCreationStepDetails (line 424) | interface MessageCreationStepDetails { type MessageCreation (line 434) | interface MessageCreation { type RunStep (line 445) | interface RunStep { type LastError (line 545) | interface LastError { type Usage (line 561) | interface Usage { type RunStepDelta (line 582) | interface RunStepDelta { type RunStepDeltaEvent (line 593) | interface RunStepDeltaEvent { type RunStepDeltaMessageDelta (line 613) | interface RunStepDeltaMessageDelta { type MessageCreation (line 623) | interface MessageCreation { type RunStepInclude (line 631) | type RunStepInclude = 'step_details.tool_calls[*].file_search.results[*]... type ToolCall (line 636) | type ToolCall = CodeInterpreterToolCall | FileSearchToolCall | FunctionT... type ToolCallDelta (line 641) | type ToolCallDelta = CodeInterpreterToolCallDelta | FileSearchToolCallDe... type ToolCallDeltaObject (line 646) | interface ToolCallDeltaObject { type ToolCallsStepDetails (line 663) | interface ToolCallsStepDetails { type StepRetrieveParams (line 677) | interface StepRetrieveParams { type StepListParams (line 701) | interface StepListParams extends CursorPageParams { FILE: src/resources/beta/threads/threads.ts class Threads (line 80) | class Threads extends APIResource { method create (line 89) | create(body: ThreadCreateParams | null | undefined = {}, options?: Req... method retrieve (line 102) | retrieve(threadID: string, options?: RequestOptions): APIPromise extends ChatCompletionMes... type ParsedChoice (line 225) | interface ParsedChoice extends ChatCompletion.Choice { type ParsedChatCompletion (line 229) | interface ParsedChatCompletion extends ChatCompletion { type ChatCompletionParseParams (line 233) | type ChatCompletionParseParams = ChatCompletionCreateParamsNonStreaming; type ChatCompletionsPage (line 246) | type ChatCompletionsPage = CursorPage; type ChatCompletionStoreMessagesPage (line 248) | type ChatCompletionStoreMessagesPage = CursorPage { type ContainerListResponsesPage (line 61) | type ContainerListResponsesPage = CursorPage; type ContainerCreateResponse (line 63) | interface ContainerCreateResponse { type ExpiresAfter (line 118) | interface ExpiresAfter { type NetworkPolicy (line 133) | interface NetworkPolicy { type ContainerRetrieveResponse (line 146) | interface ContainerRetrieveResponse { type ExpiresAfter (line 201) | interface ExpiresAfter { type NetworkPolicy (line 216) | interface NetworkPolicy { type ContainerListResponse (line 229) | interface ContainerListResponse { type ExpiresAfter (line 284) | interface ExpiresAfter { type NetworkPolicy (line 299) | interface NetworkPolicy { type ContainerCreateParams (line 312) | interface ContainerCreateParams { type ExpiresAfter (line 348) | interface ExpiresAfter { type ContainerListParams (line 359) | interface ContainerListParams extends CursorPageParams { FILE: src/resources/containers/files/content.ts class Content (line 9) | class Content extends APIResource { method retrieve (line 13) | retrieve(fileID: string, params: ContentRetrieveParams, options?: Requ... type ContentRetrieveParams (line 23) | interface ContentRetrieveParams { FILE: src/resources/containers/files/files.ts class Files (line 14) | class Files extends APIResource { method create (line 23) | create( method retrieve (line 37) | retrieve( method list (line 49) | list( method delete (line 63) | delete(fileID: string, params: FileDeleteParams, options?: RequestOpti... type FileListResponsesPage (line 72) | type FileListResponsesPage = CursorPage; type FileCreateResponse (line 74) | interface FileCreateResponse { type FileRetrieveResponse (line 111) | interface FileRetrieveResponse { type FileListResponse (line 148) | interface FileListResponse { type FileCreateParams (line 185) | interface FileCreateParams { type FileRetrieveParams (line 197) | interface FileRetrieveParams { type FileListParams (line 201) | interface FileListParams extends CursorPageParams { type FileDeleteParams (line 209) | interface FileDeleteParams { FILE: src/resources/conversations/conversations.ts class Conversations (line 24) | class Conversations extends APIResource { method create (line 30) | create( method retrieve (line 40) | retrieve(conversationID: string, options?: RequestOptions): APIPromise... method update (line 47) | update( method delete (line 58) | delete(conversationID: string, options?: RequestOptions): APIPromise; type ConversationItem (line 82) | type ConversationItem = type ImageGenerationCall (line 112) | interface ImageGenerationCall { type LocalShellCall (line 137) | interface LocalShellCall { type Action (line 168) | interface Action { type LocalShellCallOutput (line 204) | interface LocalShellCallOutput { type McpListTools (line 229) | interface McpListTools { type Tool (line 260) | interface Tool { type McpApprovalRequest (line 286) | interface McpApprovalRequest { type McpApprovalResponse (line 316) | interface McpApprovalResponse { type McpCall (line 346) | interface McpCall { type ConversationItemList (line 400) | interface ConversationItemList { type ItemCreateParams (line 427) | interface ItemCreateParams { type ItemRetrieveParams (line 443) | interface ItemRetrieveParams { type ItemListParams (line 458) | interface ItemListParams extends ConversationCursorPageParams { type ItemDeleteParams (line 490) | interface ItemDeleteParams { FILE: src/resources/embeddings.ts class Embeddings (line 11) | class Embeddings extends APIResource { method create (line 24) | create(body: EmbeddingCreateParams, options?: RequestOptions): APIProm... type CreateEmbeddingResponse (line 67) | interface CreateEmbeddingResponse { type Usage (line 93) | interface Usage { type Embedding (line 109) | interface Embedding { type EmbeddingModel (line 128) | type EmbeddingModel = 'text-embedding-ada-002' | 'text-embedding-3-small... type EmbeddingCreateParams (line 130) | interface EmbeddingCreateParams { FILE: src/resources/evals/evals.ts class Evals (line 33) | class Evals extends APIResource { method create (line 44) | create(body: EvalCreateParams, options?: RequestOptions): APIPromise; type EvalCustomDataSourceConfig (line 90) | interface EvalCustomDataSourceConfig { type EvalStoredCompletionsDataSourceConfig (line 106) | interface EvalStoredCompletionsDataSourceConfig { type EvalCreateResponse (line 137) | interface EvalCreateResponse { type Logs (line 196) | interface Logs { type EvalGraderTextSimilarity (line 222) | interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarit... type EvalGraderPython (line 232) | interface EvalGraderPython extends GraderModelsAPI.PythonGrader { type EvalGraderScoreModel (line 242) | interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { type EvalRetrieveResponse (line 258) | interface EvalRetrieveResponse { type Logs (line 317) | interface Logs { type EvalGraderTextSimilarity (line 343) | interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarit... type EvalGraderPython (line 353) | interface EvalGraderPython extends GraderModelsAPI.PythonGrader { type EvalGraderScoreModel (line 363) | interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { type EvalUpdateResponse (line 379) | interface EvalUpdateResponse { type Logs (line 438) | interface Logs { type EvalGraderTextSimilarity (line 464) | interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarit... type EvalGraderPython (line 474) | interface EvalGraderPython extends GraderModelsAPI.PythonGrader { type EvalGraderScoreModel (line 484) | interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { type EvalListResponse (line 500) | interface EvalListResponse { type Logs (line 559) | interface Logs { type EvalGraderTextSimilarity (line 585) | interface EvalGraderTextSimilarity extends GraderModelsAPI.TextSimilarit... type EvalGraderPython (line 595) | interface EvalGraderPython extends GraderModelsAPI.PythonGrader { type EvalGraderScoreModel (line 605) | interface EvalGraderScoreModel extends GraderModelsAPI.ScoreModelGrader { type EvalDeleteResponse (line 613) | interface EvalDeleteResponse { type EvalCreateParams (line 621) | interface EvalCreateParams { type Custom (line 667) | interface Custom { type Logs (line 689) | interface Logs { type StoredCompletions (line 704) | interface StoredCompletions { type LabelModel (line 720) | interface LabelModel { type SimpleInputMessage (line 754) | interface SimpleInputMessage { type EvalItem (line 773) | interface EvalItem { type OutputText (line 802) | interface OutputText { type InputImage (line 817) | interface InputImage { type TextSimilarity (line 840) | interface TextSimilarity extends GraderModelsAPI.TextSimilarityGrader { type Python (line 850) | interface Python extends GraderModelsAPI.PythonGrader { type ScoreModel (line 860) | interface ScoreModel extends GraderModelsAPI.ScoreModelGrader { type EvalUpdateParams (line 868) | interface EvalUpdateParams { type EvalListParams (line 885) | interface EvalListParams extends CursorPageParams { FILE: src/resources/evals/runs/output-items.ts class OutputItems (line 13) | class OutputItems extends APIResource { method retrieve (line 17) | retrieve( method list (line 29) | list( type OutputItemListResponsesPage (line 43) | type OutputItemListResponsesPage = CursorPage; type OutputItemRetrieveResponse (line 48) | interface OutputItemRetrieveResponse { type Result (line 104) | interface Result { type Sample (line 136) | interface Sample { type Input (line 192) | interface Input { type Output (line 204) | interface Output { type Usage (line 219) | interface Usage { type OutputItemListResponse (line 246) | interface OutputItemListResponse { type Result (line 302) | interface Result { type Sample (line 334) | interface Sample { type Input (line 390) | interface Input { type Output (line 402) | interface Output { type Usage (line 417) | interface Usage { type OutputItemRetrieveParams (line 441) | interface OutputItemRetrieveParams { type OutputItemListParams (line 453) | interface OutputItemListParams extends CursorPageParams { FILE: src/resources/evals/runs/runs.ts class Runs (line 25) | class Runs extends APIResource { method create (line 33) | create(evalID: string, body: RunCreateParams, options?: RequestOptions... method retrieve (line 40) | retrieve( method list (line 52) | list( method delete (line 66) | delete(runID: string, params: RunDeleteParams, options?: RequestOption... method cancel (line 74) | cancel(runID: string, params: RunCancelParams, options?: RequestOption... type RunListResponsesPage (line 80) | type RunListResponsesPage = CursorPage; type CreateEvalCompletionsRunDataSource (line 85) | interface CreateEvalCompletionsRunDataSource { type FileContent (line 118) | interface FileContent { type Content (line 131) | interface Content { type FileID (line 138) | interface FileID { type StoredCompletions (line 153) | interface StoredCompletions { type Template (line 190) | interface Template { type EvalItem (line 211) | interface EvalItem { type OutputText (line 240) | interface OutputText { type InputImage (line 255) | interface InputImage { type ItemReference (line 275) | interface ItemReference { type SamplingParams (line 287) | interface SamplingParams { type CreateEvalJSONLRunDataSource (line 355) | interface CreateEvalJSONLRunDataSource { type FileContent (line 368) | interface FileContent { type Content (line 381) | interface Content { type FileID (line 388) | interface FileID { type EvalAPIError (line 404) | interface EvalAPIError { type RunCreateResponse (line 419) | interface RunCreateResponse { type Responses (line 503) | interface Responses { type FileContent (line 531) | interface FileContent { type Content (line 544) | interface Content { type FileID (line 551) | interface FileID { type Responses (line 566) | interface Responses { type Template (line 640) | interface Template { type ChatMessage (line 654) | interface ChatMessage { type EvalItem (line 673) | interface EvalItem { type OutputText (line 702) | interface OutputText { type InputImage (line 717) | interface InputImage { type ItemReference (line 737) | interface ItemReference { type SamplingParams (line 749) | interface SamplingParams { type Text (line 823) | interface Text { type PerModelUsage (line 844) | interface PerModelUsage { type PerTestingCriteriaResult (line 876) | interface PerTestingCriteriaResult { type ResultCounts (line 896) | interface ResultCounts { type RunRetrieveResponse (line 922) | interface RunRetrieveResponse { type Responses (line 1006) | interface Responses { type FileContent (line 1034) | interface FileContent { type Content (line 1047) | interface Content { type FileID (line 1054) | interface FileID { type Responses (line 1069) | interface Responses { type Template (line 1143) | interface Template { type ChatMessage (line 1157) | interface ChatMessage { type EvalItem (line 1176) | interface EvalItem { type OutputText (line 1205) | interface OutputText { type InputImage (line 1220) | interface InputImage { type ItemReference (line 1240) | interface ItemReference { type SamplingParams (line 1252) | interface SamplingParams { type Text (line 1326) | interface Text { type PerModelUsage (line 1347) | interface PerModelUsage { type PerTestingCriteriaResult (line 1379) | interface PerTestingCriteriaResult { type ResultCounts (line 1399) | interface ResultCounts { type RunListResponse (line 1425) | interface RunListResponse { type Responses (line 1506) | interface Responses { type FileContent (line 1534) | interface FileContent { type Content (line 1547) | interface Content { type FileID (line 1554) | interface FileID { type Responses (line 1569) | interface Responses { type Template (line 1643) | interface Template { type ChatMessage (line 1657) | interface ChatMessage { type EvalItem (line 1676) | interface EvalItem { type OutputText (line 1705) | interface OutputText { type InputImage (line 1720) | interface InputImage { type ItemReference (line 1740) | interface ItemReference { type SamplingParams (line 1752) | interface SamplingParams { type Text (line 1826) | interface Text { type PerModelUsage (line 1847) | interface PerModelUsage { type PerTestingCriteriaResult (line 1879) | interface PerTestingCriteriaResult { type ResultCounts (line 1899) | interface ResultCounts { type RunDeleteResponse (line 1922) | interface RunDeleteResponse { type RunCancelResponse (line 1933) | interface RunCancelResponse { type Responses (line 2017) | interface Responses { type FileContent (line 2045) | interface FileContent { type Content (line 2058) | interface Content { type FileID (line 2065) | interface FileID { type Responses (line 2080) | interface Responses { type Template (line 2154) | interface Template { type ChatMessage (line 2168) | interface ChatMessage { type EvalItem (line 2187) | interface EvalItem { type OutputText (line 2216) | interface OutputText { type InputImage (line 2231) | interface InputImage { type ItemReference (line 2251) | interface ItemReference { type SamplingParams (line 2263) | interface SamplingParams { type Text (line 2337) | interface Text { type PerModelUsage (line 2358) | interface PerModelUsage { type PerTestingCriteriaResult (line 2390) | interface PerTestingCriteriaResult { type ResultCounts (line 2410) | interface ResultCounts { type RunCreateParams (line 2433) | interface RunCreateParams { type CreateEvalResponsesRunDataSource (line 2462) | interface CreateEvalResponsesRunDataSource { type FileContent (line 2495) | interface FileContent { type Content (line 2508) | interface Content { type FileID (line 2515) | interface FileID { type Responses (line 2530) | interface Responses { type Template (line 2604) | interface Template { type ChatMessage (line 2618) | interface ChatMessage { type EvalItem (line 2637) | interface EvalItem { type OutputText (line 2666) | interface OutputText { type InputImage (line 2681) | interface InputImage { type ItemReference (line 2701) | interface ItemReference { type SamplingParams (line 2713) | interface SamplingParams { type Text (line 2787) | interface Text { type RunRetrieveParams (line 2809) | interface RunRetrieveParams { type RunListParams (line 2816) | interface RunListParams extends CursorPageParams { type RunDeleteParams (line 2830) | interface RunDeleteParams { type RunCancelParams (line 2837) | interface RunCancelParams { FILE: src/resources/files.ts class Files (line 17) | class Files extends APIResource { method create (line 40) | create(body: FileCreateParams, options?: RequestOptions): APIPromise { method waitForProcessing (line 82) | async waitForProcessing( type FileObjectsPage (line 106) | type FileObjectsPage = CursorPage; type FileContent (line 108) | type FileContent = string; type FileDeleted (line 110) | interface FileDeleted { type FileObject (line 121) | interface FileObject { type FilePurpose (line 190) | type FilePurpose = 'assistants' | 'batch' | 'fine-tune' | 'vision' | 'us... type FileCreateParams (line 192) | interface FileCreateParams { type ExpiresAfter (line 222) | interface ExpiresAfter { type FileListParams (line 237) | interface FileListParams extends CursorPageParams { FILE: src/resources/fine-tuning/alpha/alpha.ts class Alpha (line 13) | class Alpha extends APIResource { FILE: src/resources/fine-tuning/alpha/graders.ts class Graders (line 11) | class Graders extends APIResource { method run (line 29) | run(body: GraderRunParams, options?: RequestOptions): APIPromise; type PermissionListResponsesPage (line 128) | type PermissionListResponsesPage = ConversationCursorPage; type FineTuningJobCheckpoint (line 44) | interface FineTuningJobCheckpoint { type Metrics (line 85) | interface Metrics { type CheckpointListParams (line 102) | interface CheckpointListParams extends CursorPageParams {} FILE: src/resources/fine-tuning/jobs/jobs.ts class Jobs (line 21) | class Jobs extends APIResource { method create (line 41) | create(body: JobCreateParams, options?: RequestOptions): APIPromise; type FineTuningJobEventsPage (line 149) | type FineTuningJobEventsPage = CursorPage; type FineTuningJob (line 155) | interface FineTuningJob { type Error (line 274) | interface Error { type Hyperparameters (line 296) | interface Hyperparameters { type Method (line 319) | interface Method { type FineTuningJobEvent (line 345) | interface FineTuningJobEvent { type FineTuningJobWandbIntegration (line 388) | interface FineTuningJobWandbIntegration { type FineTuningJobWandbIntegrationObject (line 415) | interface FineTuningJobWandbIntegrationObject { type FineTuningJobIntegration (line 430) | type FineTuningJobIntegration = FineTuningJobWandbIntegrationObject; type JobCreateParams (line 432) | interface JobCreateParams { type Hyperparameters (line 528) | interface Hyperparameters { type Integration (line 548) | interface Integration { type Wandb (line 571) | interface Wandb { type Method (line 602) | interface Method { type JobListParams (line 625) | interface JobListParams extends CursorPageParams { type JobListEventsParams (line 633) | interface JobListEventsParams extends CursorPageParams {} FILE: src/resources/fine-tuning/methods.ts class Methods (line 6) | class Methods extends APIResource {} type DpoHyperparameters (line 11) | interface DpoHyperparameters { type DpoMethod (line 40) | interface DpoMethod { type ReinforcementHyperparameters (line 50) | interface ReinforcementHyperparameters { type ReinforcementMethod (line 93) | interface ReinforcementMethod { type SupervisedHyperparameters (line 113) | interface SupervisedHyperparameters { type SupervisedMethod (line 136) | interface SupervisedMethod { FILE: src/resources/graders/grader-models.ts class GraderModels (line 8) | class GraderModels extends APIResource {} type GraderInputs (line 14) | type GraderInputs = Array< type OutputText (line 26) | interface OutputText { type InputImage (line 41) | interface InputImage { type LabelModelGrader (line 64) | interface LabelModelGrader { type Input (line 101) | interface Input { type OutputText (line 130) | interface OutputText { type InputImage (line 145) | interface InputImage { type MultiGrader (line 169) | interface MultiGrader { type PythonGrader (line 195) | interface PythonGrader { type ScoreModelGrader (line 220) | interface ScoreModelGrader { type Input (line 261) | interface Input { type OutputText (line 290) | interface OutputText { type InputImage (line 305) | interface InputImage { type SamplingParams (line 327) | interface SamplingParams { type StringCheckGrader (line 371) | interface StringCheckGrader { type TextSimilarityGrader (line 401) | interface TextSimilarityGrader { FILE: src/resources/graders/graders.ts class Graders (line 16) | class Graders extends APIResource { FILE: src/resources/images.ts class Images (line 14) | class Images extends APIResource { method createVariation (line 25) | createVariation(body: ImageCreateVariationParams, options?: RequestOpt... method edit (line 51) | edit( method generate (line 81) | generate( type Image (line 94) | interface Image { type ImageEditCompletedEvent (line 118) | interface ImageEditCompletedEvent { type Usage (line 166) | interface Usage { type InputTokensDetails (line 192) | interface InputTokensDetails { type ImageEditPartialImageEvent (line 209) | interface ImageEditPartialImageEvent { type ImageEditStreamEvent (line 254) | type ImageEditStreamEvent = ImageEditPartialImageEvent | ImageEditComple... type ImageGenCompletedEvent (line 259) | interface ImageGenCompletedEvent { type Usage (line 307) | interface Usage { type InputTokensDetails (line 333) | interface InputTokensDetails { type ImageGenPartialImageEvent (line 350) | interface ImageGenPartialImageEvent { type ImageGenStreamEvent (line 395) | type ImageGenStreamEvent = ImageGenPartialImageEvent | ImageGenCompleted... type ImageModel (line 397) | type ImageModel = 'gpt-image-1.5' | 'dall-e-2' | 'dall-e-3' | 'gpt-image... type ImagesResponse (line 402) | interface ImagesResponse { type Usage (line 445) | interface Usage { type InputTokensDetails (line 476) | interface InputTokensDetails { type OutputTokensDetails (line 491) | interface OutputTokensDetails { type ImageCreateVariationParams (line 505) | interface ImageCreateVariationParams { type ImageEditParams (line 544) | type ImageEditParams = ImageEditParamsNonStreaming | ImageEditParamsStre... type ImageEditParamsBase (line 546) | interface ImageEditParamsBase { type ImageEditParamsNonStreaming (line 664) | type ImageEditParamsNonStreaming = ImagesAPI.ImageEditParamsNonStreaming; type ImageEditParamsStreaming (line 665) | type ImageEditParamsStreaming = ImagesAPI.ImageEditParamsStreaming; type ImageEditParamsNonStreaming (line 668) | interface ImageEditParamsNonStreaming extends ImageEditParamsBase { type ImageEditParamsStreaming (line 677) | interface ImageEditParamsStreaming extends ImageEditParamsBase { type ImageGenerateParams (line 686) | type ImageGenerateParams = ImageGenerateParamsNonStreaming | ImageGenera... type ImageGenerateParamsBase (line 688) | interface ImageGenerateParamsBase { type ImageGenerateParamsNonStreaming (line 810) | type ImageGenerateParamsNonStreaming = ImagesAPI.ImageGenerateParamsNonS... type ImageGenerateParamsStreaming (line 811) | type ImageGenerateParamsStreaming = ImagesAPI.ImageGenerateParamsStreaming; type ImageGenerateParamsNonStreaming (line 814) | interface ImageGenerateParamsNonStreaming extends ImageGenerateParamsBase { type ImageGenerateParamsStreaming (line 823) | interface ImageGenerateParamsStreaming extends ImageGenerateParamsBase { FILE: src/resources/models.ts class Models (line 12) | class Models extends APIResource { method retrieve (line 17) | retrieve(model: string, options?: RequestOptions): APIPromise { method list (line 25) | list(options?: RequestOptions): PagePromise { method delete (line 33) | delete(model: string, options?: RequestOptions): APIPromise; type Model (line 44) | interface Model { type ModelDeleted (line 66) | interface ModelDeleted { FILE: src/resources/moderations.ts class Moderations (line 10) | class Moderations extends APIResource { method create (line 15) | create(body: ModerationCreateParams, options?: RequestOptions): APIPro... type Moderation (line 20) | interface Moderation { type Categories (line 46) | interface Categories { type CategoryAppliedInputTypes (line 133) | interface CategoryAppliedInputTypes { type CategoryScores (line 203) | interface CategoryScores { type ModerationImageURLInput (line 274) | interface ModerationImageURLInput { type ImageURL (line 290) | interface ImageURL { type ModerationModel (line 298) | type ModerationModel = type ModerationMultiModalInput (line 307) | type ModerationMultiModalInput = ModerationImageURLInput | ModerationTex... type ModerationTextInput (line 312) | interface ModerationTextInput { type ModerationCreateResponse (line 327) | interface ModerationCreateResponse { type ModerationCreateParams (line 344) | interface ModerationCreateParams { FILE: src/resources/realtime/calls.ts class Calls (line 11) | class Calls extends APIResource { method accept (line 23) | accept(callID: string, body: CallAcceptParams, options?: RequestOption... method hangup (line 39) | hangup(callID: string, options?: RequestOptions): APIPromise { method refer (line 56) | refer(callID: string, body: CallReferParams, options?: RequestOptions)... method reject (line 72) | reject( type CallAcceptParams (line 85) | interface CallAcceptParams { type CallReferParams (line 206) | interface CallReferParams { type CallRejectParams (line 214) | interface CallRejectParams { FILE: src/resources/realtime/client-secrets.ts class ClientSecrets (line 10) | class ClientSecrets extends APIResource { method create (line 34) | create(body: ClientSecretCreateParams, options?: RequestOptions): APIP... type RealtimeSessionClientSecret (line 42) | interface RealtimeSessionClientSecret { type RealtimeSessionCreateResponse (line 61) | interface RealtimeSessionCreateResponse { type Audio (line 191) | interface Audio { type Input (line 198) | interface Input { type NoiseReduction (line 251) | interface NoiseReduction { type ServerVad (line 264) | interface ServerVad { type SemanticVad (line 332) | interface SemanticVad { type Output (line 361) | interface Output { type McpTool (line 404) | interface McpTool { type McpToolFilter (line 486) | interface McpToolFilter { type McpToolApprovalFilter (line 505) | interface McpToolApprovalFilter { type Always (line 521) | interface Always { type Never (line 539) | interface Never { type TracingConfiguration (line 559) | interface TracingConfiguration { type RealtimeTranscriptionSessionCreateResponse (line 583) | interface RealtimeTranscriptionSessionCreateResponse { type Audio (line 622) | interface Audio { type Input (line 627) | interface Input { type NoiseReduction (line 655) | interface NoiseReduction { type RealtimeTranscriptionSessionTurnDetection (line 672) | interface RealtimeTranscriptionSessionTurnDetection { type ClientSecretCreateResponse (line 702) | interface ClientSecretCreateResponse { type ClientSecretCreateParams (line 719) | interface ClientSecretCreateParams { type ExpiresAfter (line 742) | interface ExpiresAfter { FILE: src/resources/realtime/realtime.ts class Realtime (line 20) | class Realtime extends APIResource { type AudioTranscription (line 25) | interface AudioTranscription { type ConversationCreatedEvent (line 60) | interface ConversationCreatedEvent { type Conversation (line 81) | interface Conversation { type ConversationItem (line 97) | type ConversationItem = type ConversationItemAdded (line 124) | interface ConversationItemAdded { type ConversationItemCreateEvent (line 156) | interface ConversationItemCreateEvent { type ConversationItemCreatedEvent (line 199) | interface ConversationItemCreatedEvent { type ConversationItemDeleteEvent (line 229) | interface ConversationItemDeleteEvent { type ConversationItemDeletedEvent (line 251) | interface ConversationItemDeletedEvent { type ConversationItemDone (line 274) | interface ConversationItemDone { type ConversationItemInputAudioTranscriptionCompletedEvent (line 309) | interface ConversationItemInputAudioTranscriptionCompletedEvent { type TranscriptTextUsageTokens (line 353) | interface TranscriptTextUsageTokens { type InputTokenDetails (line 384) | interface InputTokenDetails { type TranscriptTextUsageDuration (line 400) | interface TranscriptTextUsageDuration { type ConversationItemInputAudioTranscriptionDeltaEvent (line 417) | interface ConversationItemInputAudioTranscriptionDeltaEvent { type ConversationItemInputAudioTranscriptionFailedEvent (line 459) | interface ConversationItemInputAudioTranscriptionFailedEvent { type Error (line 490) | interface Error { type ConversationItemInputAudioTranscriptionSegment (line 516) | interface ConversationItemInputAudioTranscriptionSegment { type ConversationItemRetrieveEvent (line 570) | interface ConversationItemRetrieveEvent { type ConversationItemTruncateEvent (line 600) | interface ConversationItemTruncateEvent { type ConversationItemTruncatedEvent (line 638) | interface ConversationItemTruncatedEvent { type ConversationItemWithReference (line 668) | interface ConversationItemWithReference { type Content (line 736) | interface Content { type InputAudioBufferAppendEvent (line 783) | interface InputAudioBufferAppendEvent { type InputAudioBufferClearEvent (line 805) | interface InputAudioBufferClearEvent { type InputAudioBufferClearedEvent (line 821) | interface InputAudioBufferClearedEvent { type InputAudioBufferCommitEvent (line 843) | interface InputAudioBufferCommitEvent { type InputAudioBufferCommittedEvent (line 861) | interface InputAudioBufferCommittedEvent { type InputAudioBufferDtmfEventReceivedEvent (line 890) | interface InputAudioBufferDtmfEventReceivedEvent { type InputAudioBufferSpeechStartedEvent (line 919) | interface InputAudioBufferSpeechStartedEvent { type InputAudioBufferSpeechStoppedEvent (line 949) | interface InputAudioBufferSpeechStoppedEvent { type InputAudioBufferTimeoutTriggered (line 991) | interface InputAudioBufferTimeoutTriggered { type LogProbProperties (line 1023) | interface LogProbProperties { type McpListToolsCompleted (line 1043) | interface McpListToolsCompleted { type McpListToolsFailed (line 1063) | interface McpListToolsFailed { type McpListToolsInProgress (line 1083) | interface McpListToolsInProgress { type NoiseReductionType (line 1105) | type NoiseReductionType = 'near_field' | 'far_field'; type OutputAudioBufferClearEvent (line 1114) | interface OutputAudioBufferClearEvent { type RateLimitsUpdatedEvent (line 1132) | interface RateLimitsUpdatedEvent { type RateLimit (line 1150) | interface RateLimit { type RealtimeAudioConfig (line 1176) | interface RealtimeAudioConfig { type RealtimeAudioConfigInput (line 1182) | interface RealtimeAudioConfigInput { type NoiseReduction (line 1235) | interface NoiseReduction { type RealtimeAudioConfigOutput (line 1245) | interface RealtimeAudioConfigOutput { type ID (line 1289) | interface ID { type RealtimeAudioFormats (line 1300) | type RealtimeAudioFormats = type AudioPCM (line 1309) | interface AudioPCM { type AudioPCMU (line 1324) | interface AudioPCMU { type AudioPCMA (line 1334) | interface AudioPCMA { type RealtimeAudioInputTurnDetection (line 1357) | type RealtimeAudioInputTurnDetection = type ServerVad (line 1366) | interface ServerVad { type SemanticVad (line 1434) | interface SemanticVad { type RealtimeClientEvent (line 1466) | type RealtimeClientEvent = type RealtimeConversationItemAssistantMessage (line 1482) | interface RealtimeConversationItemAssistantMessage { type Content (line 1517) | interface Content { type RealtimeConversationItemFunctionCall (line 1547) | interface RealtimeConversationItemFunctionCall { type RealtimeConversationItemFunctionCallOutput (line 1591) | interface RealtimeConversationItemFunctionCallOutput { type RealtimeConversationItemSystemMessage (line 1634) | interface RealtimeConversationItemSystemMessage { type Content (line 1669) | interface Content { type RealtimeConversationItemUserMessage (line 1685) | interface RealtimeConversationItemUserMessage { type Content (line 1720) | interface Content { type RealtimeError (line 1762) | interface RealtimeError { type RealtimeErrorEvent (line 1794) | interface RealtimeErrorEvent { type RealtimeFunctionTool (line 1811) | interface RealtimeFunctionTool { type RealtimeMcpApprovalRequest (line 1837) | interface RealtimeMcpApprovalRequest { type RealtimeMcpApprovalResponse (line 1867) | interface RealtimeMcpApprovalResponse { type RealtimeMcpListTools (line 1897) | interface RealtimeMcpListTools { type Tool (line 1923) | interface Tool { type RealtimeMcpProtocolError (line 1946) | interface RealtimeMcpProtocolError { type RealtimeMcpToolCall (line 1957) | interface RealtimeMcpToolCall { type RealtimeMcpToolExecutionError (line 1999) | interface RealtimeMcpToolExecutionError { type RealtimeMcphttpError (line 2005) | interface RealtimeMcphttpError { type RealtimeResponse (line 2016) | interface RealtimeResponse { type Audio (line 2095) | interface Audio { type Output (line 2100) | interface Output { type RealtimeResponseCreateAudioOutput (line 2131) | interface RealtimeResponseCreateAudioOutput { type Output (line 2136) | interface Output { type ID (line 2169) | interface ID { type RealtimeResponseCreateMcpTool (line 2183) | interface RealtimeResponseCreateMcpTool { type McpToolFilter (line 2265) | interface McpToolFilter { type McpToolApprovalFilter (line 2284) | interface McpToolApprovalFilter { type Always (line 2300) | interface Always { type Never (line 2318) | interface Never { type RealtimeResponseCreateParams (line 2338) | interface RealtimeResponseCreateParams { type RealtimeResponseStatus (line 2421) | interface RealtimeResponseStatus { type Error (line 2449) | interface Error { type RealtimeResponseUsage (line 2468) | interface RealtimeResponseUsage { type RealtimeResponseUsageInputTokenDetails (line 2507) | interface RealtimeResponseUsageInputTokenDetails { type CachedTokensDetails (line 2538) | interface CachedTokensDetails { type RealtimeResponseUsageOutputTokenDetails (line 2559) | interface RealtimeResponseUsageOutputTokenDetails { type RealtimeServerEvent (line 2574) | type RealtimeServerEvent = type ConversationItemRetrieved (line 2630) | interface ConversationItemRetrieved { type OutputAudioBufferStarted (line 2653) | interface OutputAudioBufferStarted { type OutputAudioBufferStopped (line 2676) | interface OutputAudioBufferStopped { type OutputAudioBufferCleared (line 2701) | interface OutputAudioBufferCleared { type RealtimeSession (line 2722) | interface RealtimeSession { type InputAudioNoiseReduction (line 2913) | interface InputAudioNoiseReduction { type TracingConfiguration (line 2925) | interface TracingConfiguration { type ServerVad (line 2949) | interface ServerVad { type SemanticVad (line 3017) | interface SemanticVad { type RealtimeSessionCreateRequest (line 3049) | interface RealtimeSessionCreateRequest { type RealtimeToolChoiceConfig (line 3174) | type RealtimeToolChoiceConfig = type RealtimeToolsConfig (line 3182) | type RealtimeToolsConfig = Array; type RealtimeToolsConfigUnion (line 3189) | type RealtimeToolsConfigUnion = RealtimeFunctionTool | RealtimeToolsConf... type Mcp (line 3197) | interface Mcp { type McpToolFilter (line 3279) | interface McpToolFilter { type McpToolApprovalFilter (line 3298) | interface McpToolApprovalFilter { type Always (line 3314) | interface Always { type Never (line 3332) | interface Never { type RealtimeTracingConfig (line 3358) | type RealtimeTracingConfig = 'auto' | RealtimeTracingConfig.TracingConfi... type TracingConfiguration (line 3364) | interface TracingConfiguration { type RealtimeTranscriptionSessionAudio (line 3388) | interface RealtimeTranscriptionSessionAudio { type RealtimeTranscriptionSessionAudioInput (line 3392) | interface RealtimeTranscriptionSessionAudioInput { type NoiseReduction (line 3445) | interface NoiseReduction { type RealtimeTranscriptionSessionAudioInputTurnDetection (line 3470) | type RealtimeTranscriptionSessionAudioInputTurnDetection = type ServerVad (line 3479) | interface ServerVad { type SemanticVad (line 3547) | interface SemanticVad { type RealtimeTranscriptionSessionCreateRequest (line 3579) | interface RealtimeTranscriptionSessionCreateRequest { type RealtimeTruncation (line 3620) | type RealtimeTruncation = 'auto' | 'disabled' | RealtimeTruncationRetent... type RealtimeTruncationRetentionRatio (line 3627) | interface RealtimeTruncationRetentionRatio { type TokenLimits (line 3653) | interface TokenLimits { type ResponseAudioDeltaEvent (line 3668) | interface ResponseAudioDeltaEvent { type ResponseAudioDoneEvent (line 3709) | interface ResponseAudioDoneEvent { type ResponseAudioTranscriptDeltaEvent (line 3744) | interface ResponseAudioTranscriptDeltaEvent { type ResponseAudioTranscriptDoneEvent (line 3786) | interface ResponseAudioTranscriptDoneEvent { type ResponseCancelEvent (line 3830) | interface ResponseCancelEvent { type ResponseContentPartAddedEvent (line 3852) | interface ResponseContentPartAddedEvent { type Part (line 3893) | interface Part { type ResponseContentPartDoneEvent (line 3920) | interface ResponseContentPartDoneEvent { type Part (line 3961) | interface Part { type ResponseCreateEvent (line 4012) | interface ResponseCreateEvent { type ResponseCreatedEvent (line 4033) | interface ResponseCreatedEvent { type ResponseDoneEvent (line 4062) | interface ResponseDoneEvent { type ResponseFunctionCallArgumentsDeltaEvent (line 4082) | interface ResponseFunctionCallArgumentsDeltaEvent { type ResponseFunctionCallArgumentsDoneEvent (line 4123) | interface ResponseFunctionCallArgumentsDoneEvent { type ResponseMcpCallArgumentsDelta (line 4168) | interface ResponseMcpCallArgumentsDelta { type ResponseMcpCallArgumentsDone (line 4208) | interface ResponseMcpCallArgumentsDone { type ResponseMcpCallCompleted (line 4243) | interface ResponseMcpCallCompleted { type ResponseMcpCallFailed (line 4268) | interface ResponseMcpCallFailed { type ResponseMcpCallInProgress (line 4293) | interface ResponseMcpCallInProgress { type ResponseOutputItemAddedEvent (line 4318) | interface ResponseOutputItemAddedEvent { type ResponseOutputItemDoneEvent (line 4349) | interface ResponseOutputItemDoneEvent { type ResponseTextDeltaEvent (line 4379) | interface ResponseTextDeltaEvent { type ResponseTextDoneEvent (line 4420) | interface ResponseTextDoneEvent { type SessionCreatedEvent (line 4462) | interface SessionCreatedEvent { type SessionUpdateEvent (line 4490) | interface SessionUpdateEvent { type SessionUpdatedEvent (line 4515) | interface SessionUpdatedEvent { type TranscriptionSessionUpdate (line 4535) | interface TranscriptionSessionUpdate { type Session (line 4556) | interface Session { type InputAudioNoiseReduction (line 4602) | interface InputAudioNoiseReduction { type TurnDetection (line 4616) | interface TurnDetection { type TranscriptionSessionUpdatedEvent (line 4650) | interface TranscriptionSessionUpdatedEvent { type Session (line 4679) | interface Session { type ClientSecret (line 4715) | interface ClientSecret { type TurnDetection (line 4735) | interface TurnDetection { FILE: src/resources/responses/input-items.ts class InputItems (line 10) | class InputItems extends APIResource { method list (line 24) | list( type ResponseItemList (line 40) | interface ResponseItemList { type InputItemListParams (line 67) | interface InputItemListParams extends CursorPageParams { FILE: src/resources/responses/input-tokens.ts class InputTokens (line 9) | class InputTokens extends APIResource { method count (line 21) | count( type InputTokenCountResponse (line 29) | interface InputTokenCountResponse { type InputTokenCountParams (line 35) | interface InputTokenCountParams { type Text (line 132) | interface Text { FILE: src/resources/responses/internal-base.ts class WebSocketError (line 10) | class WebSocketError extends OpenAIError { method constructor (line 16) | constructor(message: string, event: ResponsesAPI.ResponseErrorEvent | ... type Simplify (line 23) | type Simplify = { [KeyType in keyof T]: T[KeyType] } & {}; type WebSocketEvents (line 25) | type WebSocketEvents = Simplify< method _onError (line 49) | protected _onError( function buildURL (line 76) | function buildURL(client: OpenAI, query?: object | null): URL { function safeJSONStringify (line 87) | function safeJSONStringify(value: unknown): string | null { FILE: src/resources/responses/responses.ts type ParsedResponseOutputText (line 24) | interface ParsedResponseOutputText extends ResponseOutputText { type ParsedContent (line 28) | type ParsedContent = ParsedResponseOutputText | Respon... type ParsedResponseOutputMessage (line 30) | interface ParsedResponseOutputMessage extends ResponseOutputMes... type ParsedResponseFunctionToolCall (line 34) | interface ParsedResponseFunctionToolCall extends ResponseFunctionToolCall { type ParsedResponseOutputItem (line 38) | type ParsedResponseOutputItem = type ParsedResponse (line 60) | interface ParsedResponse extends Response { type ResponseParseParams (line 66) | type ResponseParseParams = ResponseCreateParamsNonStreaming; class Responses (line 68) | class Responses extends APIResource { method create (line 99) | create( method retrieve (line 141) | retrieve( method delete (line 171) | delete(responseID: string, options?: RequestOptions): APIPromise { method parse (line 178) | parse; type ApplyPatchTool (line 238) | interface ApplyPatchTool { type CompactedResponse (line 245) | interface CompactedResponse { type ComputerAction (line 277) | type ComputerAction = type Click (line 292) | interface Click { type DoubleClick (line 318) | interface DoubleClick { type Drag (line 339) | interface Drag { type Path (line 364) | interface Path { type Keypress (line 380) | interface Keypress { type Move (line 397) | interface Move { type Screenshot (line 418) | interface Screenshot { type Scroll (line 429) | interface Scroll { type Type (line 460) | interface Type { type Wait (line 476) | interface Wait { type ComputerActionList (line 489) | type ComputerActionList = Array; type ComputerTool (line 495) | interface ComputerTool { type ComputerUsePreviewTool (line 506) | interface ComputerUsePreviewTool { type ContainerAuto (line 528) | interface ContainerAuto { type ContainerNetworkPolicyAllowlist (line 555) | interface ContainerNetworkPolicyAllowlist { type ContainerNetworkPolicyDisabled (line 572) | interface ContainerNetworkPolicyDisabled { type ContainerNetworkPolicyDomainSecret (line 579) | interface ContainerNetworkPolicyDomainSecret { type ContainerReference (line 596) | interface ContainerReference { type CustomTool (line 612) | interface CustomTool { type EasyInputMessage (line 646) | interface EasyInputMessage { type FileSearchTool (line 678) | interface FileSearchTool { type RankingOptions (line 710) | interface RankingOptions { type HybridSearch (line 735) | interface HybridSearch { type FunctionShellTool (line 752) | interface FunctionShellTool { type FunctionTool (line 766) | interface FunctionTool { type InlineSkill (line 799) | interface InlineSkill { type InlineSkillSource (line 824) | interface InlineSkillSource { type LocalEnvironment (line 841) | interface LocalEnvironment { type LocalSkill (line 853) | interface LocalSkill { type NamespaceTool (line 873) | interface NamespaceTool { type Function (line 896) | interface Function { type Response (line 914) | interface Response { type IncompleteDetails (line 1179) | interface IncompleteDetails { type Conversation (line 1190) | interface Conversation { type ResponseApplyPatchToolCall (line 1201) | interface ResponseApplyPatchToolCall { type CreateFile (line 1242) | interface CreateFile { type DeleteFile (line 1262) | interface DeleteFile { type UpdateFile (line 1277) | interface UpdateFile { type ResponseApplyPatchToolCallOutput (line 1298) | interface ResponseApplyPatchToolCallOutput { type ResponseAudioDeltaEvent (line 1334) | interface ResponseAudioDeltaEvent { type ResponseAudioDoneEvent (line 1354) | interface ResponseAudioDoneEvent { type ResponseAudioTranscriptDeltaEvent (line 1369) | interface ResponseAudioTranscriptDeltaEvent { type ResponseAudioTranscriptDoneEvent (line 1389) | interface ResponseAudioTranscriptDoneEvent { type ResponseCodeInterpreterCallCodeDeltaEvent (line 1404) | interface ResponseCodeInterpreterCallCodeDeltaEvent { type ResponseCodeInterpreterCallCodeDoneEvent (line 1435) | interface ResponseCodeInterpreterCallCodeDoneEvent { type ResponseCodeInterpreterCallCompletedEvent (line 1465) | interface ResponseCodeInterpreterCallCompletedEvent { type ResponseCodeInterpreterCallInProgressEvent (line 1491) | interface ResponseCodeInterpreterCallInProgressEvent { type ResponseCodeInterpreterCallInterpretingEvent (line 1517) | interface ResponseCodeInterpreterCallInterpretingEvent { type ResponseCodeInterpreterToolCall (line 1543) | interface ResponseCodeInterpreterToolCall { type Logs (line 1581) | interface Logs { type Image (line 1596) | interface Image { type ResponseCompactionItem (line 1613) | interface ResponseCompactionItem { type ResponseCompactionItemParam (line 1639) | interface ResponseCompactionItemParam { type ResponseCompletedEvent (line 1659) | interface ResponseCompletedEvent { type ResponseComputerToolCall (line 1681) | interface ResponseComputerToolCall { type PendingSafetyCheck (line 1733) | interface PendingSafetyCheck { type Click (line 1753) | interface Click { type DoubleClick (line 1779) | interface DoubleClick { type Drag (line 1800) | interface Drag { type Path (line 1825) | interface Path { type Keypress (line 1841) | interface Keypress { type Move (line 1858) | interface Move { type Screenshot (line 1879) | interface Screenshot { type Scroll (line 1890) | interface Scroll { type Type (line 1921) | interface Type { type Wait (line 1937) | interface Wait { type ResponseComputerToolCallOutputItem (line 1946) | interface ResponseComputerToolCallOutputItem { type AcknowledgedSafetyCheck (line 1984) | interface AcknowledgedSafetyCheck { type ResponseComputerToolCallOutputScreenshot (line 2005) | interface ResponseComputerToolCallOutputScreenshot { type ResponseContainerReference (line 2026) | interface ResponseContainerReference { type ResponseContent (line 2038) | type ResponseContent = type ReasoningTextContent (line 2050) | interface ReasoningTextContent { type ResponseContentPartAddedEvent (line 2066) | interface ResponseContentPartAddedEvent { type ReasoningText (line 2102) | interface ReasoningText { type ResponseContentPartDoneEvent (line 2118) | interface ResponseContentPartDoneEvent { type ReasoningText (line 2154) | interface ReasoningText { type ResponseConversationParam (line 2170) | interface ResponseConversationParam { type ResponseCreatedEvent (line 2180) | interface ResponseCreatedEvent { type ResponseCustomToolCall (line 2200) | interface ResponseCustomToolCall { type ResponseCustomToolCallInputDeltaEvent (line 2235) | interface ResponseCustomToolCallInputDeltaEvent { type ResponseCustomToolCallInputDoneEvent (line 2265) | interface ResponseCustomToolCallInputDoneEvent { type ResponseCustomToolCallOutput (line 2295) | interface ResponseCustomToolCallOutput { type ResponseError (line 2321) | interface ResponseError { type ResponseErrorEvent (line 2354) | interface ResponseErrorEvent { type ResponseFailedEvent (line 2384) | interface ResponseFailedEvent { type ResponseFileSearchCallCompletedEvent (line 2404) | interface ResponseFileSearchCallCompletedEvent { type ResponseFileSearchCallInProgressEvent (line 2429) | interface ResponseFileSearchCallInProgressEvent { type ResponseFileSearchCallSearchingEvent (line 2454) | interface ResponseFileSearchCallSearchingEvent { type ResponseFileSearchToolCall (line 2481) | interface ResponseFileSearchToolCall { type Result (line 2510) | interface Result { type ResponseFormatTextConfig (line 2557) | type ResponseFormatTextConfig = type ResponseFormatTextJSONSchemaConfig (line 2567) | interface ResponseFormatTextJSONSchemaConfig { type ResponseFunctionCallArgumentsDeltaEvent (line 2604) | interface ResponseFunctionCallArgumentsDeltaEvent { type ResponseFunctionCallArgumentsDoneEvent (line 2634) | interface ResponseFunctionCallArgumentsDoneEvent { type ResponseFunctionCallOutputItem (line 2666) | type ResponseFunctionCallOutputItem = type ResponseFunctionCallOutputItemList (line 2674) | type ResponseFunctionCallOutputItemList = Array; type ResponseInputAudio (line 3271) | interface ResponseInputAudio { type InputAudio (line 3281) | interface InputAudio { type ResponseInputContent (line 3297) | type ResponseInputContent = ResponseInputText | ResponseInputImage | Res... type ResponseInputFile (line 3302) | interface ResponseInputFile { type ResponseInputFileContent (line 3332) | interface ResponseInputFileContent { type ResponseInputImage (line 3363) | interface ResponseInputImage { type ResponseInputImageContent (line 3391) | interface ResponseInputImageContent { type ResponseInputItem (line 3422) | type ResponseInputItem = type Message (line 3458) | interface Message { type ComputerCallOutput (line 3485) | interface ComputerCallOutput { type AcknowledgedSafetyCheck (line 3523) | interface AcknowledgedSafetyCheck { type FunctionCallOutput (line 3544) | interface FunctionCallOutput { type ToolSearchCall (line 3573) | interface ToolSearchCall { type ImageGenerationCall (line 3608) | interface ImageGenerationCall { type LocalShellCall (line 3633) | interface LocalShellCall { type Action (line 3664) | interface Action { type LocalShellCallOutput (line 3700) | interface LocalShellCallOutput { type ShellCall (line 3725) | interface ShellCall { type Action (line 3763) | interface Action { type ShellCallOutput (line 3785) | interface ShellCallOutput { type ApplyPatchCall (line 3824) | interface ApplyPatchCall { type CreateFile (line 3857) | interface CreateFile { type DeleteFile (line 3877) | interface DeleteFile { type UpdateFile (line 3892) | interface UpdateFile { type ApplyPatchCallOutput (line 3913) | interface ApplyPatchCallOutput { type McpListTools (line 3945) | interface McpListTools { type Tool (line 3976) | interface Tool { type McpApprovalRequest (line 4002) | interface McpApprovalRequest { type McpApprovalResponse (line 4032) | interface McpApprovalResponse { type McpCall (line 4062) | interface McpCall { type ItemReference (line 4115) | interface ItemReference { type ResponseInputMessageContentList (line 4132) | type ResponseInputMessageContentList = Array; type ResponseInputMessageItem (line 4134) | interface ResponseInputMessageItem { type ResponseInputText (line 4166) | interface ResponseInputText { type ResponseInputTextContent (line 4181) | interface ResponseInputTextContent { type ResponseItem (line 4196) | type ResponseItem = type ImageGenerationCall (line 4224) | interface ImageGenerationCall { type LocalShellCall (line 4249) | interface LocalShellCall { type Action (line 4280) | interface Action { type LocalShellCallOutput (line 4316) | interface LocalShellCallOutput { type McpListTools (line 4341) | interface McpListTools { type Tool (line 4372) | interface Tool { type McpApprovalRequest (line 4398) | interface McpApprovalRequest { type McpApprovalResponse (line 4428) | interface McpApprovalResponse { type McpCall (line 4458) | interface McpCall { type ResponseLocalEnvironment (line 4512) | interface ResponseLocalEnvironment { type ResponseMcpCallArgumentsDeltaEvent (line 4523) | interface ResponseMcpCallArgumentsDeltaEvent { type ResponseMcpCallArgumentsDoneEvent (line 4554) | interface ResponseMcpCallArgumentsDoneEvent { type ResponseMcpCallCompletedEvent (line 4584) | interface ResponseMcpCallCompletedEvent { type ResponseMcpCallFailedEvent (line 4609) | interface ResponseMcpCallFailedEvent { type ResponseMcpCallInProgressEvent (line 4634) | interface ResponseMcpCallInProgressEvent { type ResponseMcpListToolsCompletedEvent (line 4659) | interface ResponseMcpListToolsCompletedEvent { type ResponseMcpListToolsFailedEvent (line 4684) | interface ResponseMcpListToolsFailedEvent { type ResponseMcpListToolsInProgressEvent (line 4710) | interface ResponseMcpListToolsInProgressEvent { type ResponseOutputAudio (line 4735) | interface ResponseOutputAudio { type ResponseOutputItem (line 4755) | type ResponseOutputItem = type ImageGenerationCall (line 4781) | interface ImageGenerationCall { type LocalShellCall (line 4806) | interface LocalShellCall { type Action (line 4837) | interface Action { type McpCall (line 4873) | interface McpCall { type McpListTools (line 4926) | interface McpListTools { type Tool (line 4957) | interface Tool { type McpApprovalRequest (line 4983) | interface McpApprovalRequest { type ResponseOutputItemAddedEvent (line 5014) | interface ResponseOutputItemAddedEvent { type ResponseOutputItemDoneEvent (line 5039) | interface ResponseOutputItemDoneEvent { type ResponseOutputMessage (line 5064) | interface ResponseOutputMessage { type ResponseOutputRefusal (line 5103) | interface ResponseOutputRefusal { type ResponseOutputText (line 5118) | interface ResponseOutputText { type FileCitation (line 5146) | interface FileCitation { type URLCitation (line 5171) | interface URLCitation { type ContainerFileCitation (line 5201) | interface ContainerFileCitation { type FilePath (line 5236) | interface FilePath { type Logprob (line 5256) | interface Logprob { type TopLogprob (line 5270) | interface TopLogprob { type ResponseOutputTextAnnotationAddedEvent (line 5283) | interface ResponseOutputTextAnnotationAddedEvent { type ResponsePrompt (line 5324) | interface ResponsePrompt { type ResponseQueuedEvent (line 5346) | interface ResponseQueuedEvent { type ResponseReasoningItem (line 5369) | interface ResponseReasoningItem { type Summary (line 5407) | interface Summary { type Content (line 5422) | interface Content { type ResponseReasoningSummaryPartAddedEvent (line 5438) | interface ResponseReasoningSummaryPartAddedEvent { type Part (line 5474) | interface Part { type ResponseReasoningSummaryPartDoneEvent (line 5490) | interface ResponseReasoningSummaryPartDoneEvent { type Part (line 5526) | interface Part { type ResponseReasoningSummaryTextDeltaEvent (line 5542) | interface ResponseReasoningSummaryTextDeltaEvent { type ResponseReasoningSummaryTextDoneEvent (line 5577) | interface ResponseReasoningSummaryTextDoneEvent { type ResponseReasoningTextDeltaEvent (line 5612) | interface ResponseReasoningTextDeltaEvent { type ResponseReasoningTextDoneEvent (line 5647) | interface ResponseReasoningTextDoneEvent { type ResponseRefusalDeltaEvent (line 5682) | interface ResponseRefusalDeltaEvent { type ResponseRefusalDoneEvent (line 5717) | interface ResponseRefusalDoneEvent { type ResponseStatus (line 5753) | type ResponseStatus = 'completed' | 'failed' | 'in_progress' | 'cancelle... type ResponseStreamEvent (line 5758) | type ResponseStreamEvent = type ResponseTextConfig (line 5820) | interface ResponseTextConfig { type ResponseTextDeltaEvent (line 5849) | interface ResponseTextDeltaEvent { type Logprob (line 5892) | interface Logprob { type TopLogprob (line 5910) | interface TopLogprob { type ResponseTextDoneEvent (line 5927) | interface ResponseTextDoneEvent { type Logprob (line 5970) | interface Logprob { type TopLogprob (line 5988) | interface TopLogprob { type ResponseToolSearchCall (line 6002) | interface ResponseToolSearchCall { type ResponseToolSearchOutputItem (line 6039) | interface ResponseToolSearchOutputItem { type ResponseToolSearchOutputItemParam (line 6076) | interface ResponseToolSearchOutputItemParam { type ResponseUsage (line 6112) | interface ResponseUsage { type InputTokensDetails (line 6143) | interface InputTokensDetails { type OutputTokensDetails (line 6154) | interface OutputTokensDetails { type ResponseWebSearchCallCompletedEvent (line 6165) | interface ResponseWebSearchCallCompletedEvent { type ResponseWebSearchCallInProgressEvent (line 6190) | interface ResponseWebSearchCallInProgressEvent { type ResponseWebSearchCallSearchingEvent (line 6215) | interface ResponseWebSearchCallSearchingEvent { type ResponsesClientEvent (line 6237) | interface ResponsesClientEvent { type ContextManagement (line 6525) | interface ContextManagement { type StreamOptions (line 6540) | interface StreamOptions { type ResponsesServerEvent (line 6556) | type ResponsesServerEvent = type SkillReference (line 6611) | interface SkillReference { type Tool (line 6631) | type Tool = type Mcp (line 6654) | interface Mcp { type McpToolFilter (line 6736) | interface McpToolFilter { type McpToolApprovalFilter (line 6755) | interface McpToolApprovalFilter { type Always (line 6771) | interface Always { type Never (line 6789) | interface Never { type CodeInterpreter (line 6809) | interface CodeInterpreter { type CodeInterpreterToolAuto (line 6828) | interface CodeInterpreterToolAuto { type ImageGeneration (line 6856) | interface ImageGeneration { type InputImageMask (line 6932) | interface InputImageMask { type LocalShell (line 6948) | interface LocalShell { type ToolChoiceAllowed (line 6959) | interface ToolChoiceAllowed { type ToolChoiceApplyPatch (line 6994) | interface ToolChoiceApplyPatch { type ToolChoiceCustom (line 7004) | interface ToolChoiceCustom { type ToolChoiceFunction (line 7019) | interface ToolChoiceFunction { type ToolChoiceMcp (line 7035) | interface ToolChoiceMcp { type ToolChoiceOptions (line 7062) | type ToolChoiceOptions = 'none' | 'auto' | 'required'; type ToolChoiceShell (line 7067) | interface ToolChoiceShell { type ToolChoiceTypes (line 7078) | interface ToolChoiceTypes { type ToolSearchTool (line 7109) | interface ToolSearchTool { type WebSearchPreviewTool (line 7136) | interface WebSearchPreviewTool { type UserLocation (line 7161) | interface UserLocation { type WebSearchTool (line 7195) | interface WebSearchTool { type Filters (line 7222) | interface Filters { type UserLocation (line 7235) | interface UserLocation { type ResponseCreateParams (line 7265) | type ResponseCreateParams = ResponseCreateParamsNonStreaming | ResponseC... type ResponseCreateParamsBase (line 7267) | interface ResponseCreateParamsBase { type ContextManagement (line 7538) | interface ContextManagement { type StreamOptions (line 7553) | interface StreamOptions { type ResponseCreateParamsNonStreaming (line 7565) | type ResponseCreateParamsNonStreaming = ResponsesAPI.ResponseCreateParam... type ResponseCreateParamsStreaming (line 7566) | type ResponseCreateParamsStreaming = ResponsesAPI.ResponseCreateParamsSt... type ResponseCreateParamsNonStreaming (line 7569) | interface ResponseCreateParamsNonStreaming extends ResponseCreateParamsB... type ResponseCreateParamsStreaming (line 7581) | interface ResponseCreateParamsStreaming extends ResponseCreateParamsBase { type ResponseRetrieveParams (line 7593) | type ResponseRetrieveParams = ResponseRetrieveParamsNonStreaming | Respo... type ResponseRetrieveParamsBase (line 7595) | interface ResponseRetrieveParamsBase { type ResponseRetrieveParamsNonStreaming (line 7629) | type ResponseRetrieveParamsNonStreaming = ResponsesAPI.ResponseRetrieveP... type ResponseRetrieveParamsStreaming (line 7630) | type ResponseRetrieveParamsStreaming = ResponsesAPI.ResponseRetrievePara... type ResponseRetrieveParamsNonStreaming (line 7633) | interface ResponseRetrieveParamsNonStreaming extends ResponseRetrievePar... type ResponseRetrieveParamsStreaming (line 7645) | interface ResponseRetrieveParamsStreaming extends ResponseRetrieveParams... type ResponseCompactParams (line 7657) | interface ResponseCompactParams { FILE: src/resources/responses/ws.ts class ResponsesWS (line 8) | class ResponsesWS extends ResponsesEmitter { method constructor (line 13) | constructor(client: OpenAI, options?: WS.ClientOptions | null | undefi... method send (line 52) | send(event: ResponsesAPI.ResponsesClientEvent) { method close (line 60) | close(props?: { code: number; reason: string }) { method authHeaders (line 68) | private authHeaders(): Record { FILE: src/resources/shared.ts type AllModels (line 3) | type AllModels = type ChatModel (line 21) | type ChatModel = type ComparisonFilter (line 105) | interface ComparisonFilter { type CompoundFilter (line 136) | interface CompoundFilter { type CustomToolInputFormat (line 152) | type CustomToolInputFormat = CustomToolInputFormat.Text | CustomToolInpu... type Text (line 158) | interface Text { type Grammar (line 168) | interface Grammar { type ErrorObject (line 186) | interface ErrorObject { type FunctionDefinition (line 196) | interface FunctionDefinition { type FunctionParameters (line 239) | type FunctionParameters = { [key: string]: unknown }; type Metadata (line 249) | type Metadata = { [key: string]: string }; type Reasoning (line 257) | interface Reasoning { type ReasoningEffort (line 310) | type ReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | ... type ResponseFormatJSONObject (line 317) | interface ResponseFormatJSONObject { type ResponseFormatJSONSchema (line 329) | interface ResponseFormatJSONSchema { type JSONSchema (line 345) | interface JSONSchema { type ResponseFormatText (line 378) | interface ResponseFormatText { type ResponseFormatTextGrammar (line 389) | interface ResponseFormatTextGrammar { type ResponseFormatTextPython (line 406) | interface ResponseFormatTextPython { type ResponsesModel (line 413) | type ResponsesModel = FILE: src/resources/skills/content.ts class Content (line 9) | class Content extends APIResource { method retrieve (line 13) | retrieve(skillID: string, options?: RequestOptions): APIPromise { method update (line 46) | update(skillID: string, body: SkillUpdateParams, options?: RequestOpti... method list (line 53) | list( method delete (line 63) | delete(skillID: string, options?: RequestOptions): APIPromise; type DeletedSkill (line 70) | interface DeletedSkill { type Skill (line 78) | interface Skill { type SkillList (line 115) | interface SkillList { type SkillCreateParams (line 142) | interface SkillCreateParams { type SkillUpdateParams (line 149) | interface SkillUpdateParams { type SkillListParams (line 156) | interface SkillListParams extends CursorPageParams { FILE: src/resources/skills/versions/content.ts class Content (line 9) | class Content extends APIResource { method retrieve (line 13) | retrieve(version: string, params: ContentRetrieveParams, options?: Req... type ContentRetrieveParams (line 23) | interface ContentRetrieveParams { FILE: src/resources/skills/versions/versions.ts class Versions (line 13) | class Versions extends APIResource { method create (line 19) | create( method retrieve (line 33) | retrieve( method list (line 45) | list( method delete (line 59) | delete( type SkillVersionsPage (line 69) | type SkillVersionsPage = CursorPage; type DeletedSkillVersion (line 71) | interface DeletedSkillVersion { type SkillVersion (line 84) | interface SkillVersion { type SkillVersionList (line 121) | interface SkillVersionList { type VersionCreateParams (line 148) | interface VersionCreateParams { type VersionRetrieveParams (line 160) | interface VersionRetrieveParams { type VersionListParams (line 167) | interface VersionListParams extends CursorPageParams { type VersionDeleteParams (line 174) | interface VersionDeleteParams { FILE: src/resources/uploads/parts.ts class Parts (line 13) | class Parts extends APIResource { method create (line 27) | create(uploadID: string, body: PartCreateParams, options?: RequestOpti... type UploadPart (line 38) | interface UploadPart { type PartCreateParams (line 60) | interface PartCreateParams { FILE: src/resources/uploads/uploads.ts class Uploads (line 14) | class Uploads extends APIResource { method create (line 40) | create(body: UploadCreateParams, options?: RequestOptions): APIPromise... method cancel (line 49) | cancel(uploadID: string, options?: RequestOptions): APIPromise { method complete (line 70) | complete(uploadID: string, body: UploadCompleteParams, options?: Reque... type Upload (line 78) | interface Upload { type UploadCreateParams (line 127) | interface UploadCreateParams { type ExpiresAfter (line 166) | interface ExpiresAfter { type UploadCompleteParams (line 181) | interface UploadCompleteParams { FILE: src/resources/vector-stores/file-batches.ts class FileBatches (line 16) | class FileBatches extends APIResource { method create (line 20) | create( method retrieve (line 35) | retrieve( method cancel (line 51) | cancel( method createAndPoll (line 66) | async createAndPoll( method listFiles (line 78) | listFiles( method poll (line 97) | async poll( method uploadAndPoll (line 150) | async uploadAndPoll( type VectorStoreFileBatch (line 194) | interface VectorStoreFileBatch { type FileCounts (line 229) | interface FileCounts { type FileBatchCreateParams (line 257) | interface FileBatchCreateParams { type File (line 293) | interface File { type FileBatchRetrieveParams (line 318) | interface FileBatchRetrieveParams { type FileBatchCancelParams (line 325) | interface FileBatchCancelParams { type FileBatchListFilesParams (line 332) | interface FileBatchListFilesParams extends CursorPageParams { FILE: src/resources/vector-stores/files.ts class Files (line 13) | class Files extends APIResource { method create (line 19) | create( method retrieve (line 34) | retrieve( method update (line 49) | update(fileID: string, params: FileUpdateParams, options?: RequestOpti... method list (line 61) | list( method delete (line 79) | delete( method createAndPoll (line 94) | async createAndPoll( method poll (line 108) | async poll( method upload (line 161) | async upload(vectorStoreId: string, file: Uploadable, options?: Reques... method uploadAndPoll (line 168) | async uploadAndPoll( method content (line 180) | content( type VectorStoreFilesPage (line 194) | type VectorStoreFilesPage = CursorPage; type FileContentResponsesPage (line 197) | type FileContentResponsesPage = Page; type VectorStoreFile (line 202) | interface VectorStoreFile { type LastError (line 265) | interface LastError { type VectorStoreFileDeleted (line 278) | interface VectorStoreFileDeleted { type FileContentResponse (line 286) | interface FileContentResponse { type FileCreateParams (line 298) | interface FileCreateParams { type FileRetrieveParams (line 322) | interface FileRetrieveParams { type FileUpdateParams (line 329) | interface FileUpdateParams { type FileListParams (line 345) | interface FileListParams extends CursorPageParams { type FileDeleteParams (line 366) | interface FileDeleteParams { type FileContentParams (line 373) | interface FileContentParams { FILE: src/resources/vector-stores/vector-stores.ts class VectorStores (line 35) | class VectorStores extends APIResource { method create (line 42) | create(body: VectorStoreCreateParams, options?: RequestOptions): APIPr... method retrieve (line 53) | retrieve(vectorStoreID: string, options?: RequestOptions): APIPromise<... method update (line 63) | update( method list (line 78) | list( method delete (line 92) | delete(vectorStoreID: string, options?: RequestOptions): APIPromise; type VectorStoreSearchResponsesPage (line 124) | type VectorStoreSearchResponsesPage = Page; type AutoFileChunkingStrategyParam (line 130) | interface AutoFileChunkingStrategyParam { type FileChunkingStrategy (line 140) | type FileChunkingStrategy = StaticFileChunkingStrategyObject | OtherFile... type FileChunkingStrategyParam (line 146) | type FileChunkingStrategyParam = AutoFileChunkingStrategyParam | StaticF... type OtherFileChunkingStrategyObject (line 153) | interface OtherFileChunkingStrategyObject { type StaticFileChunkingStrategy (line 160) | interface StaticFileChunkingStrategy { type StaticFileChunkingStrategyObject (line 175) | interface StaticFileChunkingStrategyObject { type StaticFileChunkingStrategyObjectParam (line 187) | interface StaticFileChunkingStrategyObjectParam { type VectorStore (line 200) | interface VectorStore { type FileCounts (line 262) | interface FileCounts { type ExpiresAfter (line 292) | interface ExpiresAfter { type VectorStoreDeleted (line 306) | interface VectorStoreDeleted { type VectorStoreSearchResponse (line 314) | interface VectorStoreSearchResponse { type Content (line 346) | interface Content { type VectorStoreCreateParams (line 359) | interface VectorStoreCreateParams { type ExpiresAfter (line 404) | interface ExpiresAfter { type VectorStoreUpdateParams (line 418) | interface VectorStoreUpdateParams { type ExpiresAfter (line 444) | interface ExpiresAfter { type VectorStoreListParams (line 458) | interface VectorStoreListParams extends CursorPageParams { type VectorStoreSearchParams (line 474) | interface VectorStoreSearchParams { type RankingOptions (line 506) | interface RankingOptions { FILE: src/resources/videos.ts class Videos (line 12) | class Videos extends APIResource { method create (line 16) | create(body: VideoCreateParams, options?: RequestOptions): APIPromise<... method retrieve (line 23) | retrieve(videoID: string, options?: RequestOptions): APIPromise