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
|
@@ -9,6 +9,120 @@ import { buildHeaders } from '../../../../internal/headers';
|
|
|
9
9
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
10
10
|
import { path } from '../../../../internal/utils/path';
|
|
11
11
|
|
|
12
|
+
function resolveResourceRequestOptions(
|
|
13
|
+
options: RequestOptions | undefined,
|
|
14
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
15
|
+
): Promise<RequestOptions> {
|
|
16
|
+
return Promise.resolve(options).then(buildOptions);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
20
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
21
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
22
|
+
'method',
|
|
23
|
+
'path',
|
|
24
|
+
'query',
|
|
25
|
+
'body',
|
|
26
|
+
'headers',
|
|
27
|
+
'maxRetries',
|
|
28
|
+
'stream',
|
|
29
|
+
'timeout',
|
|
30
|
+
'httpAgent',
|
|
31
|
+
'fetchOptions',
|
|
32
|
+
'signal',
|
|
33
|
+
'idempotencyKey',
|
|
34
|
+
'defaultBaseURL',
|
|
35
|
+
'__metadata',
|
|
36
|
+
'__binaryRequest',
|
|
37
|
+
'__binaryResponse',
|
|
38
|
+
'__streamClass',
|
|
39
|
+
'__security',
|
|
40
|
+
'__synthesizeEventData',
|
|
41
|
+
]);
|
|
42
|
+
|
|
43
|
+
function normalizeRequestOptionsForQuery(
|
|
44
|
+
value: unknown,
|
|
45
|
+
queryKeys: ReadonlyArray<string>,
|
|
46
|
+
options: RequestOptions | undefined,
|
|
47
|
+
):
|
|
48
|
+
| ({
|
|
49
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
50
|
+
} & {
|
|
51
|
+
[
|
|
52
|
+
K in
|
|
53
|
+
| 'method'
|
|
54
|
+
| 'path'
|
|
55
|
+
| 'body'
|
|
56
|
+
| 'stream'
|
|
57
|
+
| 'httpAgent'
|
|
58
|
+
| 'fetchOptions'
|
|
59
|
+
| 'defaultBaseURL'
|
|
60
|
+
| '__metadata'
|
|
61
|
+
| '__binaryRequest'
|
|
62
|
+
| '__binaryResponse'
|
|
63
|
+
| '__streamClass'
|
|
64
|
+
| '__security'
|
|
65
|
+
| '__synthesizeEventData'
|
|
66
|
+
]?: never;
|
|
67
|
+
})
|
|
68
|
+
| undefined {
|
|
69
|
+
if (typeof value !== 'object' || value === null) return undefined;
|
|
70
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
71
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
72
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(
|
|
73
|
+
([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined),
|
|
74
|
+
);
|
|
75
|
+
const keys = entries.map(([key]) => key);
|
|
76
|
+
const requestOnly = keys.some(
|
|
77
|
+
(key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key),
|
|
78
|
+
);
|
|
79
|
+
if (!requestOnly) return undefined;
|
|
80
|
+
// Declared query fields, including stream, must use the query argument.
|
|
81
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
82
|
+
if (
|
|
83
|
+
options !== undefined ||
|
|
84
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))
|
|
85
|
+
) {
|
|
86
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
87
|
+
}
|
|
88
|
+
// The query position must not gain authority to change the request destination
|
|
89
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
90
|
+
if (
|
|
91
|
+
keys.some(
|
|
92
|
+
(key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key),
|
|
93
|
+
)
|
|
94
|
+
) {
|
|
95
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
96
|
+
}
|
|
97
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
98
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
99
|
+
return Object.fromEntries(
|
|
100
|
+
entries.map(([key, descriptor]) => {
|
|
101
|
+
if ('value' in descriptor) return [key, descriptor.value];
|
|
102
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
103
|
+
}),
|
|
104
|
+
) as {
|
|
105
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
106
|
+
} & {
|
|
107
|
+
[
|
|
108
|
+
K in
|
|
109
|
+
| 'method'
|
|
110
|
+
| 'path'
|
|
111
|
+
| 'body'
|
|
112
|
+
| 'stream'
|
|
113
|
+
| 'httpAgent'
|
|
114
|
+
| 'fetchOptions'
|
|
115
|
+
| 'defaultBaseURL'
|
|
116
|
+
| '__metadata'
|
|
117
|
+
| '__binaryRequest'
|
|
118
|
+
| '__binaryResponse'
|
|
119
|
+
| '__streamClass'
|
|
120
|
+
| '__security'
|
|
121
|
+
| '__synthesizeEventData'
|
|
122
|
+
]?: never;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
12
126
|
export class Credentials extends APIResource {
|
|
13
127
|
/**
|
|
14
128
|
* Creates a vault credential. Secret values are write-only and are never returned.
|
|
@@ -32,12 +146,15 @@ export class Credentials extends APIResource {
|
|
|
32
146
|
* ```
|
|
33
147
|
*/
|
|
34
148
|
create(vaultID: string, body: CredentialCreateParams, options?: RequestOptions): APIPromise<Credential> {
|
|
35
|
-
return this._client.post(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
149
|
+
return this._client.post(
|
|
150
|
+
path`/vaults/${vaultID}/credentials`,
|
|
151
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
152
|
+
body,
|
|
153
|
+
...options,
|
|
154
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
155
|
+
__security: { bearerAuth: true },
|
|
156
|
+
})),
|
|
157
|
+
);
|
|
41
158
|
}
|
|
42
159
|
|
|
43
160
|
/**
|
|
@@ -59,11 +176,14 @@ export class Credentials extends APIResource {
|
|
|
59
176
|
options?: RequestOptions,
|
|
60
177
|
): APIPromise<Credential> {
|
|
61
178
|
const { vault_id } = params;
|
|
62
|
-
return this._client.get(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
179
|
+
return this._client.get(
|
|
180
|
+
path`/vaults/${vault_id}/credentials/${credentialID}`,
|
|
181
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
182
|
+
...options,
|
|
183
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
184
|
+
__security: { bearerAuth: true },
|
|
185
|
+
})),
|
|
186
|
+
);
|
|
67
187
|
}
|
|
68
188
|
|
|
69
189
|
/**
|
|
@@ -89,12 +209,15 @@ export class Credentials extends APIResource {
|
|
|
89
209
|
options?: RequestOptions,
|
|
90
210
|
): APIPromise<Credential> {
|
|
91
211
|
const { vault_id, ...body } = params;
|
|
92
|
-
return this._client.post(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
212
|
+
return this._client.post(
|
|
213
|
+
path`/vaults/${vault_id}/credentials/${credentialID}`,
|
|
214
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
215
|
+
body,
|
|
216
|
+
...options,
|
|
217
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
218
|
+
__security: { bearerAuth: true },
|
|
219
|
+
})),
|
|
220
|
+
);
|
|
98
221
|
}
|
|
99
222
|
|
|
100
223
|
/**
|
|
@@ -114,15 +237,113 @@ export class Credentials extends APIResource {
|
|
|
114
237
|
*/
|
|
115
238
|
list(
|
|
116
239
|
vaultID: string,
|
|
117
|
-
query
|
|
240
|
+
query?:
|
|
241
|
+
| (CredentialListParams &
|
|
242
|
+
(
|
|
243
|
+
| {
|
|
244
|
+
[
|
|
245
|
+
K in
|
|
246
|
+
| 'method'
|
|
247
|
+
| 'path'
|
|
248
|
+
| 'query'
|
|
249
|
+
| 'body'
|
|
250
|
+
| 'headers'
|
|
251
|
+
| 'maxRetries'
|
|
252
|
+
| 'stream'
|
|
253
|
+
| 'timeout'
|
|
254
|
+
| 'httpAgent'
|
|
255
|
+
| 'fetchOptions'
|
|
256
|
+
| 'signal'
|
|
257
|
+
| 'idempotencyKey'
|
|
258
|
+
| 'defaultBaseURL'
|
|
259
|
+
| '__metadata'
|
|
260
|
+
| '__binaryRequest'
|
|
261
|
+
| '__binaryResponse'
|
|
262
|
+
| '__streamClass'
|
|
263
|
+
| '__security'
|
|
264
|
+
| '__synthesizeEventData'
|
|
265
|
+
]?: never;
|
|
266
|
+
}
|
|
267
|
+
| null
|
|
268
|
+
| undefined
|
|
269
|
+
))
|
|
270
|
+
| null
|
|
271
|
+
| undefined,
|
|
272
|
+
options?: RequestOptions,
|
|
273
|
+
): PagePromise<CredentialsPage, Credential>;
|
|
274
|
+
list(
|
|
275
|
+
vaultID: string,
|
|
276
|
+
options?: {
|
|
277
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
278
|
+
} & {
|
|
279
|
+
[
|
|
280
|
+
K in
|
|
281
|
+
| 'method'
|
|
282
|
+
| 'path'
|
|
283
|
+
| 'body'
|
|
284
|
+
| 'stream'
|
|
285
|
+
| 'httpAgent'
|
|
286
|
+
| 'fetchOptions'
|
|
287
|
+
| 'defaultBaseURL'
|
|
288
|
+
| '__metadata'
|
|
289
|
+
| '__binaryRequest'
|
|
290
|
+
| '__binaryResponse'
|
|
291
|
+
| '__streamClass'
|
|
292
|
+
| '__security'
|
|
293
|
+
| '__synthesizeEventData'
|
|
294
|
+
]?: never;
|
|
295
|
+
},
|
|
296
|
+
): PagePromise<CredentialsPage, Credential>;
|
|
297
|
+
list(
|
|
298
|
+
vaultID: string,
|
|
299
|
+
query:
|
|
300
|
+
| CredentialListParams
|
|
301
|
+
| ({
|
|
302
|
+
[
|
|
303
|
+
K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query'
|
|
304
|
+
]?: RequestOptions[K];
|
|
305
|
+
} & {
|
|
306
|
+
[
|
|
307
|
+
K in
|
|
308
|
+
| 'method'
|
|
309
|
+
| 'path'
|
|
310
|
+
| 'body'
|
|
311
|
+
| 'stream'
|
|
312
|
+
| 'httpAgent'
|
|
313
|
+
| 'fetchOptions'
|
|
314
|
+
| 'defaultBaseURL'
|
|
315
|
+
| '__metadata'
|
|
316
|
+
| '__binaryRequest'
|
|
317
|
+
| '__binaryResponse'
|
|
318
|
+
| '__streamClass'
|
|
319
|
+
| '__security'
|
|
320
|
+
| '__synthesizeEventData'
|
|
321
|
+
]?: never;
|
|
322
|
+
})
|
|
323
|
+
| null
|
|
324
|
+
| undefined = {},
|
|
118
325
|
options?: RequestOptions,
|
|
119
326
|
): PagePromise<CredentialsPage, Credential> {
|
|
120
|
-
|
|
327
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(
|
|
121
328
|
query,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
329
|
+
['after', 'limit', 'order', 'status'],
|
|
330
|
+
options,
|
|
331
|
+
);
|
|
332
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
333
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
334
|
+
query = {};
|
|
335
|
+
}
|
|
336
|
+
query = query as CredentialListParams | null | undefined;
|
|
337
|
+
return this._client.getAPIList(
|
|
338
|
+
path`/vaults/${vaultID}/credentials`,
|
|
339
|
+
CursorPage<Credential>,
|
|
340
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
341
|
+
query,
|
|
342
|
+
...options,
|
|
343
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
344
|
+
__security: { bearerAuth: true },
|
|
345
|
+
})),
|
|
346
|
+
);
|
|
126
347
|
}
|
|
127
348
|
|
|
128
349
|
/**
|
|
@@ -144,18 +365,21 @@ export class Credentials extends APIResource {
|
|
|
144
365
|
options?: RequestOptions,
|
|
145
366
|
): APIPromise<CredentialDeleted> {
|
|
146
367
|
const { vault_id } = params;
|
|
147
|
-
return this._client.delete(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
368
|
+
return this._client.delete(
|
|
369
|
+
path`/vaults/${vault_id}/credentials/${credentialID}`,
|
|
370
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
371
|
+
...options,
|
|
372
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
373
|
+
__security: { bearerAuth: true },
|
|
374
|
+
})),
|
|
375
|
+
);
|
|
152
376
|
}
|
|
153
377
|
}
|
|
154
378
|
|
|
155
379
|
export type CredentialsPage = CursorPage<Credential>;
|
|
156
380
|
|
|
157
381
|
/**
|
|
158
|
-
* Metadata for a stored
|
|
382
|
+
* Metadata for a stored credential. Secret values are never returned.
|
|
159
383
|
*/
|
|
160
384
|
export interface Credential {
|
|
161
385
|
/**
|
|
@@ -164,7 +388,7 @@ export interface Credential {
|
|
|
164
388
|
id: string;
|
|
165
389
|
|
|
166
390
|
/**
|
|
167
|
-
* The authentication method and non-secret configuration
|
|
391
|
+
* The authentication method and non-secret configuration of the credential.
|
|
168
392
|
*/
|
|
169
393
|
auth: CredentialAuth;
|
|
170
394
|
|
|
@@ -195,12 +419,12 @@ export interface Credential {
|
|
|
195
419
|
}
|
|
196
420
|
|
|
197
421
|
/**
|
|
198
|
-
* The
|
|
199
|
-
* secrets.
|
|
422
|
+
* The authentication configuration of a vault credential, excluding secrets.
|
|
200
423
|
*/
|
|
201
424
|
export type CredentialAuth =
|
|
202
425
|
| CredentialAuth.VaultCredentialAuthResourceMcpOauth
|
|
203
|
-
| CredentialAuth.VaultCredentialAuthResourceStaticBearer
|
|
426
|
+
| CredentialAuth.VaultCredentialAuthResourceStaticBearer
|
|
427
|
+
| CredentialAuth.VaultCredentialAuthResourceEnvironmentVariable;
|
|
204
428
|
|
|
205
429
|
export namespace CredentialAuth {
|
|
206
430
|
/**
|
|
@@ -219,8 +443,7 @@ export namespace CredentialAuth {
|
|
|
219
443
|
mcp_server_url: string;
|
|
220
444
|
|
|
221
445
|
/**
|
|
222
|
-
*
|
|
223
|
-
* values.
|
|
446
|
+
* Public refresh metadata without refresh tokens or OAuth client secrets.
|
|
224
447
|
*/
|
|
225
448
|
refresh: VaultCredentialAuthResourceMcpOauth.Refresh | null;
|
|
226
449
|
|
|
@@ -232,8 +455,7 @@ export namespace CredentialAuth {
|
|
|
232
455
|
|
|
233
456
|
export namespace VaultCredentialAuthResourceMcpOauth {
|
|
234
457
|
/**
|
|
235
|
-
*
|
|
236
|
-
* values.
|
|
458
|
+
* Public refresh metadata without refresh tokens or OAuth client secrets.
|
|
237
459
|
*/
|
|
238
460
|
export interface Refresh {
|
|
239
461
|
/**
|
|
@@ -278,14 +500,39 @@ export namespace CredentialAuth {
|
|
|
278
500
|
*/
|
|
279
501
|
type: 'static_bearer';
|
|
280
502
|
}
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Metadata for an HTTP credential used only in OpenAI-hosted environments. Sandbox
|
|
506
|
+
* code receives a placeholder. The proxy substitutes the secret for allowed HTTPS
|
|
507
|
+
* destinations on ports 443 and 8443. The real secret is not available to sandbox
|
|
508
|
+
* code for local computation and is never returned in this resource.
|
|
509
|
+
*/
|
|
510
|
+
export interface VaultCredentialAuthResourceEnvironmentVariable {
|
|
511
|
+
/**
|
|
512
|
+
* The destinations where the proxy can substitute the secret, subject to the
|
|
513
|
+
* environment network policy.
|
|
514
|
+
*/
|
|
515
|
+
networking: CredentialsAPI.CredentialNetworking;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* The environment variable name that receives the placeholder in the sandbox.
|
|
519
|
+
*/
|
|
520
|
+
secret_name: string;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* The type of the object. Always `environment_variable`.
|
|
524
|
+
*/
|
|
525
|
+
type: 'environment_variable';
|
|
526
|
+
}
|
|
281
527
|
}
|
|
282
528
|
|
|
283
529
|
/**
|
|
284
|
-
* Authentication credentials for an MCP server
|
|
530
|
+
* Authentication credentials for an MCP server or an OpenAI-hosted environment.
|
|
285
531
|
*/
|
|
286
532
|
export type CredentialAuthCreateParam =
|
|
287
533
|
| CredentialAuthCreateParam.CreateVaultCredentialAuthParamMcpOauth
|
|
288
|
-
| CredentialAuthCreateParam.CreateVaultCredentialAuthParamStaticBearer
|
|
534
|
+
| CredentialAuthCreateParam.CreateVaultCredentialAuthParamStaticBearer
|
|
535
|
+
| CredentialAuthCreateParam.CreateVaultCredentialAuthParamEnvironmentVariable;
|
|
289
536
|
|
|
290
537
|
export namespace CredentialAuthCreateParam {
|
|
291
538
|
/**
|
|
@@ -313,14 +560,14 @@ export namespace CredentialAuthCreateParam {
|
|
|
313
560
|
expires_at?: string | null;
|
|
314
561
|
|
|
315
562
|
/**
|
|
316
|
-
*
|
|
563
|
+
* Optional refresh configuration for an HTTPS OAuth token endpoint.
|
|
317
564
|
*/
|
|
318
565
|
refresh?: CreateVaultCredentialAuthParamMcpOauth.Refresh | null;
|
|
319
566
|
}
|
|
320
567
|
|
|
321
568
|
export namespace CreateVaultCredentialAuthParamMcpOauth {
|
|
322
569
|
/**
|
|
323
|
-
*
|
|
570
|
+
* Optional refresh configuration for an HTTPS OAuth token endpoint.
|
|
324
571
|
*/
|
|
325
572
|
export interface Refresh {
|
|
326
573
|
/**
|
|
@@ -378,15 +625,52 @@ export namespace CredentialAuthCreateParam {
|
|
|
378
625
|
*/
|
|
379
626
|
type: 'static_bearer';
|
|
380
627
|
}
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* An HTTP credential for OpenAI-hosted environments only. The sandbox receives an
|
|
631
|
+
* environment variable containing a placeholder, not the secret. Use the
|
|
632
|
+
* placeholder unchanged in outgoing requests. The egress proxy replaces the
|
|
633
|
+
* placeholder with the secret for allowed HTTPS destinations on ports 443 and
|
|
634
|
+
* 8443. Sandbox code cannot read the real secret or use it for local computation,
|
|
635
|
+
* such as signing a request.
|
|
636
|
+
*/
|
|
637
|
+
export interface CreateVaultCredentialAuthParamEnvironmentVariable {
|
|
638
|
+
/**
|
|
639
|
+
* The destinations where the proxy can substitute this secret. The environment
|
|
640
|
+
* network policy must also allow them.
|
|
641
|
+
*/
|
|
642
|
+
networking: CredentialsAPI.CredentialNetworkingParam;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* The environment variable name that receives the placeholder, such as
|
|
646
|
+
* `SERVICE_API_KEY`. Use ASCII letters, digits, and underscores, starting with a
|
|
647
|
+
* letter or underscore. Names starting with `CODEX_` and managed proxy or
|
|
648
|
+
* certificate variable names are reserved.
|
|
649
|
+
*/
|
|
650
|
+
secret_name: string;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* The write-only secret to store. Never returned in credential resources or
|
|
654
|
+
* supplied directly to sandbox code. Must be nonempty and must not contain
|
|
655
|
+
* carriage returns, newlines, or NUL bytes.
|
|
656
|
+
*/
|
|
657
|
+
secret_value: string;
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* The type of the object. Always `environment_variable`.
|
|
661
|
+
*/
|
|
662
|
+
type: 'environment_variable';
|
|
663
|
+
}
|
|
381
664
|
}
|
|
382
665
|
|
|
383
666
|
/**
|
|
384
|
-
* Updates to a vault credential without changing its authentication method or
|
|
385
|
-
*
|
|
667
|
+
* Updates to a vault credential without changing its authentication method or
|
|
668
|
+
* destination configuration.
|
|
386
669
|
*/
|
|
387
670
|
export type CredentialAuthRotateParam =
|
|
388
671
|
| CredentialAuthRotateParam.RotateVaultCredentialAuthParamMcpOauth
|
|
389
|
-
| CredentialAuthRotateParam.RotateVaultCredentialAuthParamStaticBearer
|
|
672
|
+
| CredentialAuthRotateParam.RotateVaultCredentialAuthParamStaticBearer
|
|
673
|
+
| CredentialAuthRotateParam.RotateVaultCredentialAuthParamEnvironmentVariable;
|
|
390
674
|
|
|
391
675
|
export namespace CredentialAuthRotateParam {
|
|
392
676
|
/**
|
|
@@ -411,14 +695,14 @@ export namespace CredentialAuthRotateParam {
|
|
|
411
695
|
expires_at?: string | null;
|
|
412
696
|
|
|
413
697
|
/**
|
|
414
|
-
*
|
|
698
|
+
* Optional write-only refresh-token and client-secret updates.
|
|
415
699
|
*/
|
|
416
700
|
refresh?: RotateVaultCredentialAuthParamMcpOauth.Refresh | null;
|
|
417
701
|
}
|
|
418
702
|
|
|
419
703
|
export namespace RotateVaultCredentialAuthParamMcpOauth {
|
|
420
704
|
/**
|
|
421
|
-
*
|
|
705
|
+
* Optional write-only refresh-token and client-secret updates.
|
|
422
706
|
*/
|
|
423
707
|
export interface Refresh {
|
|
424
708
|
/**
|
|
@@ -434,8 +718,7 @@ export namespace CredentialAuthRotateParam {
|
|
|
434
718
|
scope?: string | null;
|
|
435
719
|
|
|
436
720
|
/**
|
|
437
|
-
* Client-secret updates
|
|
438
|
-
* method.
|
|
721
|
+
* Client-secret updates for the existing token endpoint authentication method.
|
|
439
722
|
*/
|
|
440
723
|
token_endpoint_auth?: CredentialsAPI.McpOauthTokenEndpointAuthRotateParam | null;
|
|
441
724
|
}
|
|
@@ -456,6 +739,24 @@ export namespace CredentialAuthRotateParam {
|
|
|
456
739
|
*/
|
|
457
740
|
type: 'static_bearer';
|
|
458
741
|
}
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Replace the secret for an OpenAI-hosted environment credential. The environment
|
|
745
|
+
* variable name and networking configuration remain unchanged.
|
|
746
|
+
*/
|
|
747
|
+
export interface RotateVaultCredentialAuthParamEnvironmentVariable {
|
|
748
|
+
/**
|
|
749
|
+
* The write-only replacement secret. Never returned in credential resources or
|
|
750
|
+
* supplied directly to sandbox code. Must be nonempty and must not contain
|
|
751
|
+
* carriage returns, newlines, or NUL bytes.
|
|
752
|
+
*/
|
|
753
|
+
secret_value: string;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* The type of the object. Always `environment_variable`.
|
|
757
|
+
*/
|
|
758
|
+
type: 'environment_variable';
|
|
759
|
+
}
|
|
459
760
|
}
|
|
460
761
|
|
|
461
762
|
/**
|
|
@@ -478,6 +779,86 @@ export interface CredentialDeleted {
|
|
|
478
779
|
object: 'vault.credential.deleted';
|
|
479
780
|
}
|
|
480
781
|
|
|
782
|
+
/**
|
|
783
|
+
* Destination permissions for an environment-variable credential. These do not
|
|
784
|
+
* grant network access to the environment.
|
|
785
|
+
*/
|
|
786
|
+
export type CredentialNetworking =
|
|
787
|
+
| CredentialNetworking.VaultCredentialNetworkingResourceUnrestricted
|
|
788
|
+
| CredentialNetworking.VaultCredentialNetworkingResourceLimited;
|
|
789
|
+
|
|
790
|
+
export namespace CredentialNetworking {
|
|
791
|
+
/**
|
|
792
|
+
* Allows substitution for destinations permitted by the environment network
|
|
793
|
+
* policy. Requires `environment.network.access` to be `restricted`, with explicit
|
|
794
|
+
* `allowed_domains`.
|
|
795
|
+
*/
|
|
796
|
+
export interface VaultCredentialNetworkingResourceUnrestricted {
|
|
797
|
+
/**
|
|
798
|
+
* The type of the object. Always `unrestricted`.
|
|
799
|
+
*/
|
|
800
|
+
type: 'unrestricted';
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Allows substitution only for the listed hosts. The environment network policy
|
|
805
|
+
* must also allow these hosts.
|
|
806
|
+
*/
|
|
807
|
+
export interface VaultCredentialNetworkingResourceLimited {
|
|
808
|
+
/**
|
|
809
|
+
* The 1 to 16 distinct allowed hostnames or IPv4 addresses, normalized to
|
|
810
|
+
* lowercase. Entries contain no scheme, path, port, or wildcard. IPv6 addresses
|
|
811
|
+
* are not supported.
|
|
812
|
+
*/
|
|
813
|
+
allowed_hosts: Array<string>;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* The type of the object. Always `limited`.
|
|
817
|
+
*/
|
|
818
|
+
type: 'limited';
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Destination permissions for an environment-variable credential. These do not
|
|
824
|
+
* grant network access to the environment.
|
|
825
|
+
*/
|
|
826
|
+
export type CredentialNetworkingParam =
|
|
827
|
+
| CredentialNetworkingParam.VaultCredentialNetworkingParamUnrestricted
|
|
828
|
+
| CredentialNetworkingParam.VaultCredentialNetworkingParamLimited;
|
|
829
|
+
|
|
830
|
+
export namespace CredentialNetworkingParam {
|
|
831
|
+
/**
|
|
832
|
+
* Allows substitution for destinations permitted by the environment network
|
|
833
|
+
* policy. Requires `environment.network.access` to be `restricted`, with explicit
|
|
834
|
+
* `allowed_domains`.
|
|
835
|
+
*/
|
|
836
|
+
export interface VaultCredentialNetworkingParamUnrestricted {
|
|
837
|
+
/**
|
|
838
|
+
* The type of the object. Always `unrestricted`.
|
|
839
|
+
*/
|
|
840
|
+
type: 'unrestricted';
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Allows substitution only for the listed hosts. The environment network policy
|
|
845
|
+
* must also allow these hosts.
|
|
846
|
+
*/
|
|
847
|
+
export interface VaultCredentialNetworkingParamLimited {
|
|
848
|
+
/**
|
|
849
|
+
* The 1 to 16 distinct allowed hostnames or IPv4 addresses, normalized to
|
|
850
|
+
* lowercase. Entries contain no scheme, path, port, or wildcard. IPv6 addresses
|
|
851
|
+
* are not supported.
|
|
852
|
+
*/
|
|
853
|
+
allowed_hosts: Array<string>;
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* The type of the object. Always `limited`.
|
|
857
|
+
*/
|
|
858
|
+
type: 'limited';
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
|
|
481
862
|
/**
|
|
482
863
|
* The client authentication method used for OAuth token refresh.
|
|
483
864
|
*/
|
|
@@ -612,7 +993,7 @@ export namespace McpOauthTokenEndpointAuthRotateParam {
|
|
|
612
993
|
|
|
613
994
|
export interface CredentialCreateParams {
|
|
614
995
|
/**
|
|
615
|
-
* The authentication method and secret values to store
|
|
996
|
+
* The authentication method and write-only secret values to store.
|
|
616
997
|
*/
|
|
617
998
|
auth: CredentialAuthCreateParam;
|
|
618
999
|
|
|
@@ -680,6 +1061,8 @@ export declare namespace Credentials {
|
|
|
680
1061
|
type CredentialAuthCreateParam as CredentialAuthCreateParam,
|
|
681
1062
|
type CredentialAuthRotateParam as CredentialAuthRotateParam,
|
|
682
1063
|
type CredentialDeleted as CredentialDeleted,
|
|
1064
|
+
type CredentialNetworking as CredentialNetworking,
|
|
1065
|
+
type CredentialNetworkingParam as CredentialNetworkingParam,
|
|
683
1066
|
type McpOauthTokenEndpointAuth as McpOauthTokenEndpointAuth,
|
|
684
1067
|
type McpOauthTokenEndpointAuthCreateParam as McpOauthTokenEndpointAuthCreateParam,
|
|
685
1068
|
type McpOauthTokenEndpointAuthRotateParam as McpOauthTokenEndpointAuthRotateParam,
|
|
@@ -7,6 +7,8 @@ export {
|
|
|
7
7
|
type CredentialAuthCreateParam,
|
|
8
8
|
type CredentialAuthRotateParam,
|
|
9
9
|
type CredentialDeleted,
|
|
10
|
+
type CredentialNetworking,
|
|
11
|
+
type CredentialNetworkingParam,
|
|
10
12
|
type McpOauthTokenEndpointAuth,
|
|
11
13
|
type McpOauthTokenEndpointAuthCreateParam,
|
|
12
14
|
type McpOauthTokenEndpointAuthRotateParam,
|