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
|
@@ -29,7 +29,7 @@ export class InputItems extends APIResource {
|
|
|
29
29
|
return this._client.getAPIList(
|
|
30
30
|
path`/responses/${responseID}/input_items`,
|
|
31
31
|
CursorPage<ResponsesAPI.ResponseItem>,
|
|
32
|
-
{ query, ...options },
|
|
32
|
+
{ query, ...options, __security: { bearerAuth: true } },
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -22,7 +22,11 @@ export class InputTokens extends APIResource {
|
|
|
22
22
|
body: InputTokenCountParams | null | undefined = {},
|
|
23
23
|
options?: RequestOptions,
|
|
24
24
|
): APIPromise<InputTokenCountResponse> {
|
|
25
|
-
return this._client.post('/responses/input_tokens', {
|
|
25
|
+
return this._client.post('/responses/input_tokens', {
|
|
26
|
+
body,
|
|
27
|
+
...options,
|
|
28
|
+
__security: { bearerAuth: true },
|
|
29
|
+
});
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
32
|
|
|
@@ -106,9 +106,12 @@ export class Responses extends APIResource {
|
|
|
106
106
|
options?: RequestOptions,
|
|
107
107
|
): APIPromise<Response> | APIPromise<Stream<ResponseStreamEvent>> {
|
|
108
108
|
return (
|
|
109
|
-
this._client.post('/responses', {
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
this._client.post('/responses', {
|
|
110
|
+
body,
|
|
111
|
+
...options,
|
|
112
|
+
stream: body.stream ?? false,
|
|
113
|
+
__security: { bearerAuth: true },
|
|
114
|
+
}) as APIPromise<Response> | APIPromise<Stream<ResponseStreamEvent>>
|
|
112
115
|
)._thenUnwrap((rsp) => {
|
|
113
116
|
if ('object' in rsp && rsp.object === 'response') {
|
|
114
117
|
addOutputText(rsp as Response);
|
|
@@ -153,6 +156,7 @@ export class Responses extends APIResource {
|
|
|
153
156
|
query,
|
|
154
157
|
...options,
|
|
155
158
|
stream: query?.stream ?? false,
|
|
159
|
+
__security: { bearerAuth: true },
|
|
156
160
|
}) as APIPromise<Response> | APIPromise<Stream<ResponseStreamEvent>>
|
|
157
161
|
)._thenUnwrap((rsp) => {
|
|
158
162
|
if ('object' in rsp && rsp.object === 'response') {
|
|
@@ -177,6 +181,7 @@ export class Responses extends APIResource {
|
|
|
177
181
|
return this._client.delete(path`/responses/${responseID}`, {
|
|
178
182
|
...options,
|
|
179
183
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
184
|
+
__security: { bearerAuth: true },
|
|
180
185
|
});
|
|
181
186
|
}
|
|
182
187
|
|
|
@@ -212,7 +217,10 @@ export class Responses extends APIResource {
|
|
|
212
217
|
* ```
|
|
213
218
|
*/
|
|
214
219
|
cancel(responseID: string, options?: RequestOptions): APIPromise<Response> {
|
|
215
|
-
return this._client.post(path`/responses/${responseID}/cancel`,
|
|
220
|
+
return this._client.post(path`/responses/${responseID}/cancel`, {
|
|
221
|
+
...options,
|
|
222
|
+
__security: { bearerAuth: true },
|
|
223
|
+
});
|
|
216
224
|
}
|
|
217
225
|
|
|
218
226
|
/**
|
|
@@ -231,7 +239,7 @@ export class Responses extends APIResource {
|
|
|
231
239
|
* ```
|
|
232
240
|
*/
|
|
233
241
|
compact(body: ResponseCompactParams, options?: RequestOptions): APIPromise<CompactedResponse> {
|
|
234
|
-
return this._client.post('/responses/compact', { body, ...options });
|
|
242
|
+
return this._client.post('/responses/compact', { body, ...options, __security: { bearerAuth: true } });
|
|
235
243
|
}
|
|
236
244
|
}
|
|
237
245
|
|
|
@@ -1174,6 +1182,13 @@ export interface Response {
|
|
|
1174
1182
|
*/
|
|
1175
1183
|
text?: ResponseTextConfig;
|
|
1176
1184
|
|
|
1185
|
+
/**
|
|
1186
|
+
* An integer between 0 and 20 specifying the maximum number of most likely tokens
|
|
1187
|
+
* to return at each token position, each with an associated log probability. In
|
|
1188
|
+
* some cases, the number of returned tokens may be fewer than requested.
|
|
1189
|
+
*/
|
|
1190
|
+
top_logprobs?: number | null;
|
|
1191
|
+
|
|
1177
1192
|
/**
|
|
1178
1193
|
* The truncation strategy to use for the model response.
|
|
1179
1194
|
*
|
|
@@ -3328,6 +3343,8 @@ export interface ResponseInProgressEvent {
|
|
|
3328
3343
|
* Specify additional output data to include in the model response. Currently
|
|
3329
3344
|
* supported values are:
|
|
3330
3345
|
*
|
|
3346
|
+
* - `web_search_call.results`: Include the search results of the web search tool
|
|
3347
|
+
* call.
|
|
3331
3348
|
* - `web_search_call.action.sources`: Include the sources of the web search tool
|
|
3332
3349
|
* call.
|
|
3333
3350
|
* - `code_interpreter_call.outputs`: Includes the outputs of python code execution
|
|
@@ -6097,7 +6114,7 @@ export namespace ResponseTextDeltaEvent {
|
|
|
6097
6114
|
logprob: number;
|
|
6098
6115
|
|
|
6099
6116
|
/**
|
|
6100
|
-
* The log
|
|
6117
|
+
* The log probabilities of up to 20 of the most likely tokens.
|
|
6101
6118
|
*/
|
|
6102
6119
|
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
6103
6120
|
}
|
|
@@ -6175,7 +6192,7 @@ export namespace ResponseTextDoneEvent {
|
|
|
6175
6192
|
logprob: number;
|
|
6176
6193
|
|
|
6177
6194
|
/**
|
|
6178
|
-
* The log
|
|
6195
|
+
* The log probabilities of up to 20 of the most likely tokens.
|
|
6179
6196
|
*/
|
|
6180
6197
|
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
6181
6198
|
}
|
|
@@ -6681,8 +6698,9 @@ export interface ResponsesClientEvent {
|
|
|
6681
6698
|
tools?: Array<Tool>;
|
|
6682
6699
|
|
|
6683
6700
|
/**
|
|
6684
|
-
* An integer between 0 and 20 specifying the number of most likely tokens
|
|
6685
|
-
* return at each token position, each with an associated log probability.
|
|
6701
|
+
* An integer between 0 and 20 specifying the maximum number of most likely tokens
|
|
6702
|
+
* to return at each token position, each with an associated log probability. In
|
|
6703
|
+
* some cases, the number of returned tokens may be fewer than requested.
|
|
6686
6704
|
*/
|
|
6687
6705
|
top_logprobs?: number | null;
|
|
6688
6706
|
|
|
@@ -7061,8 +7079,18 @@ export namespace Tool {
|
|
|
7061
7079
|
action?: 'generate' | 'edit' | 'auto';
|
|
7062
7080
|
|
|
7063
7081
|
/**
|
|
7064
|
-
*
|
|
7065
|
-
*
|
|
7082
|
+
* Allows to set transparency for the background of the generated image(s). This
|
|
7083
|
+
* parameter is only supported for GPT image models that support transparent
|
|
7084
|
+
* backgrounds. Must be one of `transparent`, `opaque`, or `auto` (default value).
|
|
7085
|
+
* When `auto` is used, the model will automatically determine the best background
|
|
7086
|
+
* for the image.
|
|
7087
|
+
*
|
|
7088
|
+
* `gpt-image-2` and `gpt-image-2-2026-04-21` do not support transparent
|
|
7089
|
+
* backgrounds. Requests with `background` set to `transparent` will return an
|
|
7090
|
+
* error for these models; use `opaque` or `auto` instead.
|
|
7091
|
+
*
|
|
7092
|
+
* If `transparent`, the output format needs to support transparency, so it should
|
|
7093
|
+
* be set to either `png` (default value) or `webp`.
|
|
7066
7094
|
*/
|
|
7067
7095
|
background?: 'transparent' | 'opaque' | 'auto';
|
|
7068
7096
|
|
|
@@ -7083,7 +7111,14 @@ export namespace Tool {
|
|
|
7083
7111
|
/**
|
|
7084
7112
|
* The image generation model to use. Default: `gpt-image-1`.
|
|
7085
7113
|
*/
|
|
7086
|
-
model?:
|
|
7114
|
+
model?:
|
|
7115
|
+
| (string & {})
|
|
7116
|
+
| 'gpt-image-1'
|
|
7117
|
+
| 'gpt-image-1-mini'
|
|
7118
|
+
| 'gpt-image-2'
|
|
7119
|
+
| 'gpt-image-2-2026-04-21'
|
|
7120
|
+
| 'gpt-image-1.5'
|
|
7121
|
+
| 'chatgpt-image-latest';
|
|
7087
7122
|
|
|
7088
7123
|
/**
|
|
7089
7124
|
* Moderation level for the generated image. Default: `auto`.
|
|
@@ -7114,10 +7149,19 @@ export namespace Tool {
|
|
|
7114
7149
|
quality?: 'low' | 'medium' | 'high' | 'auto';
|
|
7115
7150
|
|
|
7116
7151
|
/**
|
|
7117
|
-
* The size of the generated
|
|
7118
|
-
*
|
|
7152
|
+
* The size of the generated images. For `gpt-image-2` and
|
|
7153
|
+
* `gpt-image-2-2026-04-21`, arbitrary resolutions are supported as `WIDTHxHEIGHT`
|
|
7154
|
+
* strings, for example `1536x864`. Width and height must both be divisible by 16
|
|
7155
|
+
* and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above
|
|
7156
|
+
* `2560x1440` are experimental, and the maximum supported resolution is
|
|
7157
|
+
* `3840x2160`. The requested size must also satisfy the model's current pixel and
|
|
7158
|
+
* edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are
|
|
7159
|
+
* supported by the GPT image models; `auto` is supported for models that allow
|
|
7160
|
+
* automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or
|
|
7161
|
+
* `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or
|
|
7162
|
+
* `1024x1792`.
|
|
7119
7163
|
*/
|
|
7120
|
-
size?: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
7164
|
+
size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
|
|
7121
7165
|
}
|
|
7122
7166
|
|
|
7123
7167
|
export namespace ImageGeneration {
|
|
@@ -7699,6 +7743,13 @@ export interface ResponseCreateParamsBase {
|
|
|
7699
7743
|
*/
|
|
7700
7744
|
tools?: Array<Tool>;
|
|
7701
7745
|
|
|
7746
|
+
/**
|
|
7747
|
+
* An integer between 0 and 20 specifying the maximum number of most likely tokens
|
|
7748
|
+
* to return at each token position, each with an associated log probability. In
|
|
7749
|
+
* some cases, the number of returned tokens may be fewer than requested.
|
|
7750
|
+
*/
|
|
7751
|
+
top_logprobs?: number | null;
|
|
7752
|
+
|
|
7702
7753
|
/**
|
|
7703
7754
|
* An alternative to sampling with temperature, called nucleus sampling, where the
|
|
7704
7755
|
* model considers the results of the tokens with top_p probability mass. So 0.1
|
|
@@ -603,7 +603,9 @@ export abstract class ResponsesWSBase<TSocket extends WebSocketLike> extends Res
|
|
|
603
603
|
}
|
|
604
604
|
|
|
605
605
|
protected _authHeaders(): Record<string, string> {
|
|
606
|
-
|
|
606
|
+
if (this._client.apiKey) {
|
|
607
|
+
return { Authorization: `Bearer ${this._client.apiKey}` };
|
|
608
|
+
}
|
|
607
609
|
return {};
|
|
608
610
|
}
|
|
609
611
|
}
|
|
@@ -14,6 +14,7 @@ export class Content extends APIResource {
|
|
|
14
14
|
return this._client.get(path`/skills/${skillID}/content`, {
|
|
15
15
|
...options,
|
|
16
16
|
headers: buildHeaders([{ Accept: 'application/binary' }, options?.headers]),
|
|
17
|
+
__security: { bearerAuth: true },
|
|
17
18
|
__binaryResponse: true,
|
|
18
19
|
});
|
|
19
20
|
}
|
|
@@ -30,21 +30,28 @@ export class Skills extends APIResource {
|
|
|
30
30
|
* Create a new skill.
|
|
31
31
|
*/
|
|
32
32
|
create(body: SkillCreateParams | null | undefined = {}, options?: RequestOptions): APIPromise<Skill> {
|
|
33
|
-
return this._client.post(
|
|
33
|
+
return this._client.post(
|
|
34
|
+
'/skills',
|
|
35
|
+
maybeMultipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client),
|
|
36
|
+
);
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
/**
|
|
37
40
|
* Get a skill by its ID.
|
|
38
41
|
*/
|
|
39
42
|
retrieve(skillID: string, options?: RequestOptions): APIPromise<Skill> {
|
|
40
|
-
return this._client.get(path`/skills/${skillID}`, options);
|
|
43
|
+
return this._client.get(path`/skills/${skillID}`, { ...options, __security: { bearerAuth: true } });
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
/**
|
|
44
47
|
* Update the default version pointer for a skill.
|
|
45
48
|
*/
|
|
46
49
|
update(skillID: string, body: SkillUpdateParams, options?: RequestOptions): APIPromise<Skill> {
|
|
47
|
-
return this._client.post(path`/skills/${skillID}`, {
|
|
50
|
+
return this._client.post(path`/skills/${skillID}`, {
|
|
51
|
+
body,
|
|
52
|
+
...options,
|
|
53
|
+
__security: { bearerAuth: true },
|
|
54
|
+
});
|
|
48
55
|
}
|
|
49
56
|
|
|
50
57
|
/**
|
|
@@ -54,14 +61,18 @@ export class Skills extends APIResource {
|
|
|
54
61
|
query: SkillListParams | null | undefined = {},
|
|
55
62
|
options?: RequestOptions,
|
|
56
63
|
): PagePromise<SkillsPage, Skill> {
|
|
57
|
-
return this._client.getAPIList('/skills', CursorPage<Skill>, {
|
|
64
|
+
return this._client.getAPIList('/skills', CursorPage<Skill>, {
|
|
65
|
+
query,
|
|
66
|
+
...options,
|
|
67
|
+
__security: { bearerAuth: true },
|
|
68
|
+
});
|
|
58
69
|
}
|
|
59
70
|
|
|
60
71
|
/**
|
|
61
72
|
* Delete a skill by its ID.
|
|
62
73
|
*/
|
|
63
74
|
delete(skillID: string, options?: RequestOptions): APIPromise<DeletedSkill> {
|
|
64
|
-
return this._client.delete(path`/skills/${skillID}`, options);
|
|
75
|
+
return this._client.delete(path`/skills/${skillID}`, { ...options, __security: { bearerAuth: true } });
|
|
65
76
|
}
|
|
66
77
|
}
|
|
67
78
|
|
|
@@ -15,6 +15,7 @@ export class Content extends APIResource {
|
|
|
15
15
|
return this._client.get(path`/skills/${skill_id}/versions/${version}/content`, {
|
|
16
16
|
...options,
|
|
17
17
|
headers: buildHeaders([{ Accept: 'application/binary' }, options?.headers]),
|
|
18
|
+
__security: { bearerAuth: true },
|
|
18
19
|
__binaryResponse: true,
|
|
19
20
|
});
|
|
20
21
|
}
|
|
@@ -23,7 +23,7 @@ export class Versions extends APIResource {
|
|
|
23
23
|
): APIPromise<SkillVersion> {
|
|
24
24
|
return this._client.post(
|
|
25
25
|
path`/skills/${skillID}/versions`,
|
|
26
|
-
maybeMultipartFormRequestOptions({ body, ...options }, this._client),
|
|
26
|
+
maybeMultipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client),
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -36,7 +36,10 @@ export class Versions extends APIResource {
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<SkillVersion> {
|
|
38
38
|
const { skill_id } = params;
|
|
39
|
-
return this._client.get(path`/skills/${skill_id}/versions/${version}`,
|
|
39
|
+
return this._client.get(path`/skills/${skill_id}/versions/${version}`, {
|
|
40
|
+
...options,
|
|
41
|
+
__security: { bearerAuth: true },
|
|
42
|
+
});
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
/**
|
|
@@ -50,6 +53,7 @@ export class Versions extends APIResource {
|
|
|
50
53
|
return this._client.getAPIList(path`/skills/${skillID}/versions`, CursorPage<SkillVersion>, {
|
|
51
54
|
query,
|
|
52
55
|
...options,
|
|
56
|
+
__security: { bearerAuth: true },
|
|
53
57
|
});
|
|
54
58
|
}
|
|
55
59
|
|
|
@@ -62,7 +66,10 @@ export class Versions extends APIResource {
|
|
|
62
66
|
options?: RequestOptions,
|
|
63
67
|
): APIPromise<DeletedSkillVersion> {
|
|
64
68
|
const { skill_id } = params;
|
|
65
|
-
return this._client.delete(path`/skills/${skill_id}/versions/${version}`,
|
|
69
|
+
return this._client.delete(path`/skills/${skill_id}/versions/${version}`, {
|
|
70
|
+
...options,
|
|
71
|
+
__security: { bearerAuth: true },
|
|
72
|
+
});
|
|
66
73
|
}
|
|
67
74
|
}
|
|
68
75
|
|
|
@@ -27,7 +27,7 @@ export class Parts extends APIResource {
|
|
|
27
27
|
create(uploadID: string, body: PartCreateParams, options?: RequestOptions): APIPromise<UploadPart> {
|
|
28
28
|
return this._client.post(
|
|
29
29
|
path`/uploads/${uploadID}/parts`,
|
|
30
|
-
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
30
|
+
multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client),
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -38,7 +38,7 @@ export class Uploads extends APIResource {
|
|
|
38
38
|
* Returns the Upload object with status `pending`.
|
|
39
39
|
*/
|
|
40
40
|
create(body: UploadCreateParams, options?: RequestOptions): APIPromise<Upload> {
|
|
41
|
-
return this._client.post('/uploads', { body, ...options });
|
|
41
|
+
return this._client.post('/uploads', { body, ...options, __security: { bearerAuth: true } });
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -47,7 +47,10 @@ export class Uploads extends APIResource {
|
|
|
47
47
|
* Returns the Upload object with status `cancelled`.
|
|
48
48
|
*/
|
|
49
49
|
cancel(uploadID: string, options?: RequestOptions): APIPromise<Upload> {
|
|
50
|
-
return this._client.post(path`/uploads/${uploadID}/cancel`,
|
|
50
|
+
return this._client.post(path`/uploads/${uploadID}/cancel`, {
|
|
51
|
+
...options,
|
|
52
|
+
__security: { bearerAuth: true },
|
|
53
|
+
});
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
/**
|
|
@@ -68,7 +71,11 @@ export class Uploads extends APIResource {
|
|
|
68
71
|
* object.
|
|
69
72
|
*/
|
|
70
73
|
complete(uploadID: string, body: UploadCompleteParams, options?: RequestOptions): APIPromise<Upload> {
|
|
71
|
-
return this._client.post(path`/uploads/${uploadID}/complete`, {
|
|
74
|
+
return this._client.post(path`/uploads/${uploadID}/complete`, {
|
|
75
|
+
body,
|
|
76
|
+
...options,
|
|
77
|
+
__security: { bearerAuth: true },
|
|
78
|
+
});
|
|
72
79
|
}
|
|
73
80
|
}
|
|
74
81
|
|
|
@@ -26,6 +26,7 @@ export class FileBatches extends APIResource {
|
|
|
26
26
|
body,
|
|
27
27
|
...options,
|
|
28
28
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
29
|
+
__security: { bearerAuth: true },
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -41,6 +42,7 @@ export class FileBatches extends APIResource {
|
|
|
41
42
|
return this._client.get(path`/vector_stores/${vector_store_id}/file_batches/${batchID}`, {
|
|
42
43
|
...options,
|
|
43
44
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
45
|
+
__security: { bearerAuth: true },
|
|
44
46
|
});
|
|
45
47
|
}
|
|
46
48
|
|
|
@@ -57,6 +59,7 @@ export class FileBatches extends APIResource {
|
|
|
57
59
|
return this._client.post(path`/vector_stores/${vector_store_id}/file_batches/${batchID}/cancel`, {
|
|
58
60
|
...options,
|
|
59
61
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
62
|
+
__security: { bearerAuth: true },
|
|
60
63
|
});
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -84,7 +87,12 @@ export class FileBatches extends APIResource {
|
|
|
84
87
|
return this._client.getAPIList(
|
|
85
88
|
path`/vector_stores/${vector_store_id}/file_batches/${batchID}/files`,
|
|
86
89
|
CursorPage<FilesAPI.VectorStoreFile>,
|
|
87
|
-
{
|
|
90
|
+
{
|
|
91
|
+
query,
|
|
92
|
+
...options,
|
|
93
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
94
|
+
__security: { bearerAuth: true },
|
|
95
|
+
},
|
|
88
96
|
);
|
|
89
97
|
}
|
|
90
98
|
|
|
@@ -25,6 +25,7 @@ export class Files extends APIResource {
|
|
|
25
25
|
body,
|
|
26
26
|
...options,
|
|
27
27
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
28
|
+
__security: { bearerAuth: true },
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -40,6 +41,7 @@ export class Files extends APIResource {
|
|
|
40
41
|
return this._client.get(path`/vector_stores/${vector_store_id}/files/${fileID}`, {
|
|
41
42
|
...options,
|
|
42
43
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
44
|
+
__security: { bearerAuth: true },
|
|
43
45
|
});
|
|
44
46
|
}
|
|
45
47
|
|
|
@@ -52,6 +54,7 @@ export class Files extends APIResource {
|
|
|
52
54
|
body,
|
|
53
55
|
...options,
|
|
54
56
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
57
|
+
__security: { bearerAuth: true },
|
|
55
58
|
});
|
|
56
59
|
}
|
|
57
60
|
|
|
@@ -67,6 +70,7 @@ export class Files extends APIResource {
|
|
|
67
70
|
query,
|
|
68
71
|
...options,
|
|
69
72
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
73
|
+
__security: { bearerAuth: true },
|
|
70
74
|
});
|
|
71
75
|
}
|
|
72
76
|
|
|
@@ -85,6 +89,7 @@ export class Files extends APIResource {
|
|
|
85
89
|
return this._client.delete(path`/vector_stores/${vector_store_id}/files/${fileID}`, {
|
|
86
90
|
...options,
|
|
87
91
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
92
|
+
__security: { bearerAuth: true },
|
|
88
93
|
});
|
|
89
94
|
}
|
|
90
95
|
|
|
@@ -186,7 +191,11 @@ export class Files extends APIResource {
|
|
|
186
191
|
return this._client.getAPIList(
|
|
187
192
|
path`/vector_stores/${vector_store_id}/files/${fileID}/content`,
|
|
188
193
|
Page<FileContentResponse>,
|
|
189
|
-
{
|
|
194
|
+
{
|
|
195
|
+
...options,
|
|
196
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
197
|
+
__security: { bearerAuth: true },
|
|
198
|
+
},
|
|
190
199
|
);
|
|
191
200
|
}
|
|
192
201
|
}
|
|
@@ -44,6 +44,7 @@ export class VectorStores extends APIResource {
|
|
|
44
44
|
body,
|
|
45
45
|
...options,
|
|
46
46
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
47
|
+
__security: { bearerAuth: true },
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -54,6 +55,7 @@ export class VectorStores extends APIResource {
|
|
|
54
55
|
return this._client.get(path`/vector_stores/${vectorStoreID}`, {
|
|
55
56
|
...options,
|
|
56
57
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
58
|
+
__security: { bearerAuth: true },
|
|
57
59
|
});
|
|
58
60
|
}
|
|
59
61
|
|
|
@@ -69,6 +71,7 @@ export class VectorStores extends APIResource {
|
|
|
69
71
|
body,
|
|
70
72
|
...options,
|
|
71
73
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
74
|
+
__security: { bearerAuth: true },
|
|
72
75
|
});
|
|
73
76
|
}
|
|
74
77
|
|
|
@@ -83,6 +86,7 @@ export class VectorStores extends APIResource {
|
|
|
83
86
|
query,
|
|
84
87
|
...options,
|
|
85
88
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
89
|
+
__security: { bearerAuth: true },
|
|
86
90
|
});
|
|
87
91
|
}
|
|
88
92
|
|
|
@@ -93,6 +97,7 @@ export class VectorStores extends APIResource {
|
|
|
93
97
|
return this._client.delete(path`/vector_stores/${vectorStoreID}`, {
|
|
94
98
|
...options,
|
|
95
99
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
100
|
+
__security: { bearerAuth: true },
|
|
96
101
|
});
|
|
97
102
|
}
|
|
98
103
|
|
|
@@ -113,6 +118,7 @@ export class VectorStores extends APIResource {
|
|
|
113
118
|
method: 'post',
|
|
114
119
|
...options,
|
|
115
120
|
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
|
121
|
+
__security: { bearerAuth: true },
|
|
116
122
|
},
|
|
117
123
|
);
|
|
118
124
|
}
|
package/src/resources/videos.ts
CHANGED
|
@@ -14,14 +14,17 @@ export class Videos extends APIResource {
|
|
|
14
14
|
* Create a new video generation job from a prompt and optional reference assets.
|
|
15
15
|
*/
|
|
16
16
|
create(body: VideoCreateParams, options?: RequestOptions): APIPromise<Video> {
|
|
17
|
-
return this._client.post(
|
|
17
|
+
return this._client.post(
|
|
18
|
+
'/videos',
|
|
19
|
+
multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client),
|
|
20
|
+
);
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
/**
|
|
21
24
|
* Fetch the latest metadata for a generated video.
|
|
22
25
|
*/
|
|
23
26
|
retrieve(videoID: string, options?: RequestOptions): APIPromise<Video> {
|
|
24
|
-
return this._client.get(path`/videos/${videoID}`, options);
|
|
27
|
+
return this._client.get(path`/videos/${videoID}`, { ...options, __security: { bearerAuth: true } });
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
/**
|
|
@@ -31,14 +34,18 @@ export class Videos extends APIResource {
|
|
|
31
34
|
query: VideoListParams | null | undefined = {},
|
|
32
35
|
options?: RequestOptions,
|
|
33
36
|
): PagePromise<VideosPage, Video> {
|
|
34
|
-
return this._client.getAPIList('/videos', ConversationCursorPage<Video>, {
|
|
37
|
+
return this._client.getAPIList('/videos', ConversationCursorPage<Video>, {
|
|
38
|
+
query,
|
|
39
|
+
...options,
|
|
40
|
+
__security: { bearerAuth: true },
|
|
41
|
+
});
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
/**
|
|
38
45
|
* Permanently delete a completed or failed video and its stored assets.
|
|
39
46
|
*/
|
|
40
47
|
delete(videoID: string, options?: RequestOptions): APIPromise<VideoDeleteResponse> {
|
|
41
|
-
return this._client.delete(path`/videos/${videoID}`, options);
|
|
48
|
+
return this._client.delete(path`/videos/${videoID}`, { ...options, __security: { bearerAuth: true } });
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
/**
|
|
@@ -50,7 +57,7 @@ export class Videos extends APIResource {
|
|
|
50
57
|
): APIPromise<VideoCreateCharacterResponse> {
|
|
51
58
|
return this._client.post(
|
|
52
59
|
'/videos/characters',
|
|
53
|
-
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
60
|
+
multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client),
|
|
54
61
|
);
|
|
55
62
|
}
|
|
56
63
|
|
|
@@ -68,6 +75,7 @@ export class Videos extends APIResource {
|
|
|
68
75
|
query,
|
|
69
76
|
...options,
|
|
70
77
|
headers: buildHeaders([{ Accept: 'application/binary' }, options?.headers]),
|
|
78
|
+
__security: { bearerAuth: true },
|
|
71
79
|
__binaryResponse: true,
|
|
72
80
|
});
|
|
73
81
|
}
|
|
@@ -79,7 +87,7 @@ export class Videos extends APIResource {
|
|
|
79
87
|
edit(body: VideoEditParams, options?: RequestOptions): APIPromise<Video> {
|
|
80
88
|
return this._client.post(
|
|
81
89
|
'/videos/edits',
|
|
82
|
-
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
90
|
+
multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client),
|
|
83
91
|
);
|
|
84
92
|
}
|
|
85
93
|
|
|
@@ -89,7 +97,7 @@ export class Videos extends APIResource {
|
|
|
89
97
|
extend(body: VideoExtendParams, options?: RequestOptions): APIPromise<Video> {
|
|
90
98
|
return this._client.post(
|
|
91
99
|
'/videos/extensions',
|
|
92
|
-
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
100
|
+
multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client),
|
|
93
101
|
);
|
|
94
102
|
}
|
|
95
103
|
|
|
@@ -97,7 +105,10 @@ export class Videos extends APIResource {
|
|
|
97
105
|
* Fetch a character.
|
|
98
106
|
*/
|
|
99
107
|
getCharacter(characterID: string, options?: RequestOptions): APIPromise<VideoGetCharacterResponse> {
|
|
100
|
-
return this._client.get(path`/videos/characters/${characterID}`,
|
|
108
|
+
return this._client.get(path`/videos/characters/${characterID}`, {
|
|
109
|
+
...options,
|
|
110
|
+
__security: { bearerAuth: true },
|
|
111
|
+
});
|
|
101
112
|
}
|
|
102
113
|
|
|
103
114
|
/**
|
|
@@ -106,7 +117,7 @@ export class Videos extends APIResource {
|
|
|
106
117
|
remix(videoID: string, body: VideoRemixParams, options?: RequestOptions): APIPromise<Video> {
|
|
107
118
|
return this._client.post(
|
|
108
119
|
path`/videos/${videoID}/remix`,
|
|
109
|
-
maybeMultipartFormRequestOptions({ body, ...options }, this._client),
|
|
120
|
+
maybeMultipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client),
|
|
110
121
|
);
|
|
111
122
|
}
|
|
112
123
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.37.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.37.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.37.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.37.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|