openai 6.35.0 → 6.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/azure.d.mts +4 -1
- package/azure.d.mts.map +1 -1
- package/azure.d.ts +4 -1
- package/azure.d.ts.map +1 -1
- package/azure.js +4 -3
- package/azure.js.map +1 -1
- package/azure.mjs +4 -3
- package/azure.mjs.map +1 -1
- package/beta/realtime/websocket.d.mts.map +1 -1
- package/beta/realtime/websocket.d.ts.map +1 -1
- package/beta/realtime/websocket.js +7 -2
- package/beta/realtime/websocket.js.map +1 -1
- package/beta/realtime/websocket.mjs +7 -2
- package/beta/realtime/websocket.mjs.map +1 -1
- package/beta/realtime/ws.d.mts.map +1 -1
- package/beta/realtime/ws.d.ts.map +1 -1
- package/beta/realtime/ws.js +5 -1
- package/beta/realtime/ws.js.map +1 -1
- package/beta/realtime/ws.mjs +5 -1
- package/beta/realtime/ws.mjs.map +1 -1
- package/bin/migration-config.json +735 -0
- package/client.d.mts +30 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -8
- package/client.d.ts.map +1 -1
- package/client.js +78 -22
- package/client.js.map +1 -1
- package/client.mjs +78 -22
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +18 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +18 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +32 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +30 -0
- package/core/pagination.mjs.map +1 -1
- package/internal/request-options.d.mts +4 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +4 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/realtime/websocket.d.mts.map +1 -1
- package/realtime/websocket.d.ts.map +1 -1
- package/realtime/websocket.js +7 -2
- package/realtime/websocket.js.map +1 -1
- package/realtime/websocket.mjs +7 -2
- package/realtime/websocket.mjs.map +1 -1
- package/realtime/ws.d.mts.map +1 -1
- package/realtime/ws.d.ts.map +1 -1
- package/realtime/ws.js +5 -1
- package/realtime/ws.js.map +1 -1
- package/realtime/ws.mjs +5 -1
- package/realtime/ws.mjs.map +1 -1
- package/resources/admin/admin.d.mts +10 -0
- package/resources/admin/admin.d.mts.map +1 -0
- package/resources/admin/admin.d.ts +10 -0
- package/resources/admin/admin.d.ts.map +1 -0
- package/resources/admin/admin.js +17 -0
- package/resources/admin/admin.js.map +1 -0
- package/resources/admin/admin.mjs +12 -0
- package/resources/admin/admin.mjs.map +1 -0
- package/resources/admin/index.d.mts +3 -0
- package/resources/admin/index.d.mts.map +1 -0
- package/resources/admin/index.d.ts +3 -0
- package/resources/admin/index.d.ts.map +1 -0
- package/resources/admin/index.js +9 -0
- package/resources/admin/index.js.map +1 -0
- package/resources/admin/index.mjs +4 -0
- package/resources/admin/index.mjs.map +1 -0
- package/resources/admin/organization/admin-api-keys.d.mts +140 -0
- package/resources/admin/organization/admin-api-keys.d.mts.map +1 -0
- package/resources/admin/organization/admin-api-keys.d.ts +140 -0
- package/resources/admin/organization/admin-api-keys.d.ts.map +1 -0
- package/resources/admin/organization/admin-api-keys.js +81 -0
- package/resources/admin/organization/admin-api-keys.js.map +1 -0
- package/resources/admin/organization/admin-api-keys.mjs +77 -0
- package/resources/admin/organization/admin-api-keys.mjs.map +1 -0
- package/resources/admin/organization/audit-logs.d.mts +1267 -0
- package/resources/admin/organization/audit-logs.d.mts.map +1 -0
- package/resources/admin/organization/audit-logs.d.ts +1267 -0
- package/resources/admin/organization/audit-logs.d.ts.map +1 -0
- package/resources/admin/organization/audit-logs.js +31 -0
- package/resources/admin/organization/audit-logs.js.map +1 -0
- package/resources/admin/organization/audit-logs.mjs +27 -0
- package/resources/admin/organization/audit-logs.mjs.map +1 -0
- package/resources/admin/organization/certificates.d.mts +322 -0
- package/resources/admin/organization/certificates.d.mts.map +1 -0
- package/resources/admin/organization/certificates.d.ts +322 -0
- package/resources/admin/organization/certificates.d.ts.map +1 -0
- package/resources/admin/organization/certificates.js +144 -0
- package/resources/admin/organization/certificates.js.map +1 -0
- package/resources/admin/organization/certificates.mjs +140 -0
- package/resources/admin/organization/certificates.mjs.map +1 -0
- package/resources/admin/organization/groups/groups.d.mts +148 -0
- package/resources/admin/organization/groups/groups.d.mts.map +1 -0
- package/resources/admin/organization/groups/groups.d.ts +148 -0
- package/resources/admin/organization/groups/groups.d.ts.map +1 -0
- package/resources/admin/organization/groups/groups.js +92 -0
- package/resources/admin/organization/groups/groups.js.map +1 -0
- package/resources/admin/organization/groups/groups.mjs +87 -0
- package/resources/admin/organization/groups/groups.mjs.map +1 -0
- package/resources/admin/organization/groups/index.d.mts +4 -0
- package/resources/admin/organization/groups/index.d.mts.map +1 -0
- package/resources/admin/organization/groups/index.d.ts +4 -0
- package/resources/admin/organization/groups/index.d.ts.map +1 -0
- package/resources/admin/organization/groups/index.js +11 -0
- package/resources/admin/organization/groups/index.js.map +1 -0
- package/resources/admin/organization/groups/index.mjs +5 -0
- package/resources/admin/organization/groups/index.mjs.map +1 -0
- package/resources/admin/organization/groups/roles.d.mts +182 -0
- package/resources/admin/organization/groups/roles.d.mts.map +1 -0
- package/resources/admin/organization/groups/roles.d.ts +182 -0
- package/resources/admin/organization/groups/roles.d.ts.map +1 -0
- package/resources/admin/organization/groups/roles.js +65 -0
- package/resources/admin/organization/groups/roles.js.map +1 -0
- package/resources/admin/organization/groups/roles.mjs +61 -0
- package/resources/admin/organization/groups/roles.mjs.map +1 -0
- package/resources/admin/organization/groups/users.d.mts +116 -0
- package/resources/admin/organization/groups/users.d.mts.map +1 -0
- package/resources/admin/organization/groups/users.d.ts +116 -0
- package/resources/admin/organization/groups/users.d.ts.map +1 -0
- package/resources/admin/organization/groups/users.js +65 -0
- package/resources/admin/organization/groups/users.js.map +1 -0
- package/resources/admin/organization/groups/users.mjs +61 -0
- package/resources/admin/organization/groups/users.mjs.map +1 -0
- package/resources/admin/organization/groups.d.mts +2 -0
- package/resources/admin/organization/groups.d.mts.map +1 -0
- package/resources/admin/organization/groups.d.ts +2 -0
- package/resources/admin/organization/groups.d.ts.map +1 -0
- package/resources/admin/organization/groups.js +6 -0
- package/resources/admin/organization/groups.js.map +1 -0
- package/resources/admin/organization/groups.mjs +3 -0
- package/resources/admin/organization/groups.mjs.map +1 -0
- package/resources/admin/organization/index.d.mts +11 -0
- package/resources/admin/organization/index.d.mts.map +1 -0
- package/resources/admin/organization/index.d.ts +11 -0
- package/resources/admin/organization/index.d.ts.map +1 -0
- package/resources/admin/organization/index.js +25 -0
- package/resources/admin/organization/index.js.map +1 -0
- package/resources/admin/organization/index.mjs +12 -0
- package/resources/admin/organization/index.mjs.map +1 -0
- package/resources/admin/organization/invites.d.mts +152 -0
- package/resources/admin/organization/invites.d.mts.map +1 -0
- package/resources/admin/organization/invites.d.ts +152 -0
- package/resources/admin/organization/invites.d.ts.map +1 -0
- package/resources/admin/organization/invites.js +83 -0
- package/resources/admin/organization/invites.js.map +1 -0
- package/resources/admin/organization/invites.mjs +79 -0
- package/resources/admin/organization/invites.mjs.map +1 -0
- package/resources/admin/organization/organization.d.mts +42 -0
- package/resources/admin/organization/organization.d.mts.map +1 -0
- package/resources/admin/organization/organization.d.ts +42 -0
- package/resources/admin/organization/organization.d.ts.map +1 -0
- package/resources/admin/organization/organization.js +49 -0
- package/resources/admin/organization/organization.js.map +1 -0
- package/resources/admin/organization/organization.mjs +44 -0
- package/resources/admin/organization/organization.mjs.map +1 -0
- package/resources/admin/organization/projects/api-keys.d.mts +167 -0
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -0
- package/resources/admin/organization/projects/api-keys.d.ts +167 -0
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -0
- package/resources/admin/organization/projects/api-keys.js +68 -0
- package/resources/admin/organization/projects/api-keys.js.map +1 -0
- package/resources/admin/organization/projects/api-keys.mjs +64 -0
- package/resources/admin/organization/projects/api-keys.mjs.map +1 -0
- package/resources/admin/organization/projects/certificates.d.mts +186 -0
- package/resources/admin/organization/projects/certificates.d.mts.map +1 -0
- package/resources/admin/organization/projects/certificates.d.ts +186 -0
- package/resources/admin/organization/projects/certificates.d.ts.map +1 -0
- package/resources/admin/organization/projects/certificates.js +64 -0
- package/resources/admin/organization/projects/certificates.js.map +1 -0
- package/resources/admin/organization/projects/certificates.mjs +60 -0
- package/resources/admin/organization/projects/certificates.mjs.map +1 -0
- package/resources/admin/organization/projects/groups/groups.d.mts +119 -0
- package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups/groups.d.ts +119 -0
- package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups/groups.js +73 -0
- package/resources/admin/organization/projects/groups/groups.js.map +1 -0
- package/resources/admin/organization/projects/groups/groups.mjs +68 -0
- package/resources/admin/organization/projects/groups/groups.mjs.map +1 -0
- package/resources/admin/organization/projects/groups/index.d.mts +3 -0
- package/resources/admin/organization/projects/groups/index.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups/index.d.ts +3 -0
- package/resources/admin/organization/projects/groups/index.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups/index.js +9 -0
- package/resources/admin/organization/projects/groups/index.js.map +1 -0
- package/resources/admin/organization/projects/groups/index.mjs +4 -0
- package/resources/admin/organization/projects/groups/index.mjs.map +1 -0
- package/resources/admin/organization/projects/groups/roles.d.mts +195 -0
- package/resources/admin/organization/projects/groups/roles.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups/roles.d.ts +195 -0
- package/resources/admin/organization/projects/groups/roles.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups/roles.js +68 -0
- package/resources/admin/organization/projects/groups/roles.js.map +1 -0
- package/resources/admin/organization/projects/groups/roles.mjs +64 -0
- package/resources/admin/organization/projects/groups/roles.mjs.map +1 -0
- package/resources/admin/organization/projects/groups.d.mts +2 -0
- package/resources/admin/organization/projects/groups.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups.d.ts +2 -0
- package/resources/admin/organization/projects/groups.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups.js +6 -0
- package/resources/admin/organization/projects/groups.js.map +1 -0
- package/resources/admin/organization/projects/groups.mjs +3 -0
- package/resources/admin/organization/projects/groups.mjs.map +1 -0
- package/resources/admin/organization/projects/index.d.mts +9 -0
- package/resources/admin/organization/projects/index.d.mts.map +1 -0
- package/resources/admin/organization/projects/index.d.ts +9 -0
- package/resources/admin/organization/projects/index.d.ts.map +1 -0
- package/resources/admin/organization/projects/index.js +21 -0
- package/resources/admin/organization/projects/index.js.map +1 -0
- package/resources/admin/organization/projects/index.mjs +10 -0
- package/resources/admin/organization/projects/index.mjs.map +1 -0
- package/resources/admin/organization/projects/projects.d.mts +172 -0
- package/resources/admin/organization/projects/projects.d.mts.map +1 -0
- package/resources/admin/organization/projects/projects.d.ts +172 -0
- package/resources/admin/organization/projects/projects.d.ts.map +1 -0
- package/resources/admin/organization/projects/projects.js +133 -0
- package/resources/admin/organization/projects/projects.js.map +1 -0
- package/resources/admin/organization/projects/projects.mjs +128 -0
- package/resources/admin/organization/projects/projects.mjs.map +1 -0
- package/resources/admin/organization/projects/rate-limits.d.mts +120 -0
- package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -0
- package/resources/admin/organization/projects/rate-limits.d.ts +120 -0
- package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -0
- package/resources/admin/organization/projects/rate-limits.js +47 -0
- package/resources/admin/organization/projects/rate-limits.js.map +1 -0
- package/resources/admin/organization/projects/rate-limits.mjs +43 -0
- package/resources/admin/organization/projects/rate-limits.mjs.map +1 -0
- package/resources/admin/organization/projects/roles.d.mts +127 -0
- package/resources/admin/organization/projects/roles.d.mts.map +1 -0
- package/resources/admin/organization/projects/roles.d.ts +127 -0
- package/resources/admin/organization/projects/roles.d.ts.map +1 -0
- package/resources/admin/organization/projects/roles.js +89 -0
- package/resources/admin/organization/projects/roles.js.map +1 -0
- package/resources/admin/organization/projects/roles.mjs +85 -0
- package/resources/admin/organization/projects/roles.mjs.map +1 -0
- package/resources/admin/organization/projects/service-accounts.d.mts +141 -0
- package/resources/admin/organization/projects/service-accounts.d.mts.map +1 -0
- package/resources/admin/organization/projects/service-accounts.d.ts +141 -0
- package/resources/admin/organization/projects/service-accounts.d.ts.map +1 -0
- package/resources/admin/organization/projects/service-accounts.js +85 -0
- package/resources/admin/organization/projects/service-accounts.js.map +1 -0
- package/resources/admin/organization/projects/service-accounts.mjs +81 -0
- package/resources/admin/organization/projects/service-accounts.mjs.map +1 -0
- package/resources/admin/organization/projects/users/index.d.mts +3 -0
- package/resources/admin/organization/projects/users/index.d.mts.map +1 -0
- package/resources/admin/organization/projects/users/index.d.ts +3 -0
- package/resources/admin/organization/projects/users/index.d.ts.map +1 -0
- package/resources/admin/organization/projects/users/index.js +9 -0
- package/resources/admin/organization/projects/users/index.js.map +1 -0
- package/resources/admin/organization/projects/users/index.mjs +4 -0
- package/resources/admin/organization/projects/users/index.mjs.map +1 -0
- package/resources/admin/organization/projects/users/roles.d.mts +169 -0
- package/resources/admin/organization/projects/users/roles.d.mts.map +1 -0
- package/resources/admin/organization/projects/users/roles.d.ts +169 -0
- package/resources/admin/organization/projects/users/roles.d.ts.map +1 -0
- package/resources/admin/organization/projects/users/roles.js +68 -0
- package/resources/admin/organization/projects/users/roles.js.map +1 -0
- package/resources/admin/organization/projects/users/roles.mjs +64 -0
- package/resources/admin/organization/projects/users/roles.mjs.map +1 -0
- package/resources/admin/organization/projects/users/users.d.mts +157 -0
- package/resources/admin/organization/projects/users/users.d.mts.map +1 -0
- package/resources/admin/organization/projects/users/users.d.ts +157 -0
- package/resources/admin/organization/projects/users/users.d.ts.map +1 -0
- package/resources/admin/organization/projects/users/users.js +116 -0
- package/resources/admin/organization/projects/users/users.js.map +1 -0
- package/resources/admin/organization/projects/users/users.mjs +111 -0
- package/resources/admin/organization/projects/users/users.mjs.map +1 -0
- package/resources/admin/organization/projects/users.d.mts +2 -0
- package/resources/admin/organization/projects/users.d.mts.map +1 -0
- package/resources/admin/organization/projects/users.d.ts +2 -0
- package/resources/admin/organization/projects/users.d.ts.map +1 -0
- package/resources/admin/organization/projects/users.js +6 -0
- package/resources/admin/organization/projects/users.js.map +1 -0
- package/resources/admin/organization/projects/users.mjs +3 -0
- package/resources/admin/organization/projects/users.mjs.map +1 -0
- package/resources/admin/organization/projects.d.mts +2 -0
- package/resources/admin/organization/projects.d.mts.map +1 -0
- package/resources/admin/organization/projects.d.ts +2 -0
- package/resources/admin/organization/projects.d.ts.map +1 -0
- package/resources/admin/organization/projects.js +6 -0
- package/resources/admin/organization/projects.js.map +1 -0
- package/resources/admin/organization/projects.mjs +3 -0
- package/resources/admin/organization/projects.mjs.map +1 -0
- package/resources/admin/organization/roles.d.mts +142 -0
- package/resources/admin/organization/roles.d.mts.map +1 -0
- package/resources/admin/organization/roles.d.ts +142 -0
- package/resources/admin/organization/roles.d.ts.map +1 -0
- package/resources/admin/organization/roles.js +80 -0
- package/resources/admin/organization/roles.js.map +1 -0
- package/resources/admin/organization/roles.mjs +76 -0
- package/resources/admin/organization/roles.mjs.map +1 -0
- package/resources/admin/organization/usage.d.mts +3564 -0
- package/resources/admin/organization/usage.d.mts.map +1 -0
- package/resources/admin/organization/usage.d.ts +3564 -0
- package/resources/admin/organization/usage.d.ts.map +1 -0
- package/resources/admin/organization/usage.js +171 -0
- package/resources/admin/organization/usage.js.map +1 -0
- package/resources/admin/organization/usage.mjs +167 -0
- package/resources/admin/organization/usage.mjs.map +1 -0
- package/resources/admin/organization/users/index.d.mts +3 -0
- package/resources/admin/organization/users/index.d.mts.map +1 -0
- package/resources/admin/organization/users/index.d.ts +3 -0
- package/resources/admin/organization/users/index.d.ts.map +1 -0
- package/resources/admin/organization/users/index.js +9 -0
- package/resources/admin/organization/users/index.js.map +1 -0
- package/resources/admin/organization/users/index.mjs +4 -0
- package/resources/admin/organization/users/index.mjs.map +1 -0
- package/resources/admin/organization/users/roles.d.mts +156 -0
- package/resources/admin/organization/users/roles.d.mts.map +1 -0
- package/resources/admin/organization/users/roles.d.ts +156 -0
- package/resources/admin/organization/users/roles.d.ts.map +1 -0
- package/resources/admin/organization/users/roles.js +65 -0
- package/resources/admin/organization/users/roles.js.map +1 -0
- package/resources/admin/organization/users/roles.mjs +61 -0
- package/resources/admin/organization/users/roles.mjs.map +1 -0
- package/resources/admin/organization/users/users.d.mts +185 -0
- package/resources/admin/organization/users/users.d.mts.map +1 -0
- package/resources/admin/organization/users/users.d.ts +185 -0
- package/resources/admin/organization/users/users.d.ts.map +1 -0
- package/resources/admin/organization/users/users.js +84 -0
- package/resources/admin/organization/users/users.js.map +1 -0
- package/resources/admin/organization/users/users.mjs +79 -0
- package/resources/admin/organization/users/users.mjs.map +1 -0
- package/resources/admin/organization/users.d.mts +2 -0
- package/resources/admin/organization/users.d.mts.map +1 -0
- package/resources/admin/organization/users.d.ts +2 -0
- package/resources/admin/organization/users.d.ts.map +1 -0
- package/resources/admin/organization/users.js +6 -0
- package/resources/admin/organization/users.js.map +1 -0
- package/resources/admin/organization/users.mjs +3 -0
- package/resources/admin/organization/users.mjs.map +1 -0
- package/resources/admin/organization.d.mts +2 -0
- package/resources/admin/organization.d.mts.map +1 -0
- package/resources/admin/organization.d.ts +2 -0
- package/resources/admin/organization.d.ts.map +1 -0
- package/resources/admin/organization.js +6 -0
- package/resources/admin/organization.js.map +1 -0
- package/resources/admin/organization.mjs +3 -0
- package/resources/admin/organization.mjs.map +1 -0
- package/resources/admin.d.mts +2 -0
- package/resources/admin.d.mts.map +1 -0
- package/resources/admin.d.ts +2 -0
- package/resources/admin.d.ts.map +1 -0
- package/resources/admin.js +6 -0
- package/resources/admin.js.map +1 -0
- package/resources/admin.mjs +3 -0
- package/resources/admin.mjs.map +1 -0
- package/resources/audio/speech.d.mts.map +1 -1
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/speech.js +1 -0
- package/resources/audio/speech.js.map +1 -1
- package/resources/audio/speech.mjs +1 -0
- package/resources/audio/speech.mjs.map +1 -1
- package/resources/audio/transcriptions.d.mts.map +1 -1
- package/resources/audio/transcriptions.d.ts.map +1 -1
- package/resources/audio/transcriptions.js +1 -0
- package/resources/audio/transcriptions.js.map +1 -1
- package/resources/audio/transcriptions.mjs +1 -0
- package/resources/audio/transcriptions.mjs.map +1 -1
- package/resources/audio/translations.d.mts.map +1 -1
- package/resources/audio/translations.d.ts.map +1 -1
- package/resources/audio/translations.js +1 -1
- package/resources/audio/translations.js.map +1 -1
- package/resources/audio/translations.mjs +1 -1
- package/resources/audio/translations.mjs.map +1 -1
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts.map +1 -1
- package/resources/batches.js +11 -4
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +11 -4
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/assistants.js +5 -0
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +5 -0
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/chatkit/sessions.d.mts.map +1 -1
- package/resources/beta/chatkit/sessions.d.ts.map +1 -1
- package/resources/beta/chatkit/sessions.js +2 -0
- package/resources/beta/chatkit/sessions.js.map +1 -1
- package/resources/beta/chatkit/sessions.mjs +2 -0
- package/resources/beta/chatkit/sessions.mjs.map +1 -1
- package/resources/beta/chatkit/threads.d.mts.map +1 -1
- package/resources/beta/chatkit/threads.d.ts.map +1 -1
- package/resources/beta/chatkit/threads.js +9 -1
- package/resources/beta/chatkit/threads.js.map +1 -1
- package/resources/beta/chatkit/threads.mjs +9 -1
- package/resources/beta/chatkit/threads.mjs.map +1 -1
- package/resources/beta/realtime/sessions.d.mts.map +1 -1
- package/resources/beta/realtime/sessions.d.ts.map +1 -1
- package/resources/beta/realtime/sessions.js +1 -0
- package/resources/beta/realtime/sessions.js.map +1 -1
- package/resources/beta/realtime/sessions.mjs +1 -0
- package/resources/beta/realtime/sessions.mjs.map +1 -1
- package/resources/beta/realtime/transcription-sessions.d.mts.map +1 -1
- package/resources/beta/realtime/transcription-sessions.d.ts.map +1 -1
- package/resources/beta/realtime/transcription-sessions.js +1 -0
- package/resources/beta/realtime/transcription-sessions.js.map +1 -1
- package/resources/beta/realtime/transcription-sessions.mjs +1 -0
- package/resources/beta/realtime/transcription-sessions.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts.map +1 -1
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js +5 -0
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +5 -0
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +6 -0
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +6 -0
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.d.mts.map +1 -1
- package/resources/beta/threads/runs/steps.d.ts.map +1 -1
- package/resources/beta/threads/runs/steps.js +2 -0
- package/resources/beta/threads/runs/steps.js.map +1 -1
- package/resources/beta/threads/runs/steps.mjs +2 -0
- package/resources/beta/threads/runs/steps.mjs.map +1 -1
- package/resources/beta/threads/threads.d.mts.map +1 -1
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js +5 -0
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs +5 -0
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +4 -4
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +4 -4
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +24 -5
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +24 -5
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/chat/completions/messages.js +1 -1
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs +1 -1
- package/resources/chat/completions/messages.mjs.map +1 -1
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +6 -1
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +6 -1
- package/resources/completions.mjs.map +1 -1
- package/resources/containers/containers.d.mts.map +1 -1
- package/resources/containers/containers.d.ts.map +1 -1
- package/resources/containers/containers.js +11 -3
- package/resources/containers/containers.js.map +1 -1
- package/resources/containers/containers.mjs +11 -3
- package/resources/containers/containers.mjs.map +1 -1
- package/resources/containers/files/content.d.mts.map +1 -1
- package/resources/containers/files/content.d.ts.map +1 -1
- package/resources/containers/files/content.js +1 -0
- package/resources/containers/files/content.js.map +1 -1
- package/resources/containers/files/content.mjs +1 -0
- package/resources/containers/files/content.mjs.map +1 -1
- package/resources/containers/files/files.d.mts.map +1 -1
- package/resources/containers/files/files.d.ts.map +1 -1
- package/resources/containers/files/files.js +7 -2
- package/resources/containers/files/files.js.map +1 -1
- package/resources/containers/files/files.mjs +7 -2
- package/resources/containers/files/files.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js +14 -4
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs +14 -4
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js +11 -3
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs +11 -3
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/embeddings.d.mts.map +1 -1
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/embeddings.js +1 -0
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +1 -0
- package/resources/embeddings.mjs.map +1 -1
- package/resources/evals/evals.d.mts.map +1 -1
- package/resources/evals/evals.d.ts.map +1 -1
- package/resources/evals/evals.js +9 -5
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs +9 -5
- package/resources/evals/evals.mjs.map +1 -1
- package/resources/evals/runs/output-items.d.mts.map +1 -1
- package/resources/evals/runs/output-items.d.ts.map +1 -1
- package/resources/evals/runs/output-items.js +5 -2
- package/resources/evals/runs/output-items.js.map +1 -1
- package/resources/evals/runs/output-items.mjs +5 -2
- package/resources/evals/runs/output-items.mjs.map +1 -1
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js +18 -4
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +18 -4
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/files.d.mts +8 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +8 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +17 -5
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +17 -5
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
- package/resources/fine-tuning/alpha/graders.js +10 -2
- package/resources/fine-tuning/alpha/graders.js.map +1 -1
- package/resources/fine-tuning/alpha/graders.mjs +10 -2
- package/resources/fine-tuning/alpha/graders.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +4 -3
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +4 -3
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +23 -7
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +23 -7
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/images.d.mts +53 -24
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +53 -24
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js +8 -3
- package/resources/images.js.map +1 -1
- package/resources/images.mjs +8 -3
- package/resources/images.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/models.js +3 -3
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -3
- package/resources/models.mjs.map +1 -1
- package/resources/moderations.js +1 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +1 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/realtime/calls.d.mts +10 -1
- package/resources/realtime/calls.d.mts.map +1 -1
- package/resources/realtime/calls.d.ts +10 -1
- package/resources/realtime/calls.d.ts.map +1 -1
- package/resources/realtime/calls.js +4 -0
- package/resources/realtime/calls.js.map +1 -1
- package/resources/realtime/calls.mjs +4 -0
- package/resources/realtime/calls.mjs.map +1 -1
- package/resources/realtime/client-secrets.d.mts +24 -37
- package/resources/realtime/client-secrets.d.mts.map +1 -1
- package/resources/realtime/client-secrets.d.ts +24 -37
- package/resources/realtime/client-secrets.d.ts.map +1 -1
- package/resources/realtime/client-secrets.js +5 -1
- package/resources/realtime/client-secrets.js.map +1 -1
- package/resources/realtime/client-secrets.mjs +5 -1
- package/resources/realtime/client-secrets.mjs.map +1 -1
- package/resources/realtime/index.d.mts +1 -1
- package/resources/realtime/index.d.mts.map +1 -1
- package/resources/realtime/index.d.ts +1 -1
- package/resources/realtime/index.d.ts.map +1 -1
- package/resources/realtime/index.js.map +1 -1
- package/resources/realtime/index.mjs.map +1 -1
- package/resources/realtime/realtime.d.mts +545 -10
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +545 -10
- package/resources/realtime/realtime.d.ts.map +1 -1
- package/resources/realtime/realtime.js.map +1 -1
- package/resources/realtime/realtime.mjs.map +1 -1
- package/resources/responses/input-items.js +1 -1
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +1 -1
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/input-tokens.d.mts.map +1 -1
- package/resources/responses/input-tokens.d.ts.map +1 -1
- package/resources/responses/input-tokens.js +5 -1
- package/resources/responses/input-tokens.js.map +1 -1
- package/resources/responses/input-tokens.mjs +5 -1
- package/resources/responses/input-tokens.mjs.map +1 -1
- package/resources/responses/responses.d.mts +45 -11
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +45 -11
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +13 -3
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +13 -3
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/responses/ws-base.d.mts.map +1 -1
- package/resources/responses/ws-base.d.ts.map +1 -1
- package/resources/responses/ws-base.js +3 -1
- package/resources/responses/ws-base.js.map +1 -1
- package/resources/responses/ws-base.mjs +3 -1
- package/resources/responses/ws-base.mjs.map +1 -1
- package/resources/skills/content.d.mts.map +1 -1
- package/resources/skills/content.d.ts.map +1 -1
- package/resources/skills/content.js +1 -0
- package/resources/skills/content.js.map +1 -1
- package/resources/skills/content.mjs +1 -0
- package/resources/skills/content.mjs.map +1 -1
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +13 -5
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +13 -5
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions/content.d.mts.map +1 -1
- package/resources/skills/versions/content.d.ts.map +1 -1
- package/resources/skills/versions/content.js +1 -0
- package/resources/skills/versions/content.js.map +1 -1
- package/resources/skills/versions/content.mjs +1 -0
- package/resources/skills/versions/content.mjs.map +1 -1
- package/resources/skills/versions/versions.d.mts.map +1 -1
- package/resources/skills/versions/versions.d.ts.map +1 -1
- package/resources/skills/versions/versions.js +10 -3
- package/resources/skills/versions/versions.js.map +1 -1
- package/resources/skills/versions/versions.mjs +10 -3
- package/resources/skills/versions/versions.mjs.map +1 -1
- package/resources/uploads/parts.js +1 -1
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +1 -1
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.d.mts.map +1 -1
- package/resources/uploads/uploads.d.ts.map +1 -1
- package/resources/uploads/uploads.js +10 -3
- package/resources/uploads/uploads.js.map +1 -1
- package/resources/uploads/uploads.mjs +10 -3
- package/resources/uploads/uploads.mjs.map +1 -1
- package/resources/vector-stores/file-batches.d.mts.map +1 -1
- package/resources/vector-stores/file-batches.d.ts.map +1 -1
- package/resources/vector-stores/file-batches.js +9 -1
- package/resources/vector-stores/file-batches.js.map +1 -1
- package/resources/vector-stores/file-batches.mjs +9 -1
- package/resources/vector-stores/file-batches.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +10 -1
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +10 -1
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +6 -0
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +6 -0
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +17 -9
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +17 -9
- package/resources/videos.mjs.map +1 -1
- package/src/azure.ts +7 -3
- package/src/beta/realtime/websocket.ts +7 -2
- package/src/beta/realtime/ws.ts +5 -1
- package/src/client.ts +114 -27
- package/src/core/pagination.ts +62 -0
- package/src/internal/request-options.ts +1 -0
- package/src/internal/utils/log.ts +2 -0
- package/src/realtime/websocket.ts +7 -2
- package/src/realtime/ws.ts +5 -1
- package/src/resources/admin/admin.ts +15 -0
- package/src/resources/admin/index.ts +4 -0
- package/src/resources/admin/organization/admin-api-keys.ts +199 -0
- package/src/resources/admin/organization/audit-logs.ts +1597 -0
- package/src/resources/admin/organization/certificates.ts +458 -0
- package/src/resources/admin/organization/groups/groups.ts +251 -0
- package/src/resources/admin/organization/groups/index.ts +32 -0
- package/src/resources/admin/organization/groups/roles.ts +239 -0
- package/src/resources/admin/organization/groups/users.ts +164 -0
- package/src/resources/admin/organization/groups.ts +3 -0
- package/src/resources/admin/organization/index.ts +99 -0
- package/src/resources/admin/organization/invites.ts +214 -0
- package/src/resources/admin/organization/organization.ts +232 -0
- package/src/resources/admin/organization/projects/api-keys.ts +239 -0
- package/src/resources/admin/organization/projects/certificates.ts +269 -0
- package/src/resources/admin/organization/projects/groups/groups.ts +193 -0
- package/src/resources/admin/organization/projects/groups/index.ts +21 -0
- package/src/resources/admin/organization/projects/groups/roles.ts +261 -0
- package/src/resources/admin/organization/projects/groups.ts +3 -0
- package/src/resources/admin/organization/projects/index.ts +77 -0
- package/src/resources/admin/organization/projects/projects.ts +372 -0
- package/src/resources/admin/organization/projects/rate-limits.ts +173 -0
- package/src/resources/admin/organization/projects/roles.ts +182 -0
- package/src/resources/admin/organization/projects/service-accounts.ts +224 -0
- package/src/resources/admin/organization/projects/users/index.ts +23 -0
- package/src/resources/admin/organization/projects/users/roles.ts +226 -0
- package/src/resources/admin/organization/projects/users/users.ts +252 -0
- package/src/resources/admin/organization/projects/users.ts +3 -0
- package/src/resources/admin/organization/projects.ts +3 -0
- package/src/resources/admin/organization/roles.ts +200 -0
- package/src/resources/admin/organization/usage.ts +4483 -0
- package/src/resources/admin/organization/users/index.ts +20 -0
- package/src/resources/admin/organization/users/roles.ts +208 -0
- package/src/resources/admin/organization/users/users.ts +287 -0
- package/src/resources/admin/organization/users.ts +3 -0
- package/src/resources/admin/organization.ts +3 -0
- package/src/resources/admin.ts +3 -0
- package/src/resources/audio/speech.ts +1 -0
- package/src/resources/audio/transcriptions.ts +1 -0
- package/src/resources/audio/translations.ts +4 -1
- package/src/resources/batches.ts +11 -4
- package/src/resources/beta/assistants.ts +5 -0
- package/src/resources/beta/chatkit/sessions.ts +2 -0
- package/src/resources/beta/chatkit/threads.ts +9 -1
- package/src/resources/beta/realtime/sessions.ts +1 -0
- package/src/resources/beta/realtime/transcription-sessions.ts +1 -0
- package/src/resources/beta/threads/messages.ts +5 -0
- package/src/resources/beta/threads/runs/runs.ts +6 -0
- package/src/resources/beta/threads/runs/steps.ts +2 -0
- package/src/resources/beta/threads/threads.ts +5 -0
- package/src/resources/chat/completions/completions.ts +28 -11
- package/src/resources/chat/completions/messages.ts +1 -1
- package/src/resources/completions.ts +6 -3
- package/src/resources/containers/containers.ts +11 -3
- package/src/resources/containers/files/content.ts +1 -0
- package/src/resources/containers/files/files.ts +7 -2
- package/src/resources/conversations/conversations.ts +14 -4
- package/src/resources/conversations/items.ts +11 -3
- package/src/resources/embeddings.ts +1 -0
- package/src/resources/evals/evals.ts +9 -5
- package/src/resources/evals/runs/output-items.ts +5 -2
- package/src/resources/evals/runs/runs.ts +18 -4
- package/src/resources/files.ts +20 -5
- package/src/resources/fine-tuning/alpha/graders.ts +10 -2
- package/src/resources/fine-tuning/checkpoints/permissions.ts +4 -3
- package/src/resources/fine-tuning/jobs/checkpoints.ts +1 -1
- package/src/resources/fine-tuning/jobs/jobs.ts +23 -7
- package/src/resources/images.ts +71 -27
- package/src/resources/index.ts +1 -0
- package/src/resources/models.ts +3 -3
- package/src/resources/moderations.ts +1 -1
- package/src/resources/realtime/api.md +18 -1
- package/src/resources/realtime/calls.ts +16 -0
- package/src/resources/realtime/client-secrets.ts +30 -38
- package/src/resources/realtime/index.ts +0 -1
- package/src/resources/realtime/realtime.ts +647 -8
- package/src/resources/responses/input-items.ts +1 -1
- package/src/resources/responses/input-tokens.ts +5 -1
- package/src/resources/responses/responses.ts +66 -15
- package/src/resources/responses/ws-base.ts +3 -1
- package/src/resources/skills/content.ts +1 -0
- package/src/resources/skills/skills.ts +16 -5
- package/src/resources/skills/versions/content.ts +1 -0
- package/src/resources/skills/versions/versions.ts +10 -3
- package/src/resources/uploads/parts.ts +1 -1
- package/src/resources/uploads/uploads.ts +10 -3
- package/src/resources/vector-stores/file-batches.ts +9 -1
- package/src/resources/vector-stores/files.ts +10 -1
- package/src/resources/vector-stores/vector-stores.ts +6 -0
- package/src/resources/videos.ts +20 -9
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
ClientSecretCreateParams,
|
|
11
11
|
ClientSecretCreateResponse,
|
|
12
12
|
ClientSecrets,
|
|
13
|
-
RealtimeSessionClientSecret,
|
|
14
13
|
RealtimeSessionCreateResponse,
|
|
15
14
|
RealtimeTranscriptionSessionCreateResponse,
|
|
16
15
|
RealtimeTranscriptionSessionTurnDetection,
|
|
@@ -23,6 +22,13 @@ export class Realtime extends APIResource {
|
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
export interface AudioTranscription {
|
|
25
|
+
/**
|
|
26
|
+
* Controls how long the model waits before emitting transcription text. Higher
|
|
27
|
+
* values can improve transcription accuracy at the cost of latency. Only supported
|
|
28
|
+
* with `gpt-realtime-whisper` in GA Realtime sessions.
|
|
29
|
+
*/
|
|
30
|
+
delay?: 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
|
|
31
|
+
|
|
26
32
|
/**
|
|
27
33
|
* The language of the input audio. Supplying the input language in
|
|
28
34
|
* [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`)
|
|
@@ -33,8 +39,8 @@ export interface AudioTranscription {
|
|
|
33
39
|
/**
|
|
34
40
|
* The model to use for transcription. Current options are `whisper-1`,
|
|
35
41
|
* `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`,
|
|
36
|
-
* `gpt-4o-transcribe`,
|
|
37
|
-
* `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
|
|
42
|
+
* `gpt-4o-transcribe`, `gpt-4o-transcribe-diarize`, and `gpt-realtime-whisper`.
|
|
43
|
+
* Use `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
|
|
38
44
|
*/
|
|
39
45
|
model?:
|
|
40
46
|
| (string & {})
|
|
@@ -42,7 +48,8 @@ export interface AudioTranscription {
|
|
|
42
48
|
| 'gpt-4o-mini-transcribe'
|
|
43
49
|
| 'gpt-4o-mini-transcribe-2025-12-15'
|
|
44
50
|
| 'gpt-4o-transcribe'
|
|
45
|
-
| 'gpt-4o-transcribe-diarize'
|
|
51
|
+
| 'gpt-4o-transcribe-diarize'
|
|
52
|
+
| 'gpt-realtime-whisper';
|
|
46
53
|
|
|
47
54
|
/**
|
|
48
55
|
* An optional text to guide the model's style or continue a previous audio
|
|
@@ -50,6 +57,7 @@ export interface AudioTranscription {
|
|
|
50
57
|
* [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).
|
|
51
58
|
* For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the
|
|
52
59
|
* prompt is a free text string, for example "expect words related to technology".
|
|
60
|
+
* Prompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.
|
|
53
61
|
*/
|
|
54
62
|
prompt?: string;
|
|
55
63
|
}
|
|
@@ -1220,6 +1228,9 @@ export interface RealtimeAudioConfigInput {
|
|
|
1220
1228
|
* trails off with "uhhm", the model will score a low probability of turn end and
|
|
1221
1229
|
* wait longer for the user to continue speaking. This can be useful for more
|
|
1222
1230
|
* natural conversations, but may have a higher latency.
|
|
1231
|
+
*
|
|
1232
|
+
* For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
|
|
1233
|
+
* `null`; VAD is not supported.
|
|
1223
1234
|
*/
|
|
1224
1235
|
turn_detection?: RealtimeAudioInputTurnDetection | null;
|
|
1225
1236
|
}
|
|
@@ -1353,6 +1364,9 @@ export namespace RealtimeAudioFormats {
|
|
|
1353
1364
|
* trails off with "uhhm", the model will score a low probability of turn end and
|
|
1354
1365
|
* wait longer for the user to continue speaking. This can be useful for more
|
|
1355
1366
|
* natural conversations, but may have a higher latency.
|
|
1367
|
+
*
|
|
1368
|
+
* For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
|
|
1369
|
+
* `null`; VAD is not supported.
|
|
1356
1370
|
*/
|
|
1357
1371
|
export type RealtimeAudioInputTurnDetection =
|
|
1358
1372
|
| RealtimeAudioInputTurnDetection.ServerVad
|
|
@@ -2010,6 +2024,23 @@ export interface RealtimeMcphttpError {
|
|
|
2010
2024
|
type: 'http_error';
|
|
2011
2025
|
}
|
|
2012
2026
|
|
|
2027
|
+
/**
|
|
2028
|
+
* Configuration for reasoning-capable Realtime models such as `gpt-realtime-2`.
|
|
2029
|
+
*/
|
|
2030
|
+
export interface RealtimeReasoning {
|
|
2031
|
+
/**
|
|
2032
|
+
* Constrains effort on reasoning for reasoning-capable Realtime models such as
|
|
2033
|
+
* `gpt-realtime-2`.
|
|
2034
|
+
*/
|
|
2035
|
+
effort?: RealtimeReasoningEffort;
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
* Constrains effort on reasoning for reasoning-capable Realtime models such as
|
|
2040
|
+
* `gpt-realtime-2`.
|
|
2041
|
+
*/
|
|
2042
|
+
export type RealtimeReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
|
|
2043
|
+
|
|
2013
2044
|
/**
|
|
2014
2045
|
* The response resource.
|
|
2015
2046
|
*/
|
|
@@ -2397,12 +2428,23 @@ export interface RealtimeResponseCreateParams {
|
|
|
2397
2428
|
*/
|
|
2398
2429
|
output_modalities?: Array<'text' | 'audio'>;
|
|
2399
2430
|
|
|
2431
|
+
/**
|
|
2432
|
+
* Whether the model may call multiple tools in parallel. Only supported by
|
|
2433
|
+
* reasoning Realtime models such as `gpt-realtime-2`.
|
|
2434
|
+
*/
|
|
2435
|
+
parallel_tool_calls?: boolean;
|
|
2436
|
+
|
|
2400
2437
|
/**
|
|
2401
2438
|
* Reference to a prompt template and its variables.
|
|
2402
2439
|
* [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
|
|
2403
2440
|
*/
|
|
2404
2441
|
prompt?: ResponsesAPI.ResponsePrompt | null;
|
|
2405
2442
|
|
|
2443
|
+
/**
|
|
2444
|
+
* Configuration for reasoning-capable Realtime models such as `gpt-realtime-2`.
|
|
2445
|
+
*/
|
|
2446
|
+
reasoning?: RealtimeReasoning;
|
|
2447
|
+
|
|
2406
2448
|
/**
|
|
2407
2449
|
* How the model chooses tools. Provide one of the string modes or force a specific
|
|
2408
2450
|
* function/MCP tool.
|
|
@@ -2880,6 +2922,9 @@ export interface RealtimeSession {
|
|
|
2880
2922
|
* trails off with "uhhm", the model will score a low probability of turn end and
|
|
2881
2923
|
* wait longer for the user to continue speaking. This can be useful for more
|
|
2882
2924
|
* natural conversations, but may have a higher latency.
|
|
2925
|
+
*
|
|
2926
|
+
* For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
|
|
2927
|
+
* `null`; VAD is not supported.
|
|
2883
2928
|
*/
|
|
2884
2929
|
turn_detection?: RealtimeSession.ServerVad | RealtimeSession.SemanticVad | null;
|
|
2885
2930
|
|
|
@@ -3094,6 +3139,7 @@ export interface RealtimeSessionCreateRequest {
|
|
|
3094
3139
|
| (string & {})
|
|
3095
3140
|
| 'gpt-realtime'
|
|
3096
3141
|
| 'gpt-realtime-1.5'
|
|
3142
|
+
| 'gpt-realtime-2'
|
|
3097
3143
|
| 'gpt-realtime-2025-08-28'
|
|
3098
3144
|
| 'gpt-4o-realtime-preview'
|
|
3099
3145
|
| 'gpt-4o-realtime-preview-2024-10-01'
|
|
@@ -3117,12 +3163,23 @@ export interface RealtimeSessionCreateRequest {
|
|
|
3117
3163
|
*/
|
|
3118
3164
|
output_modalities?: Array<'text' | 'audio'>;
|
|
3119
3165
|
|
|
3166
|
+
/**
|
|
3167
|
+
* Whether the model may call multiple tools in parallel. Only supported by
|
|
3168
|
+
* reasoning Realtime models such as `gpt-realtime-2`.
|
|
3169
|
+
*/
|
|
3170
|
+
parallel_tool_calls?: boolean;
|
|
3171
|
+
|
|
3120
3172
|
/**
|
|
3121
3173
|
* Reference to a prompt template and its variables.
|
|
3122
3174
|
* [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
|
|
3123
3175
|
*/
|
|
3124
3176
|
prompt?: ResponsesAPI.ResponsePrompt | null;
|
|
3125
3177
|
|
|
3178
|
+
/**
|
|
3179
|
+
* Configuration for reasoning-capable Realtime models such as `gpt-realtime-2`.
|
|
3180
|
+
*/
|
|
3181
|
+
reasoning?: RealtimeReasoning;
|
|
3182
|
+
|
|
3126
3183
|
/**
|
|
3127
3184
|
* How the model chooses tools. Provide one of the string modes or force a specific
|
|
3128
3185
|
* function/MCP tool.
|
|
@@ -3432,6 +3489,9 @@ export interface RealtimeTranscriptionSessionAudioInput {
|
|
|
3432
3489
|
* trails off with "uhhm", the model will score a low probability of turn end and
|
|
3433
3490
|
* wait longer for the user to continue speaking. This can be useful for more
|
|
3434
3491
|
* natural conversations, but may have a higher latency.
|
|
3492
|
+
*
|
|
3493
|
+
* For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
|
|
3494
|
+
* `null`; VAD is not supported.
|
|
3435
3495
|
*/
|
|
3436
3496
|
turn_detection?: RealtimeTranscriptionSessionAudioInputTurnDetection | null;
|
|
3437
3497
|
}
|
|
@@ -3468,6 +3528,9 @@ export namespace RealtimeTranscriptionSessionAudioInput {
|
|
|
3468
3528
|
* trails off with "uhhm", the model will score a low probability of turn end and
|
|
3469
3529
|
* wait longer for the user to continue speaking. This can be useful for more
|
|
3470
3530
|
* natural conversations, but may have a higher latency.
|
|
3531
|
+
*
|
|
3532
|
+
* For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
|
|
3533
|
+
* `null`; VAD is not supported.
|
|
3471
3534
|
*/
|
|
3472
3535
|
export type RealtimeTranscriptionSessionAudioInputTurnDetection =
|
|
3473
3536
|
| RealtimeTranscriptionSessionAudioInputTurnDetection.ServerVad
|
|
@@ -3599,6 +3662,568 @@ export interface RealtimeTranscriptionSessionCreateRequest {
|
|
|
3599
3662
|
include?: Array<'item.input_audio_transcription.logprobs'>;
|
|
3600
3663
|
}
|
|
3601
3664
|
|
|
3665
|
+
/**
|
|
3666
|
+
* A Realtime translation client event.
|
|
3667
|
+
*/
|
|
3668
|
+
export type RealtimeTranslationClientEvent =
|
|
3669
|
+
| RealtimeTranslationSessionUpdateEvent
|
|
3670
|
+
| RealtimeTranslationInputAudioBufferAppendEvent
|
|
3671
|
+
| RealtimeTranslationSessionCloseEvent;
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* Create a translation session and client secret for the Realtime API.
|
|
3675
|
+
*/
|
|
3676
|
+
export interface RealtimeTranslationClientSecretCreateRequest {
|
|
3677
|
+
/**
|
|
3678
|
+
* Realtime translation session configuration. Translation sessions stream source
|
|
3679
|
+
* audio in and translated audio plus transcript deltas out continuously.
|
|
3680
|
+
*/
|
|
3681
|
+
session: RealtimeTranslationSessionCreateRequest;
|
|
3682
|
+
|
|
3683
|
+
/**
|
|
3684
|
+
* Configuration for the client secret expiration. Expiration refers to the time
|
|
3685
|
+
* after which a client secret will no longer be valid for creating sessions. The
|
|
3686
|
+
* session itself may continue after that time once started. A secret can be used
|
|
3687
|
+
* to create multiple sessions until it expires.
|
|
3688
|
+
*/
|
|
3689
|
+
expires_after?: RealtimeTranslationClientSecretCreateRequest.ExpiresAfter;
|
|
3690
|
+
}
|
|
3691
|
+
|
|
3692
|
+
export namespace RealtimeTranslationClientSecretCreateRequest {
|
|
3693
|
+
/**
|
|
3694
|
+
* Configuration for the client secret expiration. Expiration refers to the time
|
|
3695
|
+
* after which a client secret will no longer be valid for creating sessions. The
|
|
3696
|
+
* session itself may continue after that time once started. A secret can be used
|
|
3697
|
+
* to create multiple sessions until it expires.
|
|
3698
|
+
*/
|
|
3699
|
+
export interface ExpiresAfter {
|
|
3700
|
+
/**
|
|
3701
|
+
* The anchor point for the client secret expiration, meaning that `seconds` will
|
|
3702
|
+
* be added to the `created_at` time of the client secret to produce an expiration
|
|
3703
|
+
* timestamp. Only `created_at` is currently supported.
|
|
3704
|
+
*/
|
|
3705
|
+
anchor?: 'created_at';
|
|
3706
|
+
|
|
3707
|
+
/**
|
|
3708
|
+
* The number of seconds from the anchor point to the expiration. Select a value
|
|
3709
|
+
* between `10` and `7200` (2 hours). This default to 600 seconds (10 minutes) if
|
|
3710
|
+
* not specified.
|
|
3711
|
+
*/
|
|
3712
|
+
seconds?: number;
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3716
|
+
/**
|
|
3717
|
+
* Response from creating a translation session and client secret for the Realtime
|
|
3718
|
+
* API.
|
|
3719
|
+
*/
|
|
3720
|
+
export interface RealtimeTranslationClientSecretCreateResponse {
|
|
3721
|
+
/**
|
|
3722
|
+
* Expiration timestamp for the client secret, in seconds since epoch.
|
|
3723
|
+
*/
|
|
3724
|
+
expires_at: number;
|
|
3725
|
+
|
|
3726
|
+
/**
|
|
3727
|
+
* A Realtime translation session. Translation sessions continuously translate
|
|
3728
|
+
* input audio into the configured output language.
|
|
3729
|
+
*/
|
|
3730
|
+
session: RealtimeTranslationSession;
|
|
3731
|
+
|
|
3732
|
+
/**
|
|
3733
|
+
* The generated client secret value.
|
|
3734
|
+
*/
|
|
3735
|
+
value: string;
|
|
3736
|
+
}
|
|
3737
|
+
|
|
3738
|
+
/**
|
|
3739
|
+
* Send this event to append audio bytes to the translation session input audio
|
|
3740
|
+
* buffer.
|
|
3741
|
+
*
|
|
3742
|
+
* WebSocket translation sessions accept base64-encoded 24 kHz PCM16 mono
|
|
3743
|
+
* little-endian raw audio bytes. Unsupported websocket audio formats return a
|
|
3744
|
+
* validation error because lower-quality audio materially degrades translation
|
|
3745
|
+
* quality.
|
|
3746
|
+
*
|
|
3747
|
+
* Translation consumes 200 ms engine frames. For best realtime behavior, append
|
|
3748
|
+
* audio in 200 ms chunks. If a chunk is shorter, the server buffers it until it
|
|
3749
|
+
* has enough audio for one frame. If a chunk is longer, the server splits it into
|
|
3750
|
+
* 200 ms frames and enqueues them back-to-back.
|
|
3751
|
+
*
|
|
3752
|
+
* Keep appending silence while the session is active. If a client stops sending
|
|
3753
|
+
* audio and later resumes, model time treats the resumed audio as contiguous with
|
|
3754
|
+
* the previous audio rather than as a real-world pause.
|
|
3755
|
+
*/
|
|
3756
|
+
export interface RealtimeTranslationInputAudioBufferAppendEvent {
|
|
3757
|
+
/**
|
|
3758
|
+
* Base64-encoded 24 kHz PCM16 mono audio bytes.
|
|
3759
|
+
*/
|
|
3760
|
+
audio: string;
|
|
3761
|
+
|
|
3762
|
+
/**
|
|
3763
|
+
* The event type, must be `session.input_audio_buffer.append`.
|
|
3764
|
+
*/
|
|
3765
|
+
type: 'session.input_audio_buffer.append';
|
|
3766
|
+
|
|
3767
|
+
/**
|
|
3768
|
+
* Optional client-generated ID used to identify this event.
|
|
3769
|
+
*/
|
|
3770
|
+
event_id?: string;
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
/**
|
|
3774
|
+
* Returned when optional source-language transcript text is available. This event
|
|
3775
|
+
* is emitted only when `audio.input.transcription` is configured.
|
|
3776
|
+
*
|
|
3777
|
+
* Transcript deltas are append-only text fragments. Clients should not insert
|
|
3778
|
+
* unconditional spaces between deltas.
|
|
3779
|
+
*/
|
|
3780
|
+
export interface RealtimeTranslationInputTranscriptDeltaEvent {
|
|
3781
|
+
/**
|
|
3782
|
+
* Append-only source-language transcript text.
|
|
3783
|
+
*/
|
|
3784
|
+
delta: string;
|
|
3785
|
+
|
|
3786
|
+
/**
|
|
3787
|
+
* The unique ID of the server event.
|
|
3788
|
+
*/
|
|
3789
|
+
event_id: string;
|
|
3790
|
+
|
|
3791
|
+
/**
|
|
3792
|
+
* The event type, must be `session.input_transcript.delta`.
|
|
3793
|
+
*/
|
|
3794
|
+
type: 'session.input_transcript.delta';
|
|
3795
|
+
|
|
3796
|
+
/**
|
|
3797
|
+
* Timing metadata for stream alignment, derived from the translation frame when
|
|
3798
|
+
* available. It advances in 200 ms increments, but multiple transcript deltas may
|
|
3799
|
+
* share the same `elapsed_ms`. Treat it as alignment metadata, not a unique
|
|
3800
|
+
* transcript-delta identifier.
|
|
3801
|
+
*/
|
|
3802
|
+
elapsed_ms?: number | null;
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
/**
|
|
3806
|
+
* Returned when translated output audio is available. Output audio deltas are 200
|
|
3807
|
+
* ms frames of PCM16 audio.
|
|
3808
|
+
*/
|
|
3809
|
+
export interface RealtimeTranslationOutputAudioDeltaEvent {
|
|
3810
|
+
/**
|
|
3811
|
+
* Base64-encoded translated audio data.
|
|
3812
|
+
*/
|
|
3813
|
+
delta: string;
|
|
3814
|
+
|
|
3815
|
+
/**
|
|
3816
|
+
* The unique ID of the server event.
|
|
3817
|
+
*/
|
|
3818
|
+
event_id: string;
|
|
3819
|
+
|
|
3820
|
+
/**
|
|
3821
|
+
* The event type, must be `session.output_audio.delta`.
|
|
3822
|
+
*/
|
|
3823
|
+
type: 'session.output_audio.delta';
|
|
3824
|
+
|
|
3825
|
+
/**
|
|
3826
|
+
* Number of audio channels.
|
|
3827
|
+
*/
|
|
3828
|
+
channels?: number;
|
|
3829
|
+
|
|
3830
|
+
/**
|
|
3831
|
+
* Timing metadata for stream alignment, derived from the translation frame when
|
|
3832
|
+
* available. Treat `elapsed_ms` as alignment metadata, not a unique event
|
|
3833
|
+
* identifier.
|
|
3834
|
+
*/
|
|
3835
|
+
elapsed_ms?: number | null;
|
|
3836
|
+
|
|
3837
|
+
/**
|
|
3838
|
+
* Audio encoding for `delta`.
|
|
3839
|
+
*/
|
|
3840
|
+
format?: 'pcm16';
|
|
3841
|
+
|
|
3842
|
+
/**
|
|
3843
|
+
* Sample rate of the audio delta.
|
|
3844
|
+
*/
|
|
3845
|
+
sample_rate?: number;
|
|
3846
|
+
}
|
|
3847
|
+
|
|
3848
|
+
/**
|
|
3849
|
+
* Returned when translated transcript text is available.
|
|
3850
|
+
*
|
|
3851
|
+
* Transcript deltas are append-only text fragments. Clients should not insert
|
|
3852
|
+
* unconditional spaces between deltas.
|
|
3853
|
+
*/
|
|
3854
|
+
export interface RealtimeTranslationOutputTranscriptDeltaEvent {
|
|
3855
|
+
/**
|
|
3856
|
+
* Append-only transcript text for the translated output audio.
|
|
3857
|
+
*/
|
|
3858
|
+
delta: string;
|
|
3859
|
+
|
|
3860
|
+
/**
|
|
3861
|
+
* The unique ID of the server event.
|
|
3862
|
+
*/
|
|
3863
|
+
event_id: string;
|
|
3864
|
+
|
|
3865
|
+
/**
|
|
3866
|
+
* The event type, must be `session.output_transcript.delta`.
|
|
3867
|
+
*/
|
|
3868
|
+
type: 'session.output_transcript.delta';
|
|
3869
|
+
|
|
3870
|
+
/**
|
|
3871
|
+
* Timing metadata for stream alignment, derived from the translation frame when
|
|
3872
|
+
* available. It advances in 200 ms increments, but multiple transcript deltas may
|
|
3873
|
+
* share the same `elapsed_ms`. Treat it as alignment metadata, not a unique
|
|
3874
|
+
* transcript-delta identifier.
|
|
3875
|
+
*/
|
|
3876
|
+
elapsed_ms?: number | null;
|
|
3877
|
+
}
|
|
3878
|
+
|
|
3879
|
+
/**
|
|
3880
|
+
* A Realtime translation server event.
|
|
3881
|
+
*/
|
|
3882
|
+
export type RealtimeTranslationServerEvent =
|
|
3883
|
+
| RealtimeErrorEvent
|
|
3884
|
+
| RealtimeTranslationSessionCreatedEvent
|
|
3885
|
+
| RealtimeTranslationSessionUpdatedEvent
|
|
3886
|
+
| RealtimeTranslationSessionClosedEvent
|
|
3887
|
+
| RealtimeTranslationInputTranscriptDeltaEvent
|
|
3888
|
+
| RealtimeTranslationOutputTranscriptDeltaEvent
|
|
3889
|
+
| RealtimeTranslationOutputAudioDeltaEvent;
|
|
3890
|
+
|
|
3891
|
+
/**
|
|
3892
|
+
* A Realtime translation session. Translation sessions continuously translate
|
|
3893
|
+
* input audio into the configured output language.
|
|
3894
|
+
*/
|
|
3895
|
+
export interface RealtimeTranslationSession {
|
|
3896
|
+
/**
|
|
3897
|
+
* Unique identifier for the session that looks like `sess_1234567890abcdef`.
|
|
3898
|
+
*/
|
|
3899
|
+
id: string;
|
|
3900
|
+
|
|
3901
|
+
/**
|
|
3902
|
+
* Configuration for translation input and output audio.
|
|
3903
|
+
*/
|
|
3904
|
+
audio: RealtimeTranslationSession.Audio;
|
|
3905
|
+
|
|
3906
|
+
/**
|
|
3907
|
+
* Expiration timestamp for the session, in seconds since epoch.
|
|
3908
|
+
*/
|
|
3909
|
+
expires_at: number;
|
|
3910
|
+
|
|
3911
|
+
/**
|
|
3912
|
+
* The Realtime translation model used for this session. This field is set at
|
|
3913
|
+
* session creation and cannot be changed with `session.update`.
|
|
3914
|
+
*/
|
|
3915
|
+
model: string;
|
|
3916
|
+
|
|
3917
|
+
/**
|
|
3918
|
+
* The session type. Always `translation` for Realtime translation sessions.
|
|
3919
|
+
*/
|
|
3920
|
+
type: 'translation';
|
|
3921
|
+
}
|
|
3922
|
+
|
|
3923
|
+
export namespace RealtimeTranslationSession {
|
|
3924
|
+
/**
|
|
3925
|
+
* Configuration for translation input and output audio.
|
|
3926
|
+
*/
|
|
3927
|
+
export interface Audio {
|
|
3928
|
+
input?: Audio.Input;
|
|
3929
|
+
|
|
3930
|
+
output?: Audio.Output;
|
|
3931
|
+
}
|
|
3932
|
+
|
|
3933
|
+
export namespace Audio {
|
|
3934
|
+
export interface Input {
|
|
3935
|
+
/**
|
|
3936
|
+
* Optional input noise reduction.
|
|
3937
|
+
*/
|
|
3938
|
+
noise_reduction?: Input.NoiseReduction | null;
|
|
3939
|
+
|
|
3940
|
+
/**
|
|
3941
|
+
* Optional source-language transcription. When configured, the server emits
|
|
3942
|
+
* `session.input_transcript.delta` events. Translation itself still runs from the
|
|
3943
|
+
* input audio stream.
|
|
3944
|
+
*/
|
|
3945
|
+
transcription?: Input.Transcription | null;
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
export namespace Input {
|
|
3949
|
+
/**
|
|
3950
|
+
* Optional input noise reduction.
|
|
3951
|
+
*/
|
|
3952
|
+
export interface NoiseReduction {
|
|
3953
|
+
/**
|
|
3954
|
+
* Type of noise reduction. `near_field` is for close-talking microphones such as
|
|
3955
|
+
* headphones, `far_field` is for far-field microphones such as laptop or
|
|
3956
|
+
* conference room microphones.
|
|
3957
|
+
*/
|
|
3958
|
+
type: RealtimeAPI.NoiseReductionType;
|
|
3959
|
+
}
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* Optional source-language transcription. When configured, the server emits
|
|
3963
|
+
* `session.input_transcript.delta` events. Translation itself still runs from the
|
|
3964
|
+
* input audio stream.
|
|
3965
|
+
*/
|
|
3966
|
+
export interface Transcription {
|
|
3967
|
+
/**
|
|
3968
|
+
* The transcription model used for source transcript deltas.
|
|
3969
|
+
*/
|
|
3970
|
+
model: string;
|
|
3971
|
+
}
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
export interface Output {
|
|
3975
|
+
/**
|
|
3976
|
+
* Target language for translated output audio and transcript deltas.
|
|
3977
|
+
*/
|
|
3978
|
+
language?: string;
|
|
3979
|
+
}
|
|
3980
|
+
}
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
/**
|
|
3984
|
+
* Gracefully close the realtime translation session. The server flushes pending
|
|
3985
|
+
* input audio and emits any remaining translated output before closing the
|
|
3986
|
+
* session.
|
|
3987
|
+
*/
|
|
3988
|
+
export interface RealtimeTranslationSessionCloseEvent {
|
|
3989
|
+
/**
|
|
3990
|
+
* The event type, must be `session.close`.
|
|
3991
|
+
*/
|
|
3992
|
+
type: 'session.close';
|
|
3993
|
+
|
|
3994
|
+
/**
|
|
3995
|
+
* Optional client-generated ID used to identify this event.
|
|
3996
|
+
*/
|
|
3997
|
+
event_id?: string;
|
|
3998
|
+
}
|
|
3999
|
+
|
|
4000
|
+
/**
|
|
4001
|
+
* Returned when a realtime translation session is closed.
|
|
4002
|
+
*/
|
|
4003
|
+
export interface RealtimeTranslationSessionClosedEvent {
|
|
4004
|
+
/**
|
|
4005
|
+
* The unique ID of the server event.
|
|
4006
|
+
*/
|
|
4007
|
+
event_id: string;
|
|
4008
|
+
|
|
4009
|
+
/**
|
|
4010
|
+
* The event type, must be `session.closed`.
|
|
4011
|
+
*/
|
|
4012
|
+
type: 'session.closed';
|
|
4013
|
+
}
|
|
4014
|
+
|
|
4015
|
+
/**
|
|
4016
|
+
* Realtime translation session configuration. Translation sessions stream source
|
|
4017
|
+
* audio in and translated audio plus transcript deltas out continuously.
|
|
4018
|
+
*/
|
|
4019
|
+
export interface RealtimeTranslationSessionCreateRequest {
|
|
4020
|
+
/**
|
|
4021
|
+
* The Realtime translation model used for this session.
|
|
4022
|
+
*/
|
|
4023
|
+
model: string;
|
|
4024
|
+
|
|
4025
|
+
/**
|
|
4026
|
+
* Configuration for translation input and output audio.
|
|
4027
|
+
*/
|
|
4028
|
+
audio?: RealtimeTranslationSessionCreateRequest.Audio;
|
|
4029
|
+
}
|
|
4030
|
+
|
|
4031
|
+
export namespace RealtimeTranslationSessionCreateRequest {
|
|
4032
|
+
/**
|
|
4033
|
+
* Configuration for translation input and output audio.
|
|
4034
|
+
*/
|
|
4035
|
+
export interface Audio {
|
|
4036
|
+
input?: Audio.Input;
|
|
4037
|
+
|
|
4038
|
+
output?: Audio.Output;
|
|
4039
|
+
}
|
|
4040
|
+
|
|
4041
|
+
export namespace Audio {
|
|
4042
|
+
export interface Input {
|
|
4043
|
+
/**
|
|
4044
|
+
* Optional input noise reduction. Set to `null` to disable it.
|
|
4045
|
+
*/
|
|
4046
|
+
noise_reduction?: Input.NoiseReduction | null;
|
|
4047
|
+
|
|
4048
|
+
/**
|
|
4049
|
+
* Optional source-language transcription. When configured, the server emits
|
|
4050
|
+
* `session.input_transcript.delta` events. Translation itself still runs from the
|
|
4051
|
+
* input audio stream.
|
|
4052
|
+
*/
|
|
4053
|
+
transcription?: Input.Transcription | null;
|
|
4054
|
+
}
|
|
4055
|
+
|
|
4056
|
+
export namespace Input {
|
|
4057
|
+
/**
|
|
4058
|
+
* Optional input noise reduction. Set to `null` to disable it.
|
|
4059
|
+
*/
|
|
4060
|
+
export interface NoiseReduction {
|
|
4061
|
+
/**
|
|
4062
|
+
* Type of noise reduction. `near_field` is for close-talking microphones such as
|
|
4063
|
+
* headphones, `far_field` is for far-field microphones such as laptop or
|
|
4064
|
+
* conference room microphones.
|
|
4065
|
+
*/
|
|
4066
|
+
type: RealtimeAPI.NoiseReductionType;
|
|
4067
|
+
}
|
|
4068
|
+
|
|
4069
|
+
/**
|
|
4070
|
+
* Optional source-language transcription. When configured, the server emits
|
|
4071
|
+
* `session.input_transcript.delta` events. Translation itself still runs from the
|
|
4072
|
+
* input audio stream.
|
|
4073
|
+
*/
|
|
4074
|
+
export interface Transcription {
|
|
4075
|
+
/**
|
|
4076
|
+
* The transcription model to use for source transcript deltas.
|
|
4077
|
+
*/
|
|
4078
|
+
model: string;
|
|
4079
|
+
}
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
export interface Output {
|
|
4083
|
+
/**
|
|
4084
|
+
* Target language for translated output audio and transcript deltas.
|
|
4085
|
+
*/
|
|
4086
|
+
language?: string;
|
|
4087
|
+
}
|
|
4088
|
+
}
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4091
|
+
/**
|
|
4092
|
+
* Returned when a translation session is created. Emitted automatically when a new
|
|
4093
|
+
* connection is established as the first server event. This event contains the
|
|
4094
|
+
* default translation session configuration.
|
|
4095
|
+
*/
|
|
4096
|
+
export interface RealtimeTranslationSessionCreatedEvent {
|
|
4097
|
+
/**
|
|
4098
|
+
* The unique ID of the server event.
|
|
4099
|
+
*/
|
|
4100
|
+
event_id: string;
|
|
4101
|
+
|
|
4102
|
+
/**
|
|
4103
|
+
* The translation session configuration.
|
|
4104
|
+
*/
|
|
4105
|
+
session: RealtimeTranslationSession;
|
|
4106
|
+
|
|
4107
|
+
/**
|
|
4108
|
+
* The event type, must be `session.created`.
|
|
4109
|
+
*/
|
|
4110
|
+
type: 'session.created';
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4113
|
+
/**
|
|
4114
|
+
* Send this event to update the translation session configuration. Translation
|
|
4115
|
+
* sessions support updates to `audio.output.language`,
|
|
4116
|
+
* `audio.input.transcription`, and `audio.input.noise_reduction`.
|
|
4117
|
+
*/
|
|
4118
|
+
export interface RealtimeTranslationSessionUpdateEvent {
|
|
4119
|
+
/**
|
|
4120
|
+
* Translation session fields to update. The session `type` and `model` are set at
|
|
4121
|
+
* creation and cannot be changed with `session.update`.
|
|
4122
|
+
*/
|
|
4123
|
+
session: RealtimeTranslationSessionUpdateRequest;
|
|
4124
|
+
|
|
4125
|
+
/**
|
|
4126
|
+
* The event type, must be `session.update`.
|
|
4127
|
+
*/
|
|
4128
|
+
type: 'session.update';
|
|
4129
|
+
|
|
4130
|
+
/**
|
|
4131
|
+
* Optional client-generated ID used to identify this event.
|
|
4132
|
+
*/
|
|
4133
|
+
event_id?: string;
|
|
4134
|
+
}
|
|
4135
|
+
|
|
4136
|
+
/**
|
|
4137
|
+
* Realtime translation session fields that can be updated with `session.update`.
|
|
4138
|
+
*/
|
|
4139
|
+
export interface RealtimeTranslationSessionUpdateRequest {
|
|
4140
|
+
/**
|
|
4141
|
+
* Configuration for translation input and output audio.
|
|
4142
|
+
*/
|
|
4143
|
+
audio?: RealtimeTranslationSessionUpdateRequest.Audio;
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
export namespace RealtimeTranslationSessionUpdateRequest {
|
|
4147
|
+
/**
|
|
4148
|
+
* Configuration for translation input and output audio.
|
|
4149
|
+
*/
|
|
4150
|
+
export interface Audio {
|
|
4151
|
+
input?: Audio.Input;
|
|
4152
|
+
|
|
4153
|
+
output?: Audio.Output;
|
|
4154
|
+
}
|
|
4155
|
+
|
|
4156
|
+
export namespace Audio {
|
|
4157
|
+
export interface Input {
|
|
4158
|
+
/**
|
|
4159
|
+
* Optional input noise reduction. Set to `null` to disable it.
|
|
4160
|
+
*/
|
|
4161
|
+
noise_reduction?: Input.NoiseReduction | null;
|
|
4162
|
+
|
|
4163
|
+
/**
|
|
4164
|
+
* Optional source-language transcription. When configured, the server emits
|
|
4165
|
+
* `session.input_transcript.delta` events. Translation itself still runs from the
|
|
4166
|
+
* input audio stream.
|
|
4167
|
+
*/
|
|
4168
|
+
transcription?: Input.Transcription | null;
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
export namespace Input {
|
|
4172
|
+
/**
|
|
4173
|
+
* Optional input noise reduction. Set to `null` to disable it.
|
|
4174
|
+
*/
|
|
4175
|
+
export interface NoiseReduction {
|
|
4176
|
+
/**
|
|
4177
|
+
* Type of noise reduction. `near_field` is for close-talking microphones such as
|
|
4178
|
+
* headphones, `far_field` is for far-field microphones such as laptop or
|
|
4179
|
+
* conference room microphones.
|
|
4180
|
+
*/
|
|
4181
|
+
type: RealtimeAPI.NoiseReductionType;
|
|
4182
|
+
}
|
|
4183
|
+
|
|
4184
|
+
/**
|
|
4185
|
+
* Optional source-language transcription. When configured, the server emits
|
|
4186
|
+
* `session.input_transcript.delta` events. Translation itself still runs from the
|
|
4187
|
+
* input audio stream.
|
|
4188
|
+
*/
|
|
4189
|
+
export interface Transcription {
|
|
4190
|
+
/**
|
|
4191
|
+
* The transcription model to use for source transcript deltas.
|
|
4192
|
+
*/
|
|
4193
|
+
model: string;
|
|
4194
|
+
}
|
|
4195
|
+
}
|
|
4196
|
+
|
|
4197
|
+
export interface Output {
|
|
4198
|
+
/**
|
|
4199
|
+
* Target language for translated output audio and transcript deltas.
|
|
4200
|
+
*/
|
|
4201
|
+
language?: string;
|
|
4202
|
+
}
|
|
4203
|
+
}
|
|
4204
|
+
}
|
|
4205
|
+
|
|
4206
|
+
/**
|
|
4207
|
+
* Returned when a translation session is updated with a `session.update` event,
|
|
4208
|
+
* unless there is an error.
|
|
4209
|
+
*/
|
|
4210
|
+
export interface RealtimeTranslationSessionUpdatedEvent {
|
|
4211
|
+
/**
|
|
4212
|
+
* The unique ID of the server event.
|
|
4213
|
+
*/
|
|
4214
|
+
event_id: string;
|
|
4215
|
+
|
|
4216
|
+
/**
|
|
4217
|
+
* The translation session configuration.
|
|
4218
|
+
*/
|
|
4219
|
+
session: RealtimeTranslationSession;
|
|
4220
|
+
|
|
4221
|
+
/**
|
|
4222
|
+
* The event type, must be `session.updated`.
|
|
4223
|
+
*/
|
|
4224
|
+
type: 'session.updated';
|
|
4225
|
+
}
|
|
4226
|
+
|
|
3602
4227
|
/**
|
|
3603
4228
|
* When the number of tokens in a conversation exceeds the model's input token
|
|
3604
4229
|
* limit, the conversation be truncated, meaning messages (starting from the
|
|
@@ -4690,9 +5315,6 @@ export namespace TranscriptionSessionUpdatedEvent {
|
|
|
4690
5315
|
*/
|
|
4691
5316
|
input_audio_format?: string;
|
|
4692
5317
|
|
|
4693
|
-
/**
|
|
4694
|
-
* Configuration of the transcription model.
|
|
4695
|
-
*/
|
|
4696
5318
|
input_audio_transcription?: RealtimeAPI.AudioTranscription;
|
|
4697
5319
|
|
|
4698
5320
|
/**
|
|
@@ -4822,6 +5444,8 @@ export declare namespace Realtime {
|
|
|
4822
5444
|
type RealtimeMcpToolCall as RealtimeMcpToolCall,
|
|
4823
5445
|
type RealtimeMcpToolExecutionError as RealtimeMcpToolExecutionError,
|
|
4824
5446
|
type RealtimeMcphttpError as RealtimeMcphttpError,
|
|
5447
|
+
type RealtimeReasoning as RealtimeReasoning,
|
|
5448
|
+
type RealtimeReasoningEffort as RealtimeReasoningEffort,
|
|
4825
5449
|
type RealtimeResponse as RealtimeResponse,
|
|
4826
5450
|
type RealtimeResponseCreateAudioOutput as RealtimeResponseCreateAudioOutput,
|
|
4827
5451
|
type RealtimeResponseCreateMcpTool as RealtimeResponseCreateMcpTool,
|
|
@@ -4841,6 +5465,22 @@ export declare namespace Realtime {
|
|
|
4841
5465
|
type RealtimeTranscriptionSessionAudioInput as RealtimeTranscriptionSessionAudioInput,
|
|
4842
5466
|
type RealtimeTranscriptionSessionAudioInputTurnDetection as RealtimeTranscriptionSessionAudioInputTurnDetection,
|
|
4843
5467
|
type RealtimeTranscriptionSessionCreateRequest as RealtimeTranscriptionSessionCreateRequest,
|
|
5468
|
+
type RealtimeTranslationClientEvent as RealtimeTranslationClientEvent,
|
|
5469
|
+
type RealtimeTranslationClientSecretCreateRequest as RealtimeTranslationClientSecretCreateRequest,
|
|
5470
|
+
type RealtimeTranslationClientSecretCreateResponse as RealtimeTranslationClientSecretCreateResponse,
|
|
5471
|
+
type RealtimeTranslationInputAudioBufferAppendEvent as RealtimeTranslationInputAudioBufferAppendEvent,
|
|
5472
|
+
type RealtimeTranslationInputTranscriptDeltaEvent as RealtimeTranslationInputTranscriptDeltaEvent,
|
|
5473
|
+
type RealtimeTranslationOutputAudioDeltaEvent as RealtimeTranslationOutputAudioDeltaEvent,
|
|
5474
|
+
type RealtimeTranslationOutputTranscriptDeltaEvent as RealtimeTranslationOutputTranscriptDeltaEvent,
|
|
5475
|
+
type RealtimeTranslationServerEvent as RealtimeTranslationServerEvent,
|
|
5476
|
+
type RealtimeTranslationSession as RealtimeTranslationSession,
|
|
5477
|
+
type RealtimeTranslationSessionCloseEvent as RealtimeTranslationSessionCloseEvent,
|
|
5478
|
+
type RealtimeTranslationSessionClosedEvent as RealtimeTranslationSessionClosedEvent,
|
|
5479
|
+
type RealtimeTranslationSessionCreateRequest as RealtimeTranslationSessionCreateRequest,
|
|
5480
|
+
type RealtimeTranslationSessionCreatedEvent as RealtimeTranslationSessionCreatedEvent,
|
|
5481
|
+
type RealtimeTranslationSessionUpdateEvent as RealtimeTranslationSessionUpdateEvent,
|
|
5482
|
+
type RealtimeTranslationSessionUpdateRequest as RealtimeTranslationSessionUpdateRequest,
|
|
5483
|
+
type RealtimeTranslationSessionUpdatedEvent as RealtimeTranslationSessionUpdatedEvent,
|
|
4844
5484
|
type RealtimeTruncation as RealtimeTruncation,
|
|
4845
5485
|
type RealtimeTruncationRetentionRatio as RealtimeTruncationRetentionRatio,
|
|
4846
5486
|
type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent,
|
|
@@ -4873,7 +5513,6 @@ export declare namespace Realtime {
|
|
|
4873
5513
|
|
|
4874
5514
|
export {
|
|
4875
5515
|
ClientSecrets as ClientSecrets,
|
|
4876
|
-
type RealtimeSessionClientSecret as RealtimeSessionClientSecret,
|
|
4877
5516
|
type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse,
|
|
4878
5517
|
type RealtimeTranscriptionSessionCreateResponse as RealtimeTranscriptionSessionCreateResponse,
|
|
4879
5518
|
type RealtimeTranscriptionSessionTurnDetection as RealtimeTranscriptionSessionTurnDetection,
|