openai 7.20.0 → 7.22.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 +24 -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.map +1 -1
- package/resources/admin/organization/admin-api-keys.d.ts.map +1 -1
- package/resources/admin/organization/admin-api-keys.js +11 -8
- package/resources/admin/organization/admin-api-keys.js.map +1 -1
- package/resources/admin/organization/admin-api-keys.mjs +11 -8
- package/resources/admin/organization/admin-api-keys.mjs.map +1 -1
- package/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/resources/admin/organization/audit-logs.js +5 -2
- package/resources/admin/organization/audit-logs.js.map +1 -1
- package/resources/admin/organization/audit-logs.mjs +5 -2
- package/resources/admin/organization/audit-logs.mjs.map +1 -1
- package/resources/admin/organization/certificates.d.mts.map +1 -1
- package/resources/admin/organization/certificates.d.ts.map +1 -1
- package/resources/admin/organization/certificates.js +24 -12
- package/resources/admin/organization/certificates.js.map +1 -1
- package/resources/admin/organization/certificates.mjs +24 -12
- 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 +4 -1
- package/resources/admin/organization/external-storage.d.mts.map +1 -1
- package/resources/admin/organization/external-storage.d.ts +4 -1
- package/resources/admin/organization/external-storage.d.ts.map +1 -1
- package/resources/admin/organization/external-storage.js +20 -10
- package/resources/admin/organization/external-storage.js.map +1 -1
- package/resources/admin/organization/external-storage.mjs +20 -10
- package/resources/admin/organization/external-storage.mjs.map +1 -1
- package/resources/admin/organization/groups/groups.d.mts.map +1 -1
- package/resources/admin/organization/groups/groups.d.ts.map +1 -1
- package/resources/admin/organization/groups/groups.js +13 -10
- package/resources/admin/organization/groups/groups.js.map +1 -1
- package/resources/admin/organization/groups/groups.mjs +13 -10
- package/resources/admin/organization/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/groups/roles.d.mts.map +1 -1
- package/resources/admin/organization/groups/roles.d.ts.map +1 -1
- package/resources/admin/organization/groups/roles.js +14 -7
- package/resources/admin/organization/groups/roles.js.map +1 -1
- package/resources/admin/organization/groups/roles.mjs +14 -7
- package/resources/admin/organization/groups/roles.mjs.map +1 -1
- package/resources/admin/organization/groups/users.d.mts.map +1 -1
- package/resources/admin/organization/groups/users.d.ts.map +1 -1
- package/resources/admin/organization/groups/users.js +14 -7
- package/resources/admin/organization/groups/users.js.map +1 -1
- package/resources/admin/organization/groups/users.mjs +14 -7
- package/resources/admin/organization/groups/users.mjs.map +1 -1
- package/resources/admin/organization/invites.d.mts.map +1 -1
- package/resources/admin/organization/invites.d.ts.map +1 -1
- package/resources/admin/organization/invites.js +11 -8
- package/resources/admin/organization/invites.js.map +1 -1
- package/resources/admin/organization/invites.mjs +11 -8
- package/resources/admin/organization/invites.mjs.map +1 -1
- package/resources/admin/organization/organization.d.mts +2 -2
- package/resources/admin/organization/organization.d.mts.map +1 -1
- package/resources/admin/organization/organization.d.ts +2 -2
- package/resources/admin/organization/organization.d.ts.map +1 -1
- package/resources/admin/organization/organization.js +2 -2
- package/resources/admin/organization/organization.js.map +1 -1
- package/resources/admin/organization/organization.mjs +2 -2
- package/resources/admin/organization/organization.mjs.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/api-keys.js +12 -5
- package/resources/admin/organization/projects/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/api-keys.mjs +12 -5
- package/resources/admin/organization/projects/api-keys.mjs.map +1 -1
- package/resources/admin/organization/projects/certificates.d.mts.map +1 -1
- package/resources/admin/organization/projects/certificates.d.ts.map +1 -1
- package/resources/admin/organization/projects/certificates.js +20 -3
- package/resources/admin/organization/projects/certificates.js.map +1 -1
- package/resources/admin/organization/projects/certificates.mjs +20 -3
- 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.map +1 -1
- package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -1
- package/resources/admin/organization/projects/groups/groups.js +14 -7
- package/resources/admin/organization/projects/groups/groups.js.map +1 -1
- package/resources/admin/organization/projects/groups/groups.mjs +14 -7
- 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.map +1 -1
- package/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.js +13 -10
- package/resources/admin/organization/projects/projects.js.map +1 -1
- package/resources/admin/organization/projects/projects.mjs +13 -10
- package/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -1
- package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -1
- package/resources/admin/organization/projects/rate-limits.js +10 -3
- package/resources/admin/organization/projects/rate-limits.js.map +1 -1
- package/resources/admin/organization/projects/rate-limits.mjs +10 -3
- package/resources/admin/organization/projects/rate-limits.mjs.map +1 -1
- package/resources/admin/organization/projects/roles.d.mts.map +1 -1
- package/resources/admin/organization/projects/roles.d.ts.map +1 -1
- package/resources/admin/organization/projects/roles.js +13 -10
- package/resources/admin/organization/projects/roles.js.map +1 -1
- package/resources/admin/organization/projects/roles.mjs +13 -10
- 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.map +1 -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 +21 -7
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +21 -7
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.d.mts.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.d.ts.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.js +16 -9
- package/resources/admin/organization/projects/spend-alerts.js.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.mjs +16 -9
- 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.map +1 -1
- package/resources/admin/organization/projects/users/users.d.ts.map +1 -1
- package/resources/admin/organization/projects/users/users.js +16 -9
- package/resources/admin/organization/projects/users/users.js.map +1 -1
- package/resources/admin/organization/projects/users/users.mjs +16 -9
- package/resources/admin/organization/projects/users/users.mjs.map +1 -1
- package/resources/admin/organization/roles.d.mts.map +1 -1
- package/resources/admin/organization/roles.d.ts.map +1 -1
- package/resources/admin/organization/roles.js +13 -10
- package/resources/admin/organization/roles.js.map +1 -1
- package/resources/admin/organization/roles.mjs +13 -10
- package/resources/admin/organization/roles.mjs.map +1 -1
- package/resources/admin/organization/spend-alerts.d.mts.map +1 -1
- package/resources/admin/organization/spend-alerts.d.ts.map +1 -1
- package/resources/admin/organization/spend-alerts.js +16 -9
- package/resources/admin/organization/spend-alerts.js.map +1 -1
- package/resources/admin/organization/spend-alerts.mjs +16 -9
- 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.map +1 -1
- package/resources/admin/organization/users/roles.d.ts.map +1 -1
- package/resources/admin/organization/users/roles.js +14 -7
- package/resources/admin/organization/users/roles.js.map +1 -1
- package/resources/admin/organization/users/roles.mjs +14 -7
- package/resources/admin/organization/users/roles.mjs.map +1 -1
- package/resources/admin/organization/users/users.d.mts.map +1 -1
- package/resources/admin/organization/users/users.d.ts.map +1 -1
- package/resources/admin/organization/users/users.js +11 -8
- package/resources/admin/organization/users/users.js.map +1 -1
- package/resources/admin/organization/users/users.mjs +11 -8
- 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.map +1 -1
- package/resources/batches.d.ts.map +1 -1
- package/resources/batches.js +12 -8
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +12 -8
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/agents/agents.d.mts +32 -2
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +32 -2
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js +13 -10
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs +13 -10
- 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.map +1 -1
- package/resources/beta/agents/environments/templates.d.ts.map +1 -1
- package/resources/beta/agents/environments/templates.js +13 -10
- package/resources/beta/agents/environments/templates.js.map +1 -1
- package/resources/beta/agents/environments/templates.mjs +13 -10
- 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.map +1 -1
- package/resources/beta/agents/sessions/artifacts.d.ts.map +1 -1
- package/resources/beta/agents/sessions/artifacts.js +11 -8
- package/resources/beta/agents/sessions/artifacts.js.map +1 -1
- package/resources/beta/agents/sessions/artifacts.mjs +11 -8
- 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.map +1 -1
- package/resources/beta/agents/sessions/items.d.ts.map +1 -1
- package/resources/beta/agents/sessions/items.js +5 -2
- package/resources/beta/agents/sessions/items.js.map +1 -1
- package/resources/beta/agents/sessions/items.mjs +5 -2
- package/resources/beta/agents/sessions/items.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/agents/sessions/sessions.js +13 -10
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs +13 -10
- 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.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.ts.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.js +7 -4
- package/resources/beta/agents/sessions/subagents/subagents.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.mjs +7 -4
- 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.map +1 -1
- package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/turns.js +7 -4
- package/resources/beta/agents/sessions/turns.js.map +1 -1
- package/resources/beta/agents/sessions/turns.mjs +7 -4
- package/resources/beta/agents/sessions/turns.mjs.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/agents/vaults/credentials.js +13 -10
- package/resources/beta/agents/vaults/credentials.js.map +1 -1
- package/resources/beta/agents/vaults/credentials.mjs +13 -10
- package/resources/beta/agents/vaults/credentials.mjs.map +1 -1
- package/resources/beta/agents/vaults/vaults.d.mts.map +1 -1
- package/resources/beta/agents/vaults/vaults.d.ts.map +1 -1
- package/resources/beta/agents/vaults/vaults.js +11 -8
- package/resources/beta/agents/vaults/vaults.js.map +1 -1
- package/resources/beta/agents/vaults/vaults.mjs +11 -8
- package/resources/beta/agents/vaults/vaults.mjs.map +1 -1
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/assistants.js +13 -10
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +13 -10
- 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.map +1 -1
- package/resources/beta/chatkit/threads.d.ts.map +1 -1
- package/resources/beta/chatkit/threads.js +11 -8
- package/resources/beta/chatkit/threads.js.map +1 -1
- package/resources/beta/chatkit/threads.mjs +11 -8
- 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 -7
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +21 -7
- 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.map +1 -1
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js +13 -10
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +13 -10
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +15 -12
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +15 -12
- 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.map +1 -1
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +11 -14
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +11 -14
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/chat/completions/messages.d.mts.map +1 -1
- package/resources/chat/completions/messages.d.ts.map +1 -1
- package/resources/chat/completions/messages.js +8 -1
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs +8 -1
- 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.map +1 -1
- package/resources/containers/containers.d.ts.map +1 -1
- package/resources/containers/containers.js +13 -9
- package/resources/containers/containers.js.map +1 -1
- package/resources/containers/containers.mjs +13 -9
- 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.map +1 -1
- package/resources/containers/files/files.d.ts.map +1 -1
- package/resources/containers/files/files.js +9 -9
- package/resources/containers/files/files.js.map +1 -1
- package/resources/containers/files/files.mjs +9 -9
- 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.map +1 -1
- 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.map +1 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js +13 -9
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs +13 -9
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/evals/evals.d.mts.map +1 -1
- package/resources/evals/evals.d.ts.map +1 -1
- package/resources/evals/evals.js +17 -6
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs +17 -6
- 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.map +1 -1
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js +10 -16
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +10 -16
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +10 -7
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +10 -7
- 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.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +20 -5
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +20 -5
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js +8 -1
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +8 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +19 -20
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +19 -20
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/images.d.mts.map +1 -1
- 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 +3 -0
- package/resources/responses/input-items.d.mts.map +1 -1
- package/resources/responses/input-items.d.ts +3 -0
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/input-items.js +11 -1
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +11 -1
- 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 +4 -1
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +4 -1
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +18 -11
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +18 -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.map +1 -1
- package/resources/safety/cases.d.ts.map +1 -1
- package/resources/safety/cases.js +4 -1
- package/resources/safety/cases.js.map +1 -1
- package/resources/safety/cases.mjs +4 -1
- package/resources/safety/cases.mjs.map +1 -1
- package/resources/safety/safety.d.mts +2 -2
- package/resources/safety/safety.d.mts.map +1 -1
- package/resources/safety/safety.d.ts +2 -2
- package/resources/safety/safety.d.ts.map +1 -1
- package/resources/safety/safety.js +2 -2
- package/resources/safety/safety.js.map +1 -1
- package/resources/safety/safety.mjs +2 -2
- package/resources/safety/safety.mjs.map +1 -1
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/skills/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.map +1 -1
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +9 -6
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +9 -6
- 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.map +1 -1
- package/resources/skills/versions/versions.d.ts.map +1 -1
- package/resources/skills/versions/versions.js +7 -10
- package/resources/skills/versions/versions.js.map +1 -1
- package/resources/skills/versions/versions.mjs +7 -10
- 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.map +1 -1
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +15 -12
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +15 -12
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +15 -12
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +15 -12
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +15 -15
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +15 -15
- 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.map +1 -1
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +18 -17
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +18 -17
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/src/client.ts +345 -4
- package/src/resources/admin/organization/admin-api-keys.ts +38 -18
- package/src/resources/admin/organization/audit-logs.ts +16 -5
- package/src/resources/admin/organization/certificates.ts +59 -27
- package/src/resources/admin/organization/data-retention.ts +22 -9
- package/src/resources/admin/organization/external-storage.ts +45 -19
- package/src/resources/admin/organization/groups/groups.ts +46 -23
- package/src/resources/admin/organization/groups/roles.ts +34 -14
- package/src/resources/admin/organization/groups/users.ts +34 -14
- package/src/resources/admin/organization/invites.ts +38 -18
- package/src/resources/admin/organization/organization.ts +13 -13
- package/src/resources/admin/organization/projects/api-keys.ts +26 -9
- package/src/resources/admin/organization/projects/certificates.ts +24 -3
- package/src/resources/admin/organization/projects/data-retention.ts +22 -9
- package/src/resources/admin/organization/projects/groups/groups.ts +35 -15
- 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 +46 -23
- package/src/resources/admin/organization/projects/rate-limits.ts +20 -6
- package/src/resources/admin/organization/projects/roles.ts +46 -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 +36 -12
- package/src/resources/admin/organization/projects/spend-alerts.ts +42 -19
- 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 +42 -19
- package/src/resources/admin/organization/roles.ts +46 -23
- package/src/resources/admin/organization/spend-alerts.ts +42 -19
- 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 +34 -14
- package/src/resources/admin/organization/users/users.ts +38 -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 +32 -11
- package/src/resources/beta/agents/agents.ts +89 -28
- 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 +51 -28
- package/src/resources/beta/agents/index.ts +1 -0
- package/src/resources/beta/agents/sessions/artifacts.ts +37 -21
- package/src/resources/beta/agents/sessions/events.ts +35 -19
- package/src/resources/beta/agents/sessions/items.ts +9 -2
- package/src/resources/beta/agents/sessions/sessions.ts +52 -29
- package/src/resources/beta/agents/sessions/subagents/items.ts +9 -2
- package/src/resources/beta/agents/sessions/subagents/subagents.ts +17 -7
- 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 +25 -11
- package/src/resources/beta/agents/vaults/credentials.ts +51 -28
- package/src/resources/beta/agents/vaults/vaults.ts +42 -22
- package/src/resources/beta/assistants.ts +51 -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 +35 -18
- 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 +332 -49
- package/src/resources/beta/threads/messages.ts +51 -28
- package/src/resources/beta/threads/runs/runs.ts +65 -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 +41 -24
- package/src/resources/chat/completions/messages.ts +12 -1
- package/src/resources/completions.ts +16 -6
- package/src/resources/containers/containers.ts +36 -15
- package/src/resources/containers/files/content.ts +16 -6
- package/src/resources/containers/files/files.ts +34 -15
- package/src/resources/content-provenance-checks.ts +10 -1
- package/src/resources/conversations/conversations.ts +31 -14
- package/src/resources/conversations/items.ts +33 -16
- package/src/resources/evals/evals.ts +40 -9
- package/src/resources/evals/runs/output-items.ts +16 -5
- package/src/resources/evals/runs/runs.ts +36 -22
- package/src/resources/files.ts +36 -14
- package/src/resources/fine-tuning/alpha/graders.ts +23 -10
- package/src/resources/fine-tuning/checkpoints/permissions.ts +30 -8
- package/src/resources/fine-tuning/jobs/checkpoints.ts +12 -1
- package/src/resources/fine-tuning/jobs/jobs.ts +45 -23
- package/src/resources/images.ts +30 -16
- 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 +15 -1
- package/src/resources/responses/input-tokens.ts +18 -5
- package/src/resources/responses/responses.ts +50 -22
- package/src/resources/safety/alerts.ts +11 -1
- package/src/resources/safety/cases.ts +11 -1
- package/src/resources/safety/safety.ts +4 -4
- package/src/resources/shared.ts +2 -0
- package/src/resources/skills/content.ts +16 -6
- package/src/resources/skills/skills.ts +32 -12
- package/src/resources/skills/versions/content.ts +16 -6
- package/src/resources/skills/versions/versions.ts +24 -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 +53 -30
- package/src/resources/vector-stores/vector-stores.ts +53 -30
- package/src/resources/videos.ts +56 -23
- package/src/resources/webhooks/event-types.ts +11 -1
- package/src/resources/webhooks/webhooks.ts +56 -29
- 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
|
@@ -8,6 +8,13 @@ import { buildHeaders } from '../../../../internal/headers';
|
|
|
8
8
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
9
9
|
import { path } from '../../../../internal/utils/path';
|
|
10
10
|
|
|
11
|
+
function resolveResourceRequestOptions(
|
|
12
|
+
options: RequestOptions | undefined,
|
|
13
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
14
|
+
): Promise<RequestOptions> {
|
|
15
|
+
return Promise.resolve(options).then(buildOptions);
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
12
19
|
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
13
20
|
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
@@ -233,12 +240,12 @@ export class Items extends APIResource {
|
|
|
233
240
|
return this._client.getAPIList(
|
|
234
241
|
path`/agents/sessions/${sessionID}/items`,
|
|
235
242
|
CursorPage<AgentsAPI.AgentSessionItem>,
|
|
236
|
-
{
|
|
243
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
237
244
|
query,
|
|
238
245
|
...options,
|
|
239
246
|
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
240
247
|
__security: { bearerAuth: true },
|
|
241
|
-
},
|
|
248
|
+
})),
|
|
242
249
|
);
|
|
243
250
|
}
|
|
244
251
|
}
|
|
@@ -34,6 +34,13 @@ import { buildHeaders } from '../../../../internal/headers';
|
|
|
34
34
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
35
35
|
import { path } from '../../../../internal/utils/path';
|
|
36
36
|
|
|
37
|
+
function resolveResourceRequestOptions(
|
|
38
|
+
options: RequestOptions | undefined,
|
|
39
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
40
|
+
): Promise<RequestOptions> {
|
|
41
|
+
return Promise.resolve(options).then(buildOptions);
|
|
42
|
+
}
|
|
43
|
+
|
|
37
44
|
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
38
45
|
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
39
46
|
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
@@ -179,13 +186,16 @@ export class Sessions extends APIResource {
|
|
|
179
186
|
body: SessionCreateParams,
|
|
180
187
|
options?: RequestOptions,
|
|
181
188
|
): APIPromise<AgentsAPI.AgentSession> | APIPromise<Stream<AgentsAPI.AgentSessionEvent>> {
|
|
182
|
-
return this._client.post(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
return this._client.post(
|
|
190
|
+
'/agents/sessions',
|
|
191
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
192
|
+
body,
|
|
193
|
+
...options,
|
|
194
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
195
|
+
stream: body.stream ?? false,
|
|
196
|
+
__security: { bearerAuth: true },
|
|
197
|
+
})),
|
|
198
|
+
) as APIPromise<AgentsAPI.AgentSession> | APIPromise<Stream<AgentsAPI.AgentSessionEvent>>;
|
|
189
199
|
}
|
|
190
200
|
|
|
191
201
|
/**
|
|
@@ -199,11 +209,14 @@ export class Sessions extends APIResource {
|
|
|
199
209
|
* ```
|
|
200
210
|
*/
|
|
201
211
|
retrieve(sessionID: string, options?: RequestOptions): APIPromise<AgentsAPI.AgentSession> {
|
|
202
|
-
return this._client.get(
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
212
|
+
return this._client.get(
|
|
213
|
+
path`/agents/sessions/${sessionID}`,
|
|
214
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
215
|
+
...options,
|
|
216
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
217
|
+
__security: { bearerAuth: true },
|
|
218
|
+
})),
|
|
219
|
+
);
|
|
207
220
|
}
|
|
208
221
|
|
|
209
222
|
/**
|
|
@@ -222,12 +235,15 @@ export class Sessions extends APIResource {
|
|
|
222
235
|
body: SessionUpdateParams | null | undefined = {},
|
|
223
236
|
options?: RequestOptions,
|
|
224
237
|
): APIPromise<AgentsAPI.AgentSession> {
|
|
225
|
-
return this._client.post(
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
238
|
+
return this._client.post(
|
|
239
|
+
path`/agents/sessions/${sessionID}`,
|
|
240
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
241
|
+
body,
|
|
242
|
+
...options,
|
|
243
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
244
|
+
__security: { bearerAuth: true },
|
|
245
|
+
})),
|
|
246
|
+
);
|
|
231
247
|
}
|
|
232
248
|
|
|
233
249
|
/**
|
|
@@ -339,12 +355,16 @@ export class Sessions extends APIResource {
|
|
|
339
355
|
query = {};
|
|
340
356
|
}
|
|
341
357
|
query = query as SessionListParams | null | undefined;
|
|
342
|
-
return this._client.getAPIList(
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
358
|
+
return this._client.getAPIList(
|
|
359
|
+
'/agents/sessions',
|
|
360
|
+
CursorPage<AgentsAPI.AgentSession>,
|
|
361
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
362
|
+
query,
|
|
363
|
+
...options,
|
|
364
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
365
|
+
__security: { bearerAuth: true },
|
|
366
|
+
})),
|
|
367
|
+
);
|
|
348
368
|
}
|
|
349
369
|
|
|
350
370
|
/**
|
|
@@ -361,11 +381,14 @@ export class Sessions extends APIResource {
|
|
|
361
381
|
* ```
|
|
362
382
|
*/
|
|
363
383
|
delete(sessionID: string, options?: RequestOptions): APIPromise<AgentsAPI.AgentSessionDeleted> {
|
|
364
|
-
return this._client.delete(
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
384
|
+
return this._client.delete(
|
|
385
|
+
path`/agents/sessions/${sessionID}`,
|
|
386
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
387
|
+
...options,
|
|
388
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
389
|
+
__security: { bearerAuth: true },
|
|
390
|
+
})),
|
|
391
|
+
);
|
|
369
392
|
}
|
|
370
393
|
}
|
|
371
394
|
|
|
@@ -8,6 +8,13 @@ import { buildHeaders } from '../../../../../internal/headers';
|
|
|
8
8
|
import { RequestOptions } from '../../../../../internal/request-options';
|
|
9
9
|
import { path } from '../../../../../internal/utils/path';
|
|
10
10
|
|
|
11
|
+
function resolveResourceRequestOptions(
|
|
12
|
+
options: RequestOptions | undefined,
|
|
13
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
14
|
+
): Promise<RequestOptions> {
|
|
15
|
+
return Promise.resolve(options).then(buildOptions);
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
export class Items extends APIResource {
|
|
12
19
|
/**
|
|
13
20
|
* Lists this subagent's own items across all of its turns. See
|
|
@@ -33,12 +40,12 @@ export class Items extends APIResource {
|
|
|
33
40
|
return this._client.getAPIList(
|
|
34
41
|
path`/agents/sessions/${session_id}/subagents/${subagentID}/items`,
|
|
35
42
|
CursorPage<AgentsAPI.AgentSessionItem>,
|
|
36
|
-
{
|
|
43
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
37
44
|
query,
|
|
38
45
|
...options,
|
|
39
46
|
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
40
47
|
__security: { bearerAuth: true },
|
|
41
|
-
},
|
|
48
|
+
})),
|
|
42
49
|
);
|
|
43
50
|
}
|
|
44
51
|
}
|
|
@@ -13,6 +13,13 @@ import { buildHeaders } from '../../../../../internal/headers';
|
|
|
13
13
|
import { RequestOptions } from '../../../../../internal/request-options';
|
|
14
14
|
import { path } from '../../../../../internal/utils/path';
|
|
15
15
|
|
|
16
|
+
function resolveResourceRequestOptions(
|
|
17
|
+
options: RequestOptions | undefined,
|
|
18
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
19
|
+
): Promise<RequestOptions> {
|
|
20
|
+
return Promise.resolve(options).then(buildOptions);
|
|
21
|
+
}
|
|
22
|
+
|
|
16
23
|
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
17
24
|
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
18
25
|
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
@@ -143,11 +150,14 @@ export class Subagents extends APIResource {
|
|
|
143
150
|
options?: RequestOptions,
|
|
144
151
|
): APIPromise<AgentsAPI.Subagent> {
|
|
145
152
|
const { session_id } = params;
|
|
146
|
-
return this._client.get(
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
153
|
+
return this._client.get(
|
|
154
|
+
path`/agents/sessions/${session_id}/subagents/${subagentID}`,
|
|
155
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
156
|
+
...options,
|
|
157
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
158
|
+
__security: { bearerAuth: true },
|
|
159
|
+
})),
|
|
160
|
+
);
|
|
151
161
|
}
|
|
152
162
|
|
|
153
163
|
/**
|
|
@@ -266,12 +276,12 @@ export class Subagents extends APIResource {
|
|
|
266
276
|
return this._client.getAPIList(
|
|
267
277
|
path`/agents/sessions/${sessionID}/subagents`,
|
|
268
278
|
CursorPage<AgentsAPI.Subagent>,
|
|
269
|
-
{
|
|
279
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
270
280
|
query,
|
|
271
281
|
...options,
|
|
272
282
|
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
273
283
|
__security: { bearerAuth: true },
|
|
274
|
-
},
|
|
284
|
+
})),
|
|
275
285
|
);
|
|
276
286
|
}
|
|
277
287
|
}
|
|
@@ -8,6 +8,13 @@ import { buildHeaders } from '../../../../../../internal/headers';
|
|
|
8
8
|
import { RequestOptions } from '../../../../../../internal/request-options';
|
|
9
9
|
import { path } from '../../../../../../internal/utils/path';
|
|
10
10
|
|
|
11
|
+
function resolveResourceRequestOptions(
|
|
12
|
+
options: RequestOptions | undefined,
|
|
13
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
14
|
+
): Promise<RequestOptions> {
|
|
15
|
+
return Promise.resolve(options).then(buildOptions);
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
export class Items extends APIResource {
|
|
12
19
|
/**
|
|
13
20
|
* Lists items belonging to one turn of this subagent. See
|
|
@@ -33,12 +40,12 @@ export class Items extends APIResource {
|
|
|
33
40
|
return this._client.getAPIList(
|
|
34
41
|
path`/agents/sessions/${session_id}/subagents/${subagent_id}/turns/${turnID}/items`,
|
|
35
42
|
CursorPage<AgentsAPI.AgentSessionItem>,
|
|
36
|
-
{
|
|
43
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
37
44
|
query,
|
|
38
45
|
...options,
|
|
39
46
|
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
40
47
|
__security: { bearerAuth: true },
|
|
41
|
-
},
|
|
48
|
+
})),
|
|
42
49
|
);
|
|
43
50
|
}
|
|
44
51
|
}
|
|
@@ -11,6 +11,13 @@ import { buildHeaders } from '../../../../../../internal/headers';
|
|
|
11
11
|
import { RequestOptions } from '../../../../../../internal/request-options';
|
|
12
12
|
import { path } from '../../../../../../internal/utils/path';
|
|
13
13
|
|
|
14
|
+
function resolveResourceRequestOptions(
|
|
15
|
+
options: RequestOptions | undefined,
|
|
16
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
17
|
+
): Promise<RequestOptions> {
|
|
18
|
+
return Promise.resolve(options).then(buildOptions);
|
|
19
|
+
}
|
|
20
|
+
|
|
14
21
|
export class Turns extends APIResource {
|
|
15
22
|
items: ItemsAPI.Items = new ItemsAPI.Items(this._client);
|
|
16
23
|
|
|
@@ -32,11 +39,14 @@ export class Turns extends APIResource {
|
|
|
32
39
|
*/
|
|
33
40
|
retrieve(turnID: string, params: TurnRetrieveParams, options?: RequestOptions): APIPromise<TurnsAPI.Turn> {
|
|
34
41
|
const { session_id, subagent_id } = params;
|
|
35
|
-
return this._client.get(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
return this._client.get(
|
|
43
|
+
path`/agents/sessions/${session_id}/subagents/${subagent_id}/turns/${turnID}`,
|
|
44
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
45
|
+
...options,
|
|
46
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
47
|
+
__security: { bearerAuth: true },
|
|
48
|
+
})),
|
|
49
|
+
);
|
|
40
50
|
}
|
|
41
51
|
|
|
42
52
|
/**
|
|
@@ -63,12 +73,12 @@ export class Turns extends APIResource {
|
|
|
63
73
|
return this._client.getAPIList(
|
|
64
74
|
path`/agents/sessions/${session_id}/subagents/${subagentID}/turns`,
|
|
65
75
|
CursorPage<TurnsAPI.Turn>,
|
|
66
|
-
{
|
|
76
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
67
77
|
query,
|
|
68
78
|
...options,
|
|
69
79
|
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
70
80
|
__security: { bearerAuth: true },
|
|
71
|
-
},
|
|
81
|
+
})),
|
|
72
82
|
);
|
|
73
83
|
}
|
|
74
84
|
}
|
|
@@ -8,6 +8,13 @@ import { buildHeaders } from '../../../../internal/headers';
|
|
|
8
8
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
9
9
|
import { path } from '../../../../internal/utils/path';
|
|
10
10
|
|
|
11
|
+
function resolveResourceRequestOptions(
|
|
12
|
+
options: RequestOptions | undefined,
|
|
13
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
14
|
+
): Promise<RequestOptions> {
|
|
15
|
+
return Promise.resolve(options).then(buildOptions);
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
12
19
|
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
13
20
|
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
@@ -132,11 +139,14 @@ export class Turns extends APIResource {
|
|
|
132
139
|
*/
|
|
133
140
|
retrieve(turnID: string, params: TurnRetrieveParams, options?: RequestOptions): APIPromise<Turn> {
|
|
134
141
|
const { session_id } = params;
|
|
135
|
-
return this._client.get(
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
142
|
+
return this._client.get(
|
|
143
|
+
path`/agents/sessions/${session_id}/turns/${turnID}`,
|
|
144
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
145
|
+
...options,
|
|
146
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
147
|
+
__security: { bearerAuth: true },
|
|
148
|
+
})),
|
|
149
|
+
);
|
|
140
150
|
}
|
|
141
151
|
|
|
142
152
|
/**
|
|
@@ -253,12 +263,16 @@ export class Turns extends APIResource {
|
|
|
253
263
|
query = {};
|
|
254
264
|
}
|
|
255
265
|
query = query as TurnListParams | null | undefined;
|
|
256
|
-
return this._client.getAPIList(
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
266
|
+
return this._client.getAPIList(
|
|
267
|
+
path`/agents/sessions/${sessionID}/turns`,
|
|
268
|
+
CursorPage<Turn>,
|
|
269
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
270
|
+
query,
|
|
271
|
+
...options,
|
|
272
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
273
|
+
__security: { bearerAuth: true },
|
|
274
|
+
})),
|
|
275
|
+
);
|
|
262
276
|
}
|
|
263
277
|
}
|
|
264
278
|
|
|
@@ -9,6 +9,13 @@ 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
|
+
|
|
12
19
|
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
13
20
|
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
14
21
|
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
@@ -139,12 +146,15 @@ export class Credentials extends APIResource {
|
|
|
139
146
|
* ```
|
|
140
147
|
*/
|
|
141
148
|
create(vaultID: string, body: CredentialCreateParams, options?: RequestOptions): APIPromise<Credential> {
|
|
142
|
-
return this._client.post(
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
+
);
|
|
148
158
|
}
|
|
149
159
|
|
|
150
160
|
/**
|
|
@@ -166,11 +176,14 @@ export class Credentials extends APIResource {
|
|
|
166
176
|
options?: RequestOptions,
|
|
167
177
|
): APIPromise<Credential> {
|
|
168
178
|
const { vault_id } = params;
|
|
169
|
-
return this._client.get(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
+
);
|
|
174
187
|
}
|
|
175
188
|
|
|
176
189
|
/**
|
|
@@ -196,12 +209,15 @@ export class Credentials extends APIResource {
|
|
|
196
209
|
options?: RequestOptions,
|
|
197
210
|
): APIPromise<Credential> {
|
|
198
211
|
const { vault_id, ...body } = params;
|
|
199
|
-
return this._client.post(
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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
|
+
);
|
|
205
221
|
}
|
|
206
222
|
|
|
207
223
|
/**
|
|
@@ -318,12 +334,16 @@ export class Credentials extends APIResource {
|
|
|
318
334
|
query = {};
|
|
319
335
|
}
|
|
320
336
|
query = query as CredentialListParams | null | undefined;
|
|
321
|
-
return this._client.getAPIList(
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
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
|
+
);
|
|
327
347
|
}
|
|
328
348
|
|
|
329
349
|
/**
|
|
@@ -345,11 +365,14 @@ export class Credentials extends APIResource {
|
|
|
345
365
|
options?: RequestOptions,
|
|
346
366
|
): APIPromise<CredentialDeleted> {
|
|
347
367
|
const { vault_id } = params;
|
|
348
|
-
return this._client.delete(
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
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
|
+
);
|
|
353
376
|
}
|
|
354
377
|
}
|
|
355
378
|
|
|
@@ -27,6 +27,13 @@ import { buildHeaders } from '../../../../internal/headers';
|
|
|
27
27
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
28
28
|
import { path } from '../../../../internal/utils/path';
|
|
29
29
|
|
|
30
|
+
function resolveResourceRequestOptions(
|
|
31
|
+
options: RequestOptions | undefined,
|
|
32
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
33
|
+
): Promise<RequestOptions> {
|
|
34
|
+
return Promise.resolve(options).then(buildOptions);
|
|
35
|
+
}
|
|
36
|
+
|
|
30
37
|
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
31
38
|
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
32
39
|
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
@@ -147,12 +154,15 @@ export class Vaults extends APIResource {
|
|
|
147
154
|
* ```
|
|
148
155
|
*/
|
|
149
156
|
create(body: VaultCreateParams | null | undefined = {}, options?: RequestOptions): APIPromise<Vault> {
|
|
150
|
-
return this._client.post(
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
157
|
+
return this._client.post(
|
|
158
|
+
'/vaults',
|
|
159
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
160
|
+
body,
|
|
161
|
+
...options,
|
|
162
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
163
|
+
__security: { bearerAuth: true },
|
|
164
|
+
})),
|
|
165
|
+
);
|
|
156
166
|
}
|
|
157
167
|
|
|
158
168
|
/**
|
|
@@ -167,11 +177,14 @@ export class Vaults extends APIResource {
|
|
|
167
177
|
* ```
|
|
168
178
|
*/
|
|
169
179
|
retrieve(vaultID: string, options?: RequestOptions): APIPromise<Vault> {
|
|
170
|
-
return this._client.get(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
180
|
+
return this._client.get(
|
|
181
|
+
path`/vaults/${vaultID}`,
|
|
182
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
183
|
+
...options,
|
|
184
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
185
|
+
__security: { bearerAuth: true },
|
|
186
|
+
})),
|
|
187
|
+
);
|
|
175
188
|
}
|
|
176
189
|
|
|
177
190
|
/**
|
|
@@ -282,12 +295,16 @@ export class Vaults extends APIResource {
|
|
|
282
295
|
query = {};
|
|
283
296
|
}
|
|
284
297
|
query = query as VaultListParams | null | undefined;
|
|
285
|
-
return this._client.getAPIList(
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
298
|
+
return this._client.getAPIList(
|
|
299
|
+
'/vaults',
|
|
300
|
+
CursorPage<Vault>,
|
|
301
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
302
|
+
query,
|
|
303
|
+
...options,
|
|
304
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
305
|
+
__security: { bearerAuth: true },
|
|
306
|
+
})),
|
|
307
|
+
);
|
|
291
308
|
}
|
|
292
309
|
|
|
293
310
|
/**
|
|
@@ -302,11 +319,14 @@ export class Vaults extends APIResource {
|
|
|
302
319
|
* ```
|
|
303
320
|
*/
|
|
304
321
|
delete(vaultID: string, options?: RequestOptions): APIPromise<VaultDeleted> {
|
|
305
|
-
return this._client.delete(
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
322
|
+
return this._client.delete(
|
|
323
|
+
path`/vaults/${vaultID}`,
|
|
324
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
325
|
+
...options,
|
|
326
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
327
|
+
__security: { bearerAuth: true },
|
|
328
|
+
})),
|
|
329
|
+
);
|
|
310
330
|
}
|
|
311
331
|
}
|
|
312
332
|
|