diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 08a8c70cf..0eebf4fc3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.9.1" + ".": "5.9.2" } diff --git a/.stats.yml b/.stats.yml index 12a179baf..571b0ee79 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 111 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-82fd6fcb3eea81cbbe09a6f831c82219f1251e1b76474b4c41f424bf277e6a71.yml -openapi_spec_hash: c8d54bd1ae3d704f6b6f72ffd2f876d8 -config_hash: 3315d58b60faf63b1bee251b81837cda +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-c7dacca97e28bceff218684bb429481a70aa47aadad983ed9178bfda75ff4cd2.yml +openapi_spec_hash: 28eb1bb901ca10d2e37db4606d2bcfa7 +config_hash: 167ad0ca036d0f023c78e6496b4311e8 diff --git a/CHANGELOG.md b/CHANGELOG.md index 641221214..087c0abc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 5.9.2 (2025-07-15) + +Full Changelog: [v5.9.1...v5.9.2](https://github.com/openai/openai-node/compare/v5.9.1...v5.9.2) + +### Chores + +* **api:** update realtime specs ([4a20a3d](https://github.com/openai/openai-node/commit/4a20a3da8319667540a7b120f0f94e253420058e)) +* **internal:** version bump ([103e8de](https://github.com/openai/openai-node/commit/103e8def71408724fb37104cfcb9419e01022f24)) + ## 5.9.1 (2025-07-15) Full Changelog: [v5.9.0...v5.9.1](https://github.com/openai/openai-node/compare/v5.9.0...v5.9.1) diff --git a/jsr.json b/jsr.json index 705b34398..739fd370b 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@openai/openai", - "version": "5.9.1", + "version": "5.9.2", "exports": { ".": "./index.ts", "./helpers/zod": "./helpers/zod.ts", diff --git a/package.json b/package.json index 515e53826..61159782a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "5.9.1", + "version": "5.9.2", "description": "The official TypeScript library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", diff --git a/src/resources/beta/realtime/realtime.ts b/src/resources/beta/realtime/realtime.ts index b27786154..5e70bd2d3 100644 --- a/src/resources/beta/realtime/realtime.ts +++ b/src/resources/beta/realtime/realtime.ts @@ -145,14 +145,15 @@ export interface ConversationItemContent { text?: string; /** - * The transcript of the audio, used for `input_audio` content type. + * The transcript of the audio, used for `input_audio` and `audio` content types. */ transcript?: string; /** - * The content type (`input_text`, `input_audio`, `item_reference`, `text`). + * The content type (`input_text`, `input_audio`, `item_reference`, `text`, + * `audio`). */ - type?: 'input_text' | 'input_audio' | 'item_reference' | 'text'; + type?: 'input_text' | 'input_audio' | 'item_reference' | 'text' | 'audio'; } /** @@ -659,7 +660,7 @@ export interface ConversationItemWithReference { * - Message items of role `user` support `input_text` and `input_audio` content * - Message items of role `assistant` support `text` content. */ - content?: Array; + content?: Array; /** * The name of the function being called (for `function_call` items). @@ -696,6 +697,37 @@ export interface ConversationItemWithReference { type?: 'message' | 'function_call' | 'function_call_output' | 'item_reference'; } +export namespace ConversationItemWithReference { + export interface Content { + /** + * ID of a previous conversation item to reference (for `item_reference` content + * types in `response.create` events). These can reference both client and server + * created items. + */ + id?: string; + + /** + * Base64-encoded audio bytes, used for `input_audio` content type. + */ + audio?: string; + + /** + * The text content, used for `input_text` and `text` content types. + */ + text?: string; + + /** + * The transcript of the audio, used for `input_audio` content type. + */ + transcript?: string; + + /** + * The content type (`input_text`, `input_audio`, `item_reference`, `text`). + */ + type?: 'input_text' | 'input_audio' | 'item_reference' | 'text'; + } +} + /** * Returned when an error occurs, which could be a client problem or a server * problem. Most errors are recoverable and the session will stay open, we diff --git a/src/version.ts b/src/version.ts index 66c00f739..75035c60e 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '5.9.1'; // x-release-please-version +export const VERSION = '5.9.2'; // x-release-please-version