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
|
@@ -31,6 +31,113 @@ import { buildHeaders } from '../../../internal/headers';
|
|
|
31
31
|
import { RequestOptions } from '../../../internal/request-options';
|
|
32
32
|
import { path } from '../../../internal/utils/path';
|
|
33
33
|
|
|
34
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
35
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
36
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
37
|
+
'method',
|
|
38
|
+
'path',
|
|
39
|
+
'query',
|
|
40
|
+
'body',
|
|
41
|
+
'headers',
|
|
42
|
+
'maxRetries',
|
|
43
|
+
'stream',
|
|
44
|
+
'timeout',
|
|
45
|
+
'httpAgent',
|
|
46
|
+
'fetchOptions',
|
|
47
|
+
'signal',
|
|
48
|
+
'idempotencyKey',
|
|
49
|
+
'defaultBaseURL',
|
|
50
|
+
'__metadata',
|
|
51
|
+
'__binaryRequest',
|
|
52
|
+
'__binaryResponse',
|
|
53
|
+
'__streamClass',
|
|
54
|
+
'__security',
|
|
55
|
+
'__synthesizeEventData',
|
|
56
|
+
]);
|
|
57
|
+
|
|
58
|
+
function normalizeRequestOptionsForQuery(
|
|
59
|
+
value: unknown,
|
|
60
|
+
queryKeys: ReadonlyArray<string>,
|
|
61
|
+
options: RequestOptions | undefined,
|
|
62
|
+
):
|
|
63
|
+
| ({
|
|
64
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
65
|
+
} & {
|
|
66
|
+
[
|
|
67
|
+
K in
|
|
68
|
+
| 'method'
|
|
69
|
+
| 'path'
|
|
70
|
+
| 'body'
|
|
71
|
+
| 'stream'
|
|
72
|
+
| 'httpAgent'
|
|
73
|
+
| 'fetchOptions'
|
|
74
|
+
| 'defaultBaseURL'
|
|
75
|
+
| '__metadata'
|
|
76
|
+
| '__binaryRequest'
|
|
77
|
+
| '__binaryResponse'
|
|
78
|
+
| '__streamClass'
|
|
79
|
+
| '__security'
|
|
80
|
+
| '__synthesizeEventData'
|
|
81
|
+
]?: never;
|
|
82
|
+
})
|
|
83
|
+
| undefined {
|
|
84
|
+
if (typeof value !== 'object' || value === null) return undefined;
|
|
85
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
86
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
87
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(
|
|
88
|
+
([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined),
|
|
89
|
+
);
|
|
90
|
+
const keys = entries.map(([key]) => key);
|
|
91
|
+
const requestOnly = keys.some(
|
|
92
|
+
(key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key),
|
|
93
|
+
);
|
|
94
|
+
if (!requestOnly) return undefined;
|
|
95
|
+
// Declared query fields, including stream, must use the query argument.
|
|
96
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
97
|
+
if (
|
|
98
|
+
options !== undefined ||
|
|
99
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))
|
|
100
|
+
) {
|
|
101
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
102
|
+
}
|
|
103
|
+
// The query position must not gain authority to change the request destination
|
|
104
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
105
|
+
if (
|
|
106
|
+
keys.some(
|
|
107
|
+
(key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key),
|
|
108
|
+
)
|
|
109
|
+
) {
|
|
110
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
111
|
+
}
|
|
112
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
113
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
114
|
+
return Object.fromEntries(
|
|
115
|
+
entries.map(([key, descriptor]) => {
|
|
116
|
+
if ('value' in descriptor) return [key, descriptor.value];
|
|
117
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
118
|
+
}),
|
|
119
|
+
) as {
|
|
120
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
121
|
+
} & {
|
|
122
|
+
[
|
|
123
|
+
K in
|
|
124
|
+
| 'method'
|
|
125
|
+
| 'path'
|
|
126
|
+
| 'body'
|
|
127
|
+
| 'stream'
|
|
128
|
+
| 'httpAgent'
|
|
129
|
+
| 'fetchOptions'
|
|
130
|
+
| 'defaultBaseURL'
|
|
131
|
+
| '__metadata'
|
|
132
|
+
| '__binaryRequest'
|
|
133
|
+
| '__binaryResponse'
|
|
134
|
+
| '__streamClass'
|
|
135
|
+
| '__security'
|
|
136
|
+
| '__synthesizeEventData'
|
|
137
|
+
]?: never;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
34
141
|
export class Agents extends APIResource {
|
|
35
142
|
environments: EnvironmentsAPI.Environments = new EnvironmentsAPI.Environments(this._client);
|
|
36
143
|
vaults: VaultsAPI.Vaults = new VaultsAPI.Vaults(this._client);
|
|
@@ -108,9 +215,101 @@ export class Agents extends APIResource {
|
|
|
108
215
|
* ```
|
|
109
216
|
*/
|
|
110
217
|
list(
|
|
111
|
-
query
|
|
218
|
+
query?:
|
|
219
|
+
| (AgentListParams &
|
|
220
|
+
(
|
|
221
|
+
| {
|
|
222
|
+
[
|
|
223
|
+
K in
|
|
224
|
+
| 'method'
|
|
225
|
+
| 'path'
|
|
226
|
+
| 'query'
|
|
227
|
+
| 'body'
|
|
228
|
+
| 'headers'
|
|
229
|
+
| 'maxRetries'
|
|
230
|
+
| 'stream'
|
|
231
|
+
| 'timeout'
|
|
232
|
+
| 'httpAgent'
|
|
233
|
+
| 'fetchOptions'
|
|
234
|
+
| 'signal'
|
|
235
|
+
| 'idempotencyKey'
|
|
236
|
+
| 'defaultBaseURL'
|
|
237
|
+
| '__metadata'
|
|
238
|
+
| '__binaryRequest'
|
|
239
|
+
| '__binaryResponse'
|
|
240
|
+
| '__streamClass'
|
|
241
|
+
| '__security'
|
|
242
|
+
| '__synthesizeEventData'
|
|
243
|
+
]?: never;
|
|
244
|
+
}
|
|
245
|
+
| null
|
|
246
|
+
| undefined
|
|
247
|
+
))
|
|
248
|
+
| null
|
|
249
|
+
| undefined,
|
|
250
|
+
options?: RequestOptions,
|
|
251
|
+
): PagePromise<AgentsPage, Agent>;
|
|
252
|
+
list(
|
|
253
|
+
options?: {
|
|
254
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
255
|
+
} & {
|
|
256
|
+
[
|
|
257
|
+
K in
|
|
258
|
+
| 'method'
|
|
259
|
+
| 'path'
|
|
260
|
+
| 'body'
|
|
261
|
+
| 'stream'
|
|
262
|
+
| 'httpAgent'
|
|
263
|
+
| 'fetchOptions'
|
|
264
|
+
| 'defaultBaseURL'
|
|
265
|
+
| '__metadata'
|
|
266
|
+
| '__binaryRequest'
|
|
267
|
+
| '__binaryResponse'
|
|
268
|
+
| '__streamClass'
|
|
269
|
+
| '__security'
|
|
270
|
+
| '__synthesizeEventData'
|
|
271
|
+
]?: never;
|
|
272
|
+
},
|
|
273
|
+
): PagePromise<AgentsPage, Agent>;
|
|
274
|
+
list(
|
|
275
|
+
query:
|
|
276
|
+
| AgentListParams
|
|
277
|
+
| ({
|
|
278
|
+
[
|
|
279
|
+
K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query'
|
|
280
|
+
]?: RequestOptions[K];
|
|
281
|
+
} & {
|
|
282
|
+
[
|
|
283
|
+
K in
|
|
284
|
+
| 'method'
|
|
285
|
+
| 'path'
|
|
286
|
+
| 'body'
|
|
287
|
+
| 'stream'
|
|
288
|
+
| 'httpAgent'
|
|
289
|
+
| 'fetchOptions'
|
|
290
|
+
| 'defaultBaseURL'
|
|
291
|
+
| '__metadata'
|
|
292
|
+
| '__binaryRequest'
|
|
293
|
+
| '__binaryResponse'
|
|
294
|
+
| '__streamClass'
|
|
295
|
+
| '__security'
|
|
296
|
+
| '__synthesizeEventData'
|
|
297
|
+
]?: never;
|
|
298
|
+
})
|
|
299
|
+
| null
|
|
300
|
+
| undefined = {},
|
|
112
301
|
options?: RequestOptions,
|
|
113
302
|
): PagePromise<AgentsPage, Agent> {
|
|
303
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(
|
|
304
|
+
query,
|
|
305
|
+
['after', 'limit', 'order'],
|
|
306
|
+
options,
|
|
307
|
+
);
|
|
308
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
309
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
310
|
+
query = {};
|
|
311
|
+
}
|
|
312
|
+
query = query as AgentListParams | null | undefined;
|
|
114
313
|
return this._client.getAPIList('/agents', CursorPage<Agent>, {
|
|
115
314
|
query,
|
|
116
315
|
...options,
|
|
@@ -607,12 +806,13 @@ export type AgentOutputItemStatus = 'in_progress' | 'completed' | 'incomplete';
|
|
|
607
806
|
*/
|
|
608
807
|
export interface AgentReasoning {
|
|
609
808
|
/**
|
|
610
|
-
* The
|
|
809
|
+
* The requested reasoning effort, or `null` when the model selects its own
|
|
810
|
+
* default.
|
|
611
811
|
*/
|
|
612
812
|
effort: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
613
813
|
|
|
614
814
|
/**
|
|
615
|
-
* The reasoning summary format
|
|
815
|
+
* The requested reasoning summary format, or `null` when summaries are disabled.
|
|
616
816
|
*
|
|
617
817
|
* - `concise` - Returns a concise reasoning summary when supported.
|
|
618
818
|
* - `detailed` - Returns a detailed reasoning summary when supported.
|
|
@@ -632,7 +832,7 @@ export interface AgentReasoningItem {
|
|
|
632
832
|
id: string;
|
|
633
833
|
|
|
634
834
|
/**
|
|
635
|
-
* The status of
|
|
835
|
+
* The status of the reasoning item.
|
|
636
836
|
*/
|
|
637
837
|
status: AgentOutputItemStatus | null;
|
|
638
838
|
|
|
@@ -657,12 +857,13 @@ export interface AgentReasoningItem {
|
|
|
657
857
|
*/
|
|
658
858
|
export interface AgentReasoningParam {
|
|
659
859
|
/**
|
|
660
|
-
* The amount of reasoning effort the model should use.
|
|
860
|
+
* The amount of reasoning effort the model should use. Omission lets the model
|
|
861
|
+
* select it.
|
|
661
862
|
*/
|
|
662
863
|
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
663
864
|
|
|
664
865
|
/**
|
|
665
|
-
*
|
|
866
|
+
* Controls whether the response includes a reasoning summary.
|
|
666
867
|
*
|
|
667
868
|
* - `concise` - Returns a concise reasoning summary when supported.
|
|
668
869
|
* - `detailed` - Returns a detailed reasoning summary when supported.
|
|
@@ -811,7 +1012,8 @@ export interface AgentSession {
|
|
|
811
1012
|
status: 'idle' | 'in_progress' | 'requires_action' | 'failed';
|
|
812
1013
|
|
|
813
1014
|
/**
|
|
814
|
-
*
|
|
1015
|
+
* Best-effort token usage for the session, or null if unknown. Recorded usage may
|
|
1016
|
+
* change.
|
|
815
1017
|
*/
|
|
816
1018
|
usage: TokenUsage | null;
|
|
817
1019
|
|
|
@@ -934,7 +1136,7 @@ export interface AgentSessionAssistantMessage {
|
|
|
934
1136
|
content: Array<OutputText>;
|
|
935
1137
|
|
|
936
1138
|
/**
|
|
937
|
-
* The phase of
|
|
1139
|
+
* The phase of the assistant message.
|
|
938
1140
|
*
|
|
939
1141
|
* - `commentary` - Commentary produced while the agent works.
|
|
940
1142
|
* - `final_answer` - The agent's final answer.
|
|
@@ -1164,7 +1366,7 @@ export interface AgentSessionEnvironmentState {
|
|
|
1164
1366
|
id: string;
|
|
1165
1367
|
|
|
1166
1368
|
/**
|
|
1167
|
-
*
|
|
1369
|
+
* The error reported while preparing the environment, if any.
|
|
1168
1370
|
*/
|
|
1169
1371
|
error: AgentSessionEnvironmentState.Error | null;
|
|
1170
1372
|
|
|
@@ -1187,7 +1389,7 @@ export interface AgentSessionEnvironmentState {
|
|
|
1187
1389
|
|
|
1188
1390
|
export namespace AgentSessionEnvironmentState {
|
|
1189
1391
|
/**
|
|
1190
|
-
*
|
|
1392
|
+
* The error reported while preparing the environment, if any.
|
|
1191
1393
|
*/
|
|
1192
1394
|
export interface Error {
|
|
1193
1395
|
/**
|
|
@@ -1411,7 +1613,7 @@ export namespace AgentSessionInputParam {
|
|
|
1411
1613
|
error?: string | null;
|
|
1412
1614
|
|
|
1413
1615
|
/**
|
|
1414
|
-
*
|
|
1616
|
+
* The function result when the call succeeded.
|
|
1415
1617
|
*/
|
|
1416
1618
|
output?: AgentsAPI.AgentFunctionCallOutputParam | null;
|
|
1417
1619
|
}
|
|
@@ -1457,7 +1659,7 @@ export namespace AgentSessionItem {
|
|
|
1457
1659
|
error: string | null;
|
|
1458
1660
|
|
|
1459
1661
|
/**
|
|
1460
|
-
* The
|
|
1662
|
+
* The function result, if the call succeeded.
|
|
1461
1663
|
*/
|
|
1462
1664
|
output: AgentsAPI.AgentFunctionCallOutput | null;
|
|
1463
1665
|
|
|
@@ -1529,7 +1731,7 @@ export interface AgentSessionMessage {
|
|
|
1529
1731
|
content: Array<AgentSessionMessageContent>;
|
|
1530
1732
|
|
|
1531
1733
|
/**
|
|
1532
|
-
* The phase of an assistant message.
|
|
1734
|
+
* The phase of an assistant message. Null for user messages.
|
|
1533
1735
|
*
|
|
1534
1736
|
* - `commentary` - Commentary produced while the agent works.
|
|
1535
1737
|
* - `final_answer` - The agent's final answer.
|
|
@@ -1723,7 +1925,7 @@ export interface AgentSessionTurnCancelledEvent {
|
|
|
1723
1925
|
type: 'agent.session.turn.cancelled';
|
|
1724
1926
|
|
|
1725
1927
|
/**
|
|
1726
|
-
*
|
|
1928
|
+
* Token usage by the root agent during the turn, when available.
|
|
1727
1929
|
*/
|
|
1728
1930
|
usage: TokenUsage | null;
|
|
1729
1931
|
}
|
|
@@ -1758,7 +1960,7 @@ export interface AgentSessionTurnCompletedEvent {
|
|
|
1758
1960
|
type: 'agent.session.turn.completed';
|
|
1759
1961
|
|
|
1760
1962
|
/**
|
|
1761
|
-
*
|
|
1963
|
+
* Token usage by the root agent during the turn, when available.
|
|
1762
1964
|
*/
|
|
1763
1965
|
usage: TokenUsage | null;
|
|
1764
1966
|
}
|
|
@@ -1913,7 +2115,7 @@ export interface AgentSessionTurnFailedEvent {
|
|
|
1913
2115
|
type: 'agent.session.turn.failed';
|
|
1914
2116
|
|
|
1915
2117
|
/**
|
|
1916
|
-
*
|
|
2118
|
+
* Token usage by the root agent during the turn, when available.
|
|
1917
2119
|
*/
|
|
1918
2120
|
usage: TokenUsage | null;
|
|
1919
2121
|
}
|
|
@@ -2315,12 +2517,13 @@ export interface AgentText {
|
|
|
2315
2517
|
*/
|
|
2316
2518
|
export interface AgentTextParam {
|
|
2317
2519
|
/**
|
|
2318
|
-
* The output format
|
|
2520
|
+
* The output format. Omission uses ordinary text (`{"type": "text"}`).
|
|
2319
2521
|
*/
|
|
2320
2522
|
format?: TextFormatParam | null;
|
|
2321
2523
|
|
|
2322
2524
|
/**
|
|
2323
|
-
* The amount of text the model should produce.
|
|
2525
|
+
* The amount of text the model should produce. Defaults to `medium`, matching
|
|
2526
|
+
* Responses.
|
|
2324
2527
|
*
|
|
2325
2528
|
* - `low` - Produces less text.
|
|
2326
2529
|
* - `medium` - Uses the default amount of text.
|
|
@@ -2445,7 +2648,7 @@ export namespace AgentTool {
|
|
|
2445
2648
|
context_size: 'low' | 'medium' | 'high';
|
|
2446
2649
|
|
|
2447
2650
|
/**
|
|
2448
|
-
* Approximate
|
|
2651
|
+
* Approximate location used to localize search results, if provided.
|
|
2449
2652
|
*/
|
|
2450
2653
|
location: AgentToolResourceWebSearch.Location | null;
|
|
2451
2654
|
|
|
@@ -2462,7 +2665,7 @@ export namespace AgentTool {
|
|
|
2462
2665
|
|
|
2463
2666
|
export namespace AgentToolResourceWebSearch {
|
|
2464
2667
|
/**
|
|
2465
|
-
* Approximate
|
|
2668
|
+
* Approximate location used to localize search results, if provided.
|
|
2466
2669
|
*/
|
|
2467
2670
|
export interface Location {
|
|
2468
2671
|
/**
|
|
@@ -2580,7 +2783,9 @@ export namespace AgentToolParam {
|
|
|
2580
2783
|
allowed_tools?: Array<string> | null;
|
|
2581
2784
|
|
|
2582
2785
|
/**
|
|
2583
|
-
*
|
|
2786
|
+
* Selects where outbound MCP HTTP connections originate. Omitted or `service` uses
|
|
2787
|
+
* the Managed Agents service network; `environment` uses the session's selected
|
|
2788
|
+
* environment.
|
|
2584
2789
|
*
|
|
2585
2790
|
* - `service` - Uses the Managed Agents service network.
|
|
2586
2791
|
* - `environment` - Uses the session's execution environment.
|
|
@@ -2620,17 +2825,17 @@ export namespace AgentToolParam {
|
|
|
2620
2825
|
allowed_domains?: Array<string> | null;
|
|
2621
2826
|
|
|
2622
2827
|
/**
|
|
2623
|
-
* The amount of
|
|
2828
|
+
* The amount of search context made available to the model. Defaults to `medium`.
|
|
2624
2829
|
*/
|
|
2625
2830
|
context_size?: 'low' | 'medium' | 'high' | null;
|
|
2626
2831
|
|
|
2627
2832
|
/**
|
|
2628
|
-
* Approximate
|
|
2833
|
+
* Approximate location used to localize search results.
|
|
2629
2834
|
*/
|
|
2630
2835
|
location?: AgentToolConfigParamWebSearch.Location | null;
|
|
2631
2836
|
|
|
2632
2837
|
/**
|
|
2633
|
-
* The source used for web search results.
|
|
2838
|
+
* The source used for web search results. Defaults to `live`.
|
|
2634
2839
|
*
|
|
2635
2840
|
* - `disabled` - Disables web search.
|
|
2636
2841
|
* - `cached` - Uses cached search results.
|
|
@@ -2641,7 +2846,7 @@ export namespace AgentToolParam {
|
|
|
2641
2846
|
|
|
2642
2847
|
export namespace AgentToolConfigParamWebSearch {
|
|
2643
2848
|
/**
|
|
2644
|
-
* Approximate
|
|
2849
|
+
* Approximate location used to localize search results.
|
|
2645
2850
|
*/
|
|
2646
2851
|
export interface Location {
|
|
2647
2852
|
/**
|
|
@@ -2712,7 +2917,7 @@ export interface AgentWebSearchCallItem {
|
|
|
2712
2917
|
id: string;
|
|
2713
2918
|
|
|
2714
2919
|
/**
|
|
2715
|
-
*
|
|
2920
|
+
* The action performed by the web search tool.
|
|
2716
2921
|
*/
|
|
2717
2922
|
action: WebSearchAction | null;
|
|
2718
2923
|
|
|
@@ -2921,12 +3126,13 @@ export namespace EnvironmentParam {
|
|
|
2921
3126
|
files?: Array<AgentsAPI.HostedEnvironmentFileParam> | null;
|
|
2922
3127
|
|
|
2923
3128
|
/**
|
|
2924
|
-
* Network access for
|
|
3129
|
+
* Network access policy for the environment. Defaults to disabled for GA requests
|
|
3130
|
+
* and enabled for alpha/beta requests.
|
|
2925
3131
|
*/
|
|
2926
3132
|
network?: EnvironmentParamOpenAIHosted.Network | null;
|
|
2927
3133
|
|
|
2928
3134
|
/**
|
|
2929
|
-
* Packages to install in
|
|
3135
|
+
* Packages to install in the environment. Defaults to empty package lists.
|
|
2930
3136
|
*/
|
|
2931
3137
|
packages?: EnvironmentParamOpenAIHosted.Packages | null;
|
|
2932
3138
|
|
|
@@ -2949,14 +3155,14 @@ export namespace EnvironmentParam {
|
|
|
2949
3155
|
|
|
2950
3156
|
export namespace EnvironmentParamOpenAIHosted {
|
|
2951
3157
|
/**
|
|
2952
|
-
* Network access for
|
|
3158
|
+
* Network access policy for the environment. Defaults to disabled for GA requests
|
|
3159
|
+
* and enabled for alpha/beta requests.
|
|
2953
3160
|
*/
|
|
2954
3161
|
export interface Network {
|
|
2955
3162
|
/**
|
|
2956
3163
|
* The environment's network access mode.
|
|
2957
3164
|
*
|
|
2958
|
-
* - `enabled` - Allows unrestricted network access
|
|
2959
|
-
* policy.
|
|
3165
|
+
* - `enabled` - Allows unrestricted network access.
|
|
2960
3166
|
* - `disabled` - Disables network access.
|
|
2961
3167
|
* - `restricted` - Allows access only to configured domains.
|
|
2962
3168
|
*/
|
|
@@ -2969,7 +3175,7 @@ export namespace EnvironmentParam {
|
|
|
2969
3175
|
}
|
|
2970
3176
|
|
|
2971
3177
|
/**
|
|
2972
|
-
* Packages to install in
|
|
3178
|
+
* Packages to install in the environment. Defaults to empty package lists.
|
|
2973
3179
|
*/
|
|
2974
3180
|
export interface Packages {
|
|
2975
3181
|
/**
|
|
@@ -3672,7 +3878,7 @@ export namespace PersistedAgentTool {
|
|
|
3672
3878
|
context_size: 'low' | 'medium' | 'high';
|
|
3673
3879
|
|
|
3674
3880
|
/**
|
|
3675
|
-
* Approximate
|
|
3881
|
+
* Approximate location used to localize search results, if provided.
|
|
3676
3882
|
*/
|
|
3677
3883
|
location: PersistedAgentToolResourceWebSearch.Location | null;
|
|
3678
3884
|
|
|
@@ -3689,7 +3895,7 @@ export namespace PersistedAgentTool {
|
|
|
3689
3895
|
|
|
3690
3896
|
export namespace PersistedAgentToolResourceWebSearch {
|
|
3691
3897
|
/**
|
|
3692
|
-
* Approximate
|
|
3898
|
+
* Approximate location used to localize search results, if provided.
|
|
3693
3899
|
*/
|
|
3694
3900
|
export interface Location {
|
|
3695
3901
|
/**
|
|
@@ -3807,7 +4013,7 @@ export namespace PersistedAgentToolParam {
|
|
|
3807
4013
|
allowed_tools?: Array<string> | null;
|
|
3808
4014
|
|
|
3809
4015
|
/**
|
|
3810
|
-
*
|
|
4016
|
+
* Selects where outbound MCP HTTP connections originate.
|
|
3811
4017
|
*
|
|
3812
4018
|
* - `service` - Uses the Managed Agents service network.
|
|
3813
4019
|
* - `environment` - Uses the session's execution environment.
|
|
@@ -3847,17 +4053,17 @@ export namespace PersistedAgentToolParam {
|
|
|
3847
4053
|
allowed_domains?: Array<string> | null;
|
|
3848
4054
|
|
|
3849
4055
|
/**
|
|
3850
|
-
* The amount of
|
|
4056
|
+
* The amount of search context made available to the model. Defaults to `medium`.
|
|
3851
4057
|
*/
|
|
3852
4058
|
context_size?: 'low' | 'medium' | 'high' | null;
|
|
3853
4059
|
|
|
3854
4060
|
/**
|
|
3855
|
-
* Approximate
|
|
4061
|
+
* Approximate location used to localize search results.
|
|
3856
4062
|
*/
|
|
3857
4063
|
location?: PersistedAgentToolConfigParamWebSearch.Location | null;
|
|
3858
4064
|
|
|
3859
4065
|
/**
|
|
3860
|
-
* The source used for web search results.
|
|
4066
|
+
* The source used for web search results. Defaults to `live`.
|
|
3861
4067
|
*
|
|
3862
4068
|
* - `disabled` - Disables web search.
|
|
3863
4069
|
* - `cached` - Uses cached search results.
|
|
@@ -3868,7 +4074,7 @@ export namespace PersistedAgentToolParam {
|
|
|
3868
4074
|
|
|
3869
4075
|
export namespace PersistedAgentToolConfigParamWebSearch {
|
|
3870
4076
|
/**
|
|
3871
|
-
* Approximate
|
|
4077
|
+
* Approximate location used to localize search results.
|
|
3872
4078
|
*/
|
|
3873
4079
|
export interface Location {
|
|
3874
4080
|
/**
|
|
@@ -4389,7 +4595,8 @@ export interface AgentCreateParams {
|
|
|
4389
4595
|
metadata?: { [key: string]: string } | null;
|
|
4390
4596
|
|
|
4391
4597
|
/**
|
|
4392
|
-
*
|
|
4598
|
+
* Configuration for creating and coordinating subagents. Subagent tools are
|
|
4599
|
+
* disabled by default.
|
|
4393
4600
|
*/
|
|
4394
4601
|
multi_agent?: MultiAgentConfigParam | null;
|
|
4395
4602
|
|
|
@@ -4399,12 +4606,12 @@ export interface AgentCreateParams {
|
|
|
4399
4606
|
name?: string | null;
|
|
4400
4607
|
|
|
4401
4608
|
/**
|
|
4402
|
-
*
|
|
4609
|
+
* Configuration for model reasoning. Omission uses the model's default effort.
|
|
4403
4610
|
*/
|
|
4404
4611
|
reasoning?: AgentReasoningParam | null;
|
|
4405
4612
|
|
|
4406
4613
|
/**
|
|
4407
|
-
* The service tier used for model requests.
|
|
4614
|
+
* The service tier used for model requests. Defaults to `auto`.
|
|
4408
4615
|
*
|
|
4409
4616
|
* - `auto` - Selects the service tier automatically.
|
|
4410
4617
|
* - `default` - Uses the default service tier.
|
|
@@ -4415,7 +4622,8 @@ export interface AgentCreateParams {
|
|
|
4415
4622
|
service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | null;
|
|
4416
4623
|
|
|
4417
4624
|
/**
|
|
4418
|
-
* Configuration for text
|
|
4625
|
+
* Configuration for generated text. Defaults to the `text` format and medium
|
|
4626
|
+
* verbosity.
|
|
4419
4627
|
*/
|
|
4420
4628
|
text?: AgentTextParam | null;
|
|
4421
4629
|
|
|
@@ -4445,7 +4653,7 @@ export interface AgentUpdateParams {
|
|
|
4445
4653
|
model?: string;
|
|
4446
4654
|
|
|
4447
4655
|
/**
|
|
4448
|
-
*
|
|
4656
|
+
* Configuration for creating and coordinating subagents.
|
|
4449
4657
|
*/
|
|
4450
4658
|
multi_agent?: MultiAgentConfigParam | null;
|
|
4451
4659
|
|
|
@@ -4455,7 +4663,8 @@ export interface AgentUpdateParams {
|
|
|
4455
4663
|
name?: string | null;
|
|
4456
4664
|
|
|
4457
4665
|
/**
|
|
4458
|
-
*
|
|
4666
|
+
* Configuration for model reasoning. Omit to keep the current settings; pass
|
|
4667
|
+
* `null` to reset to the model's default effort.
|
|
4459
4668
|
*/
|
|
4460
4669
|
reasoning?: AgentReasoningParam | null;
|
|
4461
4670
|
|
|
@@ -4481,7 +4690,12 @@ export interface AgentUpdateParams {
|
|
|
4481
4690
|
tools?: Array<PersistedAgentToolParam> | null;
|
|
4482
4691
|
}
|
|
4483
4692
|
|
|
4484
|
-
export interface AgentListParams extends CursorPageParams {
|
|
4693
|
+
export interface AgentListParams extends Omit<CursorPageParams, 'limit'> {
|
|
4694
|
+
/**
|
|
4695
|
+
* The maximum number of resources to return.
|
|
4696
|
+
*/
|
|
4697
|
+
limit?: number | null;
|
|
4698
|
+
|
|
4485
4699
|
/**
|
|
4486
4700
|
* The order in which resources are returned. Defaults to `desc`.
|
|
4487
4701
|
*
|
|
@@ -139,7 +139,12 @@ export declare namespace FileCreateParams {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
export interface FileListParams extends TokenPageParams {
|
|
142
|
+
export interface FileListParams extends Omit<TokenPageParams, 'limit'> {
|
|
143
|
+
/**
|
|
144
|
+
* The maximum number of files to return, between 1 and 100.
|
|
145
|
+
*/
|
|
146
|
+
limit?: number | null;
|
|
147
|
+
|
|
143
148
|
/**
|
|
144
149
|
* Sort by case-sensitive path components. Defaults to descending.
|
|
145
150
|
*
|