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
|
@@ -11,6 +11,120 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagin
|
|
|
11
11
|
import { RequestOptions } from '../../internal/request-options';
|
|
12
12
|
import { path } from '../../internal/utils/path';
|
|
13
13
|
|
|
14
|
+
function resolveResourceRequestOptions(
|
|
15
|
+
options: RequestOptions | undefined,
|
|
16
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
17
|
+
): Promise<RequestOptions> {
|
|
18
|
+
return Promise.resolve(options).then(buildOptions);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
22
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
23
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
24
|
+
'method',
|
|
25
|
+
'path',
|
|
26
|
+
'query',
|
|
27
|
+
'body',
|
|
28
|
+
'headers',
|
|
29
|
+
'maxRetries',
|
|
30
|
+
'stream',
|
|
31
|
+
'timeout',
|
|
32
|
+
'httpAgent',
|
|
33
|
+
'fetchOptions',
|
|
34
|
+
'signal',
|
|
35
|
+
'idempotencyKey',
|
|
36
|
+
'defaultBaseURL',
|
|
37
|
+
'__metadata',
|
|
38
|
+
'__binaryRequest',
|
|
39
|
+
'__binaryResponse',
|
|
40
|
+
'__streamClass',
|
|
41
|
+
'__security',
|
|
42
|
+
'__synthesizeEventData',
|
|
43
|
+
]);
|
|
44
|
+
|
|
45
|
+
function normalizeRequestOptionsForQuery(
|
|
46
|
+
value: unknown,
|
|
47
|
+
queryKeys: ReadonlyArray<string>,
|
|
48
|
+
options: RequestOptions | undefined,
|
|
49
|
+
):
|
|
50
|
+
| ({
|
|
51
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
52
|
+
} & {
|
|
53
|
+
[
|
|
54
|
+
K in
|
|
55
|
+
| 'method'
|
|
56
|
+
| 'path'
|
|
57
|
+
| 'body'
|
|
58
|
+
| 'stream'
|
|
59
|
+
| 'httpAgent'
|
|
60
|
+
| 'fetchOptions'
|
|
61
|
+
| 'defaultBaseURL'
|
|
62
|
+
| '__metadata'
|
|
63
|
+
| '__binaryRequest'
|
|
64
|
+
| '__binaryResponse'
|
|
65
|
+
| '__streamClass'
|
|
66
|
+
| '__security'
|
|
67
|
+
| '__synthesizeEventData'
|
|
68
|
+
]?: never;
|
|
69
|
+
})
|
|
70
|
+
| undefined {
|
|
71
|
+
if (typeof value !== 'object' || value === null) return undefined;
|
|
72
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
73
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
74
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(
|
|
75
|
+
([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined),
|
|
76
|
+
);
|
|
77
|
+
const keys = entries.map(([key]) => key);
|
|
78
|
+
const requestOnly = keys.some(
|
|
79
|
+
(key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key),
|
|
80
|
+
);
|
|
81
|
+
if (!requestOnly) return undefined;
|
|
82
|
+
// Declared query fields, including stream, must use the query argument.
|
|
83
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
84
|
+
if (
|
|
85
|
+
options !== undefined ||
|
|
86
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))
|
|
87
|
+
) {
|
|
88
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
89
|
+
}
|
|
90
|
+
// The query position must not gain authority to change the request destination
|
|
91
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
92
|
+
if (
|
|
93
|
+
keys.some(
|
|
94
|
+
(key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key),
|
|
95
|
+
)
|
|
96
|
+
) {
|
|
97
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
98
|
+
}
|
|
99
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
100
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
101
|
+
return Object.fromEntries(
|
|
102
|
+
entries.map(([key, descriptor]) => {
|
|
103
|
+
if ('value' in descriptor) return [key, descriptor.value];
|
|
104
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
105
|
+
}),
|
|
106
|
+
) as {
|
|
107
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
108
|
+
} & {
|
|
109
|
+
[
|
|
110
|
+
K in
|
|
111
|
+
| 'method'
|
|
112
|
+
| 'path'
|
|
113
|
+
| 'body'
|
|
114
|
+
| 'stream'
|
|
115
|
+
| 'httpAgent'
|
|
116
|
+
| 'fetchOptions'
|
|
117
|
+
| 'defaultBaseURL'
|
|
118
|
+
| '__metadata'
|
|
119
|
+
| '__binaryRequest'
|
|
120
|
+
| '__binaryResponse'
|
|
121
|
+
| '__streamClass'
|
|
122
|
+
| '__security'
|
|
123
|
+
| '__synthesizeEventData'
|
|
124
|
+
]?: never;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
14
128
|
export class Webhooks extends APIResource {
|
|
15
129
|
eventTypes: EventTypesAPI.EventTypes = new EventTypesAPI.EventTypes(this._client);
|
|
16
130
|
|
|
@@ -28,7 +142,14 @@ export class Webhooks extends APIResource {
|
|
|
28
142
|
* ```
|
|
29
143
|
*/
|
|
30
144
|
create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookEndpointWithSecret> {
|
|
31
|
-
return this._client.post(
|
|
145
|
+
return this._client.post(
|
|
146
|
+
'/webhook_endpoints',
|
|
147
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
148
|
+
body,
|
|
149
|
+
...options,
|
|
150
|
+
__security: { bearerAuth: true },
|
|
151
|
+
})),
|
|
152
|
+
);
|
|
32
153
|
}
|
|
33
154
|
|
|
34
155
|
/**
|
|
@@ -42,10 +163,10 @@ export class Webhooks extends APIResource {
|
|
|
42
163
|
* ```
|
|
43
164
|
*/
|
|
44
165
|
retrieve(webhookEndpointID: string, options?: RequestOptions): APIPromise<WebhookEndpoint> {
|
|
45
|
-
return this._client.get(
|
|
46
|
-
|
|
47
|
-
__security: { bearerAuth: true },
|
|
48
|
-
|
|
166
|
+
return this._client.get(
|
|
167
|
+
path`/webhook_endpoints/${webhookEndpointID}`,
|
|
168
|
+
resolveResourceRequestOptions(options, (options) => ({ ...options, __security: { bearerAuth: true } })),
|
|
169
|
+
);
|
|
49
170
|
}
|
|
50
171
|
|
|
51
172
|
/**
|
|
@@ -61,11 +182,14 @@ export class Webhooks extends APIResource {
|
|
|
61
182
|
body: WebhookUpdateParams | null | undefined = {},
|
|
62
183
|
options?: RequestOptions,
|
|
63
184
|
): APIPromise<WebhookEndpoint> {
|
|
64
|
-
return this._client.post(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
185
|
+
return this._client.post(
|
|
186
|
+
path`/webhook_endpoints/${webhookEndpointID}`,
|
|
187
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
188
|
+
body,
|
|
189
|
+
...options,
|
|
190
|
+
__security: { bearerAuth: true },
|
|
191
|
+
})),
|
|
192
|
+
);
|
|
69
193
|
}
|
|
70
194
|
|
|
71
195
|
/**
|
|
@@ -80,14 +204,110 @@ export class Webhooks extends APIResource {
|
|
|
80
204
|
* ```
|
|
81
205
|
*/
|
|
82
206
|
list(
|
|
83
|
-
query
|
|
207
|
+
query?:
|
|
208
|
+
| (WebhookListParams &
|
|
209
|
+
(
|
|
210
|
+
| {
|
|
211
|
+
[
|
|
212
|
+
K in
|
|
213
|
+
| 'method'
|
|
214
|
+
| 'path'
|
|
215
|
+
| 'query'
|
|
216
|
+
| 'body'
|
|
217
|
+
| 'headers'
|
|
218
|
+
| 'maxRetries'
|
|
219
|
+
| 'stream'
|
|
220
|
+
| 'timeout'
|
|
221
|
+
| 'httpAgent'
|
|
222
|
+
| 'fetchOptions'
|
|
223
|
+
| 'signal'
|
|
224
|
+
| 'idempotencyKey'
|
|
225
|
+
| 'defaultBaseURL'
|
|
226
|
+
| '__metadata'
|
|
227
|
+
| '__binaryRequest'
|
|
228
|
+
| '__binaryResponse'
|
|
229
|
+
| '__streamClass'
|
|
230
|
+
| '__security'
|
|
231
|
+
| '__synthesizeEventData'
|
|
232
|
+
]?: never;
|
|
233
|
+
}
|
|
234
|
+
| null
|
|
235
|
+
| undefined
|
|
236
|
+
))
|
|
237
|
+
| null
|
|
238
|
+
| undefined,
|
|
239
|
+
options?: RequestOptions,
|
|
240
|
+
): PagePromise<WebhookEndpointsPage, WebhookEndpoint>;
|
|
241
|
+
list(
|
|
242
|
+
options?: {
|
|
243
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
244
|
+
} & {
|
|
245
|
+
[
|
|
246
|
+
K in
|
|
247
|
+
| 'method'
|
|
248
|
+
| 'path'
|
|
249
|
+
| 'body'
|
|
250
|
+
| 'stream'
|
|
251
|
+
| 'httpAgent'
|
|
252
|
+
| 'fetchOptions'
|
|
253
|
+
| 'defaultBaseURL'
|
|
254
|
+
| '__metadata'
|
|
255
|
+
| '__binaryRequest'
|
|
256
|
+
| '__binaryResponse'
|
|
257
|
+
| '__streamClass'
|
|
258
|
+
| '__security'
|
|
259
|
+
| '__synthesizeEventData'
|
|
260
|
+
]?: never;
|
|
261
|
+
},
|
|
262
|
+
): PagePromise<WebhookEndpointsPage, WebhookEndpoint>;
|
|
263
|
+
list(
|
|
264
|
+
query:
|
|
265
|
+
| WebhookListParams
|
|
266
|
+
| ({
|
|
267
|
+
[
|
|
268
|
+
K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query'
|
|
269
|
+
]?: RequestOptions[K];
|
|
270
|
+
} & {
|
|
271
|
+
[
|
|
272
|
+
K in
|
|
273
|
+
| 'method'
|
|
274
|
+
| 'path'
|
|
275
|
+
| 'body'
|
|
276
|
+
| 'stream'
|
|
277
|
+
| 'httpAgent'
|
|
278
|
+
| 'fetchOptions'
|
|
279
|
+
| 'defaultBaseURL'
|
|
280
|
+
| '__metadata'
|
|
281
|
+
| '__binaryRequest'
|
|
282
|
+
| '__binaryResponse'
|
|
283
|
+
| '__streamClass'
|
|
284
|
+
| '__security'
|
|
285
|
+
| '__synthesizeEventData'
|
|
286
|
+
]?: never;
|
|
287
|
+
})
|
|
288
|
+
| null
|
|
289
|
+
| undefined = {},
|
|
84
290
|
options?: RequestOptions,
|
|
85
291
|
): PagePromise<WebhookEndpointsPage, WebhookEndpoint> {
|
|
86
|
-
|
|
292
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(
|
|
87
293
|
query,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
294
|
+
['after', 'limit'],
|
|
295
|
+
options,
|
|
296
|
+
);
|
|
297
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
298
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
299
|
+
query = {};
|
|
300
|
+
}
|
|
301
|
+
query = query as WebhookListParams | null | undefined;
|
|
302
|
+
return this._client.getAPIList(
|
|
303
|
+
'/webhook_endpoints',
|
|
304
|
+
CursorPage<WebhookEndpoint>,
|
|
305
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
306
|
+
query,
|
|
307
|
+
...options,
|
|
308
|
+
__security: { bearerAuth: true },
|
|
309
|
+
})),
|
|
310
|
+
);
|
|
91
311
|
}
|
|
92
312
|
|
|
93
313
|
/**
|
|
@@ -101,10 +321,10 @@ export class Webhooks extends APIResource {
|
|
|
101
321
|
* ```
|
|
102
322
|
*/
|
|
103
323
|
delete(webhookEndpointID: string, options?: RequestOptions): APIPromise<DeletedWebhookEndpoint> {
|
|
104
|
-
return this._client.delete(
|
|
105
|
-
|
|
106
|
-
__security: { bearerAuth: true },
|
|
107
|
-
|
|
324
|
+
return this._client.delete(
|
|
325
|
+
path`/webhook_endpoints/${webhookEndpointID}`,
|
|
326
|
+
resolveResourceRequestOptions(options, (options) => ({ ...options, __security: { bearerAuth: true } })),
|
|
327
|
+
);
|
|
108
328
|
}
|
|
109
329
|
|
|
110
330
|
/**
|
|
@@ -121,11 +341,14 @@ export class Webhooks extends APIResource {
|
|
|
121
341
|
body: WebhookRotateSecretParams | null | undefined = {},
|
|
122
342
|
options?: RequestOptions,
|
|
123
343
|
): APIPromise<WebhookEndpointWithSecret> {
|
|
124
|
-
return this._client.post(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
344
|
+
return this._client.post(
|
|
345
|
+
path`/webhook_endpoints/${webhookEndpointID}/rotate_secret`,
|
|
346
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
347
|
+
body,
|
|
348
|
+
...options,
|
|
349
|
+
__security: { bearerAuth: true },
|
|
350
|
+
})),
|
|
351
|
+
);
|
|
129
352
|
}
|
|
130
353
|
|
|
131
354
|
/**
|
|
@@ -144,11 +367,14 @@ export class Webhooks extends APIResource {
|
|
|
144
367
|
body: WebhookTestParams,
|
|
145
368
|
options?: RequestOptions,
|
|
146
369
|
): APIPromise<WebhookEndpointTestResult> {
|
|
147
|
-
return this._client.post(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
370
|
+
return this._client.post(
|
|
371
|
+
path`/webhook_endpoints/${webhookEndpointID}/test`,
|
|
372
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
373
|
+
body,
|
|
374
|
+
...options,
|
|
375
|
+
__security: { bearerAuth: true },
|
|
376
|
+
})),
|
|
377
|
+
);
|
|
152
378
|
}
|
|
153
379
|
|
|
154
380
|
/**
|
|
@@ -717,6 +943,14 @@ export namespace LiveCallIncomingWebhookEvent {
|
|
|
717
943
|
* untrusted call metadata.
|
|
718
944
|
*/
|
|
719
945
|
sip_headers: Array<Data.SipHeader>;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Media protection selected on the SIP leg during SDP negotiation. `srtp`
|
|
949
|
+
* indicates SRTP; `rtp` indicates unencrypted RTP. Omitted when unknown. This does
|
|
950
|
+
* not describe SIP signaling security or confirm that media has flowed. Clients
|
|
951
|
+
* should handle unrecognized values as unknown.
|
|
952
|
+
*/
|
|
953
|
+
sip_media_security?: 'rtp' | 'srtp' | (string & {});
|
|
720
954
|
}
|
|
721
955
|
|
|
722
956
|
export namespace Data {
|
|
@@ -791,6 +1025,14 @@ export namespace LiveTransportIncomingWebhookEvent {
|
|
|
791
1025
|
* The incoming transport type. Always `sip`.
|
|
792
1026
|
*/
|
|
793
1027
|
type: 'sip';
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Media protection selected on the SIP leg during SDP negotiation. `srtp`
|
|
1031
|
+
* indicates SRTP; `rtp` indicates unencrypted RTP. Omitted when unknown. This does
|
|
1032
|
+
* not describe SIP signaling security or confirm that media has flowed. Clients
|
|
1033
|
+
* should handle unrecognized values as unknown.
|
|
1034
|
+
*/
|
|
1035
|
+
sip_media_security?: 'rtp' | 'srtp' | (string & {});
|
|
794
1036
|
}
|
|
795
1037
|
|
|
796
1038
|
export namespace Data {
|
|
@@ -861,6 +1103,14 @@ export namespace RealtimeCallIncomingWebhookEvent {
|
|
|
861
1103
|
* untrusted call metadata.
|
|
862
1104
|
*/
|
|
863
1105
|
sip_headers: Array<Data.SipHeader>;
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* Media protection selected on the SIP leg during SDP negotiation. `srtp`
|
|
1109
|
+
* indicates SRTP; `rtp` indicates unencrypted RTP. Omitted when unknown. This does
|
|
1110
|
+
* not describe SIP signaling security or confirm that media has flowed. Clients
|
|
1111
|
+
* should handle unrecognized values as unknown.
|
|
1112
|
+
*/
|
|
1113
|
+
sip_media_security?: 'rtp' | 'srtp' | (string & {});
|
|
864
1114
|
}
|
|
865
1115
|
|
|
866
1116
|
export namespace Data {
|
|
@@ -1085,6 +1335,42 @@ export namespace SafetyAlertCreatedWebhookEvent {
|
|
|
1085
1335
|
}
|
|
1086
1336
|
}
|
|
1087
1337
|
|
|
1338
|
+
/**
|
|
1339
|
+
* Sent when a deactivation is issued for a safety identifier in your organization.
|
|
1340
|
+
*/
|
|
1341
|
+
export interface SafetyDeactivationIssuedWebhookEvent {
|
|
1342
|
+
/**
|
|
1343
|
+
* The unique ID of the webhook event.
|
|
1344
|
+
*/
|
|
1345
|
+
id: string;
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* The Unix timestamp in seconds when the event was created.
|
|
1349
|
+
*/
|
|
1350
|
+
created_at: number;
|
|
1351
|
+
|
|
1352
|
+
data: SafetyDeactivationIssuedWebhookEvent.Data;
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Always `event`.
|
|
1356
|
+
*/
|
|
1357
|
+
object: 'event';
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Always `safety.deactivation_issued`.
|
|
1361
|
+
*/
|
|
1362
|
+
type: 'safety.deactivation_issued';
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
export namespace SafetyDeactivationIssuedWebhookEvent {
|
|
1366
|
+
export interface Data {
|
|
1367
|
+
/**
|
|
1368
|
+
* The safety case ID to pass to `GET /v1/safety/cases/{id}`.
|
|
1369
|
+
*/
|
|
1370
|
+
id: string;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1088
1374
|
/**
|
|
1089
1375
|
* Sent when an approved safety alert is available for an enterprise workspace.
|
|
1090
1376
|
*/
|
|
@@ -1121,6 +1407,42 @@ export namespace SafetyOrgAlertCreatedWebhookEvent {
|
|
|
1121
1407
|
}
|
|
1122
1408
|
}
|
|
1123
1409
|
|
|
1410
|
+
/**
|
|
1411
|
+
* Sent when a warning is issued for a safety identifier in your organization.
|
|
1412
|
+
*/
|
|
1413
|
+
export interface SafetyWarningIssuedWebhookEvent {
|
|
1414
|
+
/**
|
|
1415
|
+
* The unique ID of the webhook event.
|
|
1416
|
+
*/
|
|
1417
|
+
id: string;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* The Unix timestamp in seconds when the event was created.
|
|
1421
|
+
*/
|
|
1422
|
+
created_at: number;
|
|
1423
|
+
|
|
1424
|
+
data: SafetyWarningIssuedWebhookEvent.Data;
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* Always `event`.
|
|
1428
|
+
*/
|
|
1429
|
+
object: 'event';
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* Always `safety.warning_issued`.
|
|
1433
|
+
*/
|
|
1434
|
+
type: 'safety.warning_issued';
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
export namespace SafetyWarningIssuedWebhookEvent {
|
|
1438
|
+
export interface Data {
|
|
1439
|
+
/**
|
|
1440
|
+
* The safety case ID to pass to `GET /v1/safety/cases/{id}`.
|
|
1441
|
+
*/
|
|
1442
|
+
id: string;
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1124
1446
|
/**
|
|
1125
1447
|
* Sent when a batch API request has been cancelled.
|
|
1126
1448
|
*/
|
|
@@ -1143,7 +1465,9 @@ export type UnwrapWebhookEvent =
|
|
|
1143
1465
|
| ResponseFailedWebhookEvent
|
|
1144
1466
|
| ResponseIncompleteWebhookEvent
|
|
1145
1467
|
| SafetyAlertCreatedWebhookEvent
|
|
1146
|
-
|
|
|
1468
|
+
| SafetyDeactivationIssuedWebhookEvent
|
|
1469
|
+
| SafetyOrgAlertCreatedWebhookEvent
|
|
1470
|
+
| SafetyWarningIssuedWebhookEvent;
|
|
1147
1471
|
|
|
1148
1472
|
export interface WebhookEndpoint {
|
|
1149
1473
|
/**
|
|
@@ -1439,7 +1763,9 @@ export declare namespace Webhooks {
|
|
|
1439
1763
|
type ResponseFailedWebhookEvent as ResponseFailedWebhookEvent,
|
|
1440
1764
|
type ResponseIncompleteWebhookEvent as ResponseIncompleteWebhookEvent,
|
|
1441
1765
|
type SafetyAlertCreatedWebhookEvent as SafetyAlertCreatedWebhookEvent,
|
|
1766
|
+
type SafetyDeactivationIssuedWebhookEvent as SafetyDeactivationIssuedWebhookEvent,
|
|
1442
1767
|
type SafetyOrgAlertCreatedWebhookEvent as SafetyOrgAlertCreatedWebhookEvent,
|
|
1768
|
+
type SafetyWarningIssuedWebhookEvent as SafetyWarningIssuedWebhookEvent,
|
|
1443
1769
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
|
1444
1770
|
type WebhookEndpoint as WebhookEndpoint,
|
|
1445
1771
|
type WebhookEndpointList as WebhookEndpointList,
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Version of the installed OpenAI SDK package. */
|
|
2
|
-
export const VERSION = '7.
|
|
2
|
+
export const VERSION = '7.21.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
/** Version of the installed OpenAI SDK package. */
|
|
5
|
-
exports.VERSION = '7.
|
|
5
|
+
exports.VERSION = '7.21.0'; // x-release-please-version
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED