openai 7.12.1 → 7.14.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 +22 -0
- 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 +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/helpers/live.d.mts +2 -0
- package/helpers/live.d.mts.map +1 -0
- package/helpers/live.d.ts +2 -0
- package/helpers/live.d.ts.map +1 -0
- package/helpers/live.js +6 -0
- package/helpers/live.js.map +1 -0
- package/helpers/live.mjs +2 -0
- package/helpers/live.mjs.map +1 -0
- package/lib/live/transcript-grouper.d.mts +96 -0
- package/lib/live/transcript-grouper.d.mts.map +1 -0
- package/lib/live/transcript-grouper.d.ts +96 -0
- package/lib/live/transcript-grouper.d.ts.map +1 -0
- package/lib/live/transcript-grouper.js +223 -0
- package/lib/live/transcript-grouper.js.map +1 -0
- package/lib/live/transcript-grouper.mjs +219 -0
- package/lib/live/transcript-grouper.mjs.map +1 -0
- package/lib/live/transcript-grouping.d.mts +49 -0
- package/lib/live/transcript-grouping.d.mts.map +1 -0
- package/lib/live/transcript-grouping.d.ts +49 -0
- package/lib/live/transcript-grouping.d.ts.map +1 -0
- package/lib/live/transcript-grouping.js +287 -0
- package/lib/live/transcript-grouping.js.map +1 -0
- package/lib/live/transcript-grouping.mjs +283 -0
- package/lib/live/transcript-grouping.mjs.map +1 -0
- package/lib/live/webrtc.d.mts +13 -0
- package/lib/live/webrtc.d.mts.map +1 -0
- package/lib/live/webrtc.d.ts +13 -0
- package/lib/live/webrtc.d.ts.map +1 -0
- package/lib/live/webrtc.js +16 -0
- package/lib/live/webrtc.js.map +1 -0
- package/lib/live/webrtc.mjs +10 -0
- package/lib/live/webrtc.mjs.map +1 -0
- package/lib/realtime/webrtc.d.mts +13 -0
- package/lib/realtime/webrtc.d.mts.map +1 -0
- package/lib/realtime/webrtc.d.ts +13 -0
- package/lib/realtime/webrtc.d.ts.map +1 -0
- package/lib/realtime/webrtc.js +16 -0
- package/lib/realtime/webrtc.js.map +1 -0
- package/lib/realtime/webrtc.mjs +10 -0
- package/lib/realtime/webrtc.mjs.map +1 -0
- package/lib/webrtc/connection.d.mts +40 -0
- package/lib/webrtc/connection.d.mts.map +1 -0
- package/lib/webrtc/connection.d.ts +40 -0
- package/lib/webrtc/connection.d.ts.map +1 -0
- package/lib/webrtc/connection.js +228 -0
- package/lib/webrtc/connection.js.map +1 -0
- package/lib/webrtc/connection.mjs +224 -0
- package/lib/webrtc/connection.mjs.map +1 -0
- package/lib/webrtc/data-channel.d.mts +32 -0
- package/lib/webrtc/data-channel.d.mts.map +1 -0
- package/lib/webrtc/data-channel.d.ts +32 -0
- package/lib/webrtc/data-channel.d.ts.map +1 -0
- package/lib/webrtc/data-channel.js +125 -0
- package/lib/webrtc/data-channel.js.map +1 -0
- package/lib/webrtc/data-channel.mjs +121 -0
- package/lib/webrtc/data-channel.mjs.map +1 -0
- package/lib/webrtc/errors.d.mts +19 -0
- package/lib/webrtc/errors.d.mts.map +1 -0
- package/lib/webrtc/errors.d.ts +19 -0
- package/lib/webrtc/errors.d.ts.map +1 -0
- package/lib/webrtc/errors.js +18 -0
- package/lib/webrtc/errors.js.map +1 -0
- package/lib/webrtc/errors.mjs +14 -0
- package/lib/webrtc/errors.mjs.map +1 -0
- package/lib/webrtc/subscriptions.d.mts +13 -0
- package/lib/webrtc/subscriptions.d.mts.map +1 -0
- package/lib/webrtc/subscriptions.d.ts +13 -0
- package/lib/webrtc/subscriptions.d.ts.map +1 -0
- package/lib/webrtc/subscriptions.js +62 -0
- package/lib/webrtc/subscriptions.js.map +1 -0
- package/lib/webrtc/subscriptions.mjs +58 -0
- package/lib/webrtc/subscriptions.mjs.map +1 -0
- package/lib/webrtc/types.d.mts +99 -0
- package/lib/webrtc/types.d.mts.map +1 -0
- package/lib/webrtc/types.d.ts +99 -0
- package/lib/webrtc/types.d.ts.map +1 -0
- package/lib/webrtc/types.js +3 -0
- package/lib/webrtc/types.js.map +1 -0
- package/lib/webrtc/types.mjs +2 -0
- package/lib/webrtc/types.mjs.map +1 -0
- package/live/webrtc.d.mts +3 -0
- package/live/webrtc.d.mts.map +1 -0
- package/live/webrtc.d.ts +3 -0
- package/live/webrtc.d.ts.map +1 -0
- package/live/webrtc.js +8 -0
- package/live/webrtc.js.map +1 -0
- package/live/webrtc.mjs +2 -0
- package/live/webrtc.mjs.map +1 -0
- package/package.json +11 -1
- package/realtime/webrtc.d.mts +3 -0
- package/realtime/webrtc.d.mts.map +1 -0
- package/realtime/webrtc.d.ts +3 -0
- package/realtime/webrtc.d.ts.map +1 -0
- package/realtime/webrtc.js +8 -0
- package/realtime/webrtc.js.map +1 -0
- package/realtime/webrtc.mjs +2 -0
- package/realtime/webrtc.mjs.map +1 -0
- package/resources/admin/organization/audit-logs.d.mts +1 -1
- package/resources/admin/organization/audit-logs.d.ts +1 -1
- package/resources/admin/organization/projects/api-keys.d.mts +5 -0
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.ts +5 -0
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +2 -2
- package/resources/admin/organization/projects/projects.d.ts +2 -2
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +13 -0
- 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 +13 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/audio/speech.d.mts +3 -2
- package/resources/audio/speech.d.mts.map +1 -1
- package/resources/audio/speech.d.ts +3 -2
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/transcriptions.d.mts +10 -10
- package/resources/audio/transcriptions.d.ts +10 -10
- package/resources/audio/translations.d.mts +1 -1
- package/resources/audio/translations.d.ts +1 -1
- package/resources/batches.d.mts +6 -5
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +6 -5
- package/resources/batches.d.ts.map +1 -1
- package/resources/beta/assistants.d.mts +143 -147
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts +143 -147
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/responses/input-tokens.d.mts +11 -11
- package/resources/beta/responses/input-tokens.d.ts +11 -11
- package/resources/beta/responses/responses.d.mts +229 -170
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +229 -170
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js +3 -3
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs +3 -3
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts +29 -23
- package/resources/beta/threads/messages.d.mts.map +1 -1
- package/resources/beta/threads/messages.d.ts +29 -23
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts +39 -35
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +39 -35
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.d.mts +14 -15
- package/resources/beta/threads/runs/steps.d.mts.map +1 -1
- package/resources/beta/threads/runs/steps.d.ts +14 -15
- package/resources/beta/threads/runs/steps.d.ts.map +1 -1
- package/resources/beta/threads/threads.d.mts +53 -50
- package/resources/beta/threads/threads.d.mts.map +1 -1
- package/resources/beta/threads/threads.d.ts +53 -50
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +89 -81
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +89 -81
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/completions.d.mts +15 -14
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +15 -14
- package/resources/completions.d.ts.map +1 -1
- package/resources/content-provenance-checks.d.mts +1 -1
- package/resources/content-provenance-checks.d.ts +1 -1
- package/resources/content-provenance-checks.js +1 -1
- package/resources/content-provenance-checks.mjs +1 -1
- package/resources/conversations/items.d.mts +19 -3
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +19 -3
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/embeddings.d.mts +6 -6
- package/resources/embeddings.d.ts +6 -6
- package/resources/evals/evals.d.mts +1 -1
- package/resources/evals/evals.d.ts +1 -1
- package/resources/evals/evals.js +1 -1
- package/resources/evals/evals.mjs +1 -1
- package/resources/evals/runs/runs.d.mts +62 -57
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts +62 -57
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/files.d.mts +5 -5
- package/resources/files.d.ts +5 -5
- package/resources/files.js +5 -5
- package/resources/files.mjs +5 -5
- package/resources/fine-tuning/alpha/graders.d.mts +5 -4
- package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.ts +5 -4
- package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.mts +8 -4
- package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts +8 -4
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +8 -4
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +8 -4
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts +13 -12
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +13 -12
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +2 -2
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +2 -2
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/graders/grader-models.d.mts +1 -1
- package/resources/graders/grader-models.d.ts +1 -1
- package/resources/images.d.mts +10 -10
- package/resources/images.d.ts +10 -10
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/live/forks/forks.d.mts +110 -0
- package/resources/live/forks/forks.d.mts.map +1 -0
- package/resources/live/forks/forks.d.ts +110 -0
- package/resources/live/forks/forks.d.ts.map +1 -0
- package/resources/live/forks/forks.js +9 -0
- package/resources/live/forks/forks.js.map +1 -0
- package/resources/live/forks/forks.mjs +5 -0
- package/resources/live/forks/forks.mjs.map +1 -0
- package/resources/live/forks/index.d.mts +4 -0
- package/resources/live/forks/index.d.mts.map +1 -0
- package/resources/live/forks/index.d.ts +4 -0
- package/resources/live/forks/index.d.ts.map +1 -0
- package/resources/live/forks/index.js +7 -0
- package/resources/live/forks/index.js.map +1 -0
- package/resources/live/forks/index.mjs +3 -0
- package/resources/live/forks/index.mjs.map +1 -0
- package/resources/live/forks/internal-base.d.mts +73 -0
- package/resources/live/forks/internal-base.d.mts.map +1 -0
- package/resources/live/forks/internal-base.d.ts +73 -0
- package/resources/live/forks/internal-base.d.ts.map +1 -0
- package/resources/live/forks/internal-base.js +49 -0
- package/resources/live/forks/internal-base.js.map +1 -0
- package/resources/live/forks/internal-base.mjs +43 -0
- package/resources/live/forks/internal-base.mjs.map +1 -0
- package/resources/live/forks/ws-base.d.mts +109 -0
- package/resources/live/forks/ws-base.d.mts.map +1 -0
- package/resources/live/forks/ws-base.d.ts +109 -0
- package/resources/live/forks/ws-base.d.ts.map +1 -0
- package/resources/live/forks/ws-base.js +476 -0
- package/resources/live/forks/ws-base.js.map +1 -0
- package/resources/live/forks/ws-base.mjs +472 -0
- package/resources/live/forks/ws-base.mjs.map +1 -0
- package/resources/live/forks/ws.d.mts +13 -0
- package/resources/live/forks/ws.d.mts.map +1 -0
- package/resources/live/forks/ws.d.ts +13 -0
- package/resources/live/forks/ws.d.ts.map +1 -0
- package/resources/live/forks/ws.js +34 -0
- package/resources/live/forks/ws.js.map +1 -0
- package/resources/live/forks/ws.mjs +29 -0
- package/resources/live/forks/ws.mjs.map +1 -0
- package/resources/live/forks.d.mts +2 -0
- package/resources/live/forks.d.mts.map +1 -0
- package/resources/live/forks.d.ts +2 -0
- package/resources/live/forks.d.ts.map +1 -0
- package/resources/live/forks.js +6 -0
- package/resources/live/forks.js.map +1 -0
- package/resources/live/forks.mjs +3 -0
- package/resources/live/forks.mjs.map +1 -0
- package/resources/live/index.d.mts +7 -0
- package/resources/live/index.d.mts.map +1 -0
- package/resources/live/index.d.ts +7 -0
- package/resources/live/index.d.ts.map +1 -0
- package/resources/live/index.js +13 -0
- package/resources/live/index.js.map +1 -0
- package/resources/live/index.mjs +6 -0
- package/resources/live/index.mjs.map +1 -0
- package/resources/live/internal-base.d.mts +71 -0
- package/resources/live/internal-base.d.mts.map +1 -0
- package/resources/live/internal-base.d.ts +71 -0
- package/resources/live/internal-base.d.ts.map +1 -0
- package/resources/live/internal-base.js +48 -0
- package/resources/live/internal-base.js.map +1 -0
- package/resources/live/internal-base.mjs +42 -0
- package/resources/live/internal-base.mjs.map +1 -0
- package/resources/live/live.d.mts +1864 -0
- package/resources/live/live.d.mts.map +1 -0
- package/resources/live/live.d.ts +1864 -0
- package/resources/live/live.d.ts.map +1 -0
- package/resources/live/live.js +40 -0
- package/resources/live/live.js.map +1 -0
- package/resources/live/live.mjs +35 -0
- package/resources/live/live.mjs.map +1 -0
- package/resources/live/sessions.d.mts +254 -0
- package/resources/live/sessions.d.mts.map +1 -0
- package/resources/live/sessions.d.ts +254 -0
- package/resources/live/sessions.d.ts.map +1 -0
- package/resources/live/sessions.js +118 -0
- package/resources/live/sessions.js.map +1 -0
- package/resources/live/sessions.mjs +114 -0
- package/resources/live/sessions.mjs.map +1 -0
- package/resources/live/sideband/index.d.mts +4 -0
- package/resources/live/sideband/index.d.mts.map +1 -0
- package/resources/live/sideband/index.d.ts +4 -0
- package/resources/live/sideband/index.d.ts.map +1 -0
- package/resources/live/sideband/index.js +7 -0
- package/resources/live/sideband/index.js.map +1 -0
- package/resources/live/sideband/index.mjs +3 -0
- package/resources/live/sideband/index.mjs.map +1 -0
- package/resources/live/sideband/internal-base.d.mts +73 -0
- package/resources/live/sideband/internal-base.d.mts.map +1 -0
- package/resources/live/sideband/internal-base.d.ts +73 -0
- package/resources/live/sideband/internal-base.d.ts.map +1 -0
- package/resources/live/sideband/internal-base.js +49 -0
- package/resources/live/sideband/internal-base.js.map +1 -0
- package/resources/live/sideband/internal-base.mjs +43 -0
- package/resources/live/sideband/internal-base.mjs.map +1 -0
- package/resources/live/sideband/sideband.d.mts +25 -0
- package/resources/live/sideband/sideband.d.mts.map +1 -0
- package/resources/live/sideband/sideband.d.ts +25 -0
- package/resources/live/sideband/sideband.d.ts.map +1 -0
- package/resources/live/sideband/sideband.js +9 -0
- package/resources/live/sideband/sideband.js.map +1 -0
- package/resources/live/sideband/sideband.mjs +5 -0
- package/resources/live/sideband/sideband.mjs.map +1 -0
- package/resources/live/sideband/ws-base.d.mts +114 -0
- package/resources/live/sideband/ws-base.d.mts.map +1 -0
- package/resources/live/sideband/ws-base.d.ts +114 -0
- package/resources/live/sideband/ws-base.d.ts.map +1 -0
- package/resources/live/sideband/ws-base.js +476 -0
- package/resources/live/sideband/ws-base.js.map +1 -0
- package/resources/live/sideband/ws-base.mjs +472 -0
- package/resources/live/sideband/ws-base.mjs.map +1 -0
- package/resources/live/sideband/ws.d.mts +13 -0
- package/resources/live/sideband/ws.d.mts.map +1 -0
- package/resources/live/sideband/ws.d.ts +13 -0
- package/resources/live/sideband/ws.d.ts.map +1 -0
- package/resources/live/sideband/ws.js +34 -0
- package/resources/live/sideband/ws.js.map +1 -0
- package/resources/live/sideband/ws.mjs +29 -0
- package/resources/live/sideband/ws.mjs.map +1 -0
- package/resources/live/sideband.d.mts +2 -0
- package/resources/live/sideband.d.mts.map +1 -0
- package/resources/live/sideband.d.ts +2 -0
- package/resources/live/sideband.d.ts.map +1 -0
- package/resources/live/sideband.js +6 -0
- package/resources/live/sideband.js.map +1 -0
- package/resources/live/sideband.mjs +3 -0
- package/resources/live/sideband.mjs.map +1 -0
- package/resources/live/ws-base.d.mts +106 -0
- package/resources/live/ws-base.d.mts.map +1 -0
- package/resources/live/ws-base.d.ts +106 -0
- package/resources/live/ws-base.d.ts.map +1 -0
- package/resources/live/ws-base.js +476 -0
- package/resources/live/ws-base.js.map +1 -0
- package/resources/live/ws-base.mjs +472 -0
- package/resources/live/ws-base.mjs.map +1 -0
- package/resources/live/ws.d.mts +13 -0
- package/resources/live/ws.d.mts.map +1 -0
- package/resources/live/ws.d.ts +13 -0
- package/resources/live/ws.d.ts.map +1 -0
- package/resources/live/ws.js +34 -0
- package/resources/live/ws.js.map +1 -0
- package/resources/live/ws.mjs +29 -0
- package/resources/live/ws.mjs.map +1 -0
- package/resources/live.d.mts +2 -0
- package/resources/live.d.mts.map +1 -0
- package/resources/live.d.ts +2 -0
- package/resources/live.d.ts.map +1 -0
- package/resources/live.js +6 -0
- package/resources/live.js.map +1 -0
- package/resources/live.mjs +3 -0
- package/resources/live.mjs.map +1 -0
- package/resources/moderations.d.mts +5 -4
- package/resources/moderations.d.mts.map +1 -1
- package/resources/moderations.d.ts +5 -4
- package/resources/moderations.d.ts.map +1 -1
- package/resources/moderations.js +2 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +2 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/realtime/calls.d.mts +1 -1
- package/resources/realtime/calls.d.ts +1 -1
- package/resources/realtime/client-secrets.d.mts +4 -4
- package/resources/realtime/client-secrets.d.ts +4 -4
- package/resources/realtime/client-secrets.js +1 -1
- package/resources/realtime/client-secrets.mjs +1 -1
- package/resources/realtime/realtime.d.mts +16 -16
- package/resources/realtime/realtime.d.ts +16 -16
- package/resources/responses/input-tokens.d.mts +9 -9
- package/resources/responses/input-tokens.d.ts +9 -9
- package/resources/responses/responses.d.mts +223 -164
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +223 -164
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +3 -3
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +3 -3
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/shared.d.mts +12 -12
- package/resources/shared.d.ts +12 -12
- package/resources/uploads/parts.d.mts +5 -4
- package/resources/uploads/parts.d.mts.map +1 -1
- package/resources/uploads/parts.d.ts +5 -4
- package/resources/uploads/parts.d.ts.map +1 -1
- package/resources/uploads/parts.js +5 -4
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +5 -4
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.d.mts +11 -11
- package/resources/uploads/uploads.d.ts +11 -11
- package/resources/uploads/uploads.js +9 -9
- package/resources/uploads/uploads.mjs +9 -9
- package/resources/vector-stores/file-batches.d.mts +11 -11
- package/resources/vector-stores/file-batches.d.ts +11 -11
- package/resources/vector-stores/files.d.mts +8 -8
- package/resources/vector-stores/files.d.ts +8 -8
- package/resources/vector-stores/files.js +3 -3
- package/resources/vector-stores/files.mjs +3 -3
- package/resources/vector-stores/vector-stores.d.mts +3 -3
- package/resources/vector-stores/vector-stores.d.ts +3 -3
- package/resources/webhooks/webhooks.d.mts +78 -7
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +78 -7
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/src/client.ts +5 -0
- package/src/helpers/live.ts +8 -0
- package/src/lib/live/transcript-grouper.ts +303 -0
- package/src/lib/live/transcript-grouping.ts +362 -0
- package/src/lib/live/webrtc.ts +23 -0
- package/src/lib/realtime/webrtc.ts +20 -0
- package/src/lib/webrtc/connection.ts +309 -0
- package/src/lib/webrtc/data-channel.ts +144 -0
- package/src/lib/webrtc/errors.ts +38 -0
- package/src/lib/webrtc/subscriptions.ts +62 -0
- package/src/lib/webrtc/types.ts +109 -0
- package/src/live/webrtc.ts +10 -0
- package/src/realtime/webrtc.ts +10 -0
- package/src/resources/admin/organization/audit-logs.ts +1 -1
- package/src/resources/admin/organization/projects/api-keys.ts +6 -0
- package/src/resources/admin/organization/projects/projects.ts +2 -2
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +15 -0
- package/src/resources/audio/speech.ts +3 -2
- package/src/resources/audio/transcriptions.ts +10 -10
- package/src/resources/audio/translations.ts +1 -1
- package/src/resources/batches.ts +6 -5
- package/src/resources/beta/assistants.ts +143 -147
- package/src/resources/beta/responses/input-tokens.ts +11 -11
- package/src/resources/beta/responses/responses.ts +241 -170
- package/src/resources/beta/threads/messages.ts +29 -23
- package/src/resources/beta/threads/runs/runs.ts +39 -35
- package/src/resources/beta/threads/runs/steps.ts +14 -15
- package/src/resources/beta/threads/threads.ts +53 -50
- package/src/resources/chat/completions/completions.ts +89 -81
- package/src/resources/completions.ts +15 -14
- package/src/resources/content-provenance-checks.ts +1 -1
- package/src/resources/conversations/items.ts +23 -3
- package/src/resources/embeddings.ts +6 -6
- package/src/resources/evals/evals.ts +1 -1
- package/src/resources/evals/runs/runs.ts +62 -57
- package/src/resources/files.ts +5 -5
- package/src/resources/fine-tuning/alpha/graders.ts +5 -4
- package/src/resources/fine-tuning/checkpoints/permissions.ts +8 -4
- package/src/resources/fine-tuning/jobs/jobs.ts +13 -12
- package/src/resources/graders/grader-models.ts +1 -1
- package/src/resources/images.ts +10 -10
- package/src/resources/index.ts +1 -0
- package/src/resources/live/api.md +87 -0
- package/src/resources/live/forks/forks.ts +169 -0
- package/src/resources/live/forks/index.ts +5 -0
- package/src/resources/live/forks/internal-base.ts +107 -0
- package/src/resources/live/forks/ws-base.ts +611 -0
- package/src/resources/live/forks/ws.ts +46 -0
- package/src/resources/live/forks.ts +3 -0
- package/src/resources/live/index.ts +20 -0
- package/src/resources/live/internal-base.ts +104 -0
- package/src/resources/live/live.ts +2296 -0
- package/src/resources/live/sessions.ts +337 -0
- package/src/resources/live/sideband/index.ts +10 -0
- package/src/resources/live/sideband/internal-base.ts +107 -0
- package/src/resources/live/sideband/sideband.ts +58 -0
- package/src/resources/live/sideband/ws-base.ts +621 -0
- package/src/resources/live/sideband/ws.ts +46 -0
- package/src/resources/live/sideband.ts +3 -0
- package/src/resources/live/ws-base.ts +607 -0
- package/src/resources/live/ws.ts +42 -0
- package/src/resources/live.ts +3 -0
- package/src/resources/moderations.ts +5 -4
- package/src/resources/realtime/calls.ts +1 -1
- package/src/resources/realtime/client-secrets.ts +4 -4
- package/src/resources/realtime/realtime.ts +16 -16
- package/src/resources/responses/input-tokens.ts +9 -9
- package/src/resources/responses/responses.ts +235 -164
- package/src/resources/shared.ts +12 -12
- package/src/resources/uploads/parts.ts +5 -4
- package/src/resources/uploads/uploads.ts +11 -11
- package/src/resources/vector-stores/file-batches.ts +11 -11
- package/src/resources/vector-stores/files.ts +8 -8
- package/src/resources/vector-stores/vector-stores.ts +3 -3
- package/src/resources/webhooks/api.md +1 -0
- package/src/resources/webhooks/webhooks.ts +88 -5
- 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
package/src/resources/shared.ts
CHANGED
|
@@ -257,8 +257,8 @@ export interface FunctionDefinition {
|
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
259
|
* The parameters the functions accepts, described as a JSON Schema object. See the
|
|
260
|
-
* [guide](https://
|
|
261
|
-
* and the
|
|
260
|
+
* [guide](https://developers.openai.com/api/docs/guides/function-calling) for
|
|
261
|
+
* examples, and the
|
|
262
262
|
* [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
|
|
263
263
|
* documentation about the format.
|
|
264
264
|
*
|
|
@@ -271,15 +271,15 @@ export interface FunctionDefinition {
|
|
|
271
271
|
* set to true, the model will follow the exact schema defined in the `parameters`
|
|
272
272
|
* field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn
|
|
273
273
|
* more about Structured Outputs in the
|
|
274
|
-
* [function calling guide](https://
|
|
274
|
+
* [function calling guide](https://developers.openai.com/api/docs/guides/function-calling).
|
|
275
275
|
*/
|
|
276
276
|
strict?: boolean | null;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
280
|
* The parameters the functions accepts, described as a JSON Schema object. See the
|
|
281
|
-
* [guide](https://
|
|
282
|
-
* and the
|
|
281
|
+
* [guide](https://developers.openai.com/api/docs/guides/function-calling) for
|
|
282
|
+
* examples, and the
|
|
283
283
|
* [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
|
|
284
284
|
* documentation about the format.
|
|
285
285
|
*
|
|
@@ -301,7 +301,7 @@ export type OAuthErrorCode = 'invalid_grant' | 'invalid_subject_token' | (string
|
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
303
|
* Configuration options for
|
|
304
|
-
* [reasoning models](https://
|
|
304
|
+
* [reasoning models](https://developers.openai.com/api/docs/guides/reasoning).
|
|
305
305
|
*/
|
|
306
306
|
export interface Reasoning {
|
|
307
307
|
/**
|
|
@@ -319,7 +319,7 @@ export interface Reasoning {
|
|
|
319
319
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
320
320
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
321
321
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
322
|
-
* [reasoning guide](https://
|
|
322
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
323
323
|
* model-specific support.
|
|
324
324
|
*/
|
|
325
325
|
effort?: ReasoningEffort | null;
|
|
@@ -356,7 +356,7 @@ export interface Reasoning {
|
|
|
356
356
|
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
357
357
|
* reasoning effort can result in faster responses and fewer tokens used on
|
|
358
358
|
* reasoning in a response. Not all reasoning models support every value. See the
|
|
359
|
-
* [reasoning guide](https://
|
|
359
|
+
* [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
360
360
|
* model-specific support.
|
|
361
361
|
*/
|
|
362
362
|
export type ReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
@@ -376,7 +376,7 @@ export interface ResponseFormatJSONObject {
|
|
|
376
376
|
/**
|
|
377
377
|
* JSON Schema response format. Used to generate structured JSON responses. Learn
|
|
378
378
|
* more about
|
|
379
|
-
* [Structured Outputs](https://
|
|
379
|
+
* [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
380
380
|
*/
|
|
381
381
|
export interface ResponseFormatJSONSchema {
|
|
382
382
|
/**
|
|
@@ -418,7 +418,7 @@ export namespace ResponseFormatJSONSchema {
|
|
|
418
418
|
* true, the model will always follow the exact schema defined in the `schema`
|
|
419
419
|
* field. Only a subset of JSON Schema is supported when `strict` is `true`. To
|
|
420
420
|
* learn more, read the
|
|
421
|
-
* [Structured Outputs guide](https://
|
|
421
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
422
422
|
*/
|
|
423
423
|
strict?: boolean | null;
|
|
424
424
|
}
|
|
@@ -436,7 +436,7 @@ export interface ResponseFormatText {
|
|
|
436
436
|
|
|
437
437
|
/**
|
|
438
438
|
* A custom grammar for the model to follow when generating text. Learn more in the
|
|
439
|
-
* [custom grammars guide](https://
|
|
439
|
+
* [custom grammars guide](https://developers.openai.com/api/docs/guides/function-calling#context-free-grammars).
|
|
440
440
|
*/
|
|
441
441
|
export interface ResponseFormatTextGrammar {
|
|
442
442
|
/**
|
|
@@ -452,7 +452,7 @@ export interface ResponseFormatTextGrammar {
|
|
|
452
452
|
|
|
453
453
|
/**
|
|
454
454
|
* Configure the model to generate valid Python code. See the
|
|
455
|
-
* [custom grammars guide](https://
|
|
455
|
+
* [custom grammars guide](https://developers.openai.com/api/docs/guides/function-calling#context-free-grammars)
|
|
456
456
|
* for more details.
|
|
457
457
|
*/
|
|
458
458
|
export interface ResponseFormatTextPython {
|
|
@@ -13,16 +13,17 @@ import { path } from '../../internal/utils/path';
|
|
|
13
13
|
export class Parts extends APIResource {
|
|
14
14
|
/**
|
|
15
15
|
* Adds a
|
|
16
|
-
* [Part](https://
|
|
17
|
-
* [Upload](https://
|
|
18
|
-
* A Part represents a chunk of bytes from the file you are trying to
|
|
16
|
+
* [Part](https://developers.openai.com/api/reference/resources/uploads/subresources/parts)
|
|
17
|
+
* to an [Upload](https://developers.openai.com/api/reference/resources/uploads)
|
|
18
|
+
* object. A Part represents a chunk of bytes from the file you are trying to
|
|
19
|
+
* upload.
|
|
19
20
|
*
|
|
20
21
|
* Each Part can be at most 64 MB, and you can add Parts until you hit the Upload
|
|
21
22
|
* maximum of 8 GB.
|
|
22
23
|
*
|
|
23
24
|
* It is possible to add multiple Parts in parallel. You can decide the intended
|
|
24
25
|
* order of the Parts when you
|
|
25
|
-
* [complete the Upload](https://
|
|
26
|
+
* [complete the Upload](https://developers.openai.com/api/reference/resources/uploads/methods/complete).
|
|
26
27
|
*/
|
|
27
28
|
create(uploadID: string, body: PartCreateParams, options?: RequestOptions): APIPromise<UploadPart> {
|
|
28
29
|
return this._client.post(
|
|
@@ -16,24 +16,24 @@ export class Uploads extends APIResource {
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Creates an intermediate
|
|
19
|
-
* [Upload](https://
|
|
19
|
+
* [Upload](https://developers.openai.com/api/reference/resources/uploads) object
|
|
20
20
|
* that you can add
|
|
21
|
-
* [Parts](https://
|
|
22
|
-
* Currently, an Upload can accept at most 8 GB in total and expires after an
|
|
23
|
-
* after you create it.
|
|
21
|
+
* [Parts](https://developers.openai.com/api/reference/resources/uploads/subresources/parts)
|
|
22
|
+
* to. Currently, an Upload can accept at most 8 GB in total and expires after an
|
|
23
|
+
* hour after you create it.
|
|
24
24
|
*
|
|
25
25
|
* Once you complete the Upload, we will create a
|
|
26
|
-
* [File](https://
|
|
26
|
+
* [File](https://developers.openai.com/api/reference/resources/files) object that
|
|
27
27
|
* contains all the parts you uploaded. This File is usable in the rest of our
|
|
28
28
|
* platform as a regular File object.
|
|
29
29
|
*
|
|
30
30
|
* For certain `purpose` values, the correct `mime_type` must be specified. Please
|
|
31
31
|
* refer to documentation for the
|
|
32
|
-
* [supported MIME types for your use case](https://
|
|
32
|
+
* [supported MIME types for your use case](https://developers.openai.com/api/docs/guides/tools-file-search#supported-files).
|
|
33
33
|
*
|
|
34
34
|
* For guidance on the proper filename extensions for each purpose, please follow
|
|
35
35
|
* the documentation on
|
|
36
|
-
* [creating a File](https://
|
|
36
|
+
* [creating a File](https://developers.openai.com/api/reference/resources/files/methods/create).
|
|
37
37
|
*
|
|
38
38
|
* Returns the Upload object with status `pending`.
|
|
39
39
|
*/
|
|
@@ -55,10 +55,10 @@ export class Uploads extends APIResource {
|
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Completes the
|
|
58
|
-
* [Upload](https://
|
|
58
|
+
* [Upload](https://developers.openai.com/api/reference/resources/uploads).
|
|
59
59
|
*
|
|
60
60
|
* Within the returned Upload object, there is a nested
|
|
61
|
-
* [File](https://
|
|
61
|
+
* [File](https://developers.openai.com/api/reference/resources/files) object that
|
|
62
62
|
* is ready to use in the rest of the platform.
|
|
63
63
|
*
|
|
64
64
|
* You can specify the order of the Parts by passing in an ordered list of the Part
|
|
@@ -115,7 +115,7 @@ export interface Upload {
|
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The intended purpose of the file.
|
|
118
|
-
* [Please refer here](https://
|
|
118
|
+
* [Please refer here](https://developers.openai.com/api/reference/resources/files#%28resource%29%20files%20%3E%20%28model%29%20file_object%20%3E%20%28schema%29%20%3E%20%28property%29%20purpose)
|
|
119
119
|
* for acceptable values.
|
|
120
120
|
*/
|
|
121
121
|
purpose: string;
|
|
@@ -154,7 +154,7 @@ export interface UploadCreateParams {
|
|
|
154
154
|
* The intended purpose of the uploaded file.
|
|
155
155
|
*
|
|
156
156
|
* See the
|
|
157
|
-
* [documentation on File purposes](https://
|
|
157
|
+
* [documentation on File purposes](https://developers.openai.com/api/reference/resources/files/methods/create#%28resource%29%20files%20%3E%20%28method%29%20create%20%3E%20%28params%29%200%20%3E%20%28param%29%20purpose%20%3E%20%28schema%29).
|
|
158
158
|
*/
|
|
159
159
|
purpose: FilesAPI.FilePurpose;
|
|
160
160
|
|
|
@@ -161,8 +161,8 @@ export interface VectorStoreFileBatch {
|
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* The ID of the
|
|
164
|
-
* [vector store](https://
|
|
165
|
-
* that the [File](https://
|
|
164
|
+
* [vector store](https://developers.openai.com/api/reference/resources/vector_stores)
|
|
165
|
+
* that the [File](https://developers.openai.com/api/reference/resources/files) is
|
|
166
166
|
* attached to.
|
|
167
167
|
*/
|
|
168
168
|
vector_store_id: string;
|
|
@@ -214,12 +214,12 @@ export interface FileBatchCreateParams {
|
|
|
214
214
|
chunking_strategy?: VectorStoresAPI.FileChunkingStrategyParam;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
* A list of [File](https://
|
|
218
|
-
* the vector store should use. Useful for tools like `file_search` that
|
|
219
|
-
* files. If `attributes` or `chunking_strategy` are provided, they will
|
|
220
|
-
* to all files in the batch. The maximum batch size is 2000 files. This
|
|
221
|
-
* is recommended for multi-file ingestion and helps reduce
|
|
222
|
-
* request pressure. Mutually exclusive with `files`.
|
|
217
|
+
* A list of [File](https://developers.openai.com/api/reference/resources/files)
|
|
218
|
+
* IDs that the vector store should use. Useful for tools like `file_search` that
|
|
219
|
+
* can access files. If `attributes` or `chunking_strategy` are provided, they will
|
|
220
|
+
* be applied to all files in the batch. The maximum batch size is 2000 files. This
|
|
221
|
+
* endpoint is recommended for multi-file ingestion and helps reduce
|
|
222
|
+
* per-vector-store write request pressure. Mutually exclusive with `files`.
|
|
223
223
|
*/
|
|
224
224
|
file_ids?: Array<string>;
|
|
225
225
|
|
|
@@ -237,10 +237,10 @@ export interface FileBatchCreateParams {
|
|
|
237
237
|
export namespace FileBatchCreateParams {
|
|
238
238
|
export interface File {
|
|
239
239
|
/**
|
|
240
|
-
* A [File](https://
|
|
241
|
-
* vector store should use. Useful for tools like `file_search` that can access
|
|
240
|
+
* A [File](https://developers.openai.com/api/reference/resources/files) ID that
|
|
241
|
+
* the vector store should use. Useful for tools like `file_search` that can access
|
|
242
242
|
* files. For multi-file ingestion, we recommend
|
|
243
|
-
* [`file_batches`](https://
|
|
243
|
+
* [`file_batches`](https://developers.openai.com/api/reference/resources/vector_stores/subresources/file_batches/methods/create)
|
|
244
244
|
* to minimize per-vector-store write requests.
|
|
245
245
|
*/
|
|
246
246
|
file_id: string;
|
|
@@ -13,8 +13,8 @@ import { path } from '../../internal/utils/path';
|
|
|
13
13
|
export class Files extends APIResource {
|
|
14
14
|
/**
|
|
15
15
|
* Create a vector store file by attaching a
|
|
16
|
-
* [File](https://
|
|
17
|
-
* [vector store](https://
|
|
16
|
+
* [File](https://developers.openai.com/api/reference/resources/files) to a
|
|
17
|
+
* [vector store](https://developers.openai.com/api/reference/resources/vector_stores).
|
|
18
18
|
*/
|
|
19
19
|
create(
|
|
20
20
|
vectorStoreID: string,
|
|
@@ -77,7 +77,7 @@ export class Files extends APIResource {
|
|
|
77
77
|
/**
|
|
78
78
|
* Delete a vector store file. This will remove the file from the vector store but
|
|
79
79
|
* the file itself will not be deleted. To delete the file, use the
|
|
80
|
-
* [delete file](https://
|
|
80
|
+
* [delete file](https://developers.openai.com/api/reference/resources/files/methods/delete)
|
|
81
81
|
* endpoint.
|
|
82
82
|
*/
|
|
83
83
|
delete(
|
|
@@ -205,8 +205,8 @@ export interface VectorStoreFile {
|
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
* The ID of the
|
|
208
|
-
* [vector store](https://
|
|
209
|
-
* that the [File](https://
|
|
208
|
+
* [vector store](https://developers.openai.com/api/reference/resources/vector_stores)
|
|
209
|
+
* that the [File](https://developers.openai.com/api/reference/resources/files) is
|
|
210
210
|
* attached to.
|
|
211
211
|
*/
|
|
212
212
|
vector_store_id: string;
|
|
@@ -266,10 +266,10 @@ export interface FileContentResponse {
|
|
|
266
266
|
|
|
267
267
|
export interface FileCreateParams {
|
|
268
268
|
/**
|
|
269
|
-
* A [File](https://
|
|
270
|
-
* vector store should use. Useful for tools like `file_search` that can access
|
|
269
|
+
* A [File](https://developers.openai.com/api/reference/resources/files) ID that
|
|
270
|
+
* the vector store should use. Useful for tools like `file_search` that can access
|
|
271
271
|
* files. For multi-file ingestion, we recommend
|
|
272
|
-
* [`file_batches`](https://
|
|
272
|
+
* [`file_batches`](https://developers.openai.com/api/reference/resources/vector_stores/subresources/file_batches/methods/create)
|
|
273
273
|
* to minimize per-vector-store write requests.
|
|
274
274
|
*/
|
|
275
275
|
file_id: string;
|
|
@@ -381,9 +381,9 @@ export interface VectorStoreCreateParams {
|
|
|
381
381
|
expires_after?: VectorStoreCreateParams.ExpiresAfter;
|
|
382
382
|
|
|
383
383
|
/**
|
|
384
|
-
* A list of [File](https://
|
|
385
|
-
* the vector store should use. Useful for tools like `file_search` that
|
|
386
|
-
* files.
|
|
384
|
+
* A list of [File](https://developers.openai.com/api/reference/resources/files)
|
|
385
|
+
* IDs that the vector store should use. Useful for tools like `file_search` that
|
|
386
|
+
* can access files.
|
|
387
387
|
*/
|
|
388
388
|
file_ids?: Array<string>;
|
|
389
389
|
|
|
@@ -13,6 +13,7 @@ Types:
|
|
|
13
13
|
- <code><a href="./src/resources/webhooks.ts">FineTuningJobFailedWebhookEvent</a></code>
|
|
14
14
|
- <code><a href="./src/resources/webhooks.ts">FineTuningJobSucceededWebhookEvent</a></code>
|
|
15
15
|
- <code><a href="./src/resources/webhooks.ts">LiveCallIncomingWebhookEvent</a></code>
|
|
16
|
+
- <code><a href="./src/resources/webhooks.ts">LiveTransportIncomingWebhookEvent</a></code>
|
|
16
17
|
- <code><a href="./src/resources/webhooks.ts">RealtimeCallIncomingWebhookEvent</a></code>
|
|
17
18
|
- <code><a href="./src/resources/webhooks.ts">ResponseCancelledWebhookEvent</a></code>
|
|
18
19
|
- <code><a href="./src/resources/webhooks.ts">ResponseCompletedWebhookEvent</a></code>
|
|
@@ -501,6 +501,8 @@ export namespace FineTuningJobSucceededWebhookEvent {
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
/**
|
|
504
|
+
* @deprecated Deprecated: use `live.transport.incoming`. Retained for existing
|
|
505
|
+
* subscriptions during migration; new subscriptions to this event are not allowed.
|
|
504
506
|
* Sent when an incoming API SIP session is available for Live acceptance. The same
|
|
505
507
|
* pending session can also emit `realtime.call.incoming`; the first successful
|
|
506
508
|
* Realtime or Live accept endpoint selects the runtime surface.
|
|
@@ -533,6 +535,76 @@ export interface LiveCallIncomingWebhookEvent {
|
|
|
533
535
|
}
|
|
534
536
|
|
|
535
537
|
export namespace LiveCallIncomingWebhookEvent {
|
|
538
|
+
/**
|
|
539
|
+
* Event data payload.
|
|
540
|
+
*/
|
|
541
|
+
export interface Data {
|
|
542
|
+
/**
|
|
543
|
+
* The `live_...` ID of the pending SIP session. Pass this value unchanged to Live
|
|
544
|
+
* call controls and sideband connections. The corresponding
|
|
545
|
+
* `realtime.call.incoming` event uses a separate `rtc_...` call ID.
|
|
546
|
+
*/
|
|
547
|
+
session_id: string;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Headers from the SIP INVITE, excluding SIP authorization headers. Retained
|
|
551
|
+
* names, values, repeated entries, and order are preserved. Treat these values as
|
|
552
|
+
* untrusted call metadata.
|
|
553
|
+
*/
|
|
554
|
+
sip_headers: Array<Data.SipHeader>;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export namespace Data {
|
|
558
|
+
/**
|
|
559
|
+
* A header from the SIP Invite.
|
|
560
|
+
*/
|
|
561
|
+
export interface SipHeader {
|
|
562
|
+
/**
|
|
563
|
+
* Name of the SIP Header.
|
|
564
|
+
*/
|
|
565
|
+
name: string;
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Value of the SIP Header.
|
|
569
|
+
*/
|
|
570
|
+
value: string;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Sent when an incoming API SIP session is available for Live acceptance. The same
|
|
577
|
+
* pending session can also emit `realtime.call.incoming`; the first successful
|
|
578
|
+
* Realtime or Live accept endpoint selects the runtime surface.
|
|
579
|
+
*/
|
|
580
|
+
export interface LiveTransportIncomingWebhookEvent {
|
|
581
|
+
/**
|
|
582
|
+
* The unique ID of the event.
|
|
583
|
+
*/
|
|
584
|
+
id: string;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* The Unix timestamp (in seconds) of when the event was created.
|
|
588
|
+
*/
|
|
589
|
+
created_at: number;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Event data payload.
|
|
593
|
+
*/
|
|
594
|
+
data: LiveTransportIncomingWebhookEvent.Data;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* The type of the event. Always `live.transport.incoming`.
|
|
598
|
+
*/
|
|
599
|
+
type: 'live.transport.incoming';
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* The object of the event. Always `event`.
|
|
603
|
+
*/
|
|
604
|
+
object?: 'event';
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export namespace LiveTransportIncomingWebhookEvent {
|
|
536
608
|
/**
|
|
537
609
|
* Event data payload.
|
|
538
610
|
*/
|
|
@@ -544,9 +616,16 @@ export namespace LiveCallIncomingWebhookEvent {
|
|
|
544
616
|
session_id: string;
|
|
545
617
|
|
|
546
618
|
/**
|
|
547
|
-
* Headers from the SIP
|
|
619
|
+
* Headers from the SIP INVITE, excluding SIP authorization headers. Retained
|
|
620
|
+
* names, values, repeated entries, and order are preserved. Treat these values as
|
|
621
|
+
* untrusted call metadata.
|
|
548
622
|
*/
|
|
549
623
|
sip_headers: Array<Data.SipHeader>;
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* The incoming transport type. Always `sip`.
|
|
627
|
+
*/
|
|
628
|
+
type: 'sip';
|
|
550
629
|
}
|
|
551
630
|
|
|
552
631
|
export namespace Data {
|
|
@@ -569,8 +648,8 @@ export namespace LiveCallIncomingWebhookEvent {
|
|
|
569
648
|
|
|
570
649
|
/**
|
|
571
650
|
* Sent when an incoming API SIP session is available for Realtime acceptance. The
|
|
572
|
-
* same pending session can also emit `live.
|
|
573
|
-
* Realtime or Live accept endpoint selects the runtime surface.
|
|
651
|
+
* same pending session can also emit `live.transport.incoming`; the first
|
|
652
|
+
* successful Realtime or Live accept endpoint selects the runtime surface.
|
|
574
653
|
*/
|
|
575
654
|
export interface RealtimeCallIncomingWebhookEvent {
|
|
576
655
|
/**
|
|
@@ -606,14 +685,16 @@ export namespace RealtimeCallIncomingWebhookEvent {
|
|
|
606
685
|
export interface Data {
|
|
607
686
|
/**
|
|
608
687
|
* The Transceiver `rtc_...` ID of the pending SIP session. The paired
|
|
609
|
-
* `live.
|
|
688
|
+
* `live.transport.incoming` event derives its `session_id` by replacing the `rtc_`
|
|
610
689
|
* prefix with `live_`. Use the ID returned by the event with the corresponding
|
|
611
690
|
* Realtime or Live API.
|
|
612
691
|
*/
|
|
613
692
|
call_id: string;
|
|
614
693
|
|
|
615
694
|
/**
|
|
616
|
-
* Headers from the SIP
|
|
695
|
+
* Headers from the SIP INVITE, excluding SIP authorization headers. Retained
|
|
696
|
+
* names, values, repeated entries, and order are preserved. Treat these values as
|
|
697
|
+
* untrusted call metadata.
|
|
617
698
|
*/
|
|
618
699
|
sip_headers: Array<Data.SipHeader>;
|
|
619
700
|
}
|
|
@@ -891,6 +972,7 @@ export type UnwrapWebhookEvent =
|
|
|
891
972
|
| FineTuningJobFailedWebhookEvent
|
|
892
973
|
| FineTuningJobSucceededWebhookEvent
|
|
893
974
|
| LiveCallIncomingWebhookEvent
|
|
975
|
+
| LiveTransportIncomingWebhookEvent
|
|
894
976
|
| RealtimeCallIncomingWebhookEvent
|
|
895
977
|
| ResponseCancelledWebhookEvent
|
|
896
978
|
| ResponseCompletedWebhookEvent
|
|
@@ -912,6 +994,7 @@ export declare namespace Webhooks {
|
|
|
912
994
|
type FineTuningJobFailedWebhookEvent as FineTuningJobFailedWebhookEvent,
|
|
913
995
|
type FineTuningJobSucceededWebhookEvent as FineTuningJobSucceededWebhookEvent,
|
|
914
996
|
type LiveCallIncomingWebhookEvent as LiveCallIncomingWebhookEvent,
|
|
997
|
+
type LiveTransportIncomingWebhookEvent as LiveTransportIncomingWebhookEvent,
|
|
915
998
|
type RealtimeCallIncomingWebhookEvent as RealtimeCallIncomingWebhookEvent,
|
|
916
999
|
type ResponseCancelledWebhookEvent as ResponseCancelledWebhookEvent,
|
|
917
1000
|
type ResponseCompletedWebhookEvent as ResponseCompletedWebhookEvent,
|
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.14.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.14.0'; // x-release-please-version
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED