openai 7.18.0 → 7.20.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 +28 -0
- package/README.md +6 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +13 -7
- package/client.js.map +1 -1
- package/client.mjs +13 -7
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +11 -7
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +11 -7
- package/internal/parse.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 +1 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/admin/organization/admin-api-keys.d.mts +13 -2
- package/resources/admin/organization/admin-api-keys.d.mts.map +1 -1
- package/resources/admin/organization/admin-api-keys.d.ts +13 -2
- package/resources/admin/organization/admin-api-keys.d.ts.map +1 -1
- package/resources/admin/organization/admin-api-keys.js +58 -11
- package/resources/admin/organization/admin-api-keys.js.map +1 -1
- package/resources/admin/organization/admin-api-keys.mjs +58 -11
- package/resources/admin/organization/admin-api-keys.mjs.map +1 -1
- package/resources/admin/organization/audit-logs.d.mts +56 -3
- package/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/resources/admin/organization/audit-logs.d.ts +56 -3
- package/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/resources/admin/organization/audit-logs.js +69 -11
- package/resources/admin/organization/audit-logs.js.map +1 -1
- package/resources/admin/organization/audit-logs.mjs +69 -11
- package/resources/admin/organization/audit-logs.mjs.map +1 -1
- package/resources/admin/organization/certificates.d.mts +16 -2
- package/resources/admin/organization/certificates.d.mts.map +1 -1
- package/resources/admin/organization/certificates.d.ts +16 -2
- package/resources/admin/organization/certificates.d.ts.map +1 -1
- package/resources/admin/organization/certificates.js +64 -24
- package/resources/admin/organization/certificates.js.map +1 -1
- package/resources/admin/organization/certificates.mjs +64 -24
- package/resources/admin/organization/certificates.mjs.map +1 -1
- package/resources/admin/organization/external-storage.d.mts +141 -0
- package/resources/admin/organization/external-storage.d.mts.map +1 -0
- package/resources/admin/organization/external-storage.d.ts +141 -0
- package/resources/admin/organization/external-storage.d.ts.map +1 -0
- package/resources/admin/organization/external-storage.js +146 -0
- package/resources/admin/organization/external-storage.js.map +1 -0
- package/resources/admin/organization/external-storage.mjs +142 -0
- package/resources/admin/organization/external-storage.mjs.map +1 -0
- package/resources/admin/organization/groups/groups.d.mts +8 -1
- package/resources/admin/organization/groups/groups.d.mts.map +1 -1
- package/resources/admin/organization/groups/groups.d.ts +8 -1
- package/resources/admin/organization/groups/groups.d.ts.map +1 -1
- package/resources/admin/organization/groups/groups.js +58 -11
- package/resources/admin/organization/groups/groups.js.map +1 -1
- package/resources/admin/organization/groups/groups.mjs +58 -11
- package/resources/admin/organization/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/groups/roles.d.mts +8 -1
- package/resources/admin/organization/groups/roles.d.mts.map +1 -1
- package/resources/admin/organization/groups/roles.d.ts +8 -1
- package/resources/admin/organization/groups/roles.d.ts.map +1 -1
- package/resources/admin/organization/groups/roles.js +58 -13
- package/resources/admin/organization/groups/roles.js.map +1 -1
- package/resources/admin/organization/groups/roles.mjs +58 -13
- package/resources/admin/organization/groups/roles.mjs.map +1 -1
- package/resources/admin/organization/groups/users.d.mts +8 -1
- package/resources/admin/organization/groups/users.d.mts.map +1 -1
- package/resources/admin/organization/groups/users.d.ts +8 -1
- package/resources/admin/organization/groups/users.d.ts.map +1 -1
- package/resources/admin/organization/groups/users.js +58 -13
- package/resources/admin/organization/groups/users.js.map +1 -1
- package/resources/admin/organization/groups/users.mjs +58 -13
- package/resources/admin/organization/groups/users.mjs.map +1 -1
- package/resources/admin/organization/index.d.mts +1 -0
- package/resources/admin/organization/index.d.mts.map +1 -1
- package/resources/admin/organization/index.d.ts +1 -0
- package/resources/admin/organization/index.d.ts.map +1 -1
- package/resources/admin/organization/index.js +3 -1
- package/resources/admin/organization/index.js.map +1 -1
- package/resources/admin/organization/index.mjs +1 -0
- package/resources/admin/organization/index.mjs.map +1 -1
- package/resources/admin/organization/invites.d.mts +8 -1
- package/resources/admin/organization/invites.d.mts.map +1 -1
- package/resources/admin/organization/invites.d.ts +8 -1
- package/resources/admin/organization/invites.d.ts.map +1 -1
- package/resources/admin/organization/invites.js +58 -11
- package/resources/admin/organization/invites.js.map +1 -1
- package/resources/admin/organization/invites.mjs +58 -11
- package/resources/admin/organization/invites.mjs.map +1 -1
- package/resources/admin/organization/organization.d.mts +4 -0
- package/resources/admin/organization/organization.d.mts.map +1 -1
- package/resources/admin/organization/organization.d.ts +4 -0
- package/resources/admin/organization/organization.d.ts.map +1 -1
- package/resources/admin/organization/organization.js +4 -0
- package/resources/admin/organization/organization.js.map +1 -1
- package/resources/admin/organization/organization.mjs +4 -0
- package/resources/admin/organization/organization.mjs.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.mts +8 -1
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.ts +8 -1
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/api-keys.js +58 -13
- package/resources/admin/organization/projects/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/api-keys.mjs +58 -13
- package/resources/admin/organization/projects/api-keys.mjs.map +1 -1
- package/resources/admin/organization/projects/certificates.d.mts +8 -1
- package/resources/admin/organization/projects/certificates.d.mts.map +1 -1
- package/resources/admin/organization/projects/certificates.d.ts +8 -1
- package/resources/admin/organization/projects/certificates.d.ts.map +1 -1
- package/resources/admin/organization/projects/certificates.js +58 -13
- package/resources/admin/organization/projects/certificates.js.map +1 -1
- package/resources/admin/organization/projects/certificates.mjs +58 -13
- package/resources/admin/organization/projects/certificates.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/groups.d.mts +8 -1
- package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -1
- package/resources/admin/organization/projects/groups/groups.d.ts +8 -1
- package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -1
- package/resources/admin/organization/projects/groups/groups.js +58 -13
- package/resources/admin/organization/projects/groups/groups.js.map +1 -1
- package/resources/admin/organization/projects/groups/groups.mjs +58 -13
- package/resources/admin/organization/projects/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +8 -1
- package/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/resources/admin/organization/projects/projects.d.ts +8 -1
- package/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.js +58 -11
- package/resources/admin/organization/projects/projects.js.map +1 -1
- package/resources/admin/organization/projects/projects.mjs +58 -11
- package/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/resources/admin/organization/projects/rate-limits.d.mts +8 -1
- package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -1
- package/resources/admin/organization/projects/rate-limits.d.ts +8 -1
- package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -1
- package/resources/admin/organization/projects/rate-limits.js +58 -13
- package/resources/admin/organization/projects/rate-limits.js.map +1 -1
- package/resources/admin/organization/projects/rate-limits.mjs +58 -13
- package/resources/admin/organization/projects/rate-limits.mjs.map +1 -1
- package/resources/admin/organization/projects/roles.d.mts +8 -1
- package/resources/admin/organization/projects/roles.d.mts.map +1 -1
- package/resources/admin/organization/projects/roles.d.ts +8 -1
- package/resources/admin/organization/projects/roles.d.ts.map +1 -1
- package/resources/admin/organization/projects/roles.js +58 -13
- package/resources/admin/organization/projects/roles.js.map +1 -1
- package/resources/admin/organization/projects/roles.mjs +58 -13
- package/resources/admin/organization/projects/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +8 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +8 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js +58 -13
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +58 -13
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.d.mts +8 -1
- package/resources/admin/organization/projects/spend-alerts.d.mts.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.d.ts +8 -1
- package/resources/admin/organization/projects/spend-alerts.d.ts.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.js +58 -13
- package/resources/admin/organization/projects/spend-alerts.js.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.mjs +58 -13
- package/resources/admin/organization/projects/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/projects/users/users.d.mts +8 -1
- package/resources/admin/organization/projects/users/users.d.mts.map +1 -1
- package/resources/admin/organization/projects/users/users.d.ts +8 -1
- package/resources/admin/organization/projects/users/users.d.ts.map +1 -1
- package/resources/admin/organization/projects/users/users.js +58 -13
- package/resources/admin/organization/projects/users/users.js.map +1 -1
- package/resources/admin/organization/projects/users/users.mjs +58 -13
- package/resources/admin/organization/projects/users/users.mjs.map +1 -1
- package/resources/admin/organization/roles.d.mts +8 -1
- package/resources/admin/organization/roles.d.mts.map +1 -1
- package/resources/admin/organization/roles.d.ts +8 -1
- package/resources/admin/organization/roles.d.ts.map +1 -1
- package/resources/admin/organization/roles.js +58 -11
- package/resources/admin/organization/roles.js.map +1 -1
- package/resources/admin/organization/roles.mjs +58 -11
- package/resources/admin/organization/roles.mjs.map +1 -1
- package/resources/admin/organization/spend-alerts.d.mts +8 -1
- package/resources/admin/organization/spend-alerts.d.mts.map +1 -1
- package/resources/admin/organization/spend-alerts.d.ts +8 -1
- package/resources/admin/organization/spend-alerts.d.ts.map +1 -1
- package/resources/admin/organization/spend-alerts.js +58 -11
- package/resources/admin/organization/spend-alerts.js.map +1 -1
- package/resources/admin/organization/spend-alerts.mjs +58 -11
- package/resources/admin/organization/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/users/roles.d.mts +8 -1
- package/resources/admin/organization/users/roles.d.mts.map +1 -1
- package/resources/admin/organization/users/roles.d.ts +8 -1
- package/resources/admin/organization/users/roles.d.ts.map +1 -1
- package/resources/admin/organization/users/roles.js +58 -13
- package/resources/admin/organization/users/roles.js.map +1 -1
- package/resources/admin/organization/users/roles.mjs +58 -13
- package/resources/admin/organization/users/roles.mjs.map +1 -1
- package/resources/admin/organization/users/users.d.mts +8 -1
- package/resources/admin/organization/users/users.d.mts.map +1 -1
- package/resources/admin/organization/users/users.d.ts +8 -1
- package/resources/admin/organization/users/users.d.ts.map +1 -1
- package/resources/admin/organization/users/users.js +58 -11
- package/resources/admin/organization/users/users.js.map +1 -1
- package/resources/admin/organization/users/users.mjs +58 -11
- package/resources/admin/organization/users/users.mjs.map +1 -1
- package/resources/batches.d.mts +8 -1
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +8 -1
- package/resources/batches.d.ts.map +1 -1
- package/resources/batches.js +58 -3
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +58 -3
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/agents/agents.d.mts +67 -46
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +67 -46
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js +58 -12
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs +58 -12
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/environments/files.d.mts +5 -1
- package/resources/beta/agents/environments/files.d.mts.map +1 -1
- package/resources/beta/agents/environments/files.d.ts +5 -1
- package/resources/beta/agents/environments/files.d.ts.map +1 -1
- package/resources/beta/agents/environments/templates.d.mts +24 -13
- package/resources/beta/agents/environments/templates.d.mts.map +1 -1
- package/resources/beta/agents/environments/templates.d.ts +24 -13
- package/resources/beta/agents/environments/templates.d.ts.map +1 -1
- package/resources/beta/agents/environments/templates.js +58 -12
- package/resources/beta/agents/environments/templates.js.map +1 -1
- package/resources/beta/agents/environments/templates.mjs +58 -12
- package/resources/beta/agents/environments/templates.mjs.map +1 -1
- package/resources/beta/agents/sessions/artifacts.d.mts +17 -2
- package/resources/beta/agents/sessions/artifacts.d.mts.map +1 -1
- package/resources/beta/agents/sessions/artifacts.d.ts +17 -2
- package/resources/beta/agents/sessions/artifacts.d.ts.map +1 -1
- package/resources/beta/agents/sessions/artifacts.js +58 -14
- package/resources/beta/agents/sessions/artifacts.js.map +1 -1
- package/resources/beta/agents/sessions/artifacts.mjs +58 -14
- package/resources/beta/agents/sessions/artifacts.mjs.map +1 -1
- package/resources/beta/agents/sessions/events.d.mts +4 -1
- package/resources/beta/agents/sessions/events.d.mts.map +1 -1
- package/resources/beta/agents/sessions/events.d.ts +4 -1
- package/resources/beta/agents/sessions/events.d.ts.map +1 -1
- package/resources/beta/agents/sessions/events.js +4 -1
- package/resources/beta/agents/sessions/events.js.map +1 -1
- package/resources/beta/agents/sessions/events.mjs +4 -1
- package/resources/beta/agents/sessions/events.mjs.map +1 -1
- package/resources/beta/agents/sessions/items.d.mts +8 -1
- package/resources/beta/agents/sessions/items.d.mts.map +1 -1
- package/resources/beta/agents/sessions/items.d.ts +8 -1
- package/resources/beta/agents/sessions/items.d.ts.map +1 -1
- package/resources/beta/agents/sessions/items.js +58 -15
- package/resources/beta/agents/sessions/items.js.map +1 -1
- package/resources/beta/agents/sessions/items.mjs +58 -15
- package/resources/beta/agents/sessions/items.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts +25 -8
- package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.ts +25 -8
- package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/agents/sessions/sessions.js +61 -14
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs +61 -14
- package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.mts +8 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.ts +8 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.ts.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.js +58 -14
- package/resources/beta/agents/sessions/subagents/subagents.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.mjs +58 -14
- package/resources/beta/agents/sessions/subagents/subagents.mjs.map +1 -1
- package/resources/beta/agents/sessions/turns.d.mts +11 -3
- package/resources/beta/agents/sessions/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/turns.d.ts +11 -3
- package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/turns.js +58 -15
- package/resources/beta/agents/sessions/turns.js.map +1 -1
- package/resources/beta/agents/sessions/turns.mjs +58 -15
- package/resources/beta/agents/sessions/turns.mjs.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.mts +169 -24
- package/resources/beta/agents/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.ts +169 -24
- package/resources/beta/agents/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/agents/vaults/credentials.js +58 -15
- package/resources/beta/agents/vaults/credentials.js.map +1 -1
- package/resources/beta/agents/vaults/credentials.mjs +58 -15
- package/resources/beta/agents/vaults/credentials.mjs.map +1 -1
- package/resources/beta/agents/vaults/index.d.mts +1 -1
- package/resources/beta/agents/vaults/index.d.mts.map +1 -1
- package/resources/beta/agents/vaults/index.d.ts +1 -1
- package/resources/beta/agents/vaults/index.d.ts.map +1 -1
- package/resources/beta/agents/vaults/index.js.map +1 -1
- package/resources/beta/agents/vaults/index.mjs.map +1 -1
- package/resources/beta/agents/vaults/vaults.d.mts +17 -6
- package/resources/beta/agents/vaults/vaults.d.mts.map +1 -1
- package/resources/beta/agents/vaults/vaults.d.ts +17 -6
- package/resources/beta/agents/vaults/vaults.d.ts.map +1 -1
- package/resources/beta/agents/vaults/vaults.js +58 -12
- package/resources/beta/agents/vaults/vaults.js.map +1 -1
- package/resources/beta/agents/vaults/vaults.mjs +58 -12
- package/resources/beta/agents/vaults/vaults.mjs.map +1 -1
- package/resources/beta/assistants.d.mts +8 -1
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts +8 -1
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/assistants.js +58 -5
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +58 -5
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/chatkit/threads.d.mts +16 -2
- package/resources/beta/chatkit/threads.d.mts.map +1 -1
- package/resources/beta/chatkit/threads.d.ts +16 -2
- package/resources/beta/chatkit/threads.d.ts.map +1 -1
- package/resources/beta/chatkit/threads.js +64 -24
- package/resources/beta/chatkit/threads.js.map +1 -1
- package/resources/beta/chatkit/threads.mjs +64 -24
- package/resources/beta/chatkit/threads.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +15 -12
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +15 -12
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts +8 -1
- package/resources/beta/threads/messages.d.mts.map +1 -1
- package/resources/beta/threads/messages.d.ts +8 -1
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js +58 -5
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +58 -5
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts +8 -1
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +8 -1
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +58 -5
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +58 -5
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +13 -3
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +13 -3
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +58 -12
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +58 -12
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/chat/completions/messages.d.mts +8 -1
- package/resources/chat/completions/messages.d.mts.map +1 -1
- package/resources/chat/completions/messages.d.ts +8 -1
- package/resources/chat/completions/messages.d.ts.map +1 -1
- package/resources/chat/completions/messages.js +58 -14
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs +58 -14
- package/resources/chat/completions/messages.mjs.map +1 -1
- package/resources/containers/containers.d.mts +8 -1
- package/resources/containers/containers.d.mts.map +1 -1
- package/resources/containers/containers.d.ts +8 -1
- package/resources/containers/containers.d.ts.map +1 -1
- package/resources/containers/containers.js +58 -3
- package/resources/containers/containers.js.map +1 -1
- package/resources/containers/containers.mjs +58 -3
- package/resources/containers/containers.mjs.map +1 -1
- package/resources/containers/files/files.d.mts +8 -1
- package/resources/containers/files/files.d.mts.map +1 -1
- package/resources/containers/files/files.d.ts +8 -1
- package/resources/containers/files/files.d.ts.map +1 -1
- package/resources/containers/files/files.js +58 -3
- package/resources/containers/files/files.js.map +1 -1
- package/resources/containers/files/files.mjs +58 -3
- package/resources/containers/files/files.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts +3 -4
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts +3 -4
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/items.d.mts +8 -1
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +8 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js +58 -3
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs +58 -3
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/evals/evals.d.mts +8 -1
- package/resources/evals/evals.d.mts.map +1 -1
- package/resources/evals/evals.d.ts +8 -1
- package/resources/evals/evals.d.ts.map +1 -1
- package/resources/evals/evals.js +58 -3
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs +58 -3
- package/resources/evals/evals.mjs.map +1 -1
- package/resources/evals/runs/runs.d.mts +8 -1
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts +8 -1
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js +58 -3
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +58 -3
- 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 +58 -3
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +58 -3
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.mts +16 -2
- package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts +16 -2
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +64 -26
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +64 -26
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.mts +8 -1
- package/resources/fine-tuning/jobs/checkpoints.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.ts +8 -1
- package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js +58 -13
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +58 -13
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts +16 -2
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +16 -2
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +64 -24
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +64 -24
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/images.d.mts +3 -4
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +3 -4
- package/resources/images.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/realtime/client-secrets.d.mts +7 -3
- package/resources/realtime/client-secrets.d.mts.map +1 -1
- package/resources/realtime/client-secrets.d.ts +7 -3
- package/resources/realtime/client-secrets.d.ts.map +1 -1
- package/resources/realtime/realtime.d.mts +17 -8
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +17 -8
- 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.d.mts +8 -1
- package/resources/responses/input-items.d.mts.map +1 -1
- package/resources/responses/input-items.d.ts +8 -1
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/input-items.js +58 -13
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +58 -13
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/responses.d.mts +26 -12
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +26 -12
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +58 -0
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +58 -0
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/safety/cases.d.mts +26 -0
- package/resources/safety/cases.d.mts.map +1 -0
- package/resources/safety/cases.d.ts +26 -0
- package/resources/safety/cases.d.ts.map +1 -0
- package/resources/safety/cases.js +16 -0
- package/resources/safety/cases.js.map +1 -0
- package/resources/safety/cases.mjs +12 -0
- package/resources/safety/cases.mjs.map +1 -0
- package/resources/safety/index.d.mts +1 -0
- package/resources/safety/index.d.mts.map +1 -1
- package/resources/safety/index.d.ts +1 -0
- package/resources/safety/index.d.ts.map +1 -1
- package/resources/safety/index.js +3 -1
- package/resources/safety/index.js.map +1 -1
- package/resources/safety/index.mjs +1 -0
- package/resources/safety/index.mjs.map +1 -1
- package/resources/safety/safety.d.mts +4 -0
- package/resources/safety/safety.d.mts.map +1 -1
- package/resources/safety/safety.d.ts +4 -0
- package/resources/safety/safety.d.ts.map +1 -1
- package/resources/safety/safety.js +4 -0
- package/resources/safety/safety.js.map +1 -1
- package/resources/safety/safety.mjs +4 -0
- package/resources/safety/safety.mjs.map +1 -1
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/skills/skills.d.mts +8 -1
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +8 -1
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +58 -3
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +58 -3
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions/versions.d.mts +8 -1
- package/resources/skills/versions/versions.d.mts.map +1 -1
- package/resources/skills/versions/versions.d.ts +8 -1
- package/resources/skills/versions/versions.d.ts.map +1 -1
- package/resources/skills/versions/versions.js +58 -3
- package/resources/skills/versions/versions.js.map +1 -1
- package/resources/skills/versions/versions.mjs +58 -3
- package/resources/skills/versions/versions.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +8 -1
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +8 -1
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +58 -3
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +58 -3
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +8 -1
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +8 -1
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +58 -3
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +58 -3
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/videos.d.mts +16 -2
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +16 -2
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +64 -12
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +64 -12
- package/resources/videos.mjs.map +1 -1
- package/resources/webhooks/event-types.d.mts +17 -0
- package/resources/webhooks/event-types.d.mts.map +1 -0
- package/resources/webhooks/event-types.d.ts +17 -0
- package/resources/webhooks/event-types.d.ts.map +1 -0
- package/resources/webhooks/event-types.js +21 -0
- package/resources/webhooks/event-types.js.map +1 -0
- package/resources/webhooks/event-types.mjs +17 -0
- package/resources/webhooks/event-types.mjs.map +1 -0
- package/resources/webhooks/index.d.mts +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -0
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +368 -2
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +368 -2
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +168 -0
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +168 -0
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/src/client.ts +16 -10
- package/src/internal/parse.ts +14 -10
- package/src/internal/utils/log.ts +1 -0
- package/src/resources/admin/organization/admin-api-keys.ts +206 -2
- package/src/resources/admin/organization/audit-logs.ts +270 -1
- package/src/resources/admin/organization/certificates.ts +295 -2
- package/src/resources/admin/organization/external-storage.ts +420 -0
- package/src/resources/admin/organization/groups/groups.ts +200 -1
- package/src/resources/admin/organization/groups/roles.ts +202 -1
- package/src/resources/admin/organization/groups/users.ts +202 -1
- package/src/resources/admin/organization/index.ts +10 -0
- package/src/resources/admin/organization/invites.ts +200 -1
- package/src/resources/admin/organization/organization.ts +24 -0
- package/src/resources/admin/organization/projects/api-keys.ts +202 -1
- package/src/resources/admin/organization/projects/certificates.ts +202 -1
- package/src/resources/admin/organization/projects/groups/groups.ts +202 -1
- package/src/resources/admin/organization/projects/projects.ts +200 -1
- package/src/resources/admin/organization/projects/rate-limits.ts +202 -1
- package/src/resources/admin/organization/projects/roles.ts +202 -1
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +202 -1
- package/src/resources/admin/organization/projects/spend-alerts.ts +202 -1
- package/src/resources/admin/organization/projects/users/users.ts +202 -1
- package/src/resources/admin/organization/roles.ts +200 -1
- package/src/resources/admin/organization/spend-alerts.ts +200 -1
- package/src/resources/admin/organization/users/roles.ts +202 -1
- package/src/resources/admin/organization/users/users.ts +200 -1
- package/src/resources/batches.ts +200 -1
- package/src/resources/beta/agents/agents.ts +260 -46
- package/src/resources/beta/agents/environments/files.ts +6 -1
- package/src/resources/beta/agents/environments/templates.ts +216 -13
- package/src/resources/beta/agents/sessions/artifacts.ts +213 -2
- package/src/resources/beta/agents/sessions/events.ts +4 -1
- package/src/resources/beta/agents/sessions/items.ts +202 -1
- package/src/resources/beta/agents/sessions/sessions.ts +218 -8
- package/src/resources/beta/agents/sessions/subagents/subagents.ts +202 -1
- package/src/resources/beta/agents/sessions/turns.ts +205 -3
- package/src/resources/beta/agents/vaults/credentials.ts +389 -23
- package/src/resources/beta/agents/vaults/index.ts +2 -0
- package/src/resources/beta/agents/vaults/vaults.ts +212 -4
- package/src/resources/beta/assistants.ts +200 -1
- package/src/resources/beta/chatkit/threads.ts +311 -2
- package/src/resources/beta/responses/responses.ts +15 -12
- package/src/resources/beta/threads/messages.ts +202 -1
- package/src/resources/beta/threads/runs/runs.ts +202 -1
- package/src/resources/chat/completions/completions.ts +205 -3
- package/src/resources/chat/completions/messages.ts +202 -1
- package/src/resources/containers/containers.ts +200 -1
- package/src/resources/containers/files/files.ts +202 -1
- package/src/resources/conversations/conversations.ts +3 -4
- package/src/resources/conversations/items.ts +202 -1
- package/src/resources/evals/evals.ts +200 -1
- package/src/resources/evals/runs/runs.ts +202 -1
- package/src/resources/files.ts +200 -1
- package/src/resources/fine-tuning/checkpoints/permissions.ts +297 -2
- package/src/resources/fine-tuning/jobs/checkpoints.ts +202 -1
- package/src/resources/fine-tuning/jobs/jobs.ts +295 -2
- package/src/resources/images.ts +3 -4
- package/src/resources/index.ts +1 -1
- package/src/resources/realtime/client-secrets.ts +7 -3
- package/src/resources/realtime/realtime.ts +17 -8
- package/src/resources/responses/input-items.ts +202 -1
- package/src/resources/responses/responses.ts +263 -13
- package/src/resources/safety/cases.ts +39 -0
- package/src/resources/safety/index.ts +1 -0
- package/src/resources/safety/safety.ts +6 -0
- package/src/resources/shared.ts +2 -2
- package/src/resources/skills/skills.ts +200 -1
- package/src/resources/skills/versions/versions.ts +202 -1
- package/src/resources/vector-stores/files.ts +202 -1
- package/src/resources/vector-stores/vector-stores.ts +200 -1
- package/src/resources/videos.ts +295 -2
- package/src/resources/webhooks/api.md +42 -21
- package/src/resources/webhooks/event-types.ts +21 -0
- package/src/resources/webhooks/index.ts +1 -0
- package/src/resources/webhooks/webhooks.ts +752 -1
- 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
|
@@ -73,6 +73,113 @@ export interface ParsedResponse<ParsedT> extends Response {
|
|
|
73
73
|
|
|
74
74
|
export type ResponseParseParams = ResponseCreateParamsNonStreaming;
|
|
75
75
|
|
|
76
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
77
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
78
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
79
|
+
'method',
|
|
80
|
+
'path',
|
|
81
|
+
'query',
|
|
82
|
+
'body',
|
|
83
|
+
'headers',
|
|
84
|
+
'maxRetries',
|
|
85
|
+
'stream',
|
|
86
|
+
'timeout',
|
|
87
|
+
'httpAgent',
|
|
88
|
+
'fetchOptions',
|
|
89
|
+
'signal',
|
|
90
|
+
'idempotencyKey',
|
|
91
|
+
'defaultBaseURL',
|
|
92
|
+
'__metadata',
|
|
93
|
+
'__binaryRequest',
|
|
94
|
+
'__binaryResponse',
|
|
95
|
+
'__streamClass',
|
|
96
|
+
'__security',
|
|
97
|
+
'__synthesizeEventData',
|
|
98
|
+
]);
|
|
99
|
+
|
|
100
|
+
function normalizeRequestOptionsForQuery(
|
|
101
|
+
value: unknown,
|
|
102
|
+
queryKeys: ReadonlyArray<string>,
|
|
103
|
+
options: RequestOptions | undefined,
|
|
104
|
+
):
|
|
105
|
+
| ({
|
|
106
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
107
|
+
} & {
|
|
108
|
+
[
|
|
109
|
+
K in
|
|
110
|
+
| 'method'
|
|
111
|
+
| 'path'
|
|
112
|
+
| 'body'
|
|
113
|
+
| 'stream'
|
|
114
|
+
| 'httpAgent'
|
|
115
|
+
| 'fetchOptions'
|
|
116
|
+
| 'defaultBaseURL'
|
|
117
|
+
| '__metadata'
|
|
118
|
+
| '__binaryRequest'
|
|
119
|
+
| '__binaryResponse'
|
|
120
|
+
| '__streamClass'
|
|
121
|
+
| '__security'
|
|
122
|
+
| '__synthesizeEventData'
|
|
123
|
+
]?: never;
|
|
124
|
+
})
|
|
125
|
+
| undefined {
|
|
126
|
+
if (typeof value !== 'object' || value === null) return undefined;
|
|
127
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
128
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
129
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(
|
|
130
|
+
([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined),
|
|
131
|
+
);
|
|
132
|
+
const keys = entries.map(([key]) => key);
|
|
133
|
+
const requestOnly = keys.some(
|
|
134
|
+
(key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key),
|
|
135
|
+
);
|
|
136
|
+
if (!requestOnly) return undefined;
|
|
137
|
+
// Declared query fields, including stream, must use the query argument.
|
|
138
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
139
|
+
if (
|
|
140
|
+
options !== undefined ||
|
|
141
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))
|
|
142
|
+
) {
|
|
143
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
144
|
+
}
|
|
145
|
+
// The query position must not gain authority to change the request destination
|
|
146
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
147
|
+
if (
|
|
148
|
+
keys.some(
|
|
149
|
+
(key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key),
|
|
150
|
+
)
|
|
151
|
+
) {
|
|
152
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
153
|
+
}
|
|
154
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
155
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
156
|
+
return Object.fromEntries(
|
|
157
|
+
entries.map(([key, descriptor]) => {
|
|
158
|
+
if ('value' in descriptor) return [key, descriptor.value];
|
|
159
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
160
|
+
}),
|
|
161
|
+
) as {
|
|
162
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
163
|
+
} & {
|
|
164
|
+
[
|
|
165
|
+
K in
|
|
166
|
+
| 'method'
|
|
167
|
+
| 'path'
|
|
168
|
+
| 'body'
|
|
169
|
+
| 'stream'
|
|
170
|
+
| 'httpAgent'
|
|
171
|
+
| 'fetchOptions'
|
|
172
|
+
| 'defaultBaseURL'
|
|
173
|
+
| '__metadata'
|
|
174
|
+
| '__binaryRequest'
|
|
175
|
+
| '__binaryResponse'
|
|
176
|
+
| '__streamClass'
|
|
177
|
+
| '__security'
|
|
178
|
+
| '__synthesizeEventData'
|
|
179
|
+
]?: never;
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
76
183
|
export class Responses extends APIResource {
|
|
77
184
|
inputItems: InputItemsAPI.InputItems = new InputItemsAPI.InputItems(this._client);
|
|
78
185
|
inputTokens: InputTokensAPI.InputTokens = new InputTokensAPI.InputTokens(this._client);
|
|
@@ -136,24 +243,164 @@ export class Responses extends APIResource {
|
|
|
136
243
|
*/
|
|
137
244
|
retrieve(
|
|
138
245
|
responseID: string,
|
|
139
|
-
query?: ResponseRetrieveParamsNonStreaming
|
|
246
|
+
query?: ResponseRetrieveParamsNonStreaming &
|
|
247
|
+
(
|
|
248
|
+
| {
|
|
249
|
+
[
|
|
250
|
+
K in
|
|
251
|
+
| 'method'
|
|
252
|
+
| 'path'
|
|
253
|
+
| 'query'
|
|
254
|
+
| 'body'
|
|
255
|
+
| 'headers'
|
|
256
|
+
| 'maxRetries'
|
|
257
|
+
| 'timeout'
|
|
258
|
+
| 'httpAgent'
|
|
259
|
+
| 'fetchOptions'
|
|
260
|
+
| 'signal'
|
|
261
|
+
| 'idempotencyKey'
|
|
262
|
+
| 'defaultBaseURL'
|
|
263
|
+
| '__metadata'
|
|
264
|
+
| '__binaryRequest'
|
|
265
|
+
| '__binaryResponse'
|
|
266
|
+
| '__streamClass'
|
|
267
|
+
| '__security'
|
|
268
|
+
| '__synthesizeEventData'
|
|
269
|
+
]?: never;
|
|
270
|
+
}
|
|
271
|
+
| null
|
|
272
|
+
| undefined
|
|
273
|
+
),
|
|
140
274
|
options?: RequestOptions,
|
|
141
275
|
): APIPromise<Response>;
|
|
142
276
|
retrieve(
|
|
143
277
|
responseID: string,
|
|
144
|
-
query: ResponseRetrieveParamsStreaming
|
|
278
|
+
query: ResponseRetrieveParamsStreaming &
|
|
279
|
+
(
|
|
280
|
+
| {
|
|
281
|
+
[
|
|
282
|
+
K in
|
|
283
|
+
| 'method'
|
|
284
|
+
| 'path'
|
|
285
|
+
| 'query'
|
|
286
|
+
| 'body'
|
|
287
|
+
| 'headers'
|
|
288
|
+
| 'maxRetries'
|
|
289
|
+
| 'timeout'
|
|
290
|
+
| 'httpAgent'
|
|
291
|
+
| 'fetchOptions'
|
|
292
|
+
| 'signal'
|
|
293
|
+
| 'idempotencyKey'
|
|
294
|
+
| 'defaultBaseURL'
|
|
295
|
+
| '__metadata'
|
|
296
|
+
| '__binaryRequest'
|
|
297
|
+
| '__binaryResponse'
|
|
298
|
+
| '__streamClass'
|
|
299
|
+
| '__security'
|
|
300
|
+
| '__synthesizeEventData'
|
|
301
|
+
]?: never;
|
|
302
|
+
}
|
|
303
|
+
| null
|
|
304
|
+
| undefined
|
|
305
|
+
),
|
|
145
306
|
options?: RequestOptions,
|
|
146
307
|
): APIPromise<Stream<ResponseStreamEvent>>;
|
|
147
308
|
retrieve(
|
|
148
309
|
responseID: string,
|
|
149
|
-
query?:
|
|
310
|
+
query?:
|
|
311
|
+
| (ResponseRetrieveParamsBase &
|
|
312
|
+
(
|
|
313
|
+
| {
|
|
314
|
+
[
|
|
315
|
+
K in
|
|
316
|
+
| 'method'
|
|
317
|
+
| 'path'
|
|
318
|
+
| 'query'
|
|
319
|
+
| 'body'
|
|
320
|
+
| 'headers'
|
|
321
|
+
| 'maxRetries'
|
|
322
|
+
| 'timeout'
|
|
323
|
+
| 'httpAgent'
|
|
324
|
+
| 'fetchOptions'
|
|
325
|
+
| 'signal'
|
|
326
|
+
| 'idempotencyKey'
|
|
327
|
+
| 'defaultBaseURL'
|
|
328
|
+
| '__metadata'
|
|
329
|
+
| '__binaryRequest'
|
|
330
|
+
| '__binaryResponse'
|
|
331
|
+
| '__streamClass'
|
|
332
|
+
| '__security'
|
|
333
|
+
| '__synthesizeEventData'
|
|
334
|
+
]?: never;
|
|
335
|
+
}
|
|
336
|
+
| null
|
|
337
|
+
| undefined
|
|
338
|
+
))
|
|
339
|
+
| undefined,
|
|
150
340
|
options?: RequestOptions,
|
|
151
341
|
): APIPromise<Stream<ResponseStreamEvent> | Response>;
|
|
152
342
|
retrieve(
|
|
153
343
|
responseID: string,
|
|
154
|
-
|
|
344
|
+
options?: {
|
|
345
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
346
|
+
} & {
|
|
347
|
+
[
|
|
348
|
+
K in
|
|
349
|
+
| 'method'
|
|
350
|
+
| 'path'
|
|
351
|
+
| 'body'
|
|
352
|
+
| 'stream'
|
|
353
|
+
| 'httpAgent'
|
|
354
|
+
| 'fetchOptions'
|
|
355
|
+
| 'defaultBaseURL'
|
|
356
|
+
| '__metadata'
|
|
357
|
+
| '__binaryRequest'
|
|
358
|
+
| '__binaryResponse'
|
|
359
|
+
| '__streamClass'
|
|
360
|
+
| '__security'
|
|
361
|
+
| '__synthesizeEventData'
|
|
362
|
+
]?: never;
|
|
363
|
+
},
|
|
364
|
+
): APIPromise<Response>;
|
|
365
|
+
retrieve(
|
|
366
|
+
responseID: string,
|
|
367
|
+
query:
|
|
368
|
+
| ResponseRetrieveParamsBase
|
|
369
|
+
| ({
|
|
370
|
+
[
|
|
371
|
+
K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query'
|
|
372
|
+
]?: RequestOptions[K];
|
|
373
|
+
} & {
|
|
374
|
+
[
|
|
375
|
+
K in
|
|
376
|
+
| 'method'
|
|
377
|
+
| 'path'
|
|
378
|
+
| 'body'
|
|
379
|
+
| 'stream'
|
|
380
|
+
| 'httpAgent'
|
|
381
|
+
| 'fetchOptions'
|
|
382
|
+
| 'defaultBaseURL'
|
|
383
|
+
| '__metadata'
|
|
384
|
+
| '__binaryRequest'
|
|
385
|
+
| '__binaryResponse'
|
|
386
|
+
| '__streamClass'
|
|
387
|
+
| '__security'
|
|
388
|
+
| '__synthesizeEventData'
|
|
389
|
+
]?: never;
|
|
390
|
+
})
|
|
391
|
+
| undefined = {},
|
|
155
392
|
options?: RequestOptions,
|
|
156
393
|
): APIPromise<Response> | APIPromise<Stream<ResponseStreamEvent>> {
|
|
394
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(
|
|
395
|
+
query,
|
|
396
|
+
['include', 'include_obfuscation', 'starting_after', 'stream'],
|
|
397
|
+
options,
|
|
398
|
+
);
|
|
399
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
400
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
401
|
+
query = {};
|
|
402
|
+
}
|
|
403
|
+
query = query as ResponseRetrieveParams | undefined;
|
|
157
404
|
return (
|
|
158
405
|
this._client.get(path`/responses/${responseID}`, {
|
|
159
406
|
query,
|
|
@@ -6785,7 +7032,7 @@ export namespace ResponseOutputText {
|
|
|
6785
7032
|
*/
|
|
6786
7033
|
export interface ResponseOutputTextAnnotationAddedEvent {
|
|
6787
7034
|
/**
|
|
6788
|
-
*
|
|
7035
|
+
* The annotation object being added. (See annotation schema for details.)
|
|
6789
7036
|
*/
|
|
6790
7037
|
annotation:
|
|
6791
7038
|
| ResponseOutputTextAnnotationAddedEvent.FileCitation
|
|
@@ -10080,11 +10327,15 @@ export namespace Tool {
|
|
|
10080
10327
|
authorization?: string;
|
|
10081
10328
|
|
|
10082
10329
|
/**
|
|
10083
|
-
* Identifier for service connectors, like those available in ChatGPT.
|
|
10084
|
-
* `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
|
|
10085
|
-
* service connectors
|
|
10330
|
+
* @deprecated Identifier for service connectors, like those available in ChatGPT.
|
|
10331
|
+
* One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
|
|
10332
|
+
* about service connectors
|
|
10086
10333
|
* [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
10087
10334
|
*
|
|
10335
|
+
* This field is deprecated for models released after September 1, 2026. Use
|
|
10336
|
+
* `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
|
|
10337
|
+
* through a Secure MCP Tunnel.
|
|
10338
|
+
*
|
|
10088
10339
|
* Currently supported `connector_id` values are:
|
|
10089
10340
|
*
|
|
10090
10341
|
* - Dropbox: `connector_dropbox`
|
|
@@ -10301,10 +10552,9 @@ export namespace Tool {
|
|
|
10301
10552
|
background?: 'transparent' | 'opaque' | 'auto';
|
|
10302
10553
|
|
|
10303
10554
|
/**
|
|
10304
|
-
*
|
|
10305
|
-
*
|
|
10306
|
-
*
|
|
10307
|
-
* `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.
|
|
10555
|
+
* Controls fidelity to the original input image(s). This parameter is supported
|
|
10556
|
+
* for GPT image models that support input fidelity. `gpt-image-2` and
|
|
10557
|
+
* `gpt-image-2-2026-04-21` ignore this parameter.
|
|
10308
10558
|
*/
|
|
10309
10559
|
input_fidelity?: 'high' | 'low' | null;
|
|
10310
10560
|
|
|
@@ -11296,6 +11546,7 @@ export interface ResponseCompactParams {
|
|
|
11296
11546
|
| 'gpt-5.1'
|
|
11297
11547
|
| 'gpt-5.1-2025-11-13'
|
|
11298
11548
|
| 'gpt-5.1-codex'
|
|
11549
|
+
| 'gpt-5.1-mini'
|
|
11299
11550
|
| 'gpt-5.1-chat-latest'
|
|
11300
11551
|
| 'gpt-5'
|
|
11301
11552
|
| 'gpt-5-mini'
|
|
@@ -11361,7 +11612,6 @@ export interface ResponseCompactParams {
|
|
|
11361
11612
|
| 'gpt-3.5-turbo-1106'
|
|
11362
11613
|
| 'gpt-3.5-turbo-0125'
|
|
11363
11614
|
| 'gpt-3.5-turbo-16k-0613'
|
|
11364
|
-
| 'gpt-5.1-mini'
|
|
11365
11615
|
| 'o1-pro'
|
|
11366
11616
|
| 'o1-pro-2025-03-19'
|
|
11367
11617
|
| 'o3-pro'
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Cases extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get a safety case by ID.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<SafetyCase> {
|
|
13
|
+
return this._client.get(path`/safety/cases/${id}`, { ...options, __security: { bearerAuth: true } });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface SafetyCase {
|
|
18
|
+
id: string;
|
|
19
|
+
|
|
20
|
+
created_at: number;
|
|
21
|
+
|
|
22
|
+
entity_identifier: string;
|
|
23
|
+
|
|
24
|
+
notice: SafetyCase.Notice;
|
|
25
|
+
|
|
26
|
+
object: 'safety.case';
|
|
27
|
+
|
|
28
|
+
reason: string | null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export namespace SafetyCase {
|
|
32
|
+
export interface Notice {
|
|
33
|
+
type: 'warning' | 'deactivation';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare namespace Cases {
|
|
38
|
+
export { type SafetyCase as SafetyCase };
|
|
39
|
+
}
|
|
@@ -3,13 +3,19 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as AlertsAPI from './alerts';
|
|
5
5
|
import { Alerts, SafetyAlert } from './alerts';
|
|
6
|
+
import * as CasesAPI from './cases';
|
|
7
|
+
import { Cases, SafetyCase } from './cases';
|
|
6
8
|
|
|
7
9
|
export class Safety extends APIResource {
|
|
8
10
|
alerts: AlertsAPI.Alerts = new AlertsAPI.Alerts(this._client);
|
|
11
|
+
cases: CasesAPI.Cases = new CasesAPI.Cases(this._client);
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
Safety.Alerts = Alerts;
|
|
15
|
+
Safety.Cases = Cases;
|
|
12
16
|
|
|
13
17
|
export declare namespace Safety {
|
|
14
18
|
export { Alerts as Alerts, type SafetyAlert as SafetyAlert };
|
|
19
|
+
|
|
20
|
+
export { Cases as Cases, type SafetyCase as SafetyCase };
|
|
15
21
|
}
|
package/src/resources/shared.ts
CHANGED
|
@@ -44,6 +44,7 @@ export type ChatModel =
|
|
|
44
44
|
| 'gpt-5.1'
|
|
45
45
|
| 'gpt-5.1-2025-11-13'
|
|
46
46
|
| 'gpt-5.1-codex'
|
|
47
|
+
| 'gpt-5.1-mini'
|
|
47
48
|
| 'gpt-5.1-chat-latest'
|
|
48
49
|
| 'gpt-5'
|
|
49
50
|
| 'gpt-5-mini'
|
|
@@ -108,8 +109,7 @@ export type ChatModel =
|
|
|
108
109
|
| 'gpt-3.5-turbo-0613'
|
|
109
110
|
| 'gpt-3.5-turbo-1106'
|
|
110
111
|
| 'gpt-3.5-turbo-0125'
|
|
111
|
-
| 'gpt-3.5-turbo-16k-0613'
|
|
112
|
-
| 'gpt-5.1-mini';
|
|
112
|
+
| 'gpt-3.5-turbo-16k-0613';
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* A filter used to compare a specified attribute key to a given value using a
|
|
@@ -22,6 +22,113 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
22
22
|
import { maybeMultipartFormRequestOptions } from '../../internal/uploads';
|
|
23
23
|
import { path } from '../../internal/utils/path';
|
|
24
24
|
|
|
25
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
26
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
27
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
28
|
+
'method',
|
|
29
|
+
'path',
|
|
30
|
+
'query',
|
|
31
|
+
'body',
|
|
32
|
+
'headers',
|
|
33
|
+
'maxRetries',
|
|
34
|
+
'stream',
|
|
35
|
+
'timeout',
|
|
36
|
+
'httpAgent',
|
|
37
|
+
'fetchOptions',
|
|
38
|
+
'signal',
|
|
39
|
+
'idempotencyKey',
|
|
40
|
+
'defaultBaseURL',
|
|
41
|
+
'__metadata',
|
|
42
|
+
'__binaryRequest',
|
|
43
|
+
'__binaryResponse',
|
|
44
|
+
'__streamClass',
|
|
45
|
+
'__security',
|
|
46
|
+
'__synthesizeEventData',
|
|
47
|
+
]);
|
|
48
|
+
|
|
49
|
+
function normalizeRequestOptionsForQuery(
|
|
50
|
+
value: unknown,
|
|
51
|
+
queryKeys: ReadonlyArray<string>,
|
|
52
|
+
options: RequestOptions | undefined,
|
|
53
|
+
):
|
|
54
|
+
| ({
|
|
55
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
56
|
+
} & {
|
|
57
|
+
[
|
|
58
|
+
K in
|
|
59
|
+
| 'method'
|
|
60
|
+
| 'path'
|
|
61
|
+
| 'body'
|
|
62
|
+
| 'stream'
|
|
63
|
+
| 'httpAgent'
|
|
64
|
+
| 'fetchOptions'
|
|
65
|
+
| 'defaultBaseURL'
|
|
66
|
+
| '__metadata'
|
|
67
|
+
| '__binaryRequest'
|
|
68
|
+
| '__binaryResponse'
|
|
69
|
+
| '__streamClass'
|
|
70
|
+
| '__security'
|
|
71
|
+
| '__synthesizeEventData'
|
|
72
|
+
]?: never;
|
|
73
|
+
})
|
|
74
|
+
| undefined {
|
|
75
|
+
if (typeof value !== 'object' || value === null) return undefined;
|
|
76
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
77
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
78
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(
|
|
79
|
+
([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined),
|
|
80
|
+
);
|
|
81
|
+
const keys = entries.map(([key]) => key);
|
|
82
|
+
const requestOnly = keys.some(
|
|
83
|
+
(key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key),
|
|
84
|
+
);
|
|
85
|
+
if (!requestOnly) return undefined;
|
|
86
|
+
// Declared query fields, including stream, must use the query argument.
|
|
87
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
88
|
+
if (
|
|
89
|
+
options !== undefined ||
|
|
90
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))
|
|
91
|
+
) {
|
|
92
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
93
|
+
}
|
|
94
|
+
// The query position must not gain authority to change the request destination
|
|
95
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
96
|
+
if (
|
|
97
|
+
keys.some(
|
|
98
|
+
(key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key),
|
|
99
|
+
)
|
|
100
|
+
) {
|
|
101
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
102
|
+
}
|
|
103
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
104
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
105
|
+
return Object.fromEntries(
|
|
106
|
+
entries.map(([key, descriptor]) => {
|
|
107
|
+
if ('value' in descriptor) return [key, descriptor.value];
|
|
108
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
109
|
+
}),
|
|
110
|
+
) as {
|
|
111
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
112
|
+
} & {
|
|
113
|
+
[
|
|
114
|
+
K in
|
|
115
|
+
| 'method'
|
|
116
|
+
| 'path'
|
|
117
|
+
| 'body'
|
|
118
|
+
| 'stream'
|
|
119
|
+
| 'httpAgent'
|
|
120
|
+
| 'fetchOptions'
|
|
121
|
+
| 'defaultBaseURL'
|
|
122
|
+
| '__metadata'
|
|
123
|
+
| '__binaryRequest'
|
|
124
|
+
| '__binaryResponse'
|
|
125
|
+
| '__streamClass'
|
|
126
|
+
| '__security'
|
|
127
|
+
| '__synthesizeEventData'
|
|
128
|
+
]?: never;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
25
132
|
export class Skills extends APIResource {
|
|
26
133
|
content: ContentAPI.Content = new ContentAPI.Content(this._client);
|
|
27
134
|
versions: VersionsAPI.Versions = new VersionsAPI.Versions(this._client);
|
|
@@ -60,9 +167,101 @@ export class Skills extends APIResource {
|
|
|
60
167
|
* List all skills for the current project.
|
|
61
168
|
*/
|
|
62
169
|
list(
|
|
63
|
-
query
|
|
170
|
+
query?:
|
|
171
|
+
| (SkillListParams &
|
|
172
|
+
(
|
|
173
|
+
| {
|
|
174
|
+
[
|
|
175
|
+
K in
|
|
176
|
+
| 'method'
|
|
177
|
+
| 'path'
|
|
178
|
+
| 'query'
|
|
179
|
+
| 'body'
|
|
180
|
+
| 'headers'
|
|
181
|
+
| 'maxRetries'
|
|
182
|
+
| 'stream'
|
|
183
|
+
| 'timeout'
|
|
184
|
+
| 'httpAgent'
|
|
185
|
+
| 'fetchOptions'
|
|
186
|
+
| 'signal'
|
|
187
|
+
| 'idempotencyKey'
|
|
188
|
+
| 'defaultBaseURL'
|
|
189
|
+
| '__metadata'
|
|
190
|
+
| '__binaryRequest'
|
|
191
|
+
| '__binaryResponse'
|
|
192
|
+
| '__streamClass'
|
|
193
|
+
| '__security'
|
|
194
|
+
| '__synthesizeEventData'
|
|
195
|
+
]?: never;
|
|
196
|
+
}
|
|
197
|
+
| null
|
|
198
|
+
| undefined
|
|
199
|
+
))
|
|
200
|
+
| null
|
|
201
|
+
| undefined,
|
|
202
|
+
options?: RequestOptions,
|
|
203
|
+
): PagePromise<SkillsPage, Skill>;
|
|
204
|
+
list(
|
|
205
|
+
options?: {
|
|
206
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
207
|
+
} & {
|
|
208
|
+
[
|
|
209
|
+
K in
|
|
210
|
+
| 'method'
|
|
211
|
+
| 'path'
|
|
212
|
+
| 'body'
|
|
213
|
+
| 'stream'
|
|
214
|
+
| 'httpAgent'
|
|
215
|
+
| 'fetchOptions'
|
|
216
|
+
| 'defaultBaseURL'
|
|
217
|
+
| '__metadata'
|
|
218
|
+
| '__binaryRequest'
|
|
219
|
+
| '__binaryResponse'
|
|
220
|
+
| '__streamClass'
|
|
221
|
+
| '__security'
|
|
222
|
+
| '__synthesizeEventData'
|
|
223
|
+
]?: never;
|
|
224
|
+
},
|
|
225
|
+
): PagePromise<SkillsPage, Skill>;
|
|
226
|
+
list(
|
|
227
|
+
query:
|
|
228
|
+
| SkillListParams
|
|
229
|
+
| ({
|
|
230
|
+
[
|
|
231
|
+
K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query'
|
|
232
|
+
]?: RequestOptions[K];
|
|
233
|
+
} & {
|
|
234
|
+
[
|
|
235
|
+
K in
|
|
236
|
+
| 'method'
|
|
237
|
+
| 'path'
|
|
238
|
+
| 'body'
|
|
239
|
+
| 'stream'
|
|
240
|
+
| 'httpAgent'
|
|
241
|
+
| 'fetchOptions'
|
|
242
|
+
| 'defaultBaseURL'
|
|
243
|
+
| '__metadata'
|
|
244
|
+
| '__binaryRequest'
|
|
245
|
+
| '__binaryResponse'
|
|
246
|
+
| '__streamClass'
|
|
247
|
+
| '__security'
|
|
248
|
+
| '__synthesizeEventData'
|
|
249
|
+
]?: never;
|
|
250
|
+
})
|
|
251
|
+
| null
|
|
252
|
+
| undefined = {},
|
|
64
253
|
options?: RequestOptions,
|
|
65
254
|
): PagePromise<SkillsPage, Skill> {
|
|
255
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(
|
|
256
|
+
query,
|
|
257
|
+
['after', 'limit', 'order'],
|
|
258
|
+
options,
|
|
259
|
+
);
|
|
260
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
261
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
262
|
+
query = {};
|
|
263
|
+
}
|
|
264
|
+
query = query as SkillListParams | null | undefined;
|
|
66
265
|
return this._client.getAPIList('/skills', CursorPage<Skill>, {
|
|
67
266
|
query,
|
|
68
267
|
...options,
|