openai 7.19.0 → 7.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- 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 +58 -11
- package/resources/admin/organization/admin-api-keys.js.map +1 -1
- package/resources/admin/organization/admin-api-keys.mjs +58 -11
- package/resources/admin/organization/admin-api-keys.mjs.map +1 -1
- package/resources/admin/organization/audit-logs.d.mts +56 -3
- package/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/resources/admin/organization/audit-logs.d.ts +56 -3
- package/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/resources/admin/organization/audit-logs.js +69 -11
- package/resources/admin/organization/audit-logs.js.map +1 -1
- package/resources/admin/organization/audit-logs.mjs +69 -11
- package/resources/admin/organization/audit-logs.mjs.map +1 -1
- package/resources/admin/organization/certificates.d.mts +16 -2
- package/resources/admin/organization/certificates.d.mts.map +1 -1
- package/resources/admin/organization/certificates.d.ts +16 -2
- package/resources/admin/organization/certificates.d.ts.map +1 -1
- package/resources/admin/organization/certificates.js +64 -24
- package/resources/admin/organization/certificates.js.map +1 -1
- package/resources/admin/organization/certificates.mjs +64 -24
- package/resources/admin/organization/certificates.mjs.map +1 -1
- package/resources/admin/organization/external-storage.d.mts +141 -0
- package/resources/admin/organization/external-storage.d.mts.map +1 -0
- package/resources/admin/organization/external-storage.d.ts +141 -0
- package/resources/admin/organization/external-storage.d.ts.map +1 -0
- package/resources/admin/organization/external-storage.js +146 -0
- package/resources/admin/organization/external-storage.js.map +1 -0
- package/resources/admin/organization/external-storage.mjs +142 -0
- package/resources/admin/organization/external-storage.mjs.map +1 -0
- package/resources/admin/organization/groups/groups.d.mts +8 -1
- package/resources/admin/organization/groups/groups.d.mts.map +1 -1
- package/resources/admin/organization/groups/groups.d.ts +8 -1
- package/resources/admin/organization/groups/groups.d.ts.map +1 -1
- package/resources/admin/organization/groups/groups.js +58 -11
- package/resources/admin/organization/groups/groups.js.map +1 -1
- package/resources/admin/organization/groups/groups.mjs +58 -11
- package/resources/admin/organization/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/groups/roles.d.mts +8 -1
- package/resources/admin/organization/groups/roles.d.mts.map +1 -1
- package/resources/admin/organization/groups/roles.d.ts +8 -1
- package/resources/admin/organization/groups/roles.d.ts.map +1 -1
- package/resources/admin/organization/groups/roles.js +58 -13
- package/resources/admin/organization/groups/roles.js.map +1 -1
- package/resources/admin/organization/groups/roles.mjs +58 -13
- package/resources/admin/organization/groups/roles.mjs.map +1 -1
- package/resources/admin/organization/groups/users.d.mts +8 -1
- package/resources/admin/organization/groups/users.d.mts.map +1 -1
- package/resources/admin/organization/groups/users.d.ts +8 -1
- package/resources/admin/organization/groups/users.d.ts.map +1 -1
- package/resources/admin/organization/groups/users.js +58 -13
- package/resources/admin/organization/groups/users.js.map +1 -1
- package/resources/admin/organization/groups/users.mjs +58 -13
- package/resources/admin/organization/groups/users.mjs.map +1 -1
- package/resources/admin/organization/index.d.mts +1 -0
- package/resources/admin/organization/index.d.mts.map +1 -1
- package/resources/admin/organization/index.d.ts +1 -0
- package/resources/admin/organization/index.d.ts.map +1 -1
- package/resources/admin/organization/index.js +3 -1
- package/resources/admin/organization/index.js.map +1 -1
- package/resources/admin/organization/index.mjs +1 -0
- package/resources/admin/organization/index.mjs.map +1 -1
- package/resources/admin/organization/invites.d.mts +8 -1
- package/resources/admin/organization/invites.d.mts.map +1 -1
- package/resources/admin/organization/invites.d.ts +8 -1
- package/resources/admin/organization/invites.d.ts.map +1 -1
- package/resources/admin/organization/invites.js +58 -11
- package/resources/admin/organization/invites.js.map +1 -1
- package/resources/admin/organization/invites.mjs +58 -11
- package/resources/admin/organization/invites.mjs.map +1 -1
- package/resources/admin/organization/organization.d.mts +4 -0
- package/resources/admin/organization/organization.d.mts.map +1 -1
- package/resources/admin/organization/organization.d.ts +4 -0
- package/resources/admin/organization/organization.d.ts.map +1 -1
- package/resources/admin/organization/organization.js +4 -0
- package/resources/admin/organization/organization.js.map +1 -1
- package/resources/admin/organization/organization.mjs +4 -0
- package/resources/admin/organization/organization.mjs.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.mts +8 -1
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.ts +8 -1
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/api-keys.js +58 -13
- package/resources/admin/organization/projects/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/api-keys.mjs +58 -13
- package/resources/admin/organization/projects/api-keys.mjs.map +1 -1
- package/resources/admin/organization/projects/certificates.d.mts +8 -1
- package/resources/admin/organization/projects/certificates.d.mts.map +1 -1
- package/resources/admin/organization/projects/certificates.d.ts +8 -1
- package/resources/admin/organization/projects/certificates.d.ts.map +1 -1
- package/resources/admin/organization/projects/certificates.js +58 -13
- package/resources/admin/organization/projects/certificates.js.map +1 -1
- package/resources/admin/organization/projects/certificates.mjs +58 -13
- package/resources/admin/organization/projects/certificates.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/groups.d.mts +8 -1
- package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -1
- package/resources/admin/organization/projects/groups/groups.d.ts +8 -1
- package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -1
- package/resources/admin/organization/projects/groups/groups.js +58 -13
- package/resources/admin/organization/projects/groups/groups.js.map +1 -1
- package/resources/admin/organization/projects/groups/groups.mjs +58 -13
- package/resources/admin/organization/projects/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +8 -1
- package/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/resources/admin/organization/projects/projects.d.ts +8 -1
- package/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.js +58 -11
- package/resources/admin/organization/projects/projects.js.map +1 -1
- package/resources/admin/organization/projects/projects.mjs +58 -11
- package/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/resources/admin/organization/projects/rate-limits.d.mts +8 -1
- package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -1
- package/resources/admin/organization/projects/rate-limits.d.ts +8 -1
- package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -1
- package/resources/admin/organization/projects/rate-limits.js +58 -13
- package/resources/admin/organization/projects/rate-limits.js.map +1 -1
- package/resources/admin/organization/projects/rate-limits.mjs +58 -13
- package/resources/admin/organization/projects/rate-limits.mjs.map +1 -1
- package/resources/admin/organization/projects/roles.d.mts +8 -1
- package/resources/admin/organization/projects/roles.d.mts.map +1 -1
- package/resources/admin/organization/projects/roles.d.ts +8 -1
- package/resources/admin/organization/projects/roles.d.ts.map +1 -1
- package/resources/admin/organization/projects/roles.js +58 -13
- package/resources/admin/organization/projects/roles.js.map +1 -1
- package/resources/admin/organization/projects/roles.mjs +58 -13
- package/resources/admin/organization/projects/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +8 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +8 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js +58 -13
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +58 -13
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.d.mts +8 -1
- package/resources/admin/organization/projects/spend-alerts.d.mts.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.d.ts +8 -1
- package/resources/admin/organization/projects/spend-alerts.d.ts.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.js +58 -13
- package/resources/admin/organization/projects/spend-alerts.js.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.mjs +58 -13
- package/resources/admin/organization/projects/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/projects/users/users.d.mts +8 -1
- package/resources/admin/organization/projects/users/users.d.mts.map +1 -1
- package/resources/admin/organization/projects/users/users.d.ts +8 -1
- package/resources/admin/organization/projects/users/users.d.ts.map +1 -1
- package/resources/admin/organization/projects/users/users.js +58 -13
- package/resources/admin/organization/projects/users/users.js.map +1 -1
- package/resources/admin/organization/projects/users/users.mjs +58 -13
- package/resources/admin/organization/projects/users/users.mjs.map +1 -1
- package/resources/admin/organization/roles.d.mts +8 -1
- package/resources/admin/organization/roles.d.mts.map +1 -1
- package/resources/admin/organization/roles.d.ts +8 -1
- package/resources/admin/organization/roles.d.ts.map +1 -1
- package/resources/admin/organization/roles.js +58 -11
- package/resources/admin/organization/roles.js.map +1 -1
- package/resources/admin/organization/roles.mjs +58 -11
- package/resources/admin/organization/roles.mjs.map +1 -1
- package/resources/admin/organization/spend-alerts.d.mts +8 -1
- package/resources/admin/organization/spend-alerts.d.mts.map +1 -1
- package/resources/admin/organization/spend-alerts.d.ts +8 -1
- package/resources/admin/organization/spend-alerts.d.ts.map +1 -1
- package/resources/admin/organization/spend-alerts.js +58 -11
- package/resources/admin/organization/spend-alerts.js.map +1 -1
- package/resources/admin/organization/spend-alerts.mjs +58 -11
- package/resources/admin/organization/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/users/roles.d.mts +8 -1
- package/resources/admin/organization/users/roles.d.mts.map +1 -1
- package/resources/admin/organization/users/roles.d.ts +8 -1
- package/resources/admin/organization/users/roles.d.ts.map +1 -1
- package/resources/admin/organization/users/roles.js +58 -13
- package/resources/admin/organization/users/roles.js.map +1 -1
- package/resources/admin/organization/users/roles.mjs +58 -13
- package/resources/admin/organization/users/roles.mjs.map +1 -1
- package/resources/admin/organization/users/users.d.mts +8 -1
- package/resources/admin/organization/users/users.d.mts.map +1 -1
- package/resources/admin/organization/users/users.d.ts +8 -1
- package/resources/admin/organization/users/users.d.ts.map +1 -1
- package/resources/admin/organization/users/users.js +58 -11
- package/resources/admin/organization/users/users.js.map +1 -1
- package/resources/admin/organization/users/users.mjs +58 -11
- package/resources/admin/organization/users/users.mjs.map +1 -1
- package/resources/batches.d.mts +8 -1
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +8 -1
- package/resources/batches.d.ts.map +1 -1
- package/resources/batches.js +58 -3
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +58 -3
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/agents/agents.d.mts +61 -43
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +61 -43
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js +58 -12
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs +58 -12
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/environments/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 +58 -12
- package/resources/beta/agents/environments/templates.js.map +1 -1
- package/resources/beta/agents/environments/templates.mjs +58 -12
- package/resources/beta/agents/environments/templates.mjs.map +1 -1
- package/resources/beta/agents/sessions/artifacts.d.mts +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 +58 -14
- package/resources/beta/agents/sessions/artifacts.js.map +1 -1
- package/resources/beta/agents/sessions/artifacts.mjs +58 -14
- package/resources/beta/agents/sessions/artifacts.mjs.map +1 -1
- package/resources/beta/agents/sessions/items.d.mts +8 -1
- package/resources/beta/agents/sessions/items.d.mts.map +1 -1
- package/resources/beta/agents/sessions/items.d.ts +8 -1
- package/resources/beta/agents/sessions/items.d.ts.map +1 -1
- package/resources/beta/agents/sessions/items.js +58 -15
- package/resources/beta/agents/sessions/items.js.map +1 -1
- package/resources/beta/agents/sessions/items.mjs +58 -15
- package/resources/beta/agents/sessions/items.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts +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 +58 -13
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs +58 -13
- package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.mts +8 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.ts +8 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.ts.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.js +58 -14
- package/resources/beta/agents/sessions/subagents/subagents.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.mjs +58 -14
- package/resources/beta/agents/sessions/subagents/subagents.mjs.map +1 -1
- package/resources/beta/agents/sessions/turns.d.mts +11 -3
- package/resources/beta/agents/sessions/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/turns.d.ts +11 -3
- package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/turns.js +58 -15
- package/resources/beta/agents/sessions/turns.js.map +1 -1
- package/resources/beta/agents/sessions/turns.mjs +58 -15
- package/resources/beta/agents/sessions/turns.mjs.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.mts +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 +58 -15
- package/resources/beta/agents/vaults/credentials.js.map +1 -1
- package/resources/beta/agents/vaults/credentials.mjs +58 -15
- package/resources/beta/agents/vaults/credentials.mjs.map +1 -1
- package/resources/beta/agents/vaults/index.d.mts +1 -1
- package/resources/beta/agents/vaults/index.d.mts.map +1 -1
- package/resources/beta/agents/vaults/index.d.ts +1 -1
- package/resources/beta/agents/vaults/index.d.ts.map +1 -1
- package/resources/beta/agents/vaults/index.js.map +1 -1
- package/resources/beta/agents/vaults/index.mjs.map +1 -1
- package/resources/beta/agents/vaults/vaults.d.mts +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 +58 -12
- package/resources/beta/agents/vaults/vaults.js.map +1 -1
- package/resources/beta/agents/vaults/vaults.mjs +58 -12
- package/resources/beta/agents/vaults/vaults.mjs.map +1 -1
- package/resources/beta/assistants.d.mts +8 -1
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts +8 -1
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/assistants.js +58 -5
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +58 -5
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/chatkit/threads.d.mts +16 -2
- package/resources/beta/chatkit/threads.d.mts.map +1 -1
- package/resources/beta/chatkit/threads.d.ts +16 -2
- package/resources/beta/chatkit/threads.d.ts.map +1 -1
- package/resources/beta/chatkit/threads.js +64 -24
- package/resources/beta/chatkit/threads.js.map +1 -1
- package/resources/beta/chatkit/threads.mjs +64 -24
- package/resources/beta/chatkit/threads.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +4 -5
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +4 -5
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts +8 -1
- package/resources/beta/threads/messages.d.mts.map +1 -1
- package/resources/beta/threads/messages.d.ts +8 -1
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js +58 -5
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +58 -5
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts +8 -1
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +8 -1
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +58 -5
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +58 -5
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +13 -3
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +13 -3
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +58 -12
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +58 -12
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/chat/completions/messages.d.mts +8 -1
- package/resources/chat/completions/messages.d.mts.map +1 -1
- package/resources/chat/completions/messages.d.ts +8 -1
- package/resources/chat/completions/messages.d.ts.map +1 -1
- package/resources/chat/completions/messages.js +58 -14
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs +58 -14
- package/resources/chat/completions/messages.mjs.map +1 -1
- package/resources/containers/containers.d.mts +8 -1
- package/resources/containers/containers.d.mts.map +1 -1
- package/resources/containers/containers.d.ts +8 -1
- package/resources/containers/containers.d.ts.map +1 -1
- package/resources/containers/containers.js +58 -3
- package/resources/containers/containers.js.map +1 -1
- package/resources/containers/containers.mjs +58 -3
- package/resources/containers/containers.mjs.map +1 -1
- package/resources/containers/files/files.d.mts +8 -1
- package/resources/containers/files/files.d.mts.map +1 -1
- package/resources/containers/files/files.d.ts +8 -1
- package/resources/containers/files/files.d.ts.map +1 -1
- package/resources/containers/files/files.js +58 -3
- package/resources/containers/files/files.js.map +1 -1
- package/resources/containers/files/files.mjs +58 -3
- package/resources/containers/files/files.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts +3 -4
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts +3 -4
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/items.d.mts +8 -1
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +8 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js +58 -3
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs +58 -3
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/evals/evals.d.mts +8 -1
- package/resources/evals/evals.d.mts.map +1 -1
- package/resources/evals/evals.d.ts +8 -1
- package/resources/evals/evals.d.ts.map +1 -1
- package/resources/evals/evals.js +58 -3
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs +58 -3
- package/resources/evals/evals.mjs.map +1 -1
- package/resources/evals/runs/runs.d.mts +8 -1
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts +8 -1
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js +58 -3
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +58 -3
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/files.d.mts +8 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +8 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +58 -3
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +58 -3
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.mts +16 -2
- package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts +16 -2
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +64 -26
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +64 -26
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.mts +8 -1
- package/resources/fine-tuning/jobs/checkpoints.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.ts +8 -1
- package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js +58 -13
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +58 -13
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts +16 -2
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +16 -2
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +64 -24
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +64 -24
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/images.d.mts +3 -4
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +3 -4
- package/resources/images.d.ts.map +1 -1
- package/resources/responses/input-items.d.mts +8 -1
- package/resources/responses/input-items.d.mts.map +1 -1
- package/resources/responses/input-items.d.ts +8 -1
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/input-items.js +58 -13
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +58 -13
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/responses.d.mts +18 -8
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +18 -8
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +58 -0
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +58 -0
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/safety/cases.d.mts +26 -0
- package/resources/safety/cases.d.mts.map +1 -0
- package/resources/safety/cases.d.ts +26 -0
- package/resources/safety/cases.d.ts.map +1 -0
- package/resources/safety/cases.js +16 -0
- package/resources/safety/cases.js.map +1 -0
- package/resources/safety/cases.mjs +12 -0
- package/resources/safety/cases.mjs.map +1 -0
- package/resources/safety/index.d.mts +1 -0
- package/resources/safety/index.d.mts.map +1 -1
- package/resources/safety/index.d.ts +1 -0
- package/resources/safety/index.d.ts.map +1 -1
- package/resources/safety/index.js +3 -1
- package/resources/safety/index.js.map +1 -1
- package/resources/safety/index.mjs +1 -0
- package/resources/safety/index.mjs.map +1 -1
- package/resources/safety/safety.d.mts +4 -0
- package/resources/safety/safety.d.mts.map +1 -1
- package/resources/safety/safety.d.ts +4 -0
- package/resources/safety/safety.d.ts.map +1 -1
- package/resources/safety/safety.js +4 -0
- package/resources/safety/safety.js.map +1 -1
- package/resources/safety/safety.mjs +4 -0
- package/resources/safety/safety.mjs.map +1 -1
- package/resources/skills/skills.d.mts +8 -1
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +8 -1
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +58 -3
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +58 -3
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions/versions.d.mts +8 -1
- package/resources/skills/versions/versions.d.mts.map +1 -1
- package/resources/skills/versions/versions.d.ts +8 -1
- package/resources/skills/versions/versions.d.ts.map +1 -1
- package/resources/skills/versions/versions.js +58 -3
- package/resources/skills/versions/versions.js.map +1 -1
- package/resources/skills/versions/versions.mjs +58 -3
- package/resources/skills/versions/versions.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +8 -1
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +8 -1
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +58 -3
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +58 -3
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +8 -1
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +8 -1
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +58 -3
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +58 -3
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/videos.d.mts +16 -2
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +16 -2
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +64 -12
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +64 -12
- package/resources/videos.mjs.map +1 -1
- package/resources/webhooks/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 +58 -11
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +58 -11
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/src/resources/admin/organization/admin-api-keys.ts +200 -1
- package/src/resources/admin/organization/audit-logs.ts +270 -1
- package/src/resources/admin/organization/certificates.ts +295 -2
- package/src/resources/admin/organization/external-storage.ts +420 -0
- package/src/resources/admin/organization/groups/groups.ts +200 -1
- package/src/resources/admin/organization/groups/roles.ts +202 -1
- package/src/resources/admin/organization/groups/users.ts +202 -1
- package/src/resources/admin/organization/index.ts +10 -0
- package/src/resources/admin/organization/invites.ts +200 -1
- package/src/resources/admin/organization/organization.ts +24 -0
- package/src/resources/admin/organization/projects/api-keys.ts +202 -1
- package/src/resources/admin/organization/projects/certificates.ts +202 -1
- package/src/resources/admin/organization/projects/groups/groups.ts +202 -1
- package/src/resources/admin/organization/projects/projects.ts +200 -1
- package/src/resources/admin/organization/projects/rate-limits.ts +202 -1
- package/src/resources/admin/organization/projects/roles.ts +202 -1
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +202 -1
- package/src/resources/admin/organization/projects/spend-alerts.ts +202 -1
- package/src/resources/admin/organization/projects/users/users.ts +202 -1
- package/src/resources/admin/organization/roles.ts +200 -1
- package/src/resources/admin/organization/spend-alerts.ts +200 -1
- package/src/resources/admin/organization/users/roles.ts +202 -1
- package/src/resources/admin/organization/users/users.ts +200 -1
- package/src/resources/batches.ts +200 -1
- package/src/resources/beta/agents/agents.ts +253 -43
- package/src/resources/beta/agents/environments/templates.ts +214 -9
- package/src/resources/beta/agents/sessions/artifacts.ts +202 -1
- package/src/resources/beta/agents/sessions/items.ts +202 -1
- package/src/resources/beta/agents/sessions/sessions.ts +209 -6
- package/src/resources/beta/agents/sessions/subagents/subagents.ts +202 -1
- package/src/resources/beta/agents/sessions/turns.ts +205 -3
- package/src/resources/beta/agents/vaults/credentials.ts +382 -22
- package/src/resources/beta/agents/vaults/index.ts +2 -0
- package/src/resources/beta/agents/vaults/vaults.ts +205 -3
- package/src/resources/beta/assistants.ts +200 -1
- package/src/resources/beta/chatkit/threads.ts +311 -2
- package/src/resources/beta/responses/responses.ts +4 -5
- package/src/resources/beta/threads/messages.ts +202 -1
- package/src/resources/beta/threads/runs/runs.ts +202 -1
- package/src/resources/chat/completions/completions.ts +205 -3
- package/src/resources/chat/completions/messages.ts +202 -1
- package/src/resources/containers/containers.ts +200 -1
- package/src/resources/containers/files/files.ts +202 -1
- package/src/resources/conversations/conversations.ts +3 -4
- package/src/resources/conversations/items.ts +202 -1
- package/src/resources/evals/evals.ts +200 -1
- package/src/resources/evals/runs/runs.ts +202 -1
- package/src/resources/files.ts +200 -1
- package/src/resources/fine-tuning/checkpoints/permissions.ts +297 -2
- package/src/resources/fine-tuning/jobs/checkpoints.ts +202 -1
- package/src/resources/fine-tuning/jobs/jobs.ts +295 -2
- package/src/resources/images.ts +3 -4
- package/src/resources/responses/input-items.ts +202 -1
- package/src/resources/responses/responses.ts +255 -9
- package/src/resources/safety/cases.ts +39 -0
- package/src/resources/safety/index.ts +1 -0
- package/src/resources/safety/safety.ts +6 -0
- package/src/resources/skills/skills.ts +200 -1
- package/src/resources/skills/versions/versions.ts +202 -1
- package/src/resources/vector-stores/files.ts +202 -1
- package/src/resources/vector-stores/vector-stores.ts +200 -1
- package/src/resources/videos.ts +295 -2
- package/src/resources/webhooks/api.md +2 -0
- package/src/resources/webhooks/webhooks.ts +301 -2
- 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,113 @@ import { buildHeaders } from '../../../../internal/headers';
|
|
|
9
9
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
10
10
|
import { path } from '../../../../internal/utils/path';
|
|
11
11
|
|
|
12
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
13
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
14
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
15
|
+
'method',
|
|
16
|
+
'path',
|
|
17
|
+
'query',
|
|
18
|
+
'body',
|
|
19
|
+
'headers',
|
|
20
|
+
'maxRetries',
|
|
21
|
+
'stream',
|
|
22
|
+
'timeout',
|
|
23
|
+
'httpAgent',
|
|
24
|
+
'fetchOptions',
|
|
25
|
+
'signal',
|
|
26
|
+
'idempotencyKey',
|
|
27
|
+
'defaultBaseURL',
|
|
28
|
+
'__metadata',
|
|
29
|
+
'__binaryRequest',
|
|
30
|
+
'__binaryResponse',
|
|
31
|
+
'__streamClass',
|
|
32
|
+
'__security',
|
|
33
|
+
'__synthesizeEventData',
|
|
34
|
+
]);
|
|
35
|
+
|
|
36
|
+
function normalizeRequestOptionsForQuery(
|
|
37
|
+
value: unknown,
|
|
38
|
+
queryKeys: ReadonlyArray<string>,
|
|
39
|
+
options: RequestOptions | undefined,
|
|
40
|
+
):
|
|
41
|
+
| ({
|
|
42
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
43
|
+
} & {
|
|
44
|
+
[
|
|
45
|
+
K in
|
|
46
|
+
| 'method'
|
|
47
|
+
| 'path'
|
|
48
|
+
| 'body'
|
|
49
|
+
| 'stream'
|
|
50
|
+
| 'httpAgent'
|
|
51
|
+
| 'fetchOptions'
|
|
52
|
+
| 'defaultBaseURL'
|
|
53
|
+
| '__metadata'
|
|
54
|
+
| '__binaryRequest'
|
|
55
|
+
| '__binaryResponse'
|
|
56
|
+
| '__streamClass'
|
|
57
|
+
| '__security'
|
|
58
|
+
| '__synthesizeEventData'
|
|
59
|
+
]?: never;
|
|
60
|
+
})
|
|
61
|
+
| undefined {
|
|
62
|
+
if (typeof value !== 'object' || value === null) return undefined;
|
|
63
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
64
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
65
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(
|
|
66
|
+
([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined),
|
|
67
|
+
);
|
|
68
|
+
const keys = entries.map(([key]) => key);
|
|
69
|
+
const requestOnly = keys.some(
|
|
70
|
+
(key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key),
|
|
71
|
+
);
|
|
72
|
+
if (!requestOnly) return undefined;
|
|
73
|
+
// Declared query fields, including stream, must use the query argument.
|
|
74
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
75
|
+
if (
|
|
76
|
+
options !== undefined ||
|
|
77
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))
|
|
78
|
+
) {
|
|
79
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
80
|
+
}
|
|
81
|
+
// The query position must not gain authority to change the request destination
|
|
82
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
83
|
+
if (
|
|
84
|
+
keys.some(
|
|
85
|
+
(key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key),
|
|
86
|
+
)
|
|
87
|
+
) {
|
|
88
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
89
|
+
}
|
|
90
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
91
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
92
|
+
return Object.fromEntries(
|
|
93
|
+
entries.map(([key, descriptor]) => {
|
|
94
|
+
if ('value' in descriptor) return [key, descriptor.value];
|
|
95
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
96
|
+
}),
|
|
97
|
+
) as {
|
|
98
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
99
|
+
} & {
|
|
100
|
+
[
|
|
101
|
+
K in
|
|
102
|
+
| 'method'
|
|
103
|
+
| 'path'
|
|
104
|
+
| 'body'
|
|
105
|
+
| 'stream'
|
|
106
|
+
| 'httpAgent'
|
|
107
|
+
| 'fetchOptions'
|
|
108
|
+
| 'defaultBaseURL'
|
|
109
|
+
| '__metadata'
|
|
110
|
+
| '__binaryRequest'
|
|
111
|
+
| '__binaryResponse'
|
|
112
|
+
| '__streamClass'
|
|
113
|
+
| '__security'
|
|
114
|
+
| '__synthesizeEventData'
|
|
115
|
+
]?: never;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
12
119
|
export class Credentials extends APIResource {
|
|
13
120
|
/**
|
|
14
121
|
* Creates a vault credential. Secret values are write-only and are never returned.
|
|
@@ -114,9 +221,103 @@ export class Credentials extends APIResource {
|
|
|
114
221
|
*/
|
|
115
222
|
list(
|
|
116
223
|
vaultID: string,
|
|
117
|
-
query
|
|
224
|
+
query?:
|
|
225
|
+
| (CredentialListParams &
|
|
226
|
+
(
|
|
227
|
+
| {
|
|
228
|
+
[
|
|
229
|
+
K in
|
|
230
|
+
| 'method'
|
|
231
|
+
| 'path'
|
|
232
|
+
| 'query'
|
|
233
|
+
| 'body'
|
|
234
|
+
| 'headers'
|
|
235
|
+
| 'maxRetries'
|
|
236
|
+
| 'stream'
|
|
237
|
+
| 'timeout'
|
|
238
|
+
| 'httpAgent'
|
|
239
|
+
| 'fetchOptions'
|
|
240
|
+
| 'signal'
|
|
241
|
+
| 'idempotencyKey'
|
|
242
|
+
| 'defaultBaseURL'
|
|
243
|
+
| '__metadata'
|
|
244
|
+
| '__binaryRequest'
|
|
245
|
+
| '__binaryResponse'
|
|
246
|
+
| '__streamClass'
|
|
247
|
+
| '__security'
|
|
248
|
+
| '__synthesizeEventData'
|
|
249
|
+
]?: never;
|
|
250
|
+
}
|
|
251
|
+
| null
|
|
252
|
+
| undefined
|
|
253
|
+
))
|
|
254
|
+
| null
|
|
255
|
+
| undefined,
|
|
256
|
+
options?: RequestOptions,
|
|
257
|
+
): PagePromise<CredentialsPage, Credential>;
|
|
258
|
+
list(
|
|
259
|
+
vaultID: string,
|
|
260
|
+
options?: {
|
|
261
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
262
|
+
} & {
|
|
263
|
+
[
|
|
264
|
+
K in
|
|
265
|
+
| 'method'
|
|
266
|
+
| 'path'
|
|
267
|
+
| 'body'
|
|
268
|
+
| 'stream'
|
|
269
|
+
| 'httpAgent'
|
|
270
|
+
| 'fetchOptions'
|
|
271
|
+
| 'defaultBaseURL'
|
|
272
|
+
| '__metadata'
|
|
273
|
+
| '__binaryRequest'
|
|
274
|
+
| '__binaryResponse'
|
|
275
|
+
| '__streamClass'
|
|
276
|
+
| '__security'
|
|
277
|
+
| '__synthesizeEventData'
|
|
278
|
+
]?: never;
|
|
279
|
+
},
|
|
280
|
+
): PagePromise<CredentialsPage, Credential>;
|
|
281
|
+
list(
|
|
282
|
+
vaultID: string,
|
|
283
|
+
query:
|
|
284
|
+
| CredentialListParams
|
|
285
|
+
| ({
|
|
286
|
+
[
|
|
287
|
+
K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query'
|
|
288
|
+
]?: RequestOptions[K];
|
|
289
|
+
} & {
|
|
290
|
+
[
|
|
291
|
+
K in
|
|
292
|
+
| 'method'
|
|
293
|
+
| 'path'
|
|
294
|
+
| 'body'
|
|
295
|
+
| 'stream'
|
|
296
|
+
| 'httpAgent'
|
|
297
|
+
| 'fetchOptions'
|
|
298
|
+
| 'defaultBaseURL'
|
|
299
|
+
| '__metadata'
|
|
300
|
+
| '__binaryRequest'
|
|
301
|
+
| '__binaryResponse'
|
|
302
|
+
| '__streamClass'
|
|
303
|
+
| '__security'
|
|
304
|
+
| '__synthesizeEventData'
|
|
305
|
+
]?: never;
|
|
306
|
+
})
|
|
307
|
+
| null
|
|
308
|
+
| undefined = {},
|
|
118
309
|
options?: RequestOptions,
|
|
119
310
|
): PagePromise<CredentialsPage, Credential> {
|
|
311
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(
|
|
312
|
+
query,
|
|
313
|
+
['after', 'limit', 'order', 'status'],
|
|
314
|
+
options,
|
|
315
|
+
);
|
|
316
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
317
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
318
|
+
query = {};
|
|
319
|
+
}
|
|
320
|
+
query = query as CredentialListParams | null | undefined;
|
|
120
321
|
return this._client.getAPIList(path`/vaults/${vaultID}/credentials`, CursorPage<Credential>, {
|
|
121
322
|
query,
|
|
122
323
|
...options,
|
|
@@ -155,7 +356,7 @@ export class Credentials extends APIResource {
|
|
|
155
356
|
export type CredentialsPage = CursorPage<Credential>;
|
|
156
357
|
|
|
157
358
|
/**
|
|
158
|
-
* Metadata for a stored
|
|
359
|
+
* Metadata for a stored credential. Secret values are never returned.
|
|
159
360
|
*/
|
|
160
361
|
export interface Credential {
|
|
161
362
|
/**
|
|
@@ -164,7 +365,7 @@ export interface Credential {
|
|
|
164
365
|
id: string;
|
|
165
366
|
|
|
166
367
|
/**
|
|
167
|
-
* The authentication method and non-secret configuration
|
|
368
|
+
* The authentication method and non-secret configuration of the credential.
|
|
168
369
|
*/
|
|
169
370
|
auth: CredentialAuth;
|
|
170
371
|
|
|
@@ -195,12 +396,12 @@ export interface Credential {
|
|
|
195
396
|
}
|
|
196
397
|
|
|
197
398
|
/**
|
|
198
|
-
* The
|
|
199
|
-
* secrets.
|
|
399
|
+
* The authentication configuration of a vault credential, excluding secrets.
|
|
200
400
|
*/
|
|
201
401
|
export type CredentialAuth =
|
|
202
402
|
| CredentialAuth.VaultCredentialAuthResourceMcpOauth
|
|
203
|
-
| CredentialAuth.VaultCredentialAuthResourceStaticBearer
|
|
403
|
+
| CredentialAuth.VaultCredentialAuthResourceStaticBearer
|
|
404
|
+
| CredentialAuth.VaultCredentialAuthResourceEnvironmentVariable;
|
|
204
405
|
|
|
205
406
|
export namespace CredentialAuth {
|
|
206
407
|
/**
|
|
@@ -219,8 +420,7 @@ export namespace CredentialAuth {
|
|
|
219
420
|
mcp_server_url: string;
|
|
220
421
|
|
|
221
422
|
/**
|
|
222
|
-
*
|
|
223
|
-
* values.
|
|
423
|
+
* Public refresh metadata without refresh tokens or OAuth client secrets.
|
|
224
424
|
*/
|
|
225
425
|
refresh: VaultCredentialAuthResourceMcpOauth.Refresh | null;
|
|
226
426
|
|
|
@@ -232,8 +432,7 @@ export namespace CredentialAuth {
|
|
|
232
432
|
|
|
233
433
|
export namespace VaultCredentialAuthResourceMcpOauth {
|
|
234
434
|
/**
|
|
235
|
-
*
|
|
236
|
-
* values.
|
|
435
|
+
* Public refresh metadata without refresh tokens or OAuth client secrets.
|
|
237
436
|
*/
|
|
238
437
|
export interface Refresh {
|
|
239
438
|
/**
|
|
@@ -278,14 +477,39 @@ export namespace CredentialAuth {
|
|
|
278
477
|
*/
|
|
279
478
|
type: 'static_bearer';
|
|
280
479
|
}
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Metadata for an HTTP credential used only in OpenAI-hosted environments. Sandbox
|
|
483
|
+
* code receives a placeholder. The proxy substitutes the secret for allowed HTTPS
|
|
484
|
+
* destinations on ports 443 and 8443. The real secret is not available to sandbox
|
|
485
|
+
* code for local computation and is never returned in this resource.
|
|
486
|
+
*/
|
|
487
|
+
export interface VaultCredentialAuthResourceEnvironmentVariable {
|
|
488
|
+
/**
|
|
489
|
+
* The destinations where the proxy can substitute the secret, subject to the
|
|
490
|
+
* environment network policy.
|
|
491
|
+
*/
|
|
492
|
+
networking: CredentialsAPI.CredentialNetworking;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* The environment variable name that receives the placeholder in the sandbox.
|
|
496
|
+
*/
|
|
497
|
+
secret_name: string;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* The type of the object. Always `environment_variable`.
|
|
501
|
+
*/
|
|
502
|
+
type: 'environment_variable';
|
|
503
|
+
}
|
|
281
504
|
}
|
|
282
505
|
|
|
283
506
|
/**
|
|
284
|
-
* Authentication credentials for an MCP server
|
|
507
|
+
* Authentication credentials for an MCP server or an OpenAI-hosted environment.
|
|
285
508
|
*/
|
|
286
509
|
export type CredentialAuthCreateParam =
|
|
287
510
|
| CredentialAuthCreateParam.CreateVaultCredentialAuthParamMcpOauth
|
|
288
|
-
| CredentialAuthCreateParam.CreateVaultCredentialAuthParamStaticBearer
|
|
511
|
+
| CredentialAuthCreateParam.CreateVaultCredentialAuthParamStaticBearer
|
|
512
|
+
| CredentialAuthCreateParam.CreateVaultCredentialAuthParamEnvironmentVariable;
|
|
289
513
|
|
|
290
514
|
export namespace CredentialAuthCreateParam {
|
|
291
515
|
/**
|
|
@@ -313,14 +537,14 @@ export namespace CredentialAuthCreateParam {
|
|
|
313
537
|
expires_at?: string | null;
|
|
314
538
|
|
|
315
539
|
/**
|
|
316
|
-
*
|
|
540
|
+
* Optional refresh configuration for an HTTPS OAuth token endpoint.
|
|
317
541
|
*/
|
|
318
542
|
refresh?: CreateVaultCredentialAuthParamMcpOauth.Refresh | null;
|
|
319
543
|
}
|
|
320
544
|
|
|
321
545
|
export namespace CreateVaultCredentialAuthParamMcpOauth {
|
|
322
546
|
/**
|
|
323
|
-
*
|
|
547
|
+
* Optional refresh configuration for an HTTPS OAuth token endpoint.
|
|
324
548
|
*/
|
|
325
549
|
export interface Refresh {
|
|
326
550
|
/**
|
|
@@ -378,15 +602,52 @@ export namespace CredentialAuthCreateParam {
|
|
|
378
602
|
*/
|
|
379
603
|
type: 'static_bearer';
|
|
380
604
|
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* An HTTP credential for OpenAI-hosted environments only. The sandbox receives an
|
|
608
|
+
* environment variable containing a placeholder, not the secret. Use the
|
|
609
|
+
* placeholder unchanged in outgoing requests. The egress proxy replaces the
|
|
610
|
+
* placeholder with the secret for allowed HTTPS destinations on ports 443 and
|
|
611
|
+
* 8443. Sandbox code cannot read the real secret or use it for local computation,
|
|
612
|
+
* such as signing a request.
|
|
613
|
+
*/
|
|
614
|
+
export interface CreateVaultCredentialAuthParamEnvironmentVariable {
|
|
615
|
+
/**
|
|
616
|
+
* The destinations where the proxy can substitute this secret. The environment
|
|
617
|
+
* network policy must also allow them.
|
|
618
|
+
*/
|
|
619
|
+
networking: CredentialsAPI.CredentialNetworkingParam;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* The environment variable name that receives the placeholder, such as
|
|
623
|
+
* `SERVICE_API_KEY`. Use ASCII letters, digits, and underscores, starting with a
|
|
624
|
+
* letter or underscore. Names starting with `CODEX_` and managed proxy or
|
|
625
|
+
* certificate variable names are reserved.
|
|
626
|
+
*/
|
|
627
|
+
secret_name: string;
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* The write-only secret to store. Never returned in credential resources or
|
|
631
|
+
* supplied directly to sandbox code. Must be nonempty and must not contain
|
|
632
|
+
* carriage returns, newlines, or NUL bytes.
|
|
633
|
+
*/
|
|
634
|
+
secret_value: string;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* The type of the object. Always `environment_variable`.
|
|
638
|
+
*/
|
|
639
|
+
type: 'environment_variable';
|
|
640
|
+
}
|
|
381
641
|
}
|
|
382
642
|
|
|
383
643
|
/**
|
|
384
|
-
* Updates to a vault credential without changing its authentication method or
|
|
385
|
-
*
|
|
644
|
+
* Updates to a vault credential without changing its authentication method or
|
|
645
|
+
* destination configuration.
|
|
386
646
|
*/
|
|
387
647
|
export type CredentialAuthRotateParam =
|
|
388
648
|
| CredentialAuthRotateParam.RotateVaultCredentialAuthParamMcpOauth
|
|
389
|
-
| CredentialAuthRotateParam.RotateVaultCredentialAuthParamStaticBearer
|
|
649
|
+
| CredentialAuthRotateParam.RotateVaultCredentialAuthParamStaticBearer
|
|
650
|
+
| CredentialAuthRotateParam.RotateVaultCredentialAuthParamEnvironmentVariable;
|
|
390
651
|
|
|
391
652
|
export namespace CredentialAuthRotateParam {
|
|
392
653
|
/**
|
|
@@ -411,14 +672,14 @@ export namespace CredentialAuthRotateParam {
|
|
|
411
672
|
expires_at?: string | null;
|
|
412
673
|
|
|
413
674
|
/**
|
|
414
|
-
*
|
|
675
|
+
* Optional write-only refresh-token and client-secret updates.
|
|
415
676
|
*/
|
|
416
677
|
refresh?: RotateVaultCredentialAuthParamMcpOauth.Refresh | null;
|
|
417
678
|
}
|
|
418
679
|
|
|
419
680
|
export namespace RotateVaultCredentialAuthParamMcpOauth {
|
|
420
681
|
/**
|
|
421
|
-
*
|
|
682
|
+
* Optional write-only refresh-token and client-secret updates.
|
|
422
683
|
*/
|
|
423
684
|
export interface Refresh {
|
|
424
685
|
/**
|
|
@@ -434,8 +695,7 @@ export namespace CredentialAuthRotateParam {
|
|
|
434
695
|
scope?: string | null;
|
|
435
696
|
|
|
436
697
|
/**
|
|
437
|
-
* Client-secret updates
|
|
438
|
-
* method.
|
|
698
|
+
* Client-secret updates for the existing token endpoint authentication method.
|
|
439
699
|
*/
|
|
440
700
|
token_endpoint_auth?: CredentialsAPI.McpOauthTokenEndpointAuthRotateParam | null;
|
|
441
701
|
}
|
|
@@ -456,6 +716,24 @@ export namespace CredentialAuthRotateParam {
|
|
|
456
716
|
*/
|
|
457
717
|
type: 'static_bearer';
|
|
458
718
|
}
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Replace the secret for an OpenAI-hosted environment credential. The environment
|
|
722
|
+
* variable name and networking configuration remain unchanged.
|
|
723
|
+
*/
|
|
724
|
+
export interface RotateVaultCredentialAuthParamEnvironmentVariable {
|
|
725
|
+
/**
|
|
726
|
+
* The write-only replacement secret. Never returned in credential resources or
|
|
727
|
+
* supplied directly to sandbox code. Must be nonempty and must not contain
|
|
728
|
+
* carriage returns, newlines, or NUL bytes.
|
|
729
|
+
*/
|
|
730
|
+
secret_value: string;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* The type of the object. Always `environment_variable`.
|
|
734
|
+
*/
|
|
735
|
+
type: 'environment_variable';
|
|
736
|
+
}
|
|
459
737
|
}
|
|
460
738
|
|
|
461
739
|
/**
|
|
@@ -478,6 +756,86 @@ export interface CredentialDeleted {
|
|
|
478
756
|
object: 'vault.credential.deleted';
|
|
479
757
|
}
|
|
480
758
|
|
|
759
|
+
/**
|
|
760
|
+
* Destination permissions for an environment-variable credential. These do not
|
|
761
|
+
* grant network access to the environment.
|
|
762
|
+
*/
|
|
763
|
+
export type CredentialNetworking =
|
|
764
|
+
| CredentialNetworking.VaultCredentialNetworkingResourceUnrestricted
|
|
765
|
+
| CredentialNetworking.VaultCredentialNetworkingResourceLimited;
|
|
766
|
+
|
|
767
|
+
export namespace CredentialNetworking {
|
|
768
|
+
/**
|
|
769
|
+
* Allows substitution for destinations permitted by the environment network
|
|
770
|
+
* policy. Requires `environment.network.access` to be `restricted`, with explicit
|
|
771
|
+
* `allowed_domains`.
|
|
772
|
+
*/
|
|
773
|
+
export interface VaultCredentialNetworkingResourceUnrestricted {
|
|
774
|
+
/**
|
|
775
|
+
* The type of the object. Always `unrestricted`.
|
|
776
|
+
*/
|
|
777
|
+
type: 'unrestricted';
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Allows substitution only for the listed hosts. The environment network policy
|
|
782
|
+
* must also allow these hosts.
|
|
783
|
+
*/
|
|
784
|
+
export interface VaultCredentialNetworkingResourceLimited {
|
|
785
|
+
/**
|
|
786
|
+
* The 1 to 16 distinct allowed hostnames or IPv4 addresses, normalized to
|
|
787
|
+
* lowercase. Entries contain no scheme, path, port, or wildcard. IPv6 addresses
|
|
788
|
+
* are not supported.
|
|
789
|
+
*/
|
|
790
|
+
allowed_hosts: Array<string>;
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* The type of the object. Always `limited`.
|
|
794
|
+
*/
|
|
795
|
+
type: 'limited';
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Destination permissions for an environment-variable credential. These do not
|
|
801
|
+
* grant network access to the environment.
|
|
802
|
+
*/
|
|
803
|
+
export type CredentialNetworkingParam =
|
|
804
|
+
| CredentialNetworkingParam.VaultCredentialNetworkingParamUnrestricted
|
|
805
|
+
| CredentialNetworkingParam.VaultCredentialNetworkingParamLimited;
|
|
806
|
+
|
|
807
|
+
export namespace CredentialNetworkingParam {
|
|
808
|
+
/**
|
|
809
|
+
* Allows substitution for destinations permitted by the environment network
|
|
810
|
+
* policy. Requires `environment.network.access` to be `restricted`, with explicit
|
|
811
|
+
* `allowed_domains`.
|
|
812
|
+
*/
|
|
813
|
+
export interface VaultCredentialNetworkingParamUnrestricted {
|
|
814
|
+
/**
|
|
815
|
+
* The type of the object. Always `unrestricted`.
|
|
816
|
+
*/
|
|
817
|
+
type: 'unrestricted';
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Allows substitution only for the listed hosts. The environment network policy
|
|
822
|
+
* must also allow these hosts.
|
|
823
|
+
*/
|
|
824
|
+
export interface VaultCredentialNetworkingParamLimited {
|
|
825
|
+
/**
|
|
826
|
+
* The 1 to 16 distinct allowed hostnames or IPv4 addresses, normalized to
|
|
827
|
+
* lowercase. Entries contain no scheme, path, port, or wildcard. IPv6 addresses
|
|
828
|
+
* are not supported.
|
|
829
|
+
*/
|
|
830
|
+
allowed_hosts: Array<string>;
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* The type of the object. Always `limited`.
|
|
834
|
+
*/
|
|
835
|
+
type: 'limited';
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
|
|
481
839
|
/**
|
|
482
840
|
* The client authentication method used for OAuth token refresh.
|
|
483
841
|
*/
|
|
@@ -612,7 +970,7 @@ export namespace McpOauthTokenEndpointAuthRotateParam {
|
|
|
612
970
|
|
|
613
971
|
export interface CredentialCreateParams {
|
|
614
972
|
/**
|
|
615
|
-
* The authentication method and secret values to store
|
|
973
|
+
* The authentication method and write-only secret values to store.
|
|
616
974
|
*/
|
|
617
975
|
auth: CredentialAuthCreateParam;
|
|
618
976
|
|
|
@@ -680,6 +1038,8 @@ export declare namespace Credentials {
|
|
|
680
1038
|
type CredentialAuthCreateParam as CredentialAuthCreateParam,
|
|
681
1039
|
type CredentialAuthRotateParam as CredentialAuthRotateParam,
|
|
682
1040
|
type CredentialDeleted as CredentialDeleted,
|
|
1041
|
+
type CredentialNetworking as CredentialNetworking,
|
|
1042
|
+
type CredentialNetworkingParam as CredentialNetworkingParam,
|
|
683
1043
|
type McpOauthTokenEndpointAuth as McpOauthTokenEndpointAuth,
|
|
684
1044
|
type McpOauthTokenEndpointAuthCreateParam as McpOauthTokenEndpointAuthCreateParam,
|
|
685
1045
|
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,
|