openai 7.19.0 → 7.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +4 -2
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +304 -5
- package/client.js.map +1 -1
- package/client.mjs +304 -5
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/admin/organization/admin-api-keys.d.mts +8 -1
- package/resources/admin/organization/admin-api-keys.d.mts.map +1 -1
- package/resources/admin/organization/admin-api-keys.d.ts +8 -1
- package/resources/admin/organization/admin-api-keys.d.ts.map +1 -1
- package/resources/admin/organization/admin-api-keys.js +69 -19
- package/resources/admin/organization/admin-api-keys.js.map +1 -1
- package/resources/admin/organization/admin-api-keys.mjs +69 -19
- package/resources/admin/organization/admin-api-keys.mjs.map +1 -1
- package/resources/admin/organization/audit-logs.d.mts +56 -3
- package/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/resources/admin/organization/audit-logs.d.ts +56 -3
- package/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/resources/admin/organization/audit-logs.js +74 -13
- package/resources/admin/organization/audit-logs.js.map +1 -1
- package/resources/admin/organization/audit-logs.mjs +74 -13
- package/resources/admin/organization/audit-logs.mjs.map +1 -1
- package/resources/admin/organization/certificates.d.mts +16 -2
- package/resources/admin/organization/certificates.d.mts.map +1 -1
- package/resources/admin/organization/certificates.d.ts +16 -2
- package/resources/admin/organization/certificates.d.ts.map +1 -1
- package/resources/admin/organization/certificates.js +88 -36
- package/resources/admin/organization/certificates.js.map +1 -1
- package/resources/admin/organization/certificates.mjs +88 -36
- package/resources/admin/organization/certificates.mjs.map +1 -1
- package/resources/admin/organization/data-retention.d.mts.map +1 -1
- package/resources/admin/organization/data-retention.d.ts.map +1 -1
- package/resources/admin/organization/data-retention.js +7 -4
- package/resources/admin/organization/data-retention.js.map +1 -1
- package/resources/admin/organization/data-retention.mjs +7 -4
- package/resources/admin/organization/data-retention.mjs.map +1 -1
- package/resources/admin/organization/external-storage.d.mts +144 -0
- package/resources/admin/organization/external-storage.d.mts.map +1 -0
- package/resources/admin/organization/external-storage.d.ts +144 -0
- package/resources/admin/organization/external-storage.d.ts.map +1 -0
- package/resources/admin/organization/external-storage.js +156 -0
- package/resources/admin/organization/external-storage.js.map +1 -0
- package/resources/admin/organization/external-storage.mjs +152 -0
- package/resources/admin/organization/external-storage.mjs.map +1 -0
- package/resources/admin/organization/groups/groups.d.mts +8 -1
- package/resources/admin/organization/groups/groups.d.mts.map +1 -1
- package/resources/admin/organization/groups/groups.d.ts +8 -1
- package/resources/admin/organization/groups/groups.d.ts.map +1 -1
- package/resources/admin/organization/groups/groups.js +71 -21
- package/resources/admin/organization/groups/groups.js.map +1 -1
- package/resources/admin/organization/groups/groups.mjs +71 -21
- package/resources/admin/organization/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/groups/roles.d.mts +8 -1
- package/resources/admin/organization/groups/roles.d.mts.map +1 -1
- package/resources/admin/organization/groups/roles.d.ts +8 -1
- package/resources/admin/organization/groups/roles.d.ts.map +1 -1
- package/resources/admin/organization/groups/roles.js +72 -20
- package/resources/admin/organization/groups/roles.js.map +1 -1
- package/resources/admin/organization/groups/roles.mjs +72 -20
- package/resources/admin/organization/groups/roles.mjs.map +1 -1
- package/resources/admin/organization/groups/users.d.mts +8 -1
- package/resources/admin/organization/groups/users.d.mts.map +1 -1
- package/resources/admin/organization/groups/users.d.ts +8 -1
- package/resources/admin/organization/groups/users.d.ts.map +1 -1
- package/resources/admin/organization/groups/users.js +72 -20
- package/resources/admin/organization/groups/users.js.map +1 -1
- package/resources/admin/organization/groups/users.mjs +72 -20
- package/resources/admin/organization/groups/users.mjs.map +1 -1
- package/resources/admin/organization/index.d.mts +1 -0
- package/resources/admin/organization/index.d.mts.map +1 -1
- package/resources/admin/organization/index.d.ts +1 -0
- package/resources/admin/organization/index.d.ts.map +1 -1
- package/resources/admin/organization/index.js +3 -1
- package/resources/admin/organization/index.js.map +1 -1
- package/resources/admin/organization/index.mjs +1 -0
- package/resources/admin/organization/index.mjs.map +1 -1
- package/resources/admin/organization/invites.d.mts +8 -1
- package/resources/admin/organization/invites.d.mts.map +1 -1
- package/resources/admin/organization/invites.d.ts +8 -1
- package/resources/admin/organization/invites.d.ts.map +1 -1
- package/resources/admin/organization/invites.js +69 -19
- package/resources/admin/organization/invites.js.map +1 -1
- package/resources/admin/organization/invites.mjs +69 -19
- package/resources/admin/organization/invites.mjs.map +1 -1
- package/resources/admin/organization/organization.d.mts +4 -0
- package/resources/admin/organization/organization.d.mts.map +1 -1
- package/resources/admin/organization/organization.d.ts +4 -0
- package/resources/admin/organization/organization.d.ts.map +1 -1
- package/resources/admin/organization/organization.js +4 -0
- package/resources/admin/organization/organization.js.map +1 -1
- package/resources/admin/organization/organization.mjs +4 -0
- package/resources/admin/organization/organization.mjs.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.mts +8 -1
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.ts +8 -1
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/api-keys.js +70 -18
- package/resources/admin/organization/projects/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/api-keys.mjs +70 -18
- package/resources/admin/organization/projects/api-keys.mjs.map +1 -1
- package/resources/admin/organization/projects/certificates.d.mts +8 -1
- package/resources/admin/organization/projects/certificates.d.mts.map +1 -1
- package/resources/admin/organization/projects/certificates.d.ts +8 -1
- package/resources/admin/organization/projects/certificates.d.ts.map +1 -1
- package/resources/admin/organization/projects/certificates.js +78 -16
- package/resources/admin/organization/projects/certificates.js.map +1 -1
- package/resources/admin/organization/projects/certificates.mjs +78 -16
- package/resources/admin/organization/projects/certificates.mjs.map +1 -1
- package/resources/admin/organization/projects/data-retention.d.mts.map +1 -1
- package/resources/admin/organization/projects/data-retention.d.ts.map +1 -1
- package/resources/admin/organization/projects/data-retention.js +7 -4
- package/resources/admin/organization/projects/data-retention.js.map +1 -1
- package/resources/admin/organization/projects/data-retention.mjs +7 -4
- package/resources/admin/organization/projects/data-retention.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/groups.d.mts +8 -1
- package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -1
- package/resources/admin/organization/projects/groups/groups.d.ts +8 -1
- package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -1
- package/resources/admin/organization/projects/groups/groups.js +72 -20
- package/resources/admin/organization/projects/groups/groups.js.map +1 -1
- package/resources/admin/organization/projects/groups/groups.mjs +72 -20
- package/resources/admin/organization/projects/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/roles.d.mts.map +1 -1
- package/resources/admin/organization/projects/groups/roles.d.ts.map +1 -1
- package/resources/admin/organization/projects/groups/roles.js +14 -7
- package/resources/admin/organization/projects/groups/roles.js.map +1 -1
- package/resources/admin/organization/projects/groups/roles.mjs +14 -7
- package/resources/admin/organization/projects/groups/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.d.mts.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.d.ts.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.js +7 -4
- package/resources/admin/organization/projects/hosted-tool-permissions.js.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.mjs +7 -4
- package/resources/admin/organization/projects/hosted-tool-permissions.mjs.map +1 -1
- package/resources/admin/organization/projects/model-permissions.d.mts.map +1 -1
- package/resources/admin/organization/projects/model-permissions.d.ts.map +1 -1
- package/resources/admin/organization/projects/model-permissions.js +9 -6
- package/resources/admin/organization/projects/model-permissions.js.map +1 -1
- package/resources/admin/organization/projects/model-permissions.mjs +9 -6
- package/resources/admin/organization/projects/model-permissions.mjs.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +8 -1
- package/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/resources/admin/organization/projects/projects.d.ts +8 -1
- package/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.js +71 -21
- package/resources/admin/organization/projects/projects.js.map +1 -1
- package/resources/admin/organization/projects/projects.mjs +71 -21
- package/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/resources/admin/organization/projects/rate-limits.d.mts +8 -1
- package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -1
- package/resources/admin/organization/projects/rate-limits.d.ts +8 -1
- package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -1
- package/resources/admin/organization/projects/rate-limits.js +68 -16
- package/resources/admin/organization/projects/rate-limits.js.map +1 -1
- package/resources/admin/organization/projects/rate-limits.mjs +68 -16
- package/resources/admin/organization/projects/rate-limits.mjs.map +1 -1
- package/resources/admin/organization/projects/roles.d.mts +8 -1
- package/resources/admin/organization/projects/roles.d.mts.map +1 -1
- package/resources/admin/organization/projects/roles.d.ts +8 -1
- package/resources/admin/organization/projects/roles.d.ts.map +1 -1
- package/resources/admin/organization/projects/roles.js +71 -23
- package/resources/admin/organization/projects/roles.js.map +1 -1
- package/resources/admin/organization/projects/roles.mjs +71 -23
- package/resources/admin/organization/projects/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.js +8 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.mjs +8 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +8 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +8 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js +79 -20
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +79 -20
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.d.mts +8 -1
- package/resources/admin/organization/projects/spend-alerts.d.mts.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.d.ts +8 -1
- package/resources/admin/organization/projects/spend-alerts.d.ts.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.js +74 -22
- package/resources/admin/organization/projects/spend-alerts.js.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.mjs +74 -22
- package/resources/admin/organization/projects/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-limit.d.mts.map +1 -1
- package/resources/admin/organization/projects/spend-limit.d.ts.map +1 -1
- package/resources/admin/organization/projects/spend-limit.js +9 -6
- package/resources/admin/organization/projects/spend-limit.js.map +1 -1
- package/resources/admin/organization/projects/spend-limit.mjs +9 -6
- package/resources/admin/organization/projects/spend-limit.mjs.map +1 -1
- package/resources/admin/organization/projects/users/roles.d.mts.map +1 -1
- package/resources/admin/organization/projects/users/roles.d.ts.map +1 -1
- package/resources/admin/organization/projects/users/roles.js +14 -7
- package/resources/admin/organization/projects/users/roles.js.map +1 -1
- package/resources/admin/organization/projects/users/roles.mjs +14 -7
- package/resources/admin/organization/projects/users/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/users/users.d.mts +8 -1
- package/resources/admin/organization/projects/users/users.d.mts.map +1 -1
- package/resources/admin/organization/projects/users/users.d.ts +8 -1
- package/resources/admin/organization/projects/users/users.d.ts.map +1 -1
- package/resources/admin/organization/projects/users/users.js +74 -22
- package/resources/admin/organization/projects/users/users.js.map +1 -1
- package/resources/admin/organization/projects/users/users.mjs +74 -22
- package/resources/admin/organization/projects/users/users.mjs.map +1 -1
- package/resources/admin/organization/roles.d.mts +8 -1
- package/resources/admin/organization/roles.d.mts.map +1 -1
- package/resources/admin/organization/roles.d.ts +8 -1
- package/resources/admin/organization/roles.d.ts.map +1 -1
- package/resources/admin/organization/roles.js +71 -21
- package/resources/admin/organization/roles.js.map +1 -1
- package/resources/admin/organization/roles.mjs +71 -21
- package/resources/admin/organization/roles.mjs.map +1 -1
- package/resources/admin/organization/spend-alerts.d.mts +8 -1
- package/resources/admin/organization/spend-alerts.d.mts.map +1 -1
- package/resources/admin/organization/spend-alerts.d.ts +8 -1
- package/resources/admin/organization/spend-alerts.d.ts.map +1 -1
- package/resources/admin/organization/spend-alerts.js +74 -20
- package/resources/admin/organization/spend-alerts.js.map +1 -1
- package/resources/admin/organization/spend-alerts.mjs +74 -20
- package/resources/admin/organization/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/spend-limit.d.mts.map +1 -1
- package/resources/admin/organization/spend-limit.d.ts.map +1 -1
- package/resources/admin/organization/spend-limit.js +9 -6
- package/resources/admin/organization/spend-limit.js.map +1 -1
- package/resources/admin/organization/spend-limit.mjs +9 -6
- package/resources/admin/organization/spend-limit.mjs.map +1 -1
- package/resources/admin/organization/usage.d.mts.map +1 -1
- package/resources/admin/organization/usage.d.ts.map +1 -1
- package/resources/admin/organization/usage.js +25 -22
- package/resources/admin/organization/usage.js.map +1 -1
- package/resources/admin/organization/usage.mjs +25 -22
- package/resources/admin/organization/usage.mjs.map +1 -1
- package/resources/admin/organization/users/roles.d.mts +8 -1
- package/resources/admin/organization/users/roles.d.mts.map +1 -1
- package/resources/admin/organization/users/roles.d.ts +8 -1
- package/resources/admin/organization/users/roles.d.ts.map +1 -1
- package/resources/admin/organization/users/roles.js +72 -20
- package/resources/admin/organization/users/roles.js.map +1 -1
- package/resources/admin/organization/users/roles.mjs +72 -20
- package/resources/admin/organization/users/roles.mjs.map +1 -1
- package/resources/admin/organization/users/users.d.mts +8 -1
- package/resources/admin/organization/users/users.d.mts.map +1 -1
- package/resources/admin/organization/users/users.d.ts +8 -1
- package/resources/admin/organization/users/users.d.ts.map +1 -1
- package/resources/admin/organization/users/users.js +69 -19
- package/resources/admin/organization/users/users.js.map +1 -1
- package/resources/admin/organization/users/users.mjs +69 -19
- package/resources/admin/organization/users/users.mjs.map +1 -1
- package/resources/audio/speech.d.mts.map +1 -1
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/speech.js +5 -2
- package/resources/audio/speech.js.map +1 -1
- package/resources/audio/speech.mjs +5 -2
- package/resources/audio/speech.mjs.map +1 -1
- package/resources/audio/transcriptions.d.mts.map +1 -1
- package/resources/audio/transcriptions.d.ts.map +1 -1
- package/resources/audio/transcriptions.js +5 -2
- package/resources/audio/transcriptions.js.map +1 -1
- package/resources/audio/transcriptions.mjs +5 -2
- package/resources/audio/transcriptions.mjs.map +1 -1
- package/resources/audio/translations.d.mts.map +1 -1
- package/resources/audio/translations.d.ts.map +1 -1
- package/resources/audio/translations.js +4 -1
- package/resources/audio/translations.js.map +1 -1
- package/resources/audio/translations.mjs +4 -1
- package/resources/audio/translations.mjs.map +1 -1
- package/resources/batches.d.mts +8 -1
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +8 -1
- package/resources/batches.d.ts.map +1 -1
- package/resources/batches.js +70 -11
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +70 -11
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/agents/agents.d.mts +93 -45
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +93 -45
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js +71 -22
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs +71 -22
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/environments/environments.d.mts.map +1 -1
- package/resources/beta/agents/environments/environments.d.ts.map +1 -1
- package/resources/beta/agents/environments/environments.js +5 -2
- package/resources/beta/agents/environments/environments.js.map +1 -1
- package/resources/beta/agents/environments/environments.mjs +5 -2
- package/resources/beta/agents/environments/environments.mjs.map +1 -1
- package/resources/beta/agents/environments/files.d.mts.map +1 -1
- package/resources/beta/agents/environments/files.d.ts.map +1 -1
- package/resources/beta/agents/environments/files.js +7 -4
- package/resources/beta/agents/environments/files.js.map +1 -1
- package/resources/beta/agents/environments/files.mjs +7 -4
- package/resources/beta/agents/environments/files.mjs.map +1 -1
- package/resources/beta/agents/environments/templates.d.mts +22 -9
- package/resources/beta/agents/environments/templates.d.mts.map +1 -1
- package/resources/beta/agents/environments/templates.d.ts +22 -9
- package/resources/beta/agents/environments/templates.d.ts.map +1 -1
- package/resources/beta/agents/environments/templates.js +71 -22
- package/resources/beta/agents/environments/templates.js.map +1 -1
- package/resources/beta/agents/environments/templates.mjs +71 -22
- package/resources/beta/agents/environments/templates.mjs.map +1 -1
- package/resources/beta/agents/index.d.mts +1 -1
- package/resources/beta/agents/index.d.mts.map +1 -1
- package/resources/beta/agents/index.d.ts +1 -1
- package/resources/beta/agents/index.d.ts.map +1 -1
- package/resources/beta/agents/index.js.map +1 -1
- package/resources/beta/agents/index.mjs.map +1 -1
- package/resources/beta/agents/sessions/artifacts.d.mts +8 -1
- package/resources/beta/agents/sessions/artifacts.d.mts.map +1 -1
- package/resources/beta/agents/sessions/artifacts.d.ts +8 -1
- package/resources/beta/agents/sessions/artifacts.d.ts.map +1 -1
- package/resources/beta/agents/sessions/artifacts.js +69 -22
- package/resources/beta/agents/sessions/artifacts.js.map +1 -1
- package/resources/beta/agents/sessions/artifacts.mjs +69 -22
- package/resources/beta/agents/sessions/artifacts.mjs.map +1 -1
- package/resources/beta/agents/sessions/events.d.mts.map +1 -1
- package/resources/beta/agents/sessions/events.d.ts.map +1 -1
- package/resources/beta/agents/sessions/events.js +11 -5
- package/resources/beta/agents/sessions/events.js.map +1 -1
- package/resources/beta/agents/sessions/events.mjs +11 -5
- package/resources/beta/agents/sessions/events.mjs.map +1 -1
- package/resources/beta/agents/sessions/items.d.mts +8 -1
- package/resources/beta/agents/sessions/items.d.mts.map +1 -1
- package/resources/beta/agents/sessions/items.d.ts +8 -1
- package/resources/beta/agents/sessions/items.d.ts.map +1 -1
- package/resources/beta/agents/sessions/items.js +63 -17
- package/resources/beta/agents/sessions/items.js.map +1 -1
- package/resources/beta/agents/sessions/items.mjs +63 -17
- package/resources/beta/agents/sessions/items.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts +17 -6
- package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.ts +17 -6
- package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/agents/sessions/sessions.js +71 -23
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs +71 -23
- package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/items.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/items.d.ts.map +1 -1
- package/resources/beta/agents/sessions/subagents/items.js +5 -2
- package/resources/beta/agents/sessions/subagents/items.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/items.mjs +5 -2
- package/resources/beta/agents/sessions/subagents/items.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.mts +8 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.ts +8 -1
- package/resources/beta/agents/sessions/subagents/subagents.d.ts.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.js +65 -18
- package/resources/beta/agents/sessions/subagents/subagents.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/subagents.mjs +65 -18
- package/resources/beta/agents/sessions/subagents/subagents.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/items.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/items.d.ts.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/items.js +5 -2
- package/resources/beta/agents/sessions/subagents/turns/items.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/items.mjs +5 -2
- package/resources/beta/agents/sessions/subagents/turns/items.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.js +7 -4
- package/resources/beta/agents/sessions/subagents/turns/turns.js.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.mjs +7 -4
- package/resources/beta/agents/sessions/subagents/turns/turns.mjs.map +1 -1
- package/resources/beta/agents/sessions/turns.d.mts +11 -3
- package/resources/beta/agents/sessions/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/turns.d.ts +11 -3
- package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/turns.js +65 -19
- package/resources/beta/agents/sessions/turns.js.map +1 -1
- package/resources/beta/agents/sessions/turns.mjs +65 -19
- package/resources/beta/agents/sessions/turns.mjs.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.mts +163 -23
- package/resources/beta/agents/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.ts +163 -23
- package/resources/beta/agents/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/agents/vaults/credentials.js +71 -25
- package/resources/beta/agents/vaults/credentials.js.map +1 -1
- package/resources/beta/agents/vaults/credentials.mjs +71 -25
- package/resources/beta/agents/vaults/credentials.mjs.map +1 -1
- package/resources/beta/agents/vaults/index.d.mts +1 -1
- package/resources/beta/agents/vaults/index.d.mts.map +1 -1
- package/resources/beta/agents/vaults/index.d.ts +1 -1
- package/resources/beta/agents/vaults/index.d.ts.map +1 -1
- package/resources/beta/agents/vaults/index.js.map +1 -1
- package/resources/beta/agents/vaults/index.mjs.map +1 -1
- package/resources/beta/agents/vaults/vaults.d.mts +11 -5
- package/resources/beta/agents/vaults/vaults.d.mts.map +1 -1
- package/resources/beta/agents/vaults/vaults.d.ts +11 -5
- package/resources/beta/agents/vaults/vaults.d.ts.map +1 -1
- package/resources/beta/agents/vaults/vaults.js +69 -20
- package/resources/beta/agents/vaults/vaults.js.map +1 -1
- package/resources/beta/agents/vaults/vaults.mjs +69 -20
- package/resources/beta/agents/vaults/vaults.mjs.map +1 -1
- package/resources/beta/assistants.d.mts +8 -1
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts +8 -1
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/assistants.js +71 -15
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +71 -15
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/chatkit/sessions.d.mts.map +1 -1
- package/resources/beta/chatkit/sessions.d.ts.map +1 -1
- package/resources/beta/chatkit/sessions.js +7 -4
- package/resources/beta/chatkit/sessions.js.map +1 -1
- package/resources/beta/chatkit/sessions.mjs +7 -4
- package/resources/beta/chatkit/sessions.mjs.map +1 -1
- package/resources/beta/chatkit/threads.d.mts +16 -2
- package/resources/beta/chatkit/threads.d.mts.map +1 -1
- package/resources/beta/chatkit/threads.d.ts +16 -2
- package/resources/beta/chatkit/threads.d.ts.map +1 -1
- package/resources/beta/chatkit/threads.js +75 -32
- package/resources/beta/chatkit/threads.js.map +1 -1
- package/resources/beta/chatkit/threads.mjs +75 -32
- package/resources/beta/chatkit/threads.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/responses/input-items.d.mts +11 -1
- package/resources/beta/responses/input-items.d.mts.map +1 -1
- package/resources/beta/responses/input-items.d.ts +11 -1
- package/resources/beta/responses/input-items.d.ts.map +1 -1
- package/resources/beta/responses/input-items.js +66 -15
- package/resources/beta/responses/input-items.js.map +1 -1
- package/resources/beta/responses/input-items.mjs +66 -15
- package/resources/beta/responses/input-items.mjs.map +1 -1
- package/resources/beta/responses/input-tokens.d.mts +3 -0
- package/resources/beta/responses/input-tokens.d.mts.map +1 -1
- package/resources/beta/responses/input-tokens.d.ts +3 -0
- package/resources/beta/responses/input-tokens.d.ts.map +1 -1
- package/resources/beta/responses/input-tokens.js +8 -2
- package/resources/beta/responses/input-tokens.js.map +1 -1
- package/resources/beta/responses/input-tokens.mjs +8 -2
- package/resources/beta/responses/input-tokens.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +21 -8
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +21 -8
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js +78 -11
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs +78 -11
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts +8 -1
- package/resources/beta/threads/messages.d.mts.map +1 -1
- package/resources/beta/threads/messages.d.ts +8 -1
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js +71 -15
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +71 -15
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts +8 -1
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +8 -1
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +73 -17
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +73 -17
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.d.mts.map +1 -1
- package/resources/beta/threads/runs/steps.d.ts.map +1 -1
- package/resources/beta/threads/runs/steps.js +7 -4
- package/resources/beta/threads/runs/steps.js.map +1 -1
- package/resources/beta/threads/runs/steps.mjs +7 -4
- package/resources/beta/threads/runs/steps.mjs.map +1 -1
- package/resources/beta/threads/threads.d.mts.map +1 -1
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js +13 -10
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs +13 -10
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +13 -3
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +13 -3
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +69 -26
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +69 -26
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/chat/completions/messages.d.mts +8 -1
- package/resources/chat/completions/messages.d.mts.map +1 -1
- package/resources/chat/completions/messages.d.ts +8 -1
- package/resources/chat/completions/messages.d.ts.map +1 -1
- package/resources/chat/completions/messages.js +66 -15
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs +66 -15
- package/resources/chat/completions/messages.mjs.map +1 -1
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +5 -2
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +5 -2
- package/resources/completions.mjs.map +1 -1
- package/resources/containers/containers.d.mts +8 -1
- package/resources/containers/containers.d.mts.map +1 -1
- package/resources/containers/containers.d.ts +8 -1
- package/resources/containers/containers.d.ts.map +1 -1
- package/resources/containers/containers.js +71 -12
- package/resources/containers/containers.js.map +1 -1
- package/resources/containers/containers.mjs +71 -12
- package/resources/containers/containers.mjs.map +1 -1
- package/resources/containers/files/content.d.mts.map +1 -1
- package/resources/containers/files/content.d.ts.map +1 -1
- package/resources/containers/files/content.js +5 -2
- package/resources/containers/files/content.js.map +1 -1
- package/resources/containers/files/content.mjs +5 -2
- package/resources/containers/files/content.mjs.map +1 -1
- package/resources/containers/files/files.d.mts +8 -1
- package/resources/containers/files/files.d.mts.map +1 -1
- package/resources/containers/files/files.d.ts +8 -1
- package/resources/containers/files/files.d.ts.map +1 -1
- package/resources/containers/files/files.js +67 -12
- package/resources/containers/files/files.js.map +1 -1
- package/resources/containers/files/files.mjs +67 -12
- package/resources/containers/files/files.mjs.map +1 -1
- package/resources/content-provenance-checks.d.mts.map +1 -1
- package/resources/content-provenance-checks.d.ts.map +1 -1
- package/resources/content-provenance-checks.js +4 -1
- package/resources/content-provenance-checks.js.map +1 -1
- package/resources/content-provenance-checks.mjs +4 -1
- package/resources/content-provenance-checks.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts +3 -4
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts +3 -4
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js +12 -11
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs +12 -11
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/items.d.mts +8 -1
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +8 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js +71 -12
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs +71 -12
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/evals/evals.d.mts +8 -1
- package/resources/evals/evals.d.mts.map +1 -1
- package/resources/evals/evals.d.ts +8 -1
- package/resources/evals/evals.d.ts.map +1 -1
- package/resources/evals/evals.js +75 -9
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs +75 -9
- package/resources/evals/evals.mjs.map +1 -1
- package/resources/evals/runs/output-items.d.mts.map +1 -1
- package/resources/evals/runs/output-items.d.ts.map +1 -1
- package/resources/evals/runs/output-items.js +9 -5
- package/resources/evals/runs/output-items.js.map +1 -1
- package/resources/evals/runs/output-items.mjs +9 -5
- package/resources/evals/runs/output-items.mjs.map +1 -1
- package/resources/evals/runs/runs.d.mts +8 -1
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts +8 -1
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js +68 -19
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +68 -19
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/files.d.mts +8 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +8 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +68 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +68 -10
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
- package/resources/fine-tuning/alpha/graders.js +7 -4
- package/resources/fine-tuning/alpha/graders.js.map +1 -1
- package/resources/fine-tuning/alpha/graders.mjs +7 -4
- package/resources/fine-tuning/alpha/graders.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.mts +16 -2
- package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts +16 -2
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +84 -31
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +84 -31
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.mts +8 -1
- package/resources/fine-tuning/jobs/checkpoints.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.ts +8 -1
- package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js +66 -14
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +66 -14
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts +16 -2
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +16 -2
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +83 -44
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +83 -44
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/images.d.mts +3 -4
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +3 -4
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js +8 -5
- package/resources/images.js.map +1 -1
- package/resources/images.mjs +8 -5
- package/resources/images.mjs.map +1 -1
- package/resources/live/live.d.mts.map +1 -1
- package/resources/live/live.d.ts.map +1 -1
- package/resources/live/live.js +8 -1
- package/resources/live/live.js.map +1 -1
- package/resources/live/live.mjs +8 -1
- package/resources/live/live.mjs.map +1 -1
- package/resources/live/sessions.d.mts.map +1 -1
- package/resources/live/sessions.d.ts.map +1 -1
- package/resources/live/sessions.js +15 -12
- package/resources/live/sessions.js.map +1 -1
- package/resources/live/sessions.mjs +15 -12
- package/resources/live/sessions.mjs.map +1 -1
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +6 -3
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +6 -3
- package/resources/models.mjs.map +1 -1
- package/resources/moderations.d.mts.map +1 -1
- package/resources/moderations.d.ts.map +1 -1
- package/resources/moderations.js +8 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +8 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/realtime/calls.d.mts.map +1 -1
- package/resources/realtime/calls.d.ts.map +1 -1
- package/resources/realtime/calls.js +13 -10
- package/resources/realtime/calls.js.map +1 -1
- package/resources/realtime/calls.mjs +13 -10
- package/resources/realtime/calls.mjs.map +1 -1
- package/resources/realtime/client-secrets.d.mts.map +1 -1
- package/resources/realtime/client-secrets.d.ts.map +1 -1
- package/resources/realtime/client-secrets.js +5 -2
- package/resources/realtime/client-secrets.js.map +1 -1
- package/resources/realtime/client-secrets.mjs +5 -2
- package/resources/realtime/client-secrets.mjs.map +1 -1
- package/resources/responses/input-items.d.mts +11 -1
- package/resources/responses/input-items.d.mts.map +1 -1
- package/resources/responses/input-items.d.ts +11 -1
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/input-items.js +69 -14
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +69 -14
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/input-tokens.d.mts +3 -0
- package/resources/responses/input-tokens.d.mts.map +1 -1
- package/resources/responses/input-tokens.d.ts +3 -0
- package/resources/responses/input-tokens.d.ts.map +1 -1
- package/resources/responses/input-tokens.js +8 -2
- package/resources/responses/input-tokens.js.map +1 -1
- package/resources/responses/input-tokens.mjs +8 -2
- package/resources/responses/input-tokens.mjs.map +1 -1
- package/resources/responses/responses.d.mts +21 -8
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +21 -8
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +76 -11
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +76 -11
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/safety/alerts.d.mts.map +1 -1
- package/resources/safety/alerts.d.ts.map +1 -1
- package/resources/safety/alerts.js +4 -1
- package/resources/safety/alerts.js.map +1 -1
- package/resources/safety/alerts.mjs +4 -1
- package/resources/safety/alerts.mjs.map +1 -1
- package/resources/safety/cases.d.mts +26 -0
- package/resources/safety/cases.d.mts.map +1 -0
- package/resources/safety/cases.d.ts +26 -0
- package/resources/safety/cases.d.ts.map +1 -0
- package/resources/safety/cases.js +19 -0
- package/resources/safety/cases.js.map +1 -0
- package/resources/safety/cases.mjs +15 -0
- package/resources/safety/cases.mjs.map +1 -0
- package/resources/safety/index.d.mts +1 -0
- package/resources/safety/index.d.mts.map +1 -1
- package/resources/safety/index.d.ts +1 -0
- package/resources/safety/index.d.ts.map +1 -1
- package/resources/safety/index.js +3 -1
- package/resources/safety/index.js.map +1 -1
- package/resources/safety/index.mjs +1 -0
- package/resources/safety/index.mjs.map +1 -1
- package/resources/safety/safety.d.mts +4 -0
- package/resources/safety/safety.d.mts.map +1 -1
- package/resources/safety/safety.d.ts +4 -0
- package/resources/safety/safety.d.ts.map +1 -1
- package/resources/safety/safety.js +4 -0
- package/resources/safety/safety.js.map +1 -1
- package/resources/safety/safety.mjs +4 -0
- package/resources/safety/safety.mjs.map +1 -1
- package/resources/skills/content.d.mts.map +1 -1
- package/resources/skills/content.d.ts.map +1 -1
- package/resources/skills/content.js +5 -2
- package/resources/skills/content.js.map +1 -1
- package/resources/skills/content.mjs +5 -2
- package/resources/skills/content.mjs.map +1 -1
- package/resources/skills/skills.d.mts +8 -1
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +8 -1
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +67 -9
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +67 -9
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions/content.d.mts.map +1 -1
- package/resources/skills/versions/content.d.ts.map +1 -1
- package/resources/skills/versions/content.js +5 -2
- package/resources/skills/versions/content.js.map +1 -1
- package/resources/skills/versions/content.mjs +5 -2
- package/resources/skills/versions/content.mjs.map +1 -1
- package/resources/skills/versions/versions.d.mts +8 -1
- package/resources/skills/versions/versions.d.mts.map +1 -1
- package/resources/skills/versions/versions.d.ts +8 -1
- package/resources/skills/versions/versions.d.ts.map +1 -1
- package/resources/skills/versions/versions.js +65 -13
- package/resources/skills/versions/versions.js.map +1 -1
- package/resources/skills/versions/versions.mjs +65 -13
- package/resources/skills/versions/versions.mjs.map +1 -1
- package/resources/uploads/parts.d.mts.map +1 -1
- package/resources/uploads/parts.d.ts.map +1 -1
- package/resources/uploads/parts.js +4 -1
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +4 -1
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.d.mts.map +1 -1
- package/resources/uploads/uploads.d.ts.map +1 -1
- package/resources/uploads/uploads.js +11 -7
- package/resources/uploads/uploads.js.map +1 -1
- package/resources/uploads/uploads.mjs +11 -7
- package/resources/uploads/uploads.mjs.map +1 -1
- package/resources/vector-stores/file-batches.d.mts.map +1 -1
- package/resources/vector-stores/file-batches.d.ts.map +1 -1
- package/resources/vector-stores/file-batches.js +11 -8
- package/resources/vector-stores/file-batches.js.map +1 -1
- package/resources/vector-stores/file-batches.mjs +11 -8
- package/resources/vector-stores/file-batches.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +8 -1
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +8 -1
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +73 -15
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +73 -15
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +8 -1
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +8 -1
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +73 -15
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +73 -15
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/videos.d.mts +16 -2
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +16 -2
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +79 -27
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +79 -27
- package/resources/videos.mjs.map +1 -1
- package/resources/webhooks/event-types.d.mts.map +1 -1
- package/resources/webhooks/event-types.d.ts.map +1 -1
- package/resources/webhooks/event-types.js +4 -1
- package/resources/webhooks/event-types.js.map +1 -1
- package/resources/webhooks/event-types.mjs +4 -1
- package/resources/webhooks/event-types.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +91 -3
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +91 -3
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +76 -28
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +76 -28
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/src/client.ts +345 -4
- package/src/resources/admin/organization/admin-api-keys.ts +237 -18
- package/src/resources/admin/organization/audit-logs.ts +285 -5
- package/src/resources/admin/organization/certificates.ts +353 -28
- package/src/resources/admin/organization/data-retention.ts +22 -9
- package/src/resources/admin/organization/external-storage.ts +446 -0
- package/src/resources/admin/organization/groups/groups.ts +245 -23
- package/src/resources/admin/organization/groups/roles.ts +236 -15
- package/src/resources/admin/organization/groups/users.ts +236 -15
- package/src/resources/admin/organization/index.ts +10 -0
- package/src/resources/admin/organization/invites.ts +237 -18
- package/src/resources/admin/organization/organization.ts +24 -0
- package/src/resources/admin/organization/projects/api-keys.ts +228 -10
- package/src/resources/admin/organization/projects/certificates.ts +226 -4
- package/src/resources/admin/organization/projects/data-retention.ts +22 -9
- package/src/resources/admin/organization/projects/groups/groups.ts +237 -16
- package/src/resources/admin/organization/projects/groups/roles.ts +34 -14
- package/src/resources/admin/organization/projects/hosted-tool-permissions.ts +22 -9
- package/src/resources/admin/organization/projects/model-permissions.ts +29 -13
- package/src/resources/admin/organization/projects/projects.ts +245 -23
- package/src/resources/admin/organization/projects/rate-limits.ts +222 -7
- package/src/resources/admin/organization/projects/roles.ts +247 -23
- package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +12 -1
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +238 -13
- package/src/resources/admin/organization/projects/spend-alerts.ts +244 -20
- package/src/resources/admin/organization/projects/spend-limit.ts +29 -13
- package/src/resources/admin/organization/projects/users/roles.ts +34 -14
- package/src/resources/admin/organization/projects/users/users.ts +244 -20
- package/src/resources/admin/organization/roles.ts +245 -23
- package/src/resources/admin/organization/spend-alerts.ts +242 -20
- package/src/resources/admin/organization/spend-limit.ts +29 -13
- package/src/resources/admin/organization/usage.ts +95 -55
- package/src/resources/admin/organization/users/roles.ts +236 -15
- package/src/resources/admin/organization/users/users.ts +237 -18
- package/src/resources/audio/speech.ts +17 -7
- package/src/resources/audio/transcriptions.ts +18 -9
- package/src/resources/audio/translations.ts +12 -3
- package/src/resources/batches.ts +231 -11
- package/src/resources/beta/agents/agents.ts +341 -70
- package/src/resources/beta/agents/environments/environments.ts +15 -5
- package/src/resources/beta/agents/environments/files.ts +18 -8
- package/src/resources/beta/agents/environments/templates.ts +264 -36
- package/src/resources/beta/agents/index.ts +1 -0
- package/src/resources/beta/agents/sessions/artifacts.ts +239 -22
- package/src/resources/beta/agents/sessions/events.ts +35 -19
- package/src/resources/beta/agents/sessions/items.ts +211 -3
- package/src/resources/beta/agents/sessions/sessions.ts +260 -34
- package/src/resources/beta/agents/sessions/subagents/items.ts +9 -2
- package/src/resources/beta/agents/sessions/subagents/subagents.ts +219 -8
- package/src/resources/beta/agents/sessions/subagents/turns/items.ts +9 -2
- package/src/resources/beta/agents/sessions/subagents/turns/turns.ts +17 -7
- package/src/resources/beta/agents/sessions/turns.ts +229 -13
- package/src/resources/beta/agents/vaults/credentials.ts +432 -49
- package/src/resources/beta/agents/vaults/index.ts +2 -0
- package/src/resources/beta/agents/vaults/vaults.ts +246 -24
- package/src/resources/beta/assistants.ts +250 -28
- package/src/resources/beta/beta.ts +2 -0
- package/src/resources/beta/chatkit/sessions.ts +24 -11
- package/src/resources/beta/chatkit/threads.ts +345 -19
- package/src/resources/beta/index.ts +1 -0
- package/src/resources/beta/responses/input-items.ts +214 -3
- package/src/resources/beta/responses/input-tokens.ts +22 -9
- package/src/resources/beta/responses/responses.ts +328 -54
- package/src/resources/beta/threads/messages.ts +252 -28
- package/src/resources/beta/threads/runs/runs.ts +266 -39
- package/src/resources/beta/threads/runs/steps.ts +26 -12
- package/src/resources/beta/threads/threads.ts +52 -30
- package/src/resources/chat/completions/completions.ts +245 -26
- package/src/resources/chat/completions/messages.ts +214 -2
- package/src/resources/completions.ts +16 -6
- package/src/resources/containers/containers.ts +235 -15
- package/src/resources/containers/files/content.ts +16 -6
- package/src/resources/containers/files/files.ts +235 -15
- package/src/resources/content-provenance-checks.ts +10 -1
- package/src/resources/conversations/conversations.ts +34 -18
- package/src/resources/conversations/items.ts +235 -17
- package/src/resources/evals/evals.ts +239 -9
- package/src/resources/evals/runs/output-items.ts +16 -5
- package/src/resources/evals/runs/runs.ts +237 -22
- package/src/resources/files.ts +235 -14
- package/src/resources/fine-tuning/alpha/graders.ts +23 -10
- package/src/resources/fine-tuning/checkpoints/permissions.ts +326 -9
- package/src/resources/fine-tuning/jobs/checkpoints.ts +214 -2
- package/src/resources/fine-tuning/jobs/jobs.ts +339 -24
- package/src/resources/images.ts +33 -20
- package/src/resources/live/live.ts +15 -1
- package/src/resources/live/sessions.ts +59 -34
- package/src/resources/models.ts +20 -3
- package/src/resources/moderations.ts +15 -1
- package/src/resources/realtime/calls.ts +58 -37
- package/src/resources/realtime/client-secrets.ts +15 -5
- package/src/resources/responses/input-items.ts +217 -2
- package/src/resources/responses/input-tokens.ts +18 -5
- package/src/resources/responses/responses.ts +303 -31
- package/src/resources/safety/alerts.ts +11 -1
- package/src/resources/safety/cases.ts +49 -0
- package/src/resources/safety/index.ts +1 -0
- package/src/resources/safety/safety.ts +6 -0
- package/src/resources/skills/content.ts +16 -6
- package/src/resources/skills/skills.ts +231 -12
- package/src/resources/skills/versions/content.ts +16 -6
- package/src/resources/skills/versions/versions.ts +225 -13
- package/src/resources/uploads/parts.ts +10 -1
- package/src/resources/uploads/uploads.ts +27 -10
- package/src/resources/vector-stores/file-batches.ts +34 -18
- package/src/resources/vector-stores/files.ts +254 -30
- package/src/resources/vector-stores/vector-stores.ts +252 -30
- package/src/resources/videos.ts +349 -23
- package/src/resources/webhooks/api.md +2 -0
- package/src/resources/webhooks/event-types.ts +11 -1
- package/src/resources/webhooks/webhooks.ts +356 -30
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -10,6 +10,120 @@ import {
|
|
|
10
10
|
import { RequestOptions } from '../../../internal/request-options';
|
|
11
11
|
import { path } from '../../../internal/utils/path';
|
|
12
12
|
|
|
13
|
+
function resolveResourceRequestOptions(
|
|
14
|
+
options: RequestOptions | undefined,
|
|
15
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
16
|
+
): Promise<RequestOptions> {
|
|
17
|
+
return Promise.resolve(options).then(buildOptions);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
21
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
22
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
23
|
+
'method',
|
|
24
|
+
'path',
|
|
25
|
+
'query',
|
|
26
|
+
'body',
|
|
27
|
+
'headers',
|
|
28
|
+
'maxRetries',
|
|
29
|
+
'stream',
|
|
30
|
+
'timeout',
|
|
31
|
+
'httpAgent',
|
|
32
|
+
'fetchOptions',
|
|
33
|
+
'signal',
|
|
34
|
+
'idempotencyKey',
|
|
35
|
+
'defaultBaseURL',
|
|
36
|
+
'__metadata',
|
|
37
|
+
'__binaryRequest',
|
|
38
|
+
'__binaryResponse',
|
|
39
|
+
'__streamClass',
|
|
40
|
+
'__security',
|
|
41
|
+
'__synthesizeEventData',
|
|
42
|
+
]);
|
|
43
|
+
|
|
44
|
+
function normalizeRequestOptionsForQuery(
|
|
45
|
+
value: unknown,
|
|
46
|
+
queryKeys: ReadonlyArray<string>,
|
|
47
|
+
options: RequestOptions | undefined,
|
|
48
|
+
):
|
|
49
|
+
| ({
|
|
50
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
51
|
+
} & {
|
|
52
|
+
[
|
|
53
|
+
K in
|
|
54
|
+
| 'method'
|
|
55
|
+
| 'path'
|
|
56
|
+
| 'body'
|
|
57
|
+
| 'stream'
|
|
58
|
+
| 'httpAgent'
|
|
59
|
+
| 'fetchOptions'
|
|
60
|
+
| 'defaultBaseURL'
|
|
61
|
+
| '__metadata'
|
|
62
|
+
| '__binaryRequest'
|
|
63
|
+
| '__binaryResponse'
|
|
64
|
+
| '__streamClass'
|
|
65
|
+
| '__security'
|
|
66
|
+
| '__synthesizeEventData'
|
|
67
|
+
]?: never;
|
|
68
|
+
})
|
|
69
|
+
| undefined {
|
|
70
|
+
if (typeof value !== 'object' || value === null) return undefined;
|
|
71
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
72
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
73
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(
|
|
74
|
+
([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined),
|
|
75
|
+
);
|
|
76
|
+
const keys = entries.map(([key]) => key);
|
|
77
|
+
const requestOnly = keys.some(
|
|
78
|
+
(key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key),
|
|
79
|
+
);
|
|
80
|
+
if (!requestOnly) return undefined;
|
|
81
|
+
// Declared query fields, including stream, must use the query argument.
|
|
82
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
83
|
+
if (
|
|
84
|
+
options !== undefined ||
|
|
85
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))
|
|
86
|
+
) {
|
|
87
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
88
|
+
}
|
|
89
|
+
// The query position must not gain authority to change the request destination
|
|
90
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
91
|
+
if (
|
|
92
|
+
keys.some(
|
|
93
|
+
(key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key),
|
|
94
|
+
)
|
|
95
|
+
) {
|
|
96
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
97
|
+
}
|
|
98
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
99
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
100
|
+
return Object.fromEntries(
|
|
101
|
+
entries.map(([key, descriptor]) => {
|
|
102
|
+
if ('value' in descriptor) return [key, descriptor.value];
|
|
103
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
104
|
+
}),
|
|
105
|
+
) as {
|
|
106
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
107
|
+
} & {
|
|
108
|
+
[
|
|
109
|
+
K in
|
|
110
|
+
| 'method'
|
|
111
|
+
| 'path'
|
|
112
|
+
| 'body'
|
|
113
|
+
| 'stream'
|
|
114
|
+
| 'httpAgent'
|
|
115
|
+
| 'fetchOptions'
|
|
116
|
+
| 'defaultBaseURL'
|
|
117
|
+
| '__metadata'
|
|
118
|
+
| '__binaryRequest'
|
|
119
|
+
| '__binaryResponse'
|
|
120
|
+
| '__streamClass'
|
|
121
|
+
| '__security'
|
|
122
|
+
| '__synthesizeEventData'
|
|
123
|
+
]?: never;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
13
127
|
export class SpendAlerts extends APIResource {
|
|
14
128
|
/**
|
|
15
129
|
* Creates an organization spend alert.
|
|
@@ -29,11 +143,14 @@ export class SpendAlerts extends APIResource {
|
|
|
29
143
|
* ```
|
|
30
144
|
*/
|
|
31
145
|
create(body: SpendAlertCreateParams, options?: RequestOptions): APIPromise<OrganizationSpendAlert> {
|
|
32
|
-
return this._client.post(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
146
|
+
return this._client.post(
|
|
147
|
+
'/organization/spend_alerts',
|
|
148
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
149
|
+
body,
|
|
150
|
+
...options,
|
|
151
|
+
__security: { adminAPIKeyAuth: true },
|
|
152
|
+
})),
|
|
153
|
+
);
|
|
37
154
|
}
|
|
38
155
|
|
|
39
156
|
/**
|
|
@@ -48,10 +165,13 @@ export class SpendAlerts extends APIResource {
|
|
|
48
165
|
* ```
|
|
49
166
|
*/
|
|
50
167
|
retrieve(alertID: string, options?: RequestOptions): APIPromise<OrganizationSpendAlert> {
|
|
51
|
-
return this._client.get(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
168
|
+
return this._client.get(
|
|
169
|
+
path`/organization/spend_alerts/${alertID}`,
|
|
170
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
171
|
+
...options,
|
|
172
|
+
__security: { adminAPIKeyAuth: true },
|
|
173
|
+
})),
|
|
174
|
+
);
|
|
55
175
|
}
|
|
56
176
|
|
|
57
177
|
/**
|
|
@@ -79,11 +199,14 @@ export class SpendAlerts extends APIResource {
|
|
|
79
199
|
body: SpendAlertUpdateParams,
|
|
80
200
|
options?: RequestOptions,
|
|
81
201
|
): APIPromise<OrganizationSpendAlert> {
|
|
82
|
-
return this._client.post(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
202
|
+
return this._client.post(
|
|
203
|
+
path`/organization/spend_alerts/${alertID}`,
|
|
204
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
205
|
+
body,
|
|
206
|
+
...options,
|
|
207
|
+
__security: { adminAPIKeyAuth: true },
|
|
208
|
+
})),
|
|
209
|
+
);
|
|
87
210
|
}
|
|
88
211
|
|
|
89
212
|
/**
|
|
@@ -98,13 +221,109 @@ export class SpendAlerts extends APIResource {
|
|
|
98
221
|
* ```
|
|
99
222
|
*/
|
|
100
223
|
list(
|
|
101
|
-
query
|
|
224
|
+
query?:
|
|
225
|
+
| (SpendAlertListParams &
|
|
226
|
+
(
|
|
227
|
+
| {
|
|
228
|
+
[
|
|
229
|
+
K in
|
|
230
|
+
| 'method'
|
|
231
|
+
| 'path'
|
|
232
|
+
| 'query'
|
|
233
|
+
| 'body'
|
|
234
|
+
| 'headers'
|
|
235
|
+
| 'maxRetries'
|
|
236
|
+
| 'stream'
|
|
237
|
+
| 'timeout'
|
|
238
|
+
| 'httpAgent'
|
|
239
|
+
| 'fetchOptions'
|
|
240
|
+
| 'signal'
|
|
241
|
+
| 'idempotencyKey'
|
|
242
|
+
| 'defaultBaseURL'
|
|
243
|
+
| '__metadata'
|
|
244
|
+
| '__binaryRequest'
|
|
245
|
+
| '__binaryResponse'
|
|
246
|
+
| '__streamClass'
|
|
247
|
+
| '__security'
|
|
248
|
+
| '__synthesizeEventData'
|
|
249
|
+
]?: never;
|
|
250
|
+
}
|
|
251
|
+
| null
|
|
252
|
+
| undefined
|
|
253
|
+
))
|
|
254
|
+
| null
|
|
255
|
+
| undefined,
|
|
256
|
+
options?: RequestOptions,
|
|
257
|
+
): PagePromise<OrganizationSpendAlertsPage, OrganizationSpendAlert>;
|
|
258
|
+
list(
|
|
259
|
+
options?: {
|
|
260
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
261
|
+
} & {
|
|
262
|
+
[
|
|
263
|
+
K in
|
|
264
|
+
| 'method'
|
|
265
|
+
| 'path'
|
|
266
|
+
| 'body'
|
|
267
|
+
| 'stream'
|
|
268
|
+
| 'httpAgent'
|
|
269
|
+
| 'fetchOptions'
|
|
270
|
+
| 'defaultBaseURL'
|
|
271
|
+
| '__metadata'
|
|
272
|
+
| '__binaryRequest'
|
|
273
|
+
| '__binaryResponse'
|
|
274
|
+
| '__streamClass'
|
|
275
|
+
| '__security'
|
|
276
|
+
| '__synthesizeEventData'
|
|
277
|
+
]?: never;
|
|
278
|
+
},
|
|
279
|
+
): PagePromise<OrganizationSpendAlertsPage, OrganizationSpendAlert>;
|
|
280
|
+
list(
|
|
281
|
+
query:
|
|
282
|
+
| SpendAlertListParams
|
|
283
|
+
| ({
|
|
284
|
+
[
|
|
285
|
+
K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query'
|
|
286
|
+
]?: RequestOptions[K];
|
|
287
|
+
} & {
|
|
288
|
+
[
|
|
289
|
+
K in
|
|
290
|
+
| 'method'
|
|
291
|
+
| 'path'
|
|
292
|
+
| 'body'
|
|
293
|
+
| 'stream'
|
|
294
|
+
| 'httpAgent'
|
|
295
|
+
| 'fetchOptions'
|
|
296
|
+
| 'defaultBaseURL'
|
|
297
|
+
| '__metadata'
|
|
298
|
+
| '__binaryRequest'
|
|
299
|
+
| '__binaryResponse'
|
|
300
|
+
| '__streamClass'
|
|
301
|
+
| '__security'
|
|
302
|
+
| '__synthesizeEventData'
|
|
303
|
+
]?: never;
|
|
304
|
+
})
|
|
305
|
+
| null
|
|
306
|
+
| undefined = {},
|
|
102
307
|
options?: RequestOptions,
|
|
103
308
|
): PagePromise<OrganizationSpendAlertsPage, OrganizationSpendAlert> {
|
|
309
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(
|
|
310
|
+
query,
|
|
311
|
+
['after', 'before', 'limit', 'order'],
|
|
312
|
+
options,
|
|
313
|
+
);
|
|
314
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
315
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
316
|
+
query = {};
|
|
317
|
+
}
|
|
318
|
+
query = query as SpendAlertListParams | null | undefined;
|
|
104
319
|
return this._client.getAPIList(
|
|
105
320
|
'/organization/spend_alerts',
|
|
106
321
|
ConversationCursorPage<OrganizationSpendAlert>,
|
|
107
|
-
|
|
322
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
323
|
+
query,
|
|
324
|
+
...options,
|
|
325
|
+
__security: { adminAPIKeyAuth: true },
|
|
326
|
+
})),
|
|
108
327
|
);
|
|
109
328
|
}
|
|
110
329
|
|
|
@@ -120,10 +339,13 @@ export class SpendAlerts extends APIResource {
|
|
|
120
339
|
* ```
|
|
121
340
|
*/
|
|
122
341
|
delete(alertID: string, options?: RequestOptions): APIPromise<OrganizationSpendAlertDeleted> {
|
|
123
|
-
return this._client.delete(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
342
|
+
return this._client.delete(
|
|
343
|
+
path`/organization/spend_alerts/${alertID}`,
|
|
344
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
345
|
+
...options,
|
|
346
|
+
__security: { adminAPIKeyAuth: true },
|
|
347
|
+
})),
|
|
348
|
+
);
|
|
127
349
|
}
|
|
128
350
|
}
|
|
129
351
|
|
|
@@ -4,6 +4,13 @@ import { APIResource } from '../../../core/resource';
|
|
|
4
4
|
import { APIPromise } from '../../../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../../../internal/request-options';
|
|
6
6
|
|
|
7
|
+
function resolveResourceRequestOptions(
|
|
8
|
+
options: RequestOptions | undefined,
|
|
9
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
10
|
+
): Promise<RequestOptions> {
|
|
11
|
+
return Promise.resolve(options).then(buildOptions);
|
|
12
|
+
}
|
|
13
|
+
|
|
7
14
|
export class SpendLimit extends APIResource {
|
|
8
15
|
/**
|
|
9
16
|
* Get the organization's hard spend limit.
|
|
@@ -15,10 +22,13 @@ export class SpendLimit extends APIResource {
|
|
|
15
22
|
* ```
|
|
16
23
|
*/
|
|
17
24
|
retrieve(options?: RequestOptions): APIPromise<OrganizationSpendLimit> {
|
|
18
|
-
return this._client.get(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
return this._client.get(
|
|
26
|
+
'/organization/spend_limit',
|
|
27
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
28
|
+
...options,
|
|
29
|
+
__security: { adminAPIKeyAuth: true },
|
|
30
|
+
})),
|
|
31
|
+
);
|
|
22
32
|
}
|
|
23
33
|
|
|
24
34
|
/**
|
|
@@ -35,11 +45,14 @@ export class SpendLimit extends APIResource {
|
|
|
35
45
|
* ```
|
|
36
46
|
*/
|
|
37
47
|
update(body: SpendLimitUpdateParams, options?: RequestOptions): APIPromise<OrganizationSpendLimit> {
|
|
38
|
-
return this._client.post(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
return this._client.post(
|
|
49
|
+
'/organization/spend_limit',
|
|
50
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
51
|
+
body,
|
|
52
|
+
...options,
|
|
53
|
+
__security: { adminAPIKeyAuth: true },
|
|
54
|
+
})),
|
|
55
|
+
);
|
|
43
56
|
}
|
|
44
57
|
|
|
45
58
|
/**
|
|
@@ -52,10 +65,13 @@ export class SpendLimit extends APIResource {
|
|
|
52
65
|
* ```
|
|
53
66
|
*/
|
|
54
67
|
delete(options?: RequestOptions): APIPromise<OrganizationSpendLimitDeleted> {
|
|
55
|
-
return this._client.delete(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
return this._client.delete(
|
|
69
|
+
'/organization/spend_limit',
|
|
70
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
71
|
+
...options,
|
|
72
|
+
__security: { adminAPIKeyAuth: true },
|
|
73
|
+
})),
|
|
74
|
+
);
|
|
59
75
|
}
|
|
60
76
|
}
|
|
61
77
|
|
|
@@ -5,6 +5,13 @@ import * as UsageAPI from './usage';
|
|
|
5
5
|
import { APIPromise } from '../../../core/api-promise';
|
|
6
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
7
|
|
|
8
|
+
function resolveResourceRequestOptions(
|
|
9
|
+
options: RequestOptions | undefined,
|
|
10
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
11
|
+
): Promise<RequestOptions> {
|
|
12
|
+
return Promise.resolve(options).then(buildOptions);
|
|
13
|
+
}
|
|
14
|
+
|
|
8
15
|
export class Usage extends APIResource {
|
|
9
16
|
/**
|
|
10
17
|
* Get audio speeches usage details for the organization.
|
|
@@ -21,11 +28,14 @@ export class Usage extends APIResource {
|
|
|
21
28
|
query: UsageAudioSpeechesParams,
|
|
22
29
|
options?: RequestOptions,
|
|
23
30
|
): APIPromise<UsageAudioSpeechesResponse> {
|
|
24
|
-
return this._client.get(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
return this._client.get(
|
|
32
|
+
'/organization/usage/audio_speeches',
|
|
33
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
34
|
+
query,
|
|
35
|
+
...options,
|
|
36
|
+
__security: { adminAPIKeyAuth: true },
|
|
37
|
+
})),
|
|
38
|
+
);
|
|
29
39
|
}
|
|
30
40
|
|
|
31
41
|
/**
|
|
@@ -43,11 +53,14 @@ export class Usage extends APIResource {
|
|
|
43
53
|
query: UsageAudioTranscriptionsParams,
|
|
44
54
|
options?: RequestOptions,
|
|
45
55
|
): APIPromise<UsageAudioTranscriptionsResponse> {
|
|
46
|
-
return this._client.get(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
return this._client.get(
|
|
57
|
+
'/organization/usage/audio_transcriptions',
|
|
58
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
59
|
+
query,
|
|
60
|
+
...options,
|
|
61
|
+
__security: { adminAPIKeyAuth: true },
|
|
62
|
+
})),
|
|
63
|
+
);
|
|
51
64
|
}
|
|
52
65
|
|
|
53
66
|
/**
|
|
@@ -65,11 +78,14 @@ export class Usage extends APIResource {
|
|
|
65
78
|
query: UsageCodeInterpreterSessionsParams,
|
|
66
79
|
options?: RequestOptions,
|
|
67
80
|
): APIPromise<UsageCodeInterpreterSessionsResponse> {
|
|
68
|
-
return this._client.get(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
81
|
+
return this._client.get(
|
|
82
|
+
'/organization/usage/code_interpreter_sessions',
|
|
83
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
84
|
+
query,
|
|
85
|
+
...options,
|
|
86
|
+
__security: { adminAPIKeyAuth: true },
|
|
87
|
+
})),
|
|
88
|
+
);
|
|
73
89
|
}
|
|
74
90
|
|
|
75
91
|
/**
|
|
@@ -84,11 +100,14 @@ export class Usage extends APIResource {
|
|
|
84
100
|
* ```
|
|
85
101
|
*/
|
|
86
102
|
completions(query: UsageCompletionsParams, options?: RequestOptions): APIPromise<UsageCompletionsResponse> {
|
|
87
|
-
return this._client.get(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
103
|
+
return this._client.get(
|
|
104
|
+
'/organization/usage/completions',
|
|
105
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
106
|
+
query,
|
|
107
|
+
...options,
|
|
108
|
+
__security: { adminAPIKeyAuth: true },
|
|
109
|
+
})),
|
|
110
|
+
);
|
|
92
111
|
}
|
|
93
112
|
|
|
94
113
|
/**
|
|
@@ -103,11 +122,14 @@ export class Usage extends APIResource {
|
|
|
103
122
|
* ```
|
|
104
123
|
*/
|
|
105
124
|
costs(query: UsageCostsParams, options?: RequestOptions): APIPromise<UsageCostsResponse> {
|
|
106
|
-
return this._client.get(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
125
|
+
return this._client.get(
|
|
126
|
+
'/organization/costs',
|
|
127
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
128
|
+
query,
|
|
129
|
+
...options,
|
|
130
|
+
__security: { adminAPIKeyAuth: true },
|
|
131
|
+
})),
|
|
132
|
+
);
|
|
111
133
|
}
|
|
112
134
|
|
|
113
135
|
/**
|
|
@@ -122,11 +144,14 @@ export class Usage extends APIResource {
|
|
|
122
144
|
* ```
|
|
123
145
|
*/
|
|
124
146
|
embeddings(query: UsageEmbeddingsParams, options?: RequestOptions): APIPromise<UsageEmbeddingsResponse> {
|
|
125
|
-
return this._client.get(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
147
|
+
return this._client.get(
|
|
148
|
+
'/organization/usage/embeddings',
|
|
149
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
150
|
+
query,
|
|
151
|
+
...options,
|
|
152
|
+
__security: { adminAPIKeyAuth: true },
|
|
153
|
+
})),
|
|
154
|
+
);
|
|
130
155
|
}
|
|
131
156
|
|
|
132
157
|
/**
|
|
@@ -144,11 +169,14 @@ export class Usage extends APIResource {
|
|
|
144
169
|
query: UsageFileSearchCallsParams,
|
|
145
170
|
options?: RequestOptions,
|
|
146
171
|
): APIPromise<UsageFileSearchCallsResponse> {
|
|
147
|
-
return this._client.get(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
172
|
+
return this._client.get(
|
|
173
|
+
'/organization/usage/file_search_calls',
|
|
174
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
175
|
+
query,
|
|
176
|
+
...options,
|
|
177
|
+
__security: { adminAPIKeyAuth: true },
|
|
178
|
+
})),
|
|
179
|
+
);
|
|
152
180
|
}
|
|
153
181
|
|
|
154
182
|
/**
|
|
@@ -163,11 +191,14 @@ export class Usage extends APIResource {
|
|
|
163
191
|
* ```
|
|
164
192
|
*/
|
|
165
193
|
images(query: UsageImagesParams, options?: RequestOptions): APIPromise<UsageImagesResponse> {
|
|
166
|
-
return this._client.get(
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
194
|
+
return this._client.get(
|
|
195
|
+
'/organization/usage/images',
|
|
196
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
197
|
+
query,
|
|
198
|
+
...options,
|
|
199
|
+
__security: { adminAPIKeyAuth: true },
|
|
200
|
+
})),
|
|
201
|
+
);
|
|
171
202
|
}
|
|
172
203
|
|
|
173
204
|
/**
|
|
@@ -182,11 +213,14 @@ export class Usage extends APIResource {
|
|
|
182
213
|
* ```
|
|
183
214
|
*/
|
|
184
215
|
moderations(query: UsageModerationsParams, options?: RequestOptions): APIPromise<UsageModerationsResponse> {
|
|
185
|
-
return this._client.get(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
216
|
+
return this._client.get(
|
|
217
|
+
'/organization/usage/moderations',
|
|
218
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
219
|
+
query,
|
|
220
|
+
...options,
|
|
221
|
+
__security: { adminAPIKeyAuth: true },
|
|
222
|
+
})),
|
|
223
|
+
);
|
|
190
224
|
}
|
|
191
225
|
|
|
192
226
|
/**
|
|
@@ -204,11 +238,14 @@ export class Usage extends APIResource {
|
|
|
204
238
|
query: UsageVectorStoresParams,
|
|
205
239
|
options?: RequestOptions,
|
|
206
240
|
): APIPromise<UsageVectorStoresResponse> {
|
|
207
|
-
return this._client.get(
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
241
|
+
return this._client.get(
|
|
242
|
+
'/organization/usage/vector_stores',
|
|
243
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
244
|
+
query,
|
|
245
|
+
...options,
|
|
246
|
+
__security: { adminAPIKeyAuth: true },
|
|
247
|
+
})),
|
|
248
|
+
);
|
|
212
249
|
}
|
|
213
250
|
|
|
214
251
|
/**
|
|
@@ -226,11 +263,14 @@ export class Usage extends APIResource {
|
|
|
226
263
|
query: UsageWebSearchCallsParams,
|
|
227
264
|
options?: RequestOptions,
|
|
228
265
|
): APIPromise<UsageWebSearchCallsResponse> {
|
|
229
|
-
return this._client.get(
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
266
|
+
return this._client.get(
|
|
267
|
+
'/organization/usage/web_search_calls',
|
|
268
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
269
|
+
query,
|
|
270
|
+
...options,
|
|
271
|
+
__security: { adminAPIKeyAuth: true },
|
|
272
|
+
})),
|
|
273
|
+
);
|
|
234
274
|
}
|
|
235
275
|
}
|
|
236
276
|
|