openai 7.18.0 → 7.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +6 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +13 -7
- package/client.js.map +1 -1
- package/client.mjs +13 -7
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +11 -7
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +11 -7
- package/internal/parse.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +1 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/admin/organization/admin-api-keys.d.mts +13 -2
- package/resources/admin/organization/admin-api-keys.d.mts.map +1 -1
- package/resources/admin/organization/admin-api-keys.d.ts +13 -2
- package/resources/admin/organization/admin-api-keys.d.ts.map +1 -1
- package/resources/admin/organization/admin-api-keys.js +58 -11
- package/resources/admin/organization/admin-api-keys.js.map +1 -1
- package/resources/admin/organization/admin-api-keys.mjs +58 -11
- package/resources/admin/organization/admin-api-keys.mjs.map +1 -1
- package/resources/admin/organization/audit-logs.d.mts +56 -3
- package/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/resources/admin/organization/audit-logs.d.ts +56 -3
- package/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/resources/admin/organization/audit-logs.js +69 -11
- package/resources/admin/organization/audit-logs.js.map +1 -1
- package/resources/admin/organization/audit-logs.mjs +69 -11
- package/resources/admin/organization/audit-logs.mjs.map +1 -1
- package/resources/admin/organization/certificates.d.mts +16 -2
- package/resources/admin/organization/certificates.d.mts.map +1 -1
- package/resources/admin/organization/certificates.d.ts +16 -2
- package/resources/admin/organization/certificates.d.ts.map +1 -1
- package/resources/admin/organization/certificates.js +64 -24
- package/resources/admin/organization/certificates.js.map +1 -1
- package/resources/admin/organization/certificates.mjs +64 -24
- package/resources/admin/organization/certificates.mjs.map +1 -1
- package/resources/admin/organization/external-storage.d.mts +141 -0
- package/resources/admin/organization/external-storage.d.mts.map +1 -0
- package/resources/admin/organization/external-storage.d.ts +141 -0
- package/resources/admin/organization/external-storage.d.ts.map +1 -0
- package/resources/admin/organization/external-storage.js +146 -0
- package/resources/admin/organization/external-storage.js.map +1 -0
- package/resources/admin/organization/external-storage.mjs +142 -0
- package/resources/admin/organization/external-storage.mjs.map +1 -0
- package/resources/admin/organization/groups/groups.d.mts +8 -1
- package/resources/admin/organization/groups/groups.d.mts.map +1 -1
- package/resources/admin/organization/groups/groups.d.ts +8 -1
- package/resources/admin/organization/groups/groups.d.ts.map +1 -1
- package/resources/admin/organization/groups/groups.js +58 -11
- package/resources/admin/organization/groups/groups.js.map +1 -1
- package/resources/admin/organization/groups/groups.mjs +58 -11
- package/resources/admin/organization/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/groups/roles.d.mts +8 -1
- package/resources/admin/organization/groups/roles.d.mts.map +1 -1
- package/resources/admin/organization/groups/roles.d.ts +8 -1
- package/resources/admin/organization/groups/roles.d.ts.map +1 -1
- package/resources/admin/organization/groups/roles.js +58 -13
- package/resources/admin/organization/groups/roles.js.map +1 -1
- package/resources/admin/organization/groups/roles.mjs +58 -13
- package/resources/admin/organization/groups/roles.mjs.map +1 -1
- package/resources/admin/organization/groups/users.d.mts +8 -1
- package/resources/admin/organization/groups/users.d.mts.map +1 -1
- package/resources/admin/organization/groups/users.d.ts +8 -1
- package/resources/admin/organization/groups/users.d.ts.map +1 -1
- package/resources/admin/organization/groups/users.js +58 -13
- package/resources/admin/organization/groups/users.js.map +1 -1
- package/resources/admin/organization/groups/users.mjs +58 -13
- package/resources/admin/organization/groups/users.mjs.map +1 -1
- package/resources/admin/organization/index.d.mts +1 -0
- package/resources/admin/organization/index.d.mts.map +1 -1
- package/resources/admin/organization/index.d.ts +1 -0
- package/resources/admin/organization/index.d.ts.map +1 -1
- package/resources/admin/organization/index.js +3 -1
- package/resources/admin/organization/index.js.map +1 -1
- package/resources/admin/organization/index.mjs +1 -0
- package/resources/admin/organization/index.mjs.map +1 -1
- package/resources/admin/organization/invites.d.mts +8 -1
- package/resources/admin/organization/invites.d.mts.map +1 -1
- package/resources/admin/organization/invites.d.ts +8 -1
- package/resources/admin/organization/invites.d.ts.map +1 -1
- package/resources/admin/organization/invites.js +58 -11
- package/resources/admin/organization/invites.js.map +1 -1
- package/resources/admin/organization/invites.mjs +58 -11
- package/resources/admin/organization/invites.mjs.map +1 -1
- package/resources/admin/organization/organization.d.mts +4 -0
- package/resources/admin/organization/organization.d.mts.map +1 -1
- package/resources/admin/organization/organization.d.ts +4 -0
- package/resources/admin/organization/organization.d.ts.map +1 -1
- package/resources/admin/organization/organization.js +4 -0
- package/resources/admin/organization/organization.js.map +1 -1
- package/resources/admin/organization/organization.mjs +4 -0
- package/resources/admin/organization/organization.mjs.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.mts +8 -1
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.ts +8 -1
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/api-keys.js +58 -13
- package/resources/admin/organization/projects/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/api-keys.mjs +58 -13
- package/resources/admin/organization/projects/api-keys.mjs.map +1 -1
- package/resources/admin/organization/projects/certificates.d.mts +8 -1
- package/resources/admin/organization/projects/certificates.d.mts.map +1 -1
- package/resources/admin/organization/projects/certificates.d.ts +8 -1
- package/resources/admin/organization/projects/certificates.d.ts.map +1 -1
- package/resources/admin/organization/projects/certificates.js +58 -13
- package/resources/admin/organization/projects/certificates.js.map +1 -1
- package/resources/admin/organization/projects/certificates.mjs +58 -13
- package/resources/admin/organization/projects/certificates.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/groups.d.mts +8 -1
- package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -1
- package/resources/admin/organization/projects/groups/groups.d.ts +8 -1
- package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -1
- package/resources/admin/organization/projects/groups/groups.js +58 -13
- package/resources/admin/organization/projects/groups/groups.js.map +1 -1
- package/resources/admin/organization/projects/groups/groups.mjs +58 -13
- package/resources/admin/organization/projects/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +8 -1
- package/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/resources/admin/organization/projects/projects.d.ts +8 -1
- package/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.js +58 -11
- package/resources/admin/organization/projects/projects.js.map +1 -1
- package/resources/admin/organization/projects/projects.mjs +58 -11
- package/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/resources/admin/organization/projects/rate-limits.d.mts +8 -1
- package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -1
- package/resources/admin/organization/projects/rate-limits.d.ts +8 -1
- package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -1
- package/resources/admin/organization/projects/rate-limits.js +58 -13
- package/resources/admin/organization/projects/rate-limits.js.map +1 -1
- package/resources/admin/organization/projects/rate-limits.mjs +58 -13
- package/resources/admin/organization/projects/rate-limits.mjs.map +1 -1
- package/resources/admin/organization/projects/roles.d.mts +8 -1
- package/resources/admin/organization/projects/roles.d.mts.map +1 -1
- package/resources/admin/organization/projects/roles.d.ts +8 -1
- package/resources/admin/organization/projects/roles.d.ts.map +1 -1
- package/resources/admin/organization/projects/roles.js +58 -13
- package/resources/admin/organization/projects/roles.js.map +1 -1
- package/resources/admin/organization/projects/roles.mjs +58 -13
- package/resources/admin/organization/projects/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +8 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +8 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js +58 -13
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +58 -13
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.d.mts +8 -1
- package/resources/admin/organization/projects/spend-alerts.d.mts.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.d.ts +8 -1
- package/resources/admin/organization/projects/spend-alerts.d.ts.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.js +58 -13
- package/resources/admin/organization/projects/spend-alerts.js.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.mjs +58 -13
- package/resources/admin/organization/projects/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/projects/users/users.d.mts +8 -1
- package/resources/admin/organization/projects/users/users.d.mts.map +1 -1
- package/resources/admin/organization/projects/users/users.d.ts +8 -1
- package/resources/admin/organization/projects/users/users.d.ts.map +1 -1
- package/resources/admin/organization/projects/users/users.js +58 -13
- package/resources/admin/organization/projects/users/users.js.map +1 -1
- package/resources/admin/organization/projects/users/users.mjs +58 -13
- package/resources/admin/organization/projects/users/users.mjs.map +1 -1
- package/resources/admin/organization/roles.d.mts +8 -1
- package/resources/admin/organization/roles.d.mts.map +1 -1
- package/resources/admin/organization/roles.d.ts +8 -1
- package/resources/admin/organization/roles.d.ts.map +1 -1
- package/resources/admin/organization/roles.js +58 -11
- package/resources/admin/organization/roles.js.map +1 -1
- package/resources/admin/organization/roles.mjs +58 -11
- package/resources/admin/organization/roles.mjs.map +1 -1
- package/resources/admin/organization/spend-alerts.d.mts +8 -1
- package/resources/admin/organization/spend-alerts.d.mts.map +1 -1
- package/resources/admin/organization/spend-alerts.d.ts +8 -1
- package/resources/admin/organization/spend-alerts.d.ts.map +1 -1
- package/resources/admin/organization/spend-alerts.js +58 -11
- package/resources/admin/organization/spend-alerts.js.map +1 -1
- package/resources/admin/organization/spend-alerts.mjs +58 -11
- package/resources/admin/organization/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/users/roles.d.mts +8 -1
- package/resources/admin/organization/users/roles.d.mts.map +1 -1
- package/resources/admin/organization/users/roles.d.ts +8 -1
- package/resources/admin/organization/users/roles.d.ts.map +1 -1
- package/resources/admin/organization/users/roles.js +58 -13
- package/resources/admin/organization/users/roles.js.map +1 -1
- package/resources/admin/organization/users/roles.mjs +58 -13
- package/resources/admin/organization/users/roles.mjs.map +1 -1
- package/resources/admin/organization/users/users.d.mts +8 -1
- package/resources/admin/organization/users/users.d.mts.map +1 -1
- package/resources/admin/organization/users/users.d.ts +8 -1
- package/resources/admin/organization/users/users.d.ts.map +1 -1
- package/resources/admin/organization/users/users.js +58 -11
- package/resources/admin/organization/users/users.js.map +1 -1
- package/resources/admin/organization/users/users.mjs +58 -11
- package/resources/admin/organization/users/users.mjs.map +1 -1
- package/resources/batches.d.mts +8 -1
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +8 -1
- package/resources/batches.d.ts.map +1 -1
- package/resources/batches.js +58 -3
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +58 -3
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/agents/agents.d.mts +67 -46
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +67 -46
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js +58 -12
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs +58 -12
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/environments/files.d.mts +5 -1
- package/resources/beta/agents/environments/files.d.mts.map +1 -1
- package/resources/beta/agents/environments/files.d.ts +5 -1
- package/resources/beta/agents/environments/files.d.ts.map +1 -1
- package/resources/beta/agents/environments/templates.d.mts +24 -13
- package/resources/beta/agents/environments/templates.d.mts.map +1 -1
- package/resources/beta/agents/environments/templates.d.ts +24 -13
- package/resources/beta/agents/environments/templates.d.ts.map +1 -1
- package/resources/beta/agents/environments/templates.js +58 -12
- package/resources/beta/agents/environments/templates.js.map +1 -1
- package/resources/beta/agents/environments/templates.mjs +58 -12
- package/resources/beta/agents/environments/templates.mjs.map +1 -1
- package/resources/beta/agents/sessions/artifacts.d.mts +17 -2
- package/resources/beta/agents/sessions/artifacts.d.mts.map +1 -1
- package/resources/beta/agents/sessions/artifacts.d.ts +17 -2
- package/resources/beta/agents/sessions/artifacts.d.ts.map +1 -1
- package/resources/beta/agents/sessions/artifacts.js +58 -14
- package/resources/beta/agents/sessions/artifacts.js.map +1 -1
- package/resources/beta/agents/sessions/artifacts.mjs +58 -14
- package/resources/beta/agents/sessions/artifacts.mjs.map +1 -1
- package/resources/beta/agents/sessions/events.d.mts +4 -1
- package/resources/beta/agents/sessions/events.d.mts.map +1 -1
- package/resources/beta/agents/sessions/events.d.ts +4 -1
- package/resources/beta/agents/sessions/events.d.ts.map +1 -1
- package/resources/beta/agents/sessions/events.js +4 -1
- package/resources/beta/agents/sessions/events.js.map +1 -1
- package/resources/beta/agents/sessions/events.mjs +4 -1
- package/resources/beta/agents/sessions/events.mjs.map +1 -1
- package/resources/beta/agents/sessions/items.d.mts +8 -1
- package/resources/beta/agents/sessions/items.d.mts.map +1 -1
- package/resources/beta/agents/sessions/items.d.ts +8 -1
- package/resources/beta/agents/sessions/items.d.ts.map +1 -1
- package/resources/beta/agents/sessions/items.js +58 -15
- package/resources/beta/agents/sessions/items.js.map +1 -1
- package/resources/beta/agents/sessions/items.mjs +58 -15
- package/resources/beta/agents/sessions/items.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts +25 -8
- package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.ts +25 -8
- package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/agents/sessions/sessions.js +61 -14
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs +61 -14
- package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.mts +8 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.ts +8 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.ts.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.js +58 -14
- package/resources/beta/agents/sessions/subagents/subagents.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.mjs +58 -14
- package/resources/beta/agents/sessions/subagents/subagents.mjs.map +1 -1
- package/resources/beta/agents/sessions/turns.d.mts +11 -3
- package/resources/beta/agents/sessions/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/turns.d.ts +11 -3
- package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/turns.js +58 -15
- package/resources/beta/agents/sessions/turns.js.map +1 -1
- package/resources/beta/agents/sessions/turns.mjs +58 -15
- package/resources/beta/agents/sessions/turns.mjs.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.mts +169 -24
- package/resources/beta/agents/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.ts +169 -24
- package/resources/beta/agents/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/agents/vaults/credentials.js +58 -15
- package/resources/beta/agents/vaults/credentials.js.map +1 -1
- package/resources/beta/agents/vaults/credentials.mjs +58 -15
- package/resources/beta/agents/vaults/credentials.mjs.map +1 -1
- package/resources/beta/agents/vaults/index.d.mts +1 -1
- package/resources/beta/agents/vaults/index.d.mts.map +1 -1
- package/resources/beta/agents/vaults/index.d.ts +1 -1
- package/resources/beta/agents/vaults/index.d.ts.map +1 -1
- package/resources/beta/agents/vaults/index.js.map +1 -1
- package/resources/beta/agents/vaults/index.mjs.map +1 -1
- package/resources/beta/agents/vaults/vaults.d.mts +17 -6
- package/resources/beta/agents/vaults/vaults.d.mts.map +1 -1
- package/resources/beta/agents/vaults/vaults.d.ts +17 -6
- package/resources/beta/agents/vaults/vaults.d.ts.map +1 -1
- package/resources/beta/agents/vaults/vaults.js +58 -12
- package/resources/beta/agents/vaults/vaults.js.map +1 -1
- package/resources/beta/agents/vaults/vaults.mjs +58 -12
- package/resources/beta/agents/vaults/vaults.mjs.map +1 -1
- package/resources/beta/assistants.d.mts +8 -1
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts +8 -1
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/assistants.js +58 -5
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +58 -5
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/chatkit/threads.d.mts +16 -2
- package/resources/beta/chatkit/threads.d.mts.map +1 -1
- package/resources/beta/chatkit/threads.d.ts +16 -2
- package/resources/beta/chatkit/threads.d.ts.map +1 -1
- package/resources/beta/chatkit/threads.js +64 -24
- package/resources/beta/chatkit/threads.js.map +1 -1
- package/resources/beta/chatkit/threads.mjs +64 -24
- package/resources/beta/chatkit/threads.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +15 -12
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +15 -12
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts +8 -1
- package/resources/beta/threads/messages.d.mts.map +1 -1
- package/resources/beta/threads/messages.d.ts +8 -1
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js +58 -5
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +58 -5
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts +8 -1
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +8 -1
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +58 -5
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +58 -5
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +13 -3
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +13 -3
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +58 -12
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +58 -12
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/chat/completions/messages.d.mts +8 -1
- package/resources/chat/completions/messages.d.mts.map +1 -1
- package/resources/chat/completions/messages.d.ts +8 -1
- package/resources/chat/completions/messages.d.ts.map +1 -1
- package/resources/chat/completions/messages.js +58 -14
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs +58 -14
- package/resources/chat/completions/messages.mjs.map +1 -1
- package/resources/containers/containers.d.mts +8 -1
- package/resources/containers/containers.d.mts.map +1 -1
- package/resources/containers/containers.d.ts +8 -1
- package/resources/containers/containers.d.ts.map +1 -1
- package/resources/containers/containers.js +58 -3
- package/resources/containers/containers.js.map +1 -1
- package/resources/containers/containers.mjs +58 -3
- package/resources/containers/containers.mjs.map +1 -1
- package/resources/containers/files/files.d.mts +8 -1
- package/resources/containers/files/files.d.mts.map +1 -1
- package/resources/containers/files/files.d.ts +8 -1
- package/resources/containers/files/files.d.ts.map +1 -1
- package/resources/containers/files/files.js +58 -3
- package/resources/containers/files/files.js.map +1 -1
- package/resources/containers/files/files.mjs +58 -3
- package/resources/containers/files/files.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts +3 -4
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts +3 -4
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/items.d.mts +8 -1
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +8 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js +58 -3
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs +58 -3
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/evals/evals.d.mts +8 -1
- package/resources/evals/evals.d.mts.map +1 -1
- package/resources/evals/evals.d.ts +8 -1
- package/resources/evals/evals.d.ts.map +1 -1
- package/resources/evals/evals.js +58 -3
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs +58 -3
- package/resources/evals/evals.mjs.map +1 -1
- package/resources/evals/runs/runs.d.mts +8 -1
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts +8 -1
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js +58 -3
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +58 -3
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/files.d.mts +8 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +8 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +58 -3
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +58 -3
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.mts +16 -2
- package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts +16 -2
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +64 -26
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +64 -26
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.mts +8 -1
- package/resources/fine-tuning/jobs/checkpoints.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.ts +8 -1
- package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js +58 -13
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +58 -13
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts +16 -2
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +16 -2
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +64 -24
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +64 -24
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/images.d.mts +3 -4
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +3 -4
- package/resources/images.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/realtime/client-secrets.d.mts +7 -3
- package/resources/realtime/client-secrets.d.mts.map +1 -1
- package/resources/realtime/client-secrets.d.ts +7 -3
- package/resources/realtime/client-secrets.d.ts.map +1 -1
- package/resources/realtime/realtime.d.mts +17 -8
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +17 -8
- package/resources/realtime/realtime.d.ts.map +1 -1
- package/resources/realtime/realtime.js.map +1 -1
- package/resources/realtime/realtime.mjs.map +1 -1
- package/resources/responses/input-items.d.mts +8 -1
- package/resources/responses/input-items.d.mts.map +1 -1
- package/resources/responses/input-items.d.ts +8 -1
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/input-items.js +58 -13
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +58 -13
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/responses.d.mts +26 -12
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +26 -12
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +58 -0
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +58 -0
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/safety/cases.d.mts +26 -0
- package/resources/safety/cases.d.mts.map +1 -0
- package/resources/safety/cases.d.ts +26 -0
- package/resources/safety/cases.d.ts.map +1 -0
- package/resources/safety/cases.js +16 -0
- package/resources/safety/cases.js.map +1 -0
- package/resources/safety/cases.mjs +12 -0
- package/resources/safety/cases.mjs.map +1 -0
- package/resources/safety/index.d.mts +1 -0
- package/resources/safety/index.d.mts.map +1 -1
- package/resources/safety/index.d.ts +1 -0
- package/resources/safety/index.d.ts.map +1 -1
- package/resources/safety/index.js +3 -1
- package/resources/safety/index.js.map +1 -1
- package/resources/safety/index.mjs +1 -0
- package/resources/safety/index.mjs.map +1 -1
- package/resources/safety/safety.d.mts +4 -0
- package/resources/safety/safety.d.mts.map +1 -1
- package/resources/safety/safety.d.ts +4 -0
- package/resources/safety/safety.d.ts.map +1 -1
- package/resources/safety/safety.js +4 -0
- package/resources/safety/safety.js.map +1 -1
- package/resources/safety/safety.mjs +4 -0
- package/resources/safety/safety.mjs.map +1 -1
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/skills/skills.d.mts +8 -1
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +8 -1
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +58 -3
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +58 -3
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions/versions.d.mts +8 -1
- package/resources/skills/versions/versions.d.mts.map +1 -1
- package/resources/skills/versions/versions.d.ts +8 -1
- package/resources/skills/versions/versions.d.ts.map +1 -1
- package/resources/skills/versions/versions.js +58 -3
- package/resources/skills/versions/versions.js.map +1 -1
- package/resources/skills/versions/versions.mjs +58 -3
- package/resources/skills/versions/versions.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +8 -1
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +8 -1
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +58 -3
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +58 -3
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +8 -1
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +8 -1
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +58 -3
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +58 -3
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/videos.d.mts +16 -2
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +16 -2
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +64 -12
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +64 -12
- package/resources/videos.mjs.map +1 -1
- package/resources/webhooks/event-types.d.mts +17 -0
- package/resources/webhooks/event-types.d.mts.map +1 -0
- package/resources/webhooks/event-types.d.ts +17 -0
- package/resources/webhooks/event-types.d.ts.map +1 -0
- package/resources/webhooks/event-types.js +21 -0
- package/resources/webhooks/event-types.js.map +1 -0
- package/resources/webhooks/event-types.mjs +17 -0
- package/resources/webhooks/event-types.mjs.map +1 -0
- package/resources/webhooks/index.d.mts +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -0
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +368 -2
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +368 -2
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +168 -0
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +168 -0
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/src/client.ts +16 -10
- package/src/internal/parse.ts +14 -10
- package/src/internal/utils/log.ts +1 -0
- package/src/resources/admin/organization/admin-api-keys.ts +206 -2
- package/src/resources/admin/organization/audit-logs.ts +270 -1
- package/src/resources/admin/organization/certificates.ts +295 -2
- package/src/resources/admin/organization/external-storage.ts +420 -0
- package/src/resources/admin/organization/groups/groups.ts +200 -1
- package/src/resources/admin/organization/groups/roles.ts +202 -1
- package/src/resources/admin/organization/groups/users.ts +202 -1
- package/src/resources/admin/organization/index.ts +10 -0
- package/src/resources/admin/organization/invites.ts +200 -1
- package/src/resources/admin/organization/organization.ts +24 -0
- package/src/resources/admin/organization/projects/api-keys.ts +202 -1
- package/src/resources/admin/organization/projects/certificates.ts +202 -1
- package/src/resources/admin/organization/projects/groups/groups.ts +202 -1
- package/src/resources/admin/organization/projects/projects.ts +200 -1
- package/src/resources/admin/organization/projects/rate-limits.ts +202 -1
- package/src/resources/admin/organization/projects/roles.ts +202 -1
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +202 -1
- package/src/resources/admin/organization/projects/spend-alerts.ts +202 -1
- package/src/resources/admin/organization/projects/users/users.ts +202 -1
- package/src/resources/admin/organization/roles.ts +200 -1
- package/src/resources/admin/organization/spend-alerts.ts +200 -1
- package/src/resources/admin/organization/users/roles.ts +202 -1
- package/src/resources/admin/organization/users/users.ts +200 -1
- package/src/resources/batches.ts +200 -1
- package/src/resources/beta/agents/agents.ts +260 -46
- package/src/resources/beta/agents/environments/files.ts +6 -1
- package/src/resources/beta/agents/environments/templates.ts +216 -13
- package/src/resources/beta/agents/sessions/artifacts.ts +213 -2
- package/src/resources/beta/agents/sessions/events.ts +4 -1
- package/src/resources/beta/agents/sessions/items.ts +202 -1
- package/src/resources/beta/agents/sessions/sessions.ts +218 -8
- package/src/resources/beta/agents/sessions/subagents/subagents.ts +202 -1
- package/src/resources/beta/agents/sessions/turns.ts +205 -3
- package/src/resources/beta/agents/vaults/credentials.ts +389 -23
- package/src/resources/beta/agents/vaults/index.ts +2 -0
- package/src/resources/beta/agents/vaults/vaults.ts +212 -4
- package/src/resources/beta/assistants.ts +200 -1
- package/src/resources/beta/chatkit/threads.ts +311 -2
- package/src/resources/beta/responses/responses.ts +15 -12
- package/src/resources/beta/threads/messages.ts +202 -1
- package/src/resources/beta/threads/runs/runs.ts +202 -1
- package/src/resources/chat/completions/completions.ts +205 -3
- package/src/resources/chat/completions/messages.ts +202 -1
- package/src/resources/containers/containers.ts +200 -1
- package/src/resources/containers/files/files.ts +202 -1
- package/src/resources/conversations/conversations.ts +3 -4
- package/src/resources/conversations/items.ts +202 -1
- package/src/resources/evals/evals.ts +200 -1
- package/src/resources/evals/runs/runs.ts +202 -1
- package/src/resources/files.ts +200 -1
- package/src/resources/fine-tuning/checkpoints/permissions.ts +297 -2
- package/src/resources/fine-tuning/jobs/checkpoints.ts +202 -1
- package/src/resources/fine-tuning/jobs/jobs.ts +295 -2
- package/src/resources/images.ts +3 -4
- package/src/resources/index.ts +1 -1
- package/src/resources/realtime/client-secrets.ts +7 -3
- package/src/resources/realtime/realtime.ts +17 -8
- package/src/resources/responses/input-items.ts +202 -1
- package/src/resources/responses/responses.ts +263 -13
- package/src/resources/safety/cases.ts +39 -0
- package/src/resources/safety/index.ts +1 -0
- package/src/resources/safety/safety.ts +6 -0
- package/src/resources/shared.ts +2 -2
- package/src/resources/skills/skills.ts +200 -1
- package/src/resources/skills/versions/versions.ts +202 -1
- package/src/resources/vector-stores/files.ts +202 -1
- package/src/resources/vector-stores/vector-stores.ts +200 -1
- package/src/resources/videos.ts +295 -2
- package/src/resources/webhooks/api.md +42 -21
- package/src/resources/webhooks/event-types.ts +21 -0
- package/src/resources/webhooks/index.ts +1 -0
- package/src/resources/webhooks/webhooks.ts +752 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -13,6 +13,58 @@ const vaults_1 = require("./vaults/vaults.js");
|
|
|
13
13
|
const pagination_1 = require("../../../core/pagination.js");
|
|
14
14
|
const headers_1 = require("../../../internal/headers.js");
|
|
15
15
|
const path_1 = require("../../../internal/utils/path.js");
|
|
16
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
17
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
18
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
19
|
+
'method',
|
|
20
|
+
'path',
|
|
21
|
+
'query',
|
|
22
|
+
'body',
|
|
23
|
+
'headers',
|
|
24
|
+
'maxRetries',
|
|
25
|
+
'stream',
|
|
26
|
+
'timeout',
|
|
27
|
+
'httpAgent',
|
|
28
|
+
'fetchOptions',
|
|
29
|
+
'signal',
|
|
30
|
+
'idempotencyKey',
|
|
31
|
+
'defaultBaseURL',
|
|
32
|
+
'__metadata',
|
|
33
|
+
'__binaryRequest',
|
|
34
|
+
'__binaryResponse',
|
|
35
|
+
'__streamClass',
|
|
36
|
+
'__security',
|
|
37
|
+
'__synthesizeEventData',
|
|
38
|
+
]);
|
|
39
|
+
function normalizeRequestOptionsForQuery(value, queryKeys, options) {
|
|
40
|
+
if (typeof value !== 'object' || value === null)
|
|
41
|
+
return undefined;
|
|
42
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
43
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
44
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined));
|
|
45
|
+
const keys = entries.map(([key]) => key);
|
|
46
|
+
const requestOnly = keys.some((key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key));
|
|
47
|
+
if (!requestOnly)
|
|
48
|
+
return undefined;
|
|
49
|
+
// Declared query fields, including stream, must use the query argument.
|
|
50
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
51
|
+
if (options !== undefined ||
|
|
52
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))) {
|
|
53
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
54
|
+
}
|
|
55
|
+
// The query position must not gain authority to change the request destination
|
|
56
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
57
|
+
if (keys.some((key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key))) {
|
|
58
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
59
|
+
}
|
|
60
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
61
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
62
|
+
return Object.fromEntries(entries.map(([key, descriptor]) => {
|
|
63
|
+
if ('value' in descriptor)
|
|
64
|
+
return [key, descriptor.value];
|
|
65
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
16
68
|
class Agents extends resource_1.APIResource {
|
|
17
69
|
constructor() {
|
|
18
70
|
super(...arguments);
|
|
@@ -72,19 +124,13 @@ class Agents extends resource_1.APIResource {
|
|
|
72
124
|
__security: { bearerAuth: true },
|
|
73
125
|
});
|
|
74
126
|
}
|
|
75
|
-
/**
|
|
76
|
-
* Lists reusable agents in the current project. See
|
|
77
|
-
* [agent configuration](https://developers.openai.com/api/docs/guides/agents-api/configuration).
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```ts
|
|
81
|
-
* // Automatically fetches more pages as needed.
|
|
82
|
-
* for await (const agent of client.beta.agents.list()) {
|
|
83
|
-
* // ...
|
|
84
|
-
* }
|
|
85
|
-
* ```
|
|
86
|
-
*/
|
|
87
127
|
list(query = {}, options) {
|
|
128
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(query, ['after', 'limit', 'order'], options);
|
|
129
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
130
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
131
|
+
query = {};
|
|
132
|
+
}
|
|
133
|
+
query = query;
|
|
88
134
|
return this._client.getAPIList('/agents', (pagination_1.CursorPage), {
|
|
89
135
|
query,
|
|
90
136
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/resources/beta/agents/agents.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;;AAErF,wDAAqD;AAGrD,wFAA+D;AAC/D,iEAA4E;AAC5E,4EAAmD;AACnD,qDAO6B;AAC7B,sEAA6C;AAC7C,+CASyB;AAEzB,4DAA0F;AAC1F,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"agents.js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age } from "../../../core/pagination.mjs";
|
|
10
10
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
11
11
|
import { path } from "../../../internal/utils/path.mjs";
|
|
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
|
+
function normalizeRequestOptionsForQuery(value, queryKeys, options) {
|
|
36
|
+
if (typeof value !== 'object' || value === null)
|
|
37
|
+
return undefined;
|
|
38
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
39
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
40
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined));
|
|
41
|
+
const keys = entries.map(([key]) => key);
|
|
42
|
+
const requestOnly = keys.some((key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key));
|
|
43
|
+
if (!requestOnly)
|
|
44
|
+
return undefined;
|
|
45
|
+
// Declared query fields, including stream, must use the query argument.
|
|
46
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
47
|
+
if (options !== undefined ||
|
|
48
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))) {
|
|
49
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
50
|
+
}
|
|
51
|
+
// The query position must not gain authority to change the request destination
|
|
52
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
53
|
+
if (keys.some((key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key))) {
|
|
54
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
55
|
+
}
|
|
56
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
57
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
58
|
+
return Object.fromEntries(entries.map(([key, descriptor]) => {
|
|
59
|
+
if ('value' in descriptor)
|
|
60
|
+
return [key, descriptor.value];
|
|
61
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
12
64
|
export class Agents extends APIResource {
|
|
13
65
|
constructor() {
|
|
14
66
|
super(...arguments);
|
|
@@ -68,19 +120,13 @@ export class Agents extends APIResource {
|
|
|
68
120
|
__security: { bearerAuth: true },
|
|
69
121
|
});
|
|
70
122
|
}
|
|
71
|
-
/**
|
|
72
|
-
* Lists reusable agents in the current project. See
|
|
73
|
-
* [agent configuration](https://developers.openai.com/api/docs/guides/agents-api/configuration).
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* // Automatically fetches more pages as needed.
|
|
78
|
-
* for await (const agent of client.beta.agents.list()) {
|
|
79
|
-
* // ...
|
|
80
|
-
* }
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
123
|
list(query = {}, options) {
|
|
124
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(query, ['after', 'limit', 'order'], options);
|
|
125
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
126
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
127
|
+
query = {};
|
|
128
|
+
}
|
|
129
|
+
query = query;
|
|
84
130
|
return this._client.getAPIList('/agents', (CursorPage), {
|
|
85
131
|
query,
|
|
86
132
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../../src/resources/beta/agents/agents.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,KAAK,eAAe,wCAAoC;AAC/D,OAAO,EAAmB,YAAY,EAAE,wCAAoC;AAC5E,OAAO,KAAK,WAAW,gCAA4B;AACnD,OAAO,EAML,QAAQ,GACT,gCAA4B;AAC7B,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EAOL,MAAM,GAEP,4BAAwB;AAEzB,OAAO,EAAE,UAAU,EAAsC,qCAAiC;AAC1F,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../../src/resources/beta/agents/agents.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,KAAK,eAAe,wCAAoC;AAC/D,OAAO,EAAmB,YAAY,EAAE,wCAAoC;AAC5E,OAAO,KAAK,WAAW,gCAA4B;AACnD,OAAO,EAML,QAAQ,GACT,gCAA4B;AAC7B,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EAOL,MAAM,G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5E,KAAK,EACL,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAC3B,OAAO,CACR,CAAC;QACF,IAAI,sCAAsC,KAAK,SAAS,EAAE,CAAC;YACzD,OAAO,GAAG,sCAAsC,CAAC;YACjD,KAAK,GAAG,EAAE,CAAC;QACb,CAAC;QACD,KAAK,GAAG,KAA2C,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,UAAiB,CAAA,EAAE;YAC3D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,OAAO,EAAE,EAAE;YACnD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;CACF;AAixID,MAAM,CAAC,YAAY,GAAG,YAAY,CAAC;AACnC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;AACvB,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -92,7 +92,11 @@ export declare namespace FileCreateParams {
|
|
|
92
92
|
type: 'inline';
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
export interface FileListParams extends TokenPageParams {
|
|
95
|
+
export interface FileListParams extends Omit<TokenPageParams, 'limit'> {
|
|
96
|
+
/**
|
|
97
|
+
* The maximum number of files to return, between 1 and 100.
|
|
98
|
+
*/
|
|
99
|
+
limit?: number | null;
|
|
96
100
|
/**
|
|
97
101
|
* Sort by case-sensitive path components. Defaults to descending.
|
|
98
102
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/environments/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAC1D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,wCAAoC;AAE3F,OAAO,EAAE,cAAc,EAAE,iDAA6C;AAGtE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAS9B;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,aAAa,EAAE,MAAM,EACrB,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,eAAe,CAAC;CAYtD;AAED,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,wBAAwB,CAAC;IAEjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,gBAAgB,GACxB,gBAAgB,CAAC,gCAAgC,GACjD,gBAAgB,CAAC,gCAAgC,CAAC;AAEtD,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,UAAiB,gCAAgC;QAC/C;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,SAAS,CAAC;KACjB;IAED,UAAiB,gCAAgC;QAC/C;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,QAAQ,CAAC;KAChB;CACF;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;
|
|
1
|
+
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/environments/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAC1D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,wCAAoC;AAE3F,OAAO,EAAE,cAAc,EAAE,iDAA6C;AAGtE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAS9B;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,aAAa,EAAE,MAAM,EACrB,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,eAAe,CAAC;CAYtD;AAED,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,wBAAwB,CAAC;IAEjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,gBAAgB,GACxB,gBAAgB,CAAC,gCAAgC,GACjD,gBAAgB,CAAC,gCAAgC,CAAC;AAEtD,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,UAAiB,gCAAgC;QAC/C;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,SAAS,CAAC;KACjB;IAED,UAAiB,gCAAgC;QAC/C;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,QAAQ,CAAC;KAChB;CACF;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;IACpE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -92,7 +92,11 @@ export declare namespace FileCreateParams {
|
|
|
92
92
|
type: 'inline';
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
export interface FileListParams extends TokenPageParams {
|
|
95
|
+
export interface FileListParams extends Omit<TokenPageParams, 'limit'> {
|
|
96
|
+
/**
|
|
97
|
+
* The maximum number of files to return, between 1 and 100.
|
|
98
|
+
*/
|
|
99
|
+
limit?: number | null;
|
|
96
100
|
/**
|
|
97
101
|
* Sort by case-sensitive path components. Defaults to descending.
|
|
98
102
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/environments/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAC1D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,uCAAoC;AAE3F,OAAO,EAAE,cAAc,EAAE,gDAA6C;AAGtE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAS9B;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,aAAa,EAAE,MAAM,EACrB,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,eAAe,CAAC;CAYtD;AAED,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,wBAAwB,CAAC;IAEjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,gBAAgB,GACxB,gBAAgB,CAAC,gCAAgC,GACjD,gBAAgB,CAAC,gCAAgC,CAAC;AAEtD,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,UAAiB,gCAAgC;QAC/C;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,SAAS,CAAC;KACjB;IAED,UAAiB,gCAAgC;QAC/C;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,QAAQ,CAAC;KAChB;CACF;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/environments/files.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAC1D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,uCAAoC;AAE3F,OAAO,EAAE,cAAc,EAAE,gDAA6C;AAGtE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAS9B;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,aAAa,EAAE,MAAM,EACrB,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,eAAe,CAAC;CAYtD;AAED,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,wBAAwB,CAAC;IAEjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,gBAAgB,GACxB,gBAAgB,CAAC,gCAAgC,GACjD,gBAAgB,CAAC,gCAAgC,CAAC;AAEtD,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,UAAiB,gCAAgC;QAC/C;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,SAAS,CAAC;KACjB;IAED,UAAiB,gCAAgC;QAC/C;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,QAAQ,CAAC;KAChB;CACF;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;IACpE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -56,7 +56,14 @@ export declare class Templates extends APIResource {
|
|
|
56
56
|
* }
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
|
-
list(query?: TemplateListParams
|
|
59
|
+
list(query?: (TemplateListParams & ({
|
|
60
|
+
[K in 'method' | 'path' | 'query' | 'body' | 'headers' | 'maxRetries' | 'stream' | 'timeout' | 'httpAgent' | 'fetchOptions' | 'signal' | 'idempotencyKey' | 'defaultBaseURL' | '__metadata' | '__binaryRequest' | '__binaryResponse' | '__streamClass' | '__security' | '__synthesizeEventData']?: never;
|
|
61
|
+
} | null | undefined)) | null | undefined, options?: RequestOptions): PagePromise<EnvironmentTemplatesPage, EnvironmentTemplate>;
|
|
62
|
+
list(options?: {
|
|
63
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
64
|
+
} & {
|
|
65
|
+
[K in 'method' | 'path' | 'body' | 'stream' | 'httpAgent' | 'fetchOptions' | 'defaultBaseURL' | '__metadata' | '__binaryRequest' | '__binaryResponse' | '__streamClass' | '__security' | '__synthesizeEventData']?: never;
|
|
66
|
+
}): PagePromise<EnvironmentTemplatesPage, EnvironmentTemplate>;
|
|
60
67
|
/**
|
|
61
68
|
* Deletes reusable environment configuration and all confidential template inputs.
|
|
62
69
|
* See
|
|
@@ -265,11 +272,12 @@ export interface TemplateCreateParams {
|
|
|
265
272
|
*/
|
|
266
273
|
name?: string | null;
|
|
267
274
|
/**
|
|
268
|
-
* Network access for
|
|
275
|
+
* Network access policy for the environment. Defaults to disabled for GA requests
|
|
276
|
+
* and enabled for alpha/beta requests.
|
|
269
277
|
*/
|
|
270
278
|
network?: TemplateCreateParams.Network | null;
|
|
271
279
|
/**
|
|
272
|
-
* Packages to install in
|
|
280
|
+
* Packages to install in the environment. Defaults to empty package lists.
|
|
273
281
|
*/
|
|
274
282
|
packages?: TemplateCreateParams.Packages | null;
|
|
275
283
|
/**
|
|
@@ -288,14 +296,14 @@ export interface TemplateCreateParams {
|
|
|
288
296
|
}
|
|
289
297
|
export declare namespace TemplateCreateParams {
|
|
290
298
|
/**
|
|
291
|
-
* Network access for
|
|
299
|
+
* Network access policy for the environment. Defaults to disabled for GA requests
|
|
300
|
+
* and enabled for alpha/beta requests.
|
|
292
301
|
*/
|
|
293
302
|
interface Network {
|
|
294
303
|
/**
|
|
295
304
|
* The environment's network access mode.
|
|
296
305
|
*
|
|
297
|
-
* - `enabled` - Allows unrestricted network access
|
|
298
|
-
* policy.
|
|
306
|
+
* - `enabled` - Allows unrestricted network access.
|
|
299
307
|
* - `disabled` - Disables network access.
|
|
300
308
|
* - `restricted` - Allows access only to configured domains.
|
|
301
309
|
*/
|
|
@@ -306,7 +314,7 @@ export declare namespace TemplateCreateParams {
|
|
|
306
314
|
allowed_domains?: Array<string> | null;
|
|
307
315
|
}
|
|
308
316
|
/**
|
|
309
|
-
* Packages to install in
|
|
317
|
+
* Packages to install in the environment. Defaults to empty package lists.
|
|
310
318
|
*/
|
|
311
319
|
interface Packages {
|
|
312
320
|
/**
|
|
@@ -343,11 +351,13 @@ export interface TemplateUpdateParams {
|
|
|
343
351
|
*/
|
|
344
352
|
name?: string | null;
|
|
345
353
|
/**
|
|
346
|
-
* Network access
|
|
354
|
+
* Network access available after setup completes. Omit to preserve the current
|
|
355
|
+
* policy, or pass `null` to reset to disabled for GA requests or enabled for
|
|
356
|
+
* alpha/beta requests.
|
|
347
357
|
*/
|
|
348
358
|
network?: TemplateUpdateParams.Network | null;
|
|
349
359
|
/**
|
|
350
|
-
* Packages
|
|
360
|
+
* Packages installed before the runtime network policy applies.
|
|
351
361
|
*/
|
|
352
362
|
packages?: TemplateUpdateParams.Packages | null;
|
|
353
363
|
/**
|
|
@@ -365,14 +375,15 @@ export interface TemplateUpdateParams {
|
|
|
365
375
|
}
|
|
366
376
|
export declare namespace TemplateUpdateParams {
|
|
367
377
|
/**
|
|
368
|
-
* Network access
|
|
378
|
+
* Network access available after setup completes. Omit to preserve the current
|
|
379
|
+
* policy, or pass `null` to reset to disabled for GA requests or enabled for
|
|
380
|
+
* alpha/beta requests.
|
|
369
381
|
*/
|
|
370
382
|
interface Network {
|
|
371
383
|
/**
|
|
372
384
|
* The environment's network access mode.
|
|
373
385
|
*
|
|
374
|
-
* - `enabled` - Allows unrestricted network access
|
|
375
|
-
* policy.
|
|
386
|
+
* - `enabled` - Allows unrestricted network access.
|
|
376
387
|
* - `disabled` - Disables network access.
|
|
377
388
|
* - `restricted` - Allows access only to configured domains.
|
|
378
389
|
*/
|
|
@@ -383,7 +394,7 @@ export declare namespace TemplateUpdateParams {
|
|
|
383
394
|
allowed_domains?: Array<string> | null;
|
|
384
395
|
}
|
|
385
396
|
/**
|
|
386
|
-
* Packages
|
|
397
|
+
* Packages installed before the runtime network policy applies.
|
|
387
398
|
*/
|
|
388
399
|
interface Packages {
|
|
389
400
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/environments/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,KAAK,SAAS,sBAAkB;AACvC,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,wCAAoC;AAE7F,OAAO,EAAE,cAAc,EAAE,iDAA6C;
|
|
1
|
+
{"version":3,"file":"templates.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/environments/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,KAAK,SAAS,sBAAkB;AACvC,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,wCAAoC;AAE7F,OAAO,EAAE,cAAc,EAAE,iDAA6C;AA8GtE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IASlC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAQlG;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,qBAAqB,EAAE,MAAM,EAC7B,IAAI,GAA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D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -56,7 +56,14 @@ export declare class Templates extends APIResource {
|
|
|
56
56
|
* }
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
|
-
list(query?: TemplateListParams
|
|
59
|
+
list(query?: (TemplateListParams & ({
|
|
60
|
+
[K in 'method' | 'path' | 'query' | 'body' | 'headers' | 'maxRetries' | 'stream' | 'timeout' | 'httpAgent' | 'fetchOptions' | 'signal' | 'idempotencyKey' | 'defaultBaseURL' | '__metadata' | '__binaryRequest' | '__binaryResponse' | '__streamClass' | '__security' | '__synthesizeEventData']?: never;
|
|
61
|
+
} | null | undefined)) | null | undefined, options?: RequestOptions): PagePromise<EnvironmentTemplatesPage, EnvironmentTemplate>;
|
|
62
|
+
list(options?: {
|
|
63
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
64
|
+
} & {
|
|
65
|
+
[K in 'method' | 'path' | 'body' | 'stream' | 'httpAgent' | 'fetchOptions' | 'defaultBaseURL' | '__metadata' | '__binaryRequest' | '__binaryResponse' | '__streamClass' | '__security' | '__synthesizeEventData']?: never;
|
|
66
|
+
}): PagePromise<EnvironmentTemplatesPage, EnvironmentTemplate>;
|
|
60
67
|
/**
|
|
61
68
|
* Deletes reusable environment configuration and all confidential template inputs.
|
|
62
69
|
* See
|
|
@@ -265,11 +272,12 @@ export interface TemplateCreateParams {
|
|
|
265
272
|
*/
|
|
266
273
|
name?: string | null;
|
|
267
274
|
/**
|
|
268
|
-
* Network access for
|
|
275
|
+
* Network access policy for the environment. Defaults to disabled for GA requests
|
|
276
|
+
* and enabled for alpha/beta requests.
|
|
269
277
|
*/
|
|
270
278
|
network?: TemplateCreateParams.Network | null;
|
|
271
279
|
/**
|
|
272
|
-
* Packages to install in
|
|
280
|
+
* Packages to install in the environment. Defaults to empty package lists.
|
|
273
281
|
*/
|
|
274
282
|
packages?: TemplateCreateParams.Packages | null;
|
|
275
283
|
/**
|
|
@@ -288,14 +296,14 @@ export interface TemplateCreateParams {
|
|
|
288
296
|
}
|
|
289
297
|
export declare namespace TemplateCreateParams {
|
|
290
298
|
/**
|
|
291
|
-
* Network access for
|
|
299
|
+
* Network access policy for the environment. Defaults to disabled for GA requests
|
|
300
|
+
* and enabled for alpha/beta requests.
|
|
292
301
|
*/
|
|
293
302
|
interface Network {
|
|
294
303
|
/**
|
|
295
304
|
* The environment's network access mode.
|
|
296
305
|
*
|
|
297
|
-
* - `enabled` - Allows unrestricted network access
|
|
298
|
-
* policy.
|
|
306
|
+
* - `enabled` - Allows unrestricted network access.
|
|
299
307
|
* - `disabled` - Disables network access.
|
|
300
308
|
* - `restricted` - Allows access only to configured domains.
|
|
301
309
|
*/
|
|
@@ -306,7 +314,7 @@ export declare namespace TemplateCreateParams {
|
|
|
306
314
|
allowed_domains?: Array<string> | null;
|
|
307
315
|
}
|
|
308
316
|
/**
|
|
309
|
-
* Packages to install in
|
|
317
|
+
* Packages to install in the environment. Defaults to empty package lists.
|
|
310
318
|
*/
|
|
311
319
|
interface Packages {
|
|
312
320
|
/**
|
|
@@ -343,11 +351,13 @@ export interface TemplateUpdateParams {
|
|
|
343
351
|
*/
|
|
344
352
|
name?: string | null;
|
|
345
353
|
/**
|
|
346
|
-
* Network access
|
|
354
|
+
* Network access available after setup completes. Omit to preserve the current
|
|
355
|
+
* policy, or pass `null` to reset to disabled for GA requests or enabled for
|
|
356
|
+
* alpha/beta requests.
|
|
347
357
|
*/
|
|
348
358
|
network?: TemplateUpdateParams.Network | null;
|
|
349
359
|
/**
|
|
350
|
-
* Packages
|
|
360
|
+
* Packages installed before the runtime network policy applies.
|
|
351
361
|
*/
|
|
352
362
|
packages?: TemplateUpdateParams.Packages | null;
|
|
353
363
|
/**
|
|
@@ -365,14 +375,15 @@ export interface TemplateUpdateParams {
|
|
|
365
375
|
}
|
|
366
376
|
export declare namespace TemplateUpdateParams {
|
|
367
377
|
/**
|
|
368
|
-
* Network access
|
|
378
|
+
* Network access available after setup completes. Omit to preserve the current
|
|
379
|
+
* policy, or pass `null` to reset to disabled for GA requests or enabled for
|
|
380
|
+
* alpha/beta requests.
|
|
369
381
|
*/
|
|
370
382
|
interface Network {
|
|
371
383
|
/**
|
|
372
384
|
* The environment's network access mode.
|
|
373
385
|
*
|
|
374
|
-
* - `enabled` - Allows unrestricted network access
|
|
375
|
-
* policy.
|
|
386
|
+
* - `enabled` - Allows unrestricted network access.
|
|
376
387
|
* - `disabled` - Disables network access.
|
|
377
388
|
* - `restricted` - Allows access only to configured domains.
|
|
378
389
|
*/
|
|
@@ -383,7 +394,7 @@ export declare namespace TemplateUpdateParams {
|
|
|
383
394
|
allowed_domains?: Array<string> | null;
|
|
384
395
|
}
|
|
385
396
|
/**
|
|
386
|
-
* Packages
|
|
397
|
+
* Packages installed before the runtime network policy applies.
|
|
387
398
|
*/
|
|
388
399
|
interface Packages {
|
|
389
400
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/environments/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,KAAK,SAAS,qBAAkB;AACvC,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,uCAAoC;AAE7F,OAAO,EAAE,cAAc,EAAE,gDAA6C;
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/environments/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,KAAK,SAAS,qBAAkB;AACvC,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAA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E,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;QAE9B;;WAEG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;KAC/B;CACF;AAED,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D;;;;;OAKG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -6,6 +6,58 @@ const resource_1 = require("../../../../core/resource.js");
|
|
|
6
6
|
const pagination_1 = require("../../../../core/pagination.js");
|
|
7
7
|
const headers_1 = require("../../../../internal/headers.js");
|
|
8
8
|
const path_1 = require("../../../../internal/utils/path.js");
|
|
9
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
10
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
11
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
12
|
+
'method',
|
|
13
|
+
'path',
|
|
14
|
+
'query',
|
|
15
|
+
'body',
|
|
16
|
+
'headers',
|
|
17
|
+
'maxRetries',
|
|
18
|
+
'stream',
|
|
19
|
+
'timeout',
|
|
20
|
+
'httpAgent',
|
|
21
|
+
'fetchOptions',
|
|
22
|
+
'signal',
|
|
23
|
+
'idempotencyKey',
|
|
24
|
+
'defaultBaseURL',
|
|
25
|
+
'__metadata',
|
|
26
|
+
'__binaryRequest',
|
|
27
|
+
'__binaryResponse',
|
|
28
|
+
'__streamClass',
|
|
29
|
+
'__security',
|
|
30
|
+
'__synthesizeEventData',
|
|
31
|
+
]);
|
|
32
|
+
function normalizeRequestOptionsForQuery(value, queryKeys, options) {
|
|
33
|
+
if (typeof value !== 'object' || value === null)
|
|
34
|
+
return undefined;
|
|
35
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
36
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
37
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined));
|
|
38
|
+
const keys = entries.map(([key]) => key);
|
|
39
|
+
const requestOnly = keys.some((key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key));
|
|
40
|
+
if (!requestOnly)
|
|
41
|
+
return undefined;
|
|
42
|
+
// Declared query fields, including stream, must use the query argument.
|
|
43
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
44
|
+
if (options !== undefined ||
|
|
45
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))) {
|
|
46
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
47
|
+
}
|
|
48
|
+
// The query position must not gain authority to change the request destination
|
|
49
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
50
|
+
if (keys.some((key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key))) {
|
|
51
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
52
|
+
}
|
|
53
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
54
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
55
|
+
return Object.fromEntries(entries.map(([key, descriptor]) => {
|
|
56
|
+
if ('value' in descriptor)
|
|
57
|
+
return [key, descriptor.value];
|
|
58
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
9
61
|
class Templates extends resource_1.APIResource {
|
|
10
62
|
/**
|
|
11
63
|
* Creates reusable environment configuration without returning confidential setup
|
|
@@ -67,19 +119,13 @@ class Templates extends resource_1.APIResource {
|
|
|
67
119
|
__security: { bearerAuth: true },
|
|
68
120
|
});
|
|
69
121
|
}
|
|
70
|
-
/**
|
|
71
|
-
* Lists reusable environment templates without returning confidential values. See
|
|
72
|
-
* [reusing a hosted setup](https://developers.openai.com/api/docs/guides/agents-api/tools#reuse-a-hosted-plugin-setup).
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```ts
|
|
76
|
-
* // Automatically fetches more pages as needed.
|
|
77
|
-
* for await (const environmentTemplate of client.beta.agents.environments.templates.list()) {
|
|
78
|
-
* // ...
|
|
79
|
-
* }
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
122
|
list(query = {}, options) {
|
|
123
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(query, ['after', 'limit', 'order'], options);
|
|
124
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
125
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
126
|
+
query = {};
|
|
127
|
+
}
|
|
128
|
+
query = query;
|
|
83
129
|
return this._client.getAPIList('/agents/environments/templates', (pagination_1.CursorPage), {
|
|
84
130
|
query,
|
|
85
131
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../../../src/resources/beta/agents/environments/templates.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,2DAAwD;AAGxD,+DAA6F;AAC7F,6DAA4D;AAE5D,6DAAuD;AAEvD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE;YACzD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,qBAA6B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,qBAAqB,EAAE,EAAE;YACrF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,qBAA6B,EAC7B,OAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kCAAkC,qBAAqB,EAAE,EAAE;YACtF,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../../../src/resources/beta/agents/environments/templates.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,2DAAwD;AAGxD,+DAA6F;AAC7F,6DAA4D;AAE5D,6DAAuD;AAEvD,6EAA6E;AAC7E,6EAA6E;AAC7E,MAAM,mCAAmC,GAAG,IAAI,GAAG,CAAC;IAClD,QAAQ;IACR,MAAM;IACN,OAAO;IACP,MAAM;IACN,SAAS;IACT,YAAY;IACZ,QAAQ;IACR,SAAS;IACT,WAAW;IACX,cAAc;IACd,QAA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