openai 7.19.0 → 7.21.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 +33 -0
- package/README.md +4 -2
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +304 -5
- package/client.js.map +1 -1
- package/client.mjs +304 -5
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/admin/organization/admin-api-keys.d.mts +8 -1
- package/resources/admin/organization/admin-api-keys.d.mts.map +1 -1
- package/resources/admin/organization/admin-api-keys.d.ts +8 -1
- package/resources/admin/organization/admin-api-keys.d.ts.map +1 -1
- package/resources/admin/organization/admin-api-keys.js +69 -19
- package/resources/admin/organization/admin-api-keys.js.map +1 -1
- package/resources/admin/organization/admin-api-keys.mjs +69 -19
- 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 +74 -13
- package/resources/admin/organization/audit-logs.js.map +1 -1
- package/resources/admin/organization/audit-logs.mjs +74 -13
- 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 +88 -36
- package/resources/admin/organization/certificates.js.map +1 -1
- package/resources/admin/organization/certificates.mjs +88 -36
- package/resources/admin/organization/certificates.mjs.map +1 -1
- package/resources/admin/organization/data-retention.d.mts.map +1 -1
- package/resources/admin/organization/data-retention.d.ts.map +1 -1
- package/resources/admin/organization/data-retention.js +7 -4
- package/resources/admin/organization/data-retention.js.map +1 -1
- package/resources/admin/organization/data-retention.mjs +7 -4
- package/resources/admin/organization/data-retention.mjs.map +1 -1
- package/resources/admin/organization/external-storage.d.mts +144 -0
- package/resources/admin/organization/external-storage.d.mts.map +1 -0
- package/resources/admin/organization/external-storage.d.ts +144 -0
- package/resources/admin/organization/external-storage.d.ts.map +1 -0
- package/resources/admin/organization/external-storage.js +156 -0
- package/resources/admin/organization/external-storage.js.map +1 -0
- package/resources/admin/organization/external-storage.mjs +152 -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 +71 -21
- package/resources/admin/organization/groups/groups.js.map +1 -1
- package/resources/admin/organization/groups/groups.mjs +71 -21
- 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 +72 -20
- package/resources/admin/organization/groups/roles.js.map +1 -1
- package/resources/admin/organization/groups/roles.mjs +72 -20
- 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 +72 -20
- package/resources/admin/organization/groups/users.js.map +1 -1
- package/resources/admin/organization/groups/users.mjs +72 -20
- 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 +69 -19
- package/resources/admin/organization/invites.js.map +1 -1
- package/resources/admin/organization/invites.mjs +69 -19
- 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 +70 -18
- package/resources/admin/organization/projects/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/api-keys.mjs +70 -18
- 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 +78 -16
- package/resources/admin/organization/projects/certificates.js.map +1 -1
- package/resources/admin/organization/projects/certificates.mjs +78 -16
- package/resources/admin/organization/projects/certificates.mjs.map +1 -1
- package/resources/admin/organization/projects/data-retention.d.mts.map +1 -1
- package/resources/admin/organization/projects/data-retention.d.ts.map +1 -1
- package/resources/admin/organization/projects/data-retention.js +7 -4
- package/resources/admin/organization/projects/data-retention.js.map +1 -1
- package/resources/admin/organization/projects/data-retention.mjs +7 -4
- package/resources/admin/organization/projects/data-retention.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 +72 -20
- package/resources/admin/organization/projects/groups/groups.js.map +1 -1
- package/resources/admin/organization/projects/groups/groups.mjs +72 -20
- package/resources/admin/organization/projects/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/roles.d.mts.map +1 -1
- package/resources/admin/organization/projects/groups/roles.d.ts.map +1 -1
- package/resources/admin/organization/projects/groups/roles.js +14 -7
- package/resources/admin/organization/projects/groups/roles.js.map +1 -1
- package/resources/admin/organization/projects/groups/roles.mjs +14 -7
- package/resources/admin/organization/projects/groups/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.d.mts.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.d.ts.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.js +7 -4
- package/resources/admin/organization/projects/hosted-tool-permissions.js.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.mjs +7 -4
- package/resources/admin/organization/projects/hosted-tool-permissions.mjs.map +1 -1
- package/resources/admin/organization/projects/model-permissions.d.mts.map +1 -1
- package/resources/admin/organization/projects/model-permissions.d.ts.map +1 -1
- package/resources/admin/organization/projects/model-permissions.js +9 -6
- package/resources/admin/organization/projects/model-permissions.js.map +1 -1
- package/resources/admin/organization/projects/model-permissions.mjs +9 -6
- package/resources/admin/organization/projects/model-permissions.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 +71 -21
- package/resources/admin/organization/projects/projects.js.map +1 -1
- package/resources/admin/organization/projects/projects.mjs +71 -21
- 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 +68 -16
- package/resources/admin/organization/projects/rate-limits.js.map +1 -1
- package/resources/admin/organization/projects/rate-limits.mjs +68 -16
- 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 +71 -23
- package/resources/admin/organization/projects/roles.js.map +1 -1
- package/resources/admin/organization/projects/roles.mjs +71 -23
- package/resources/admin/organization/projects/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.js +8 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.mjs +8 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.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 +79 -20
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +79 -20
- 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 +74 -22
- package/resources/admin/organization/projects/spend-alerts.js.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.mjs +74 -22
- package/resources/admin/organization/projects/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-limit.d.mts.map +1 -1
- package/resources/admin/organization/projects/spend-limit.d.ts.map +1 -1
- package/resources/admin/organization/projects/spend-limit.js +9 -6
- package/resources/admin/organization/projects/spend-limit.js.map +1 -1
- package/resources/admin/organization/projects/spend-limit.mjs +9 -6
- package/resources/admin/organization/projects/spend-limit.mjs.map +1 -1
- package/resources/admin/organization/projects/users/roles.d.mts.map +1 -1
- package/resources/admin/organization/projects/users/roles.d.ts.map +1 -1
- package/resources/admin/organization/projects/users/roles.js +14 -7
- package/resources/admin/organization/projects/users/roles.js.map +1 -1
- package/resources/admin/organization/projects/users/roles.mjs +14 -7
- package/resources/admin/organization/projects/users/roles.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 +74 -22
- package/resources/admin/organization/projects/users/users.js.map +1 -1
- package/resources/admin/organization/projects/users/users.mjs +74 -22
- 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 +71 -21
- package/resources/admin/organization/roles.js.map +1 -1
- package/resources/admin/organization/roles.mjs +71 -21
- 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 +74 -20
- package/resources/admin/organization/spend-alerts.js.map +1 -1
- package/resources/admin/organization/spend-alerts.mjs +74 -20
- package/resources/admin/organization/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/spend-limit.d.mts.map +1 -1
- package/resources/admin/organization/spend-limit.d.ts.map +1 -1
- package/resources/admin/organization/spend-limit.js +9 -6
- package/resources/admin/organization/spend-limit.js.map +1 -1
- package/resources/admin/organization/spend-limit.mjs +9 -6
- package/resources/admin/organization/spend-limit.mjs.map +1 -1
- package/resources/admin/organization/usage.d.mts.map +1 -1
- package/resources/admin/organization/usage.d.ts.map +1 -1
- package/resources/admin/organization/usage.js +25 -22
- package/resources/admin/organization/usage.js.map +1 -1
- package/resources/admin/organization/usage.mjs +25 -22
- package/resources/admin/organization/usage.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 +72 -20
- package/resources/admin/organization/users/roles.js.map +1 -1
- package/resources/admin/organization/users/roles.mjs +72 -20
- 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 +69 -19
- package/resources/admin/organization/users/users.js.map +1 -1
- package/resources/admin/organization/users/users.mjs +69 -19
- package/resources/admin/organization/users/users.mjs.map +1 -1
- package/resources/audio/speech.d.mts.map +1 -1
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/speech.js +5 -2
- package/resources/audio/speech.js.map +1 -1
- package/resources/audio/speech.mjs +5 -2
- package/resources/audio/speech.mjs.map +1 -1
- package/resources/audio/transcriptions.d.mts.map +1 -1
- package/resources/audio/transcriptions.d.ts.map +1 -1
- package/resources/audio/transcriptions.js +5 -2
- package/resources/audio/transcriptions.js.map +1 -1
- package/resources/audio/transcriptions.mjs +5 -2
- package/resources/audio/transcriptions.mjs.map +1 -1
- package/resources/audio/translations.d.mts.map +1 -1
- package/resources/audio/translations.d.ts.map +1 -1
- package/resources/audio/translations.js +4 -1
- package/resources/audio/translations.js.map +1 -1
- package/resources/audio/translations.mjs +4 -1
- package/resources/audio/translations.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 +70 -11
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +70 -11
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/agents/agents.d.mts +93 -45
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +93 -45
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js +71 -22
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs +71 -22
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/environments/environments.d.mts.map +1 -1
- package/resources/beta/agents/environments/environments.d.ts.map +1 -1
- package/resources/beta/agents/environments/environments.js +5 -2
- package/resources/beta/agents/environments/environments.js.map +1 -1
- package/resources/beta/agents/environments/environments.mjs +5 -2
- package/resources/beta/agents/environments/environments.mjs.map +1 -1
- package/resources/beta/agents/environments/files.d.mts.map +1 -1
- package/resources/beta/agents/environments/files.d.ts.map +1 -1
- package/resources/beta/agents/environments/files.js +7 -4
- package/resources/beta/agents/environments/files.js.map +1 -1
- package/resources/beta/agents/environments/files.mjs +7 -4
- package/resources/beta/agents/environments/files.mjs.map +1 -1
- package/resources/beta/agents/environments/templates.d.mts +22 -9
- package/resources/beta/agents/environments/templates.d.mts.map +1 -1
- package/resources/beta/agents/environments/templates.d.ts +22 -9
- package/resources/beta/agents/environments/templates.d.ts.map +1 -1
- package/resources/beta/agents/environments/templates.js +71 -22
- package/resources/beta/agents/environments/templates.js.map +1 -1
- package/resources/beta/agents/environments/templates.mjs +71 -22
- package/resources/beta/agents/environments/templates.mjs.map +1 -1
- package/resources/beta/agents/index.d.mts +1 -1
- package/resources/beta/agents/index.d.mts.map +1 -1
- package/resources/beta/agents/index.d.ts +1 -1
- package/resources/beta/agents/index.d.ts.map +1 -1
- package/resources/beta/agents/index.js.map +1 -1
- package/resources/beta/agents/index.mjs.map +1 -1
- package/resources/beta/agents/sessions/artifacts.d.mts +8 -1
- package/resources/beta/agents/sessions/artifacts.d.mts.map +1 -1
- package/resources/beta/agents/sessions/artifacts.d.ts +8 -1
- package/resources/beta/agents/sessions/artifacts.d.ts.map +1 -1
- package/resources/beta/agents/sessions/artifacts.js +69 -22
- package/resources/beta/agents/sessions/artifacts.js.map +1 -1
- package/resources/beta/agents/sessions/artifacts.mjs +69 -22
- package/resources/beta/agents/sessions/artifacts.mjs.map +1 -1
- package/resources/beta/agents/sessions/events.d.mts.map +1 -1
- package/resources/beta/agents/sessions/events.d.ts.map +1 -1
- package/resources/beta/agents/sessions/events.js +11 -5
- package/resources/beta/agents/sessions/events.js.map +1 -1
- package/resources/beta/agents/sessions/events.mjs +11 -5
- 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 +63 -17
- package/resources/beta/agents/sessions/items.js.map +1 -1
- package/resources/beta/agents/sessions/items.mjs +63 -17
- package/resources/beta/agents/sessions/items.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts +17 -6
- package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.ts +17 -6
- package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/agents/sessions/sessions.js +71 -23
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs +71 -23
- package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/items.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/items.d.ts.map +1 -1
- package/resources/beta/agents/sessions/subagents/items.js +5 -2
- package/resources/beta/agents/sessions/subagents/items.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/items.mjs +5 -2
- package/resources/beta/agents/sessions/subagents/items.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 +65 -18
- package/resources/beta/agents/sessions/subagents/subagents.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.mjs +65 -18
- package/resources/beta/agents/sessions/subagents/subagents.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/items.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/items.d.ts.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/items.js +5 -2
- package/resources/beta/agents/sessions/subagents/turns/items.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/items.mjs +5 -2
- package/resources/beta/agents/sessions/subagents/turns/items.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.js +7 -4
- package/resources/beta/agents/sessions/subagents/turns/turns.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.mjs +7 -4
- package/resources/beta/agents/sessions/subagents/turns/turns.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 +65 -19
- package/resources/beta/agents/sessions/turns.js.map +1 -1
- package/resources/beta/agents/sessions/turns.mjs +65 -19
- package/resources/beta/agents/sessions/turns.mjs.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.mts +163 -23
- package/resources/beta/agents/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.ts +163 -23
- package/resources/beta/agents/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/agents/vaults/credentials.js +71 -25
- package/resources/beta/agents/vaults/credentials.js.map +1 -1
- package/resources/beta/agents/vaults/credentials.mjs +71 -25
- 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 +11 -5
- package/resources/beta/agents/vaults/vaults.d.mts.map +1 -1
- package/resources/beta/agents/vaults/vaults.d.ts +11 -5
- package/resources/beta/agents/vaults/vaults.d.ts.map +1 -1
- package/resources/beta/agents/vaults/vaults.js +69 -20
- package/resources/beta/agents/vaults/vaults.js.map +1 -1
- package/resources/beta/agents/vaults/vaults.mjs +69 -20
- 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 +71 -15
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +71 -15
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/chatkit/sessions.d.mts.map +1 -1
- package/resources/beta/chatkit/sessions.d.ts.map +1 -1
- package/resources/beta/chatkit/sessions.js +7 -4
- package/resources/beta/chatkit/sessions.js.map +1 -1
- package/resources/beta/chatkit/sessions.mjs +7 -4
- package/resources/beta/chatkit/sessions.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 +75 -32
- package/resources/beta/chatkit/threads.js.map +1 -1
- package/resources/beta/chatkit/threads.mjs +75 -32
- package/resources/beta/chatkit/threads.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/responses/input-items.d.mts +11 -1
- package/resources/beta/responses/input-items.d.mts.map +1 -1
- package/resources/beta/responses/input-items.d.ts +11 -1
- package/resources/beta/responses/input-items.d.ts.map +1 -1
- package/resources/beta/responses/input-items.js +66 -15
- package/resources/beta/responses/input-items.js.map +1 -1
- package/resources/beta/responses/input-items.mjs +66 -15
- package/resources/beta/responses/input-items.mjs.map +1 -1
- package/resources/beta/responses/input-tokens.d.mts +3 -0
- package/resources/beta/responses/input-tokens.d.mts.map +1 -1
- package/resources/beta/responses/input-tokens.d.ts +3 -0
- package/resources/beta/responses/input-tokens.d.ts.map +1 -1
- package/resources/beta/responses/input-tokens.js +8 -2
- package/resources/beta/responses/input-tokens.js.map +1 -1
- package/resources/beta/responses/input-tokens.mjs +8 -2
- package/resources/beta/responses/input-tokens.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +21 -8
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +21 -8
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js +78 -11
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs +78 -11
- 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 +71 -15
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +71 -15
- 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 +73 -17
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +73 -17
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.d.mts.map +1 -1
- package/resources/beta/threads/runs/steps.d.ts.map +1 -1
- package/resources/beta/threads/runs/steps.js +7 -4
- package/resources/beta/threads/runs/steps.js.map +1 -1
- package/resources/beta/threads/runs/steps.mjs +7 -4
- package/resources/beta/threads/runs/steps.mjs.map +1 -1
- package/resources/beta/threads/threads.d.mts.map +1 -1
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js +13 -10
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs +13 -10
- package/resources/beta/threads/threads.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 +69 -26
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +69 -26
- 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 +66 -15
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs +66 -15
- package/resources/chat/completions/messages.mjs.map +1 -1
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +5 -2
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +5 -2
- package/resources/completions.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 +71 -12
- package/resources/containers/containers.js.map +1 -1
- package/resources/containers/containers.mjs +71 -12
- package/resources/containers/containers.mjs.map +1 -1
- package/resources/containers/files/content.d.mts.map +1 -1
- package/resources/containers/files/content.d.ts.map +1 -1
- package/resources/containers/files/content.js +5 -2
- package/resources/containers/files/content.js.map +1 -1
- package/resources/containers/files/content.mjs +5 -2
- package/resources/containers/files/content.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 +67 -12
- package/resources/containers/files/files.js.map +1 -1
- package/resources/containers/files/files.mjs +67 -12
- package/resources/containers/files/files.mjs.map +1 -1
- package/resources/content-provenance-checks.d.mts.map +1 -1
- package/resources/content-provenance-checks.d.ts.map +1 -1
- package/resources/content-provenance-checks.js +4 -1
- package/resources/content-provenance-checks.js.map +1 -1
- package/resources/content-provenance-checks.mjs +4 -1
- package/resources/content-provenance-checks.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 +12 -11
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs +12 -11
- 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 +71 -12
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs +71 -12
- 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 +75 -9
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs +75 -9
- package/resources/evals/evals.mjs.map +1 -1
- package/resources/evals/runs/output-items.d.mts.map +1 -1
- package/resources/evals/runs/output-items.d.ts.map +1 -1
- package/resources/evals/runs/output-items.js +9 -5
- package/resources/evals/runs/output-items.js.map +1 -1
- package/resources/evals/runs/output-items.mjs +9 -5
- package/resources/evals/runs/output-items.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 +68 -19
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +68 -19
- 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 +68 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +68 -10
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
- package/resources/fine-tuning/alpha/graders.js +7 -4
- package/resources/fine-tuning/alpha/graders.js.map +1 -1
- package/resources/fine-tuning/alpha/graders.mjs +7 -4
- package/resources/fine-tuning/alpha/graders.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 +84 -31
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +84 -31
- 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 +66 -14
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +66 -14
- 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 +83 -44
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +83 -44
- 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/images.js +8 -5
- package/resources/images.js.map +1 -1
- package/resources/images.mjs +8 -5
- package/resources/images.mjs.map +1 -1
- package/resources/live/live.d.mts.map +1 -1
- package/resources/live/live.d.ts.map +1 -1
- package/resources/live/live.js +8 -1
- package/resources/live/live.js.map +1 -1
- package/resources/live/live.mjs +8 -1
- package/resources/live/live.mjs.map +1 -1
- package/resources/live/sessions.d.mts.map +1 -1
- package/resources/live/sessions.d.ts.map +1 -1
- package/resources/live/sessions.js +15 -12
- package/resources/live/sessions.js.map +1 -1
- package/resources/live/sessions.mjs +15 -12
- package/resources/live/sessions.mjs.map +1 -1
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +6 -3
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +6 -3
- package/resources/models.mjs.map +1 -1
- package/resources/moderations.d.mts.map +1 -1
- package/resources/moderations.d.ts.map +1 -1
- package/resources/moderations.js +8 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +8 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/realtime/calls.d.mts.map +1 -1
- package/resources/realtime/calls.d.ts.map +1 -1
- package/resources/realtime/calls.js +13 -10
- package/resources/realtime/calls.js.map +1 -1
- package/resources/realtime/calls.mjs +13 -10
- package/resources/realtime/calls.mjs.map +1 -1
- package/resources/realtime/client-secrets.d.mts.map +1 -1
- package/resources/realtime/client-secrets.d.ts.map +1 -1
- package/resources/realtime/client-secrets.js +5 -2
- package/resources/realtime/client-secrets.js.map +1 -1
- package/resources/realtime/client-secrets.mjs +5 -2
- package/resources/realtime/client-secrets.mjs.map +1 -1
- package/resources/responses/input-items.d.mts +11 -1
- package/resources/responses/input-items.d.mts.map +1 -1
- package/resources/responses/input-items.d.ts +11 -1
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/input-items.js +69 -14
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +69 -14
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/input-tokens.d.mts +3 -0
- package/resources/responses/input-tokens.d.mts.map +1 -1
- package/resources/responses/input-tokens.d.ts +3 -0
- package/resources/responses/input-tokens.d.ts.map +1 -1
- package/resources/responses/input-tokens.js +8 -2
- package/resources/responses/input-tokens.js.map +1 -1
- package/resources/responses/input-tokens.mjs +8 -2
- package/resources/responses/input-tokens.mjs.map +1 -1
- package/resources/responses/responses.d.mts +21 -8
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +21 -8
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +76 -11
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +76 -11
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/safety/alerts.d.mts.map +1 -1
- package/resources/safety/alerts.d.ts.map +1 -1
- package/resources/safety/alerts.js +4 -1
- package/resources/safety/alerts.js.map +1 -1
- package/resources/safety/alerts.mjs +4 -1
- package/resources/safety/alerts.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 +19 -0
- package/resources/safety/cases.js.map +1 -0
- package/resources/safety/cases.mjs +15 -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/skills/content.d.mts.map +1 -1
- package/resources/skills/content.d.ts.map +1 -1
- package/resources/skills/content.js +5 -2
- package/resources/skills/content.js.map +1 -1
- package/resources/skills/content.mjs +5 -2
- package/resources/skills/content.mjs.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 +67 -9
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +67 -9
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions/content.d.mts.map +1 -1
- package/resources/skills/versions/content.d.ts.map +1 -1
- package/resources/skills/versions/content.js +5 -2
- package/resources/skills/versions/content.js.map +1 -1
- package/resources/skills/versions/content.mjs +5 -2
- package/resources/skills/versions/content.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 +65 -13
- package/resources/skills/versions/versions.js.map +1 -1
- package/resources/skills/versions/versions.mjs +65 -13
- package/resources/skills/versions/versions.mjs.map +1 -1
- package/resources/uploads/parts.d.mts.map +1 -1
- package/resources/uploads/parts.d.ts.map +1 -1
- package/resources/uploads/parts.js +4 -1
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +4 -1
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.d.mts.map +1 -1
- package/resources/uploads/uploads.d.ts.map +1 -1
- package/resources/uploads/uploads.js +11 -7
- package/resources/uploads/uploads.js.map +1 -1
- package/resources/uploads/uploads.mjs +11 -7
- package/resources/uploads/uploads.mjs.map +1 -1
- package/resources/vector-stores/file-batches.d.mts.map +1 -1
- package/resources/vector-stores/file-batches.d.ts.map +1 -1
- package/resources/vector-stores/file-batches.js +11 -8
- package/resources/vector-stores/file-batches.js.map +1 -1
- package/resources/vector-stores/file-batches.mjs +11 -8
- package/resources/vector-stores/file-batches.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 +73 -15
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +73 -15
- 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 +73 -15
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +73 -15
- 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 +79 -27
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +79 -27
- package/resources/videos.mjs.map +1 -1
- package/resources/webhooks/event-types.d.mts.map +1 -1
- package/resources/webhooks/event-types.d.ts.map +1 -1
- package/resources/webhooks/event-types.js +4 -1
- package/resources/webhooks/event-types.js.map +1 -1
- package/resources/webhooks/event-types.mjs +4 -1
- package/resources/webhooks/event-types.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +91 -3
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +91 -3
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +76 -28
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +76 -28
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/src/client.ts +345 -4
- package/src/resources/admin/organization/admin-api-keys.ts +237 -18
- package/src/resources/admin/organization/audit-logs.ts +285 -5
- package/src/resources/admin/organization/certificates.ts +353 -28
- package/src/resources/admin/organization/data-retention.ts +22 -9
- package/src/resources/admin/organization/external-storage.ts +446 -0
- package/src/resources/admin/organization/groups/groups.ts +245 -23
- package/src/resources/admin/organization/groups/roles.ts +236 -15
- package/src/resources/admin/organization/groups/users.ts +236 -15
- package/src/resources/admin/organization/index.ts +10 -0
- package/src/resources/admin/organization/invites.ts +237 -18
- package/src/resources/admin/organization/organization.ts +24 -0
- package/src/resources/admin/organization/projects/api-keys.ts +228 -10
- package/src/resources/admin/organization/projects/certificates.ts +226 -4
- package/src/resources/admin/organization/projects/data-retention.ts +22 -9
- package/src/resources/admin/organization/projects/groups/groups.ts +237 -16
- package/src/resources/admin/organization/projects/groups/roles.ts +34 -14
- package/src/resources/admin/organization/projects/hosted-tool-permissions.ts +22 -9
- package/src/resources/admin/organization/projects/model-permissions.ts +29 -13
- package/src/resources/admin/organization/projects/projects.ts +245 -23
- package/src/resources/admin/organization/projects/rate-limits.ts +222 -7
- package/src/resources/admin/organization/projects/roles.ts +247 -23
- package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +12 -1
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +238 -13
- package/src/resources/admin/organization/projects/spend-alerts.ts +244 -20
- package/src/resources/admin/organization/projects/spend-limit.ts +29 -13
- package/src/resources/admin/organization/projects/users/roles.ts +34 -14
- package/src/resources/admin/organization/projects/users/users.ts +244 -20
- package/src/resources/admin/organization/roles.ts +245 -23
- package/src/resources/admin/organization/spend-alerts.ts +242 -20
- package/src/resources/admin/organization/spend-limit.ts +29 -13
- package/src/resources/admin/organization/usage.ts +95 -55
- package/src/resources/admin/organization/users/roles.ts +236 -15
- package/src/resources/admin/organization/users/users.ts +237 -18
- package/src/resources/audio/speech.ts +17 -7
- package/src/resources/audio/transcriptions.ts +18 -9
- package/src/resources/audio/translations.ts +12 -3
- package/src/resources/batches.ts +231 -11
- package/src/resources/beta/agents/agents.ts +341 -70
- package/src/resources/beta/agents/environments/environments.ts +15 -5
- package/src/resources/beta/agents/environments/files.ts +18 -8
- package/src/resources/beta/agents/environments/templates.ts +264 -36
- package/src/resources/beta/agents/index.ts +1 -0
- package/src/resources/beta/agents/sessions/artifacts.ts +239 -22
- package/src/resources/beta/agents/sessions/events.ts +35 -19
- package/src/resources/beta/agents/sessions/items.ts +211 -3
- package/src/resources/beta/agents/sessions/sessions.ts +260 -34
- package/src/resources/beta/agents/sessions/subagents/items.ts +9 -2
- package/src/resources/beta/agents/sessions/subagents/subagents.ts +219 -8
- package/src/resources/beta/agents/sessions/subagents/turns/items.ts +9 -2
- package/src/resources/beta/agents/sessions/subagents/turns/turns.ts +17 -7
- package/src/resources/beta/agents/sessions/turns.ts +229 -13
- package/src/resources/beta/agents/vaults/credentials.ts +432 -49
- package/src/resources/beta/agents/vaults/index.ts +2 -0
- package/src/resources/beta/agents/vaults/vaults.ts +246 -24
- package/src/resources/beta/assistants.ts +250 -28
- package/src/resources/beta/beta.ts +2 -0
- package/src/resources/beta/chatkit/sessions.ts +24 -11
- package/src/resources/beta/chatkit/threads.ts +345 -19
- package/src/resources/beta/index.ts +1 -0
- package/src/resources/beta/responses/input-items.ts +214 -3
- package/src/resources/beta/responses/input-tokens.ts +22 -9
- package/src/resources/beta/responses/responses.ts +328 -54
- package/src/resources/beta/threads/messages.ts +252 -28
- package/src/resources/beta/threads/runs/runs.ts +266 -39
- package/src/resources/beta/threads/runs/steps.ts +26 -12
- package/src/resources/beta/threads/threads.ts +52 -30
- package/src/resources/chat/completions/completions.ts +245 -26
- package/src/resources/chat/completions/messages.ts +214 -2
- package/src/resources/completions.ts +16 -6
- package/src/resources/containers/containers.ts +235 -15
- package/src/resources/containers/files/content.ts +16 -6
- package/src/resources/containers/files/files.ts +235 -15
- package/src/resources/content-provenance-checks.ts +10 -1
- package/src/resources/conversations/conversations.ts +34 -18
- package/src/resources/conversations/items.ts +235 -17
- package/src/resources/evals/evals.ts +239 -9
- package/src/resources/evals/runs/output-items.ts +16 -5
- package/src/resources/evals/runs/runs.ts +237 -22
- package/src/resources/files.ts +235 -14
- package/src/resources/fine-tuning/alpha/graders.ts +23 -10
- package/src/resources/fine-tuning/checkpoints/permissions.ts +326 -9
- package/src/resources/fine-tuning/jobs/checkpoints.ts +214 -2
- package/src/resources/fine-tuning/jobs/jobs.ts +339 -24
- package/src/resources/images.ts +33 -20
- package/src/resources/live/live.ts +15 -1
- package/src/resources/live/sessions.ts +59 -34
- package/src/resources/models.ts +20 -3
- package/src/resources/moderations.ts +15 -1
- package/src/resources/realtime/calls.ts +58 -37
- package/src/resources/realtime/client-secrets.ts +15 -5
- package/src/resources/responses/input-items.ts +217 -2
- package/src/resources/responses/input-tokens.ts +18 -5
- package/src/resources/responses/responses.ts +303 -31
- package/src/resources/safety/alerts.ts +11 -1
- package/src/resources/safety/cases.ts +49 -0
- package/src/resources/safety/index.ts +1 -0
- package/src/resources/safety/safety.ts +6 -0
- package/src/resources/skills/content.ts +16 -6
- package/src/resources/skills/skills.ts +231 -12
- package/src/resources/skills/versions/content.ts +16 -6
- package/src/resources/skills/versions/versions.ts +225 -13
- package/src/resources/uploads/parts.ts +10 -1
- package/src/resources/uploads/uploads.ts +27 -10
- package/src/resources/vector-stores/file-batches.ts +34 -18
- package/src/resources/vector-stores/files.ts +254 -30
- package/src/resources/vector-stores/vector-stores.ts +252 -30
- package/src/resources/videos.ts +349 -23
- package/src/resources/webhooks/api.md +2 -0
- package/src/resources/webhooks/event-types.ts +11 -1
- package/src/resources/webhooks/webhooks.ts +356 -30
- 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,120 @@ import { buildHeaders } from '../../../internal/headers';
|
|
|
31
31
|
import { RequestOptions } from '../../../internal/request-options';
|
|
32
32
|
import { path } from '../../../internal/utils/path';
|
|
33
33
|
|
|
34
|
+
function resolveResourceRequestOptions(
|
|
35
|
+
options: RequestOptions | undefined,
|
|
36
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
37
|
+
): Promise<RequestOptions> {
|
|
38
|
+
return Promise.resolve(options).then(buildOptions);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
42
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
43
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
44
|
+
'method',
|
|
45
|
+
'path',
|
|
46
|
+
'query',
|
|
47
|
+
'body',
|
|
48
|
+
'headers',
|
|
49
|
+
'maxRetries',
|
|
50
|
+
'stream',
|
|
51
|
+
'timeout',
|
|
52
|
+
'httpAgent',
|
|
53
|
+
'fetchOptions',
|
|
54
|
+
'signal',
|
|
55
|
+
'idempotencyKey',
|
|
56
|
+
'defaultBaseURL',
|
|
57
|
+
'__metadata',
|
|
58
|
+
'__binaryRequest',
|
|
59
|
+
'__binaryResponse',
|
|
60
|
+
'__streamClass',
|
|
61
|
+
'__security',
|
|
62
|
+
'__synthesizeEventData',
|
|
63
|
+
]);
|
|
64
|
+
|
|
65
|
+
function normalizeRequestOptionsForQuery(
|
|
66
|
+
value: unknown,
|
|
67
|
+
queryKeys: ReadonlyArray<string>,
|
|
68
|
+
options: RequestOptions | undefined,
|
|
69
|
+
):
|
|
70
|
+
| ({
|
|
71
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
72
|
+
} & {
|
|
73
|
+
[
|
|
74
|
+
K in
|
|
75
|
+
| 'method'
|
|
76
|
+
| 'path'
|
|
77
|
+
| 'body'
|
|
78
|
+
| 'stream'
|
|
79
|
+
| 'httpAgent'
|
|
80
|
+
| 'fetchOptions'
|
|
81
|
+
| 'defaultBaseURL'
|
|
82
|
+
| '__metadata'
|
|
83
|
+
| '__binaryRequest'
|
|
84
|
+
| '__binaryResponse'
|
|
85
|
+
| '__streamClass'
|
|
86
|
+
| '__security'
|
|
87
|
+
| '__synthesizeEventData'
|
|
88
|
+
]?: never;
|
|
89
|
+
})
|
|
90
|
+
| undefined {
|
|
91
|
+
if (typeof value !== 'object' || value === null) return undefined;
|
|
92
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
93
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
94
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(
|
|
95
|
+
([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined),
|
|
96
|
+
);
|
|
97
|
+
const keys = entries.map(([key]) => key);
|
|
98
|
+
const requestOnly = keys.some(
|
|
99
|
+
(key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key),
|
|
100
|
+
);
|
|
101
|
+
if (!requestOnly) return undefined;
|
|
102
|
+
// Declared query fields, including stream, must use the query argument.
|
|
103
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
104
|
+
if (
|
|
105
|
+
options !== undefined ||
|
|
106
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))
|
|
107
|
+
) {
|
|
108
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
109
|
+
}
|
|
110
|
+
// The query position must not gain authority to change the request destination
|
|
111
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
112
|
+
if (
|
|
113
|
+
keys.some(
|
|
114
|
+
(key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key),
|
|
115
|
+
)
|
|
116
|
+
) {
|
|
117
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
118
|
+
}
|
|
119
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
120
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
121
|
+
return Object.fromEntries(
|
|
122
|
+
entries.map(([key, descriptor]) => {
|
|
123
|
+
if ('value' in descriptor) return [key, descriptor.value];
|
|
124
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
125
|
+
}),
|
|
126
|
+
) as {
|
|
127
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
128
|
+
} & {
|
|
129
|
+
[
|
|
130
|
+
K in
|
|
131
|
+
| 'method'
|
|
132
|
+
| 'path'
|
|
133
|
+
| 'body'
|
|
134
|
+
| 'stream'
|
|
135
|
+
| 'httpAgent'
|
|
136
|
+
| 'fetchOptions'
|
|
137
|
+
| 'defaultBaseURL'
|
|
138
|
+
| '__metadata'
|
|
139
|
+
| '__binaryRequest'
|
|
140
|
+
| '__binaryResponse'
|
|
141
|
+
| '__streamClass'
|
|
142
|
+
| '__security'
|
|
143
|
+
| '__synthesizeEventData'
|
|
144
|
+
]?: never;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
34
148
|
export class Agents extends APIResource {
|
|
35
149
|
environments: EnvironmentsAPI.Environments = new EnvironmentsAPI.Environments(this._client);
|
|
36
150
|
vaults: VaultsAPI.Vaults = new VaultsAPI.Vaults(this._client);
|
|
@@ -48,12 +162,15 @@ export class Agents extends APIResource {
|
|
|
48
162
|
* ```
|
|
49
163
|
*/
|
|
50
164
|
create(body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent> {
|
|
51
|
-
return this._client.post(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
165
|
+
return this._client.post(
|
|
166
|
+
'/agents',
|
|
167
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
168
|
+
body,
|
|
169
|
+
...options,
|
|
170
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
171
|
+
__security: { bearerAuth: true },
|
|
172
|
+
})),
|
|
173
|
+
);
|
|
57
174
|
}
|
|
58
175
|
|
|
59
176
|
/**
|
|
@@ -66,11 +183,14 @@ export class Agents extends APIResource {
|
|
|
66
183
|
* ```
|
|
67
184
|
*/
|
|
68
185
|
retrieve(agentID: string, options?: RequestOptions): APIPromise<Agent> {
|
|
69
|
-
return this._client.get(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
186
|
+
return this._client.get(
|
|
187
|
+
path`/agents/${agentID}`,
|
|
188
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
189
|
+
...options,
|
|
190
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
191
|
+
__security: { bearerAuth: true },
|
|
192
|
+
})),
|
|
193
|
+
);
|
|
74
194
|
}
|
|
75
195
|
|
|
76
196
|
/**
|
|
@@ -87,12 +207,15 @@ export class Agents extends APIResource {
|
|
|
87
207
|
body: AgentUpdateParams | null | undefined = {},
|
|
88
208
|
options?: RequestOptions,
|
|
89
209
|
): APIPromise<Agent> {
|
|
90
|
-
return this._client.post(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
210
|
+
return this._client.post(
|
|
211
|
+
path`/agents/${agentID}`,
|
|
212
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
213
|
+
body,
|
|
214
|
+
...options,
|
|
215
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
216
|
+
__security: { bearerAuth: true },
|
|
217
|
+
})),
|
|
218
|
+
);
|
|
96
219
|
}
|
|
97
220
|
|
|
98
221
|
/**
|
|
@@ -108,15 +231,111 @@ export class Agents extends APIResource {
|
|
|
108
231
|
* ```
|
|
109
232
|
*/
|
|
110
233
|
list(
|
|
111
|
-
query
|
|
234
|
+
query?:
|
|
235
|
+
| (AgentListParams &
|
|
236
|
+
(
|
|
237
|
+
| {
|
|
238
|
+
[
|
|
239
|
+
K in
|
|
240
|
+
| 'method'
|
|
241
|
+
| 'path'
|
|
242
|
+
| 'query'
|
|
243
|
+
| 'body'
|
|
244
|
+
| 'headers'
|
|
245
|
+
| 'maxRetries'
|
|
246
|
+
| 'stream'
|
|
247
|
+
| 'timeout'
|
|
248
|
+
| 'httpAgent'
|
|
249
|
+
| 'fetchOptions'
|
|
250
|
+
| 'signal'
|
|
251
|
+
| 'idempotencyKey'
|
|
252
|
+
| 'defaultBaseURL'
|
|
253
|
+
| '__metadata'
|
|
254
|
+
| '__binaryRequest'
|
|
255
|
+
| '__binaryResponse'
|
|
256
|
+
| '__streamClass'
|
|
257
|
+
| '__security'
|
|
258
|
+
| '__synthesizeEventData'
|
|
259
|
+
]?: never;
|
|
260
|
+
}
|
|
261
|
+
| null
|
|
262
|
+
| undefined
|
|
263
|
+
))
|
|
264
|
+
| null
|
|
265
|
+
| undefined,
|
|
266
|
+
options?: RequestOptions,
|
|
267
|
+
): PagePromise<AgentsPage, Agent>;
|
|
268
|
+
list(
|
|
269
|
+
options?: {
|
|
270
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
271
|
+
} & {
|
|
272
|
+
[
|
|
273
|
+
K in
|
|
274
|
+
| 'method'
|
|
275
|
+
| 'path'
|
|
276
|
+
| 'body'
|
|
277
|
+
| 'stream'
|
|
278
|
+
| 'httpAgent'
|
|
279
|
+
| 'fetchOptions'
|
|
280
|
+
| 'defaultBaseURL'
|
|
281
|
+
| '__metadata'
|
|
282
|
+
| '__binaryRequest'
|
|
283
|
+
| '__binaryResponse'
|
|
284
|
+
| '__streamClass'
|
|
285
|
+
| '__security'
|
|
286
|
+
| '__synthesizeEventData'
|
|
287
|
+
]?: never;
|
|
288
|
+
},
|
|
289
|
+
): PagePromise<AgentsPage, Agent>;
|
|
290
|
+
list(
|
|
291
|
+
query:
|
|
292
|
+
| AgentListParams
|
|
293
|
+
| ({
|
|
294
|
+
[
|
|
295
|
+
K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query'
|
|
296
|
+
]?: RequestOptions[K];
|
|
297
|
+
} & {
|
|
298
|
+
[
|
|
299
|
+
K in
|
|
300
|
+
| 'method'
|
|
301
|
+
| 'path'
|
|
302
|
+
| 'body'
|
|
303
|
+
| 'stream'
|
|
304
|
+
| 'httpAgent'
|
|
305
|
+
| 'fetchOptions'
|
|
306
|
+
| 'defaultBaseURL'
|
|
307
|
+
| '__metadata'
|
|
308
|
+
| '__binaryRequest'
|
|
309
|
+
| '__binaryResponse'
|
|
310
|
+
| '__streamClass'
|
|
311
|
+
| '__security'
|
|
312
|
+
| '__synthesizeEventData'
|
|
313
|
+
]?: never;
|
|
314
|
+
})
|
|
315
|
+
| null
|
|
316
|
+
| undefined = {},
|
|
112
317
|
options?: RequestOptions,
|
|
113
318
|
): PagePromise<AgentsPage, Agent> {
|
|
114
|
-
|
|
319
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(
|
|
115
320
|
query,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
321
|
+
['after', 'limit', 'order'],
|
|
322
|
+
options,
|
|
323
|
+
);
|
|
324
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
325
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
326
|
+
query = {};
|
|
327
|
+
}
|
|
328
|
+
query = query as AgentListParams | null | undefined;
|
|
329
|
+
return this._client.getAPIList(
|
|
330
|
+
'/agents',
|
|
331
|
+
CursorPage<Agent>,
|
|
332
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
333
|
+
query,
|
|
334
|
+
...options,
|
|
335
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
336
|
+
__security: { bearerAuth: true },
|
|
337
|
+
})),
|
|
338
|
+
);
|
|
120
339
|
}
|
|
121
340
|
|
|
122
341
|
/**
|
|
@@ -131,11 +350,14 @@ export class Agents extends APIResource {
|
|
|
131
350
|
* ```
|
|
132
351
|
*/
|
|
133
352
|
delete(agentID: string, options?: RequestOptions): APIPromise<AgentDeleted> {
|
|
134
|
-
return this._client.delete(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
353
|
+
return this._client.delete(
|
|
354
|
+
path`/agents/${agentID}`,
|
|
355
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
356
|
+
...options,
|
|
357
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
358
|
+
__security: { bearerAuth: true },
|
|
359
|
+
})),
|
|
360
|
+
);
|
|
139
361
|
}
|
|
140
362
|
}
|
|
141
363
|
|
|
@@ -607,12 +829,13 @@ export type AgentOutputItemStatus = 'in_progress' | 'completed' | 'incomplete';
|
|
|
607
829
|
*/
|
|
608
830
|
export interface AgentReasoning {
|
|
609
831
|
/**
|
|
610
|
-
* The
|
|
832
|
+
* The requested reasoning effort, or `null` when the model selects its own
|
|
833
|
+
* default.
|
|
611
834
|
*/
|
|
612
835
|
effort: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
613
836
|
|
|
614
837
|
/**
|
|
615
|
-
* The reasoning summary format
|
|
838
|
+
* The requested reasoning summary format, or `null` when summaries are disabled.
|
|
616
839
|
*
|
|
617
840
|
* - `concise` - Returns a concise reasoning summary when supported.
|
|
618
841
|
* - `detailed` - Returns a detailed reasoning summary when supported.
|
|
@@ -632,7 +855,7 @@ export interface AgentReasoningItem {
|
|
|
632
855
|
id: string;
|
|
633
856
|
|
|
634
857
|
/**
|
|
635
|
-
* The status of
|
|
858
|
+
* The status of the reasoning item.
|
|
636
859
|
*/
|
|
637
860
|
status: AgentOutputItemStatus | null;
|
|
638
861
|
|
|
@@ -657,12 +880,13 @@ export interface AgentReasoningItem {
|
|
|
657
880
|
*/
|
|
658
881
|
export interface AgentReasoningParam {
|
|
659
882
|
/**
|
|
660
|
-
* The amount of reasoning effort the model should use.
|
|
883
|
+
* The amount of reasoning effort the model should use. Omission lets the model
|
|
884
|
+
* select it.
|
|
661
885
|
*/
|
|
662
886
|
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
663
887
|
|
|
664
888
|
/**
|
|
665
|
-
*
|
|
889
|
+
* Controls whether the response includes a reasoning summary.
|
|
666
890
|
*
|
|
667
891
|
* - `concise` - Returns a concise reasoning summary when supported.
|
|
668
892
|
* - `detailed` - Returns a detailed reasoning summary when supported.
|
|
@@ -811,7 +1035,8 @@ export interface AgentSession {
|
|
|
811
1035
|
status: 'idle' | 'in_progress' | 'requires_action' | 'failed';
|
|
812
1036
|
|
|
813
1037
|
/**
|
|
814
|
-
*
|
|
1038
|
+
* Best-effort token usage for the session, or null if unknown. Recorded usage may
|
|
1039
|
+
* change.
|
|
815
1040
|
*/
|
|
816
1041
|
usage: TokenUsage | null;
|
|
817
1042
|
|
|
@@ -934,7 +1159,7 @@ export interface AgentSessionAssistantMessage {
|
|
|
934
1159
|
content: Array<OutputText>;
|
|
935
1160
|
|
|
936
1161
|
/**
|
|
937
|
-
* The phase of
|
|
1162
|
+
* The phase of the assistant message.
|
|
938
1163
|
*
|
|
939
1164
|
* - `commentary` - Commentary produced while the agent works.
|
|
940
1165
|
* - `final_answer` - The agent's final answer.
|
|
@@ -1154,6 +1379,42 @@ export interface AgentSessionEnvironmentReadyEvent {
|
|
|
1154
1379
|
type: 'agent.session.environment.ready';
|
|
1155
1380
|
}
|
|
1156
1381
|
|
|
1382
|
+
/**
|
|
1383
|
+
* Emitted after a hosted sandbox is replaced. Conversation history survives;
|
|
1384
|
+
* changes to the previous sandbox's files and processes do not.
|
|
1385
|
+
*/
|
|
1386
|
+
export interface AgentSessionEnvironmentResetEvent {
|
|
1387
|
+
/**
|
|
1388
|
+
* The stable environment ID, retained across sandbox replacements.
|
|
1389
|
+
*/
|
|
1390
|
+
environment_id: string;
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* The unique ID of the event.
|
|
1394
|
+
*/
|
|
1395
|
+
event_id: string;
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* Monotonically increasing reset number. Repeated notifications share this number.
|
|
1399
|
+
*/
|
|
1400
|
+
reset_count: number;
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* The ID of the session associated with the event.
|
|
1404
|
+
*/
|
|
1405
|
+
session_id: string;
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* The associated turn, when applicable.
|
|
1409
|
+
*/
|
|
1410
|
+
turn_id: string | null;
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* The type of the object. Always `agent.session.environment.reset`.
|
|
1414
|
+
*/
|
|
1415
|
+
type: 'agent.session.environment.reset';
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1157
1418
|
/**
|
|
1158
1419
|
* The current state of a session environment.
|
|
1159
1420
|
*/
|
|
@@ -1164,7 +1425,7 @@ export interface AgentSessionEnvironmentState {
|
|
|
1164
1425
|
id: string;
|
|
1165
1426
|
|
|
1166
1427
|
/**
|
|
1167
|
-
*
|
|
1428
|
+
* The error reported while preparing the environment, if any.
|
|
1168
1429
|
*/
|
|
1169
1430
|
error: AgentSessionEnvironmentState.Error | null;
|
|
1170
1431
|
|
|
@@ -1187,7 +1448,7 @@ export interface AgentSessionEnvironmentState {
|
|
|
1187
1448
|
|
|
1188
1449
|
export namespace AgentSessionEnvironmentState {
|
|
1189
1450
|
/**
|
|
1190
|
-
*
|
|
1451
|
+
* The error reported while preparing the environment, if any.
|
|
1191
1452
|
*/
|
|
1192
1453
|
export interface Error {
|
|
1193
1454
|
/**
|
|
@@ -1238,6 +1499,7 @@ export interface AgentSessionErrorEvent {
|
|
|
1238
1499
|
export type AgentSessionEvent =
|
|
1239
1500
|
| AgentSessionErrorEvent
|
|
1240
1501
|
| AgentSessionEnvironmentReadyEvent
|
|
1502
|
+
| AgentSessionEnvironmentResetEvent
|
|
1241
1503
|
| AgentOutputCommandExecutionOutputDeltaEvent
|
|
1242
1504
|
| AgentSessionCreatedEvent
|
|
1243
1505
|
| AgentSessionTurnCreatedEvent
|
|
@@ -1411,7 +1673,7 @@ export namespace AgentSessionInputParam {
|
|
|
1411
1673
|
error?: string | null;
|
|
1412
1674
|
|
|
1413
1675
|
/**
|
|
1414
|
-
*
|
|
1676
|
+
* The function result when the call succeeded.
|
|
1415
1677
|
*/
|
|
1416
1678
|
output?: AgentsAPI.AgentFunctionCallOutputParam | null;
|
|
1417
1679
|
}
|
|
@@ -1457,7 +1719,7 @@ export namespace AgentSessionItem {
|
|
|
1457
1719
|
error: string | null;
|
|
1458
1720
|
|
|
1459
1721
|
/**
|
|
1460
|
-
* The
|
|
1722
|
+
* The function result, if the call succeeded.
|
|
1461
1723
|
*/
|
|
1462
1724
|
output: AgentsAPI.AgentFunctionCallOutput | null;
|
|
1463
1725
|
|
|
@@ -1529,7 +1791,7 @@ export interface AgentSessionMessage {
|
|
|
1529
1791
|
content: Array<AgentSessionMessageContent>;
|
|
1530
1792
|
|
|
1531
1793
|
/**
|
|
1532
|
-
* The phase of an assistant message.
|
|
1794
|
+
* The phase of an assistant message. Null for user messages.
|
|
1533
1795
|
*
|
|
1534
1796
|
* - `commentary` - Commentary produced while the agent works.
|
|
1535
1797
|
* - `final_answer` - The agent's final answer.
|
|
@@ -1723,7 +1985,7 @@ export interface AgentSessionTurnCancelledEvent {
|
|
|
1723
1985
|
type: 'agent.session.turn.cancelled';
|
|
1724
1986
|
|
|
1725
1987
|
/**
|
|
1726
|
-
*
|
|
1988
|
+
* Token usage by the root agent during the turn, when available.
|
|
1727
1989
|
*/
|
|
1728
1990
|
usage: TokenUsage | null;
|
|
1729
1991
|
}
|
|
@@ -1758,7 +2020,7 @@ export interface AgentSessionTurnCompletedEvent {
|
|
|
1758
2020
|
type: 'agent.session.turn.completed';
|
|
1759
2021
|
|
|
1760
2022
|
/**
|
|
1761
|
-
*
|
|
2023
|
+
* Token usage by the root agent during the turn, when available.
|
|
1762
2024
|
*/
|
|
1763
2025
|
usage: TokenUsage | null;
|
|
1764
2026
|
}
|
|
@@ -1913,7 +2175,7 @@ export interface AgentSessionTurnFailedEvent {
|
|
|
1913
2175
|
type: 'agent.session.turn.failed';
|
|
1914
2176
|
|
|
1915
2177
|
/**
|
|
1916
|
-
*
|
|
2178
|
+
* Token usage by the root agent during the turn, when available.
|
|
1917
2179
|
*/
|
|
1918
2180
|
usage: TokenUsage | null;
|
|
1919
2181
|
}
|
|
@@ -2315,12 +2577,13 @@ export interface AgentText {
|
|
|
2315
2577
|
*/
|
|
2316
2578
|
export interface AgentTextParam {
|
|
2317
2579
|
/**
|
|
2318
|
-
* The output format
|
|
2580
|
+
* The output format. Omission uses ordinary text (`{"type": "text"}`).
|
|
2319
2581
|
*/
|
|
2320
2582
|
format?: TextFormatParam | null;
|
|
2321
2583
|
|
|
2322
2584
|
/**
|
|
2323
|
-
* The amount of text the model should produce.
|
|
2585
|
+
* The amount of text the model should produce. Defaults to `medium`, matching
|
|
2586
|
+
* Responses.
|
|
2324
2587
|
*
|
|
2325
2588
|
* - `low` - Produces less text.
|
|
2326
2589
|
* - `medium` - Uses the default amount of text.
|
|
@@ -2445,7 +2708,7 @@ export namespace AgentTool {
|
|
|
2445
2708
|
context_size: 'low' | 'medium' | 'high';
|
|
2446
2709
|
|
|
2447
2710
|
/**
|
|
2448
|
-
* Approximate
|
|
2711
|
+
* Approximate location used to localize search results, if provided.
|
|
2449
2712
|
*/
|
|
2450
2713
|
location: AgentToolResourceWebSearch.Location | null;
|
|
2451
2714
|
|
|
@@ -2462,7 +2725,7 @@ export namespace AgentTool {
|
|
|
2462
2725
|
|
|
2463
2726
|
export namespace AgentToolResourceWebSearch {
|
|
2464
2727
|
/**
|
|
2465
|
-
* Approximate
|
|
2728
|
+
* Approximate location used to localize search results, if provided.
|
|
2466
2729
|
*/
|
|
2467
2730
|
export interface Location {
|
|
2468
2731
|
/**
|
|
@@ -2580,7 +2843,9 @@ export namespace AgentToolParam {
|
|
|
2580
2843
|
allowed_tools?: Array<string> | null;
|
|
2581
2844
|
|
|
2582
2845
|
/**
|
|
2583
|
-
*
|
|
2846
|
+
* Selects where outbound MCP HTTP connections originate. Omitted or `service` uses
|
|
2847
|
+
* the Managed Agents service network; `environment` uses the session's selected
|
|
2848
|
+
* environment.
|
|
2584
2849
|
*
|
|
2585
2850
|
* - `service` - Uses the Managed Agents service network.
|
|
2586
2851
|
* - `environment` - Uses the session's execution environment.
|
|
@@ -2620,17 +2885,17 @@ export namespace AgentToolParam {
|
|
|
2620
2885
|
allowed_domains?: Array<string> | null;
|
|
2621
2886
|
|
|
2622
2887
|
/**
|
|
2623
|
-
* The amount of
|
|
2888
|
+
* The amount of search context made available to the model. Defaults to `medium`.
|
|
2624
2889
|
*/
|
|
2625
2890
|
context_size?: 'low' | 'medium' | 'high' | null;
|
|
2626
2891
|
|
|
2627
2892
|
/**
|
|
2628
|
-
* Approximate
|
|
2893
|
+
* Approximate location used to localize search results.
|
|
2629
2894
|
*/
|
|
2630
2895
|
location?: AgentToolConfigParamWebSearch.Location | null;
|
|
2631
2896
|
|
|
2632
2897
|
/**
|
|
2633
|
-
* The source used for web search results.
|
|
2898
|
+
* The source used for web search results. Defaults to `live`.
|
|
2634
2899
|
*
|
|
2635
2900
|
* - `disabled` - Disables web search.
|
|
2636
2901
|
* - `cached` - Uses cached search results.
|
|
@@ -2641,7 +2906,7 @@ export namespace AgentToolParam {
|
|
|
2641
2906
|
|
|
2642
2907
|
export namespace AgentToolConfigParamWebSearch {
|
|
2643
2908
|
/**
|
|
2644
|
-
* Approximate
|
|
2909
|
+
* Approximate location used to localize search results.
|
|
2645
2910
|
*/
|
|
2646
2911
|
export interface Location {
|
|
2647
2912
|
/**
|
|
@@ -2712,7 +2977,7 @@ export interface AgentWebSearchCallItem {
|
|
|
2712
2977
|
id: string;
|
|
2713
2978
|
|
|
2714
2979
|
/**
|
|
2715
|
-
*
|
|
2980
|
+
* The action performed by the web search tool.
|
|
2716
2981
|
*/
|
|
2717
2982
|
action: WebSearchAction | null;
|
|
2718
2983
|
|
|
@@ -2921,12 +3186,13 @@ export namespace EnvironmentParam {
|
|
|
2921
3186
|
files?: Array<AgentsAPI.HostedEnvironmentFileParam> | null;
|
|
2922
3187
|
|
|
2923
3188
|
/**
|
|
2924
|
-
* Network access for
|
|
3189
|
+
* Network access policy for the environment. Defaults to disabled for GA requests
|
|
3190
|
+
* and enabled for alpha/beta requests.
|
|
2925
3191
|
*/
|
|
2926
3192
|
network?: EnvironmentParamOpenAIHosted.Network | null;
|
|
2927
3193
|
|
|
2928
3194
|
/**
|
|
2929
|
-
* Packages to install in
|
|
3195
|
+
* Packages to install in the environment. Defaults to empty package lists.
|
|
2930
3196
|
*/
|
|
2931
3197
|
packages?: EnvironmentParamOpenAIHosted.Packages | null;
|
|
2932
3198
|
|
|
@@ -2949,7 +3215,8 @@ export namespace EnvironmentParam {
|
|
|
2949
3215
|
|
|
2950
3216
|
export namespace EnvironmentParamOpenAIHosted {
|
|
2951
3217
|
/**
|
|
2952
|
-
* Network access for
|
|
3218
|
+
* Network access policy for the environment. Defaults to disabled for GA requests
|
|
3219
|
+
* and enabled for alpha/beta requests.
|
|
2953
3220
|
*/
|
|
2954
3221
|
export interface Network {
|
|
2955
3222
|
/**
|
|
@@ -2968,7 +3235,7 @@ export namespace EnvironmentParam {
|
|
|
2968
3235
|
}
|
|
2969
3236
|
|
|
2970
3237
|
/**
|
|
2971
|
-
* Packages to install in
|
|
3238
|
+
* Packages to install in the environment. Defaults to empty package lists.
|
|
2972
3239
|
*/
|
|
2973
3240
|
export interface Packages {
|
|
2974
3241
|
/**
|
|
@@ -3671,7 +3938,7 @@ export namespace PersistedAgentTool {
|
|
|
3671
3938
|
context_size: 'low' | 'medium' | 'high';
|
|
3672
3939
|
|
|
3673
3940
|
/**
|
|
3674
|
-
* Approximate
|
|
3941
|
+
* Approximate location used to localize search results, if provided.
|
|
3675
3942
|
*/
|
|
3676
3943
|
location: PersistedAgentToolResourceWebSearch.Location | null;
|
|
3677
3944
|
|
|
@@ -3688,7 +3955,7 @@ export namespace PersistedAgentTool {
|
|
|
3688
3955
|
|
|
3689
3956
|
export namespace PersistedAgentToolResourceWebSearch {
|
|
3690
3957
|
/**
|
|
3691
|
-
* Approximate
|
|
3958
|
+
* Approximate location used to localize search results, if provided.
|
|
3692
3959
|
*/
|
|
3693
3960
|
export interface Location {
|
|
3694
3961
|
/**
|
|
@@ -3806,7 +4073,7 @@ export namespace PersistedAgentToolParam {
|
|
|
3806
4073
|
allowed_tools?: Array<string> | null;
|
|
3807
4074
|
|
|
3808
4075
|
/**
|
|
3809
|
-
*
|
|
4076
|
+
* Selects where outbound MCP HTTP connections originate.
|
|
3810
4077
|
*
|
|
3811
4078
|
* - `service` - Uses the Managed Agents service network.
|
|
3812
4079
|
* - `environment` - Uses the session's execution environment.
|
|
@@ -3846,17 +4113,17 @@ export namespace PersistedAgentToolParam {
|
|
|
3846
4113
|
allowed_domains?: Array<string> | null;
|
|
3847
4114
|
|
|
3848
4115
|
/**
|
|
3849
|
-
* The amount of
|
|
4116
|
+
* The amount of search context made available to the model. Defaults to `medium`.
|
|
3850
4117
|
*/
|
|
3851
4118
|
context_size?: 'low' | 'medium' | 'high' | null;
|
|
3852
4119
|
|
|
3853
4120
|
/**
|
|
3854
|
-
* Approximate
|
|
4121
|
+
* Approximate location used to localize search results.
|
|
3855
4122
|
*/
|
|
3856
4123
|
location?: PersistedAgentToolConfigParamWebSearch.Location | null;
|
|
3857
4124
|
|
|
3858
4125
|
/**
|
|
3859
|
-
* The source used for web search results.
|
|
4126
|
+
* The source used for web search results. Defaults to `live`.
|
|
3860
4127
|
*
|
|
3861
4128
|
* - `disabled` - Disables web search.
|
|
3862
4129
|
* - `cached` - Uses cached search results.
|
|
@@ -3867,7 +4134,7 @@ export namespace PersistedAgentToolParam {
|
|
|
3867
4134
|
|
|
3868
4135
|
export namespace PersistedAgentToolConfigParamWebSearch {
|
|
3869
4136
|
/**
|
|
3870
|
-
* Approximate
|
|
4137
|
+
* Approximate location used to localize search results.
|
|
3871
4138
|
*/
|
|
3872
4139
|
export interface Location {
|
|
3873
4140
|
/**
|
|
@@ -4388,7 +4655,8 @@ export interface AgentCreateParams {
|
|
|
4388
4655
|
metadata?: { [key: string]: string } | null;
|
|
4389
4656
|
|
|
4390
4657
|
/**
|
|
4391
|
-
*
|
|
4658
|
+
* Configuration for creating and coordinating subagents. Subagent tools are
|
|
4659
|
+
* disabled by default.
|
|
4392
4660
|
*/
|
|
4393
4661
|
multi_agent?: MultiAgentConfigParam | null;
|
|
4394
4662
|
|
|
@@ -4398,12 +4666,12 @@ export interface AgentCreateParams {
|
|
|
4398
4666
|
name?: string | null;
|
|
4399
4667
|
|
|
4400
4668
|
/**
|
|
4401
|
-
*
|
|
4669
|
+
* Configuration for model reasoning. Omission uses the model's default effort.
|
|
4402
4670
|
*/
|
|
4403
4671
|
reasoning?: AgentReasoningParam | null;
|
|
4404
4672
|
|
|
4405
4673
|
/**
|
|
4406
|
-
* The service tier used for model requests.
|
|
4674
|
+
* The service tier used for model requests. Defaults to `auto`.
|
|
4407
4675
|
*
|
|
4408
4676
|
* - `auto` - Selects the service tier automatically.
|
|
4409
4677
|
* - `default` - Uses the default service tier.
|
|
@@ -4414,7 +4682,8 @@ export interface AgentCreateParams {
|
|
|
4414
4682
|
service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | null;
|
|
4415
4683
|
|
|
4416
4684
|
/**
|
|
4417
|
-
* Configuration for text
|
|
4685
|
+
* Configuration for generated text. Defaults to the `text` format and medium
|
|
4686
|
+
* verbosity.
|
|
4418
4687
|
*/
|
|
4419
4688
|
text?: AgentTextParam | null;
|
|
4420
4689
|
|
|
@@ -4444,7 +4713,7 @@ export interface AgentUpdateParams {
|
|
|
4444
4713
|
model?: string;
|
|
4445
4714
|
|
|
4446
4715
|
/**
|
|
4447
|
-
*
|
|
4716
|
+
* Configuration for creating and coordinating subagents.
|
|
4448
4717
|
*/
|
|
4449
4718
|
multi_agent?: MultiAgentConfigParam | null;
|
|
4450
4719
|
|
|
@@ -4454,7 +4723,8 @@ export interface AgentUpdateParams {
|
|
|
4454
4723
|
name?: string | null;
|
|
4455
4724
|
|
|
4456
4725
|
/**
|
|
4457
|
-
*
|
|
4726
|
+
* Configuration for model reasoning. Omit to keep the current settings; pass
|
|
4727
|
+
* `null` to reset to the model's default effort.
|
|
4458
4728
|
*/
|
|
4459
4729
|
reasoning?: AgentReasoningParam | null;
|
|
4460
4730
|
|
|
@@ -4530,6 +4800,7 @@ export declare namespace Agents {
|
|
|
4530
4800
|
type AgentSessionEnvironmentFailedEvent as AgentSessionEnvironmentFailedEvent,
|
|
4531
4801
|
type AgentSessionEnvironmentPendingEvent as AgentSessionEnvironmentPendingEvent,
|
|
4532
4802
|
type AgentSessionEnvironmentReadyEvent as AgentSessionEnvironmentReadyEvent,
|
|
4803
|
+
type AgentSessionEnvironmentResetEvent as AgentSessionEnvironmentResetEvent,
|
|
4533
4804
|
type AgentSessionEnvironmentState as AgentSessionEnvironmentState,
|
|
4534
4805
|
type AgentSessionErrorEvent as AgentSessionErrorEvent,
|
|
4535
4806
|
type AgentSessionEvent as AgentSessionEvent,
|