openai 7.26.0 → 7.28.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.
Files changed (170) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/helpers/beta/agents/filesystem.d.mts +17 -0
  3. package/helpers/beta/agents/filesystem.d.mts.map +1 -0
  4. package/helpers/beta/agents/filesystem.d.ts +17 -0
  5. package/helpers/beta/agents/filesystem.d.ts.map +1 -0
  6. package/helpers/beta/agents/filesystem.js +168 -0
  7. package/helpers/beta/agents/filesystem.js.map +1 -0
  8. package/helpers/beta/agents/filesystem.mjs +162 -0
  9. package/helpers/beta/agents/filesystem.mjs.map +1 -0
  10. package/internal/shim-types.d.mts +9 -0
  11. package/internal/shim-types.d.mts.map +1 -1
  12. package/internal/shim-types.d.ts +9 -0
  13. package/internal/shim-types.d.ts.map +1 -1
  14. package/internal/tslib.js +4 -0
  15. package/lib/beta/agents/files.d.mts +33 -0
  16. package/lib/beta/agents/files.d.mts.map +1 -0
  17. package/lib/beta/agents/files.d.ts +33 -0
  18. package/lib/beta/agents/files.d.ts.map +1 -0
  19. package/lib/beta/agents/files.js +93 -0
  20. package/lib/beta/agents/files.js.map +1 -0
  21. package/lib/beta/agents/files.mjs +86 -0
  22. package/lib/beta/agents/files.mjs.map +1 -0
  23. package/lib/beta/agents/pages.d.mts +9 -0
  24. package/lib/beta/agents/pages.d.mts.map +1 -0
  25. package/lib/beta/agents/pages.d.ts +9 -0
  26. package/lib/beta/agents/pages.d.ts.map +1 -0
  27. package/lib/beta/agents/pages.js +32 -0
  28. package/lib/beta/agents/pages.js.map +1 -0
  29. package/lib/beta/agents/pages.mjs +29 -0
  30. package/lib/beta/agents/pages.mjs.map +1 -0
  31. package/lib/beta/agents/parse-result.d.mts +2 -2
  32. package/lib/beta/agents/parse-result.d.ts +2 -2
  33. package/lib/beta/agents/result-artifacts.d.mts +19 -0
  34. package/lib/beta/agents/result-artifacts.d.mts.map +1 -0
  35. package/lib/beta/agents/result-artifacts.d.ts +19 -0
  36. package/lib/beta/agents/result-artifacts.d.ts.map +1 -0
  37. package/lib/beta/agents/result-artifacts.js +67 -0
  38. package/lib/beta/agents/result-artifacts.js.map +1 -0
  39. package/lib/beta/agents/result-artifacts.mjs +63 -0
  40. package/lib/beta/agents/result-artifacts.mjs.map +1 -0
  41. package/package.json +1 -1
  42. package/resources/admin/organization/usage.d.mts +77 -11
  43. package/resources/admin/organization/usage.d.mts.map +1 -1
  44. package/resources/admin/organization/usage.d.ts +77 -11
  45. package/resources/admin/organization/usage.d.ts.map +1 -1
  46. package/resources/audio/audio.d.mts +4 -0
  47. package/resources/audio/audio.d.mts.map +1 -1
  48. package/resources/audio/audio.d.ts +4 -0
  49. package/resources/audio/audio.d.ts.map +1 -1
  50. package/resources/audio/audio.js +4 -0
  51. package/resources/audio/audio.js.map +1 -1
  52. package/resources/audio/audio.mjs +4 -0
  53. package/resources/audio/audio.mjs.map +1 -1
  54. package/resources/audio/index.d.mts +1 -0
  55. package/resources/audio/index.d.mts.map +1 -1
  56. package/resources/audio/index.d.ts +1 -0
  57. package/resources/audio/index.d.ts.map +1 -1
  58. package/resources/audio/index.js +3 -1
  59. package/resources/audio/index.js.map +1 -1
  60. package/resources/audio/index.mjs +1 -0
  61. package/resources/audio/index.mjs.map +1 -1
  62. package/resources/audio/speech.d.mts +2 -0
  63. package/resources/audio/speech.d.mts.map +1 -1
  64. package/resources/audio/speech.d.ts +2 -0
  65. package/resources/audio/speech.d.ts.map +1 -1
  66. package/resources/audio/voices.d.mts +119 -0
  67. package/resources/audio/voices.d.mts.map +1 -0
  68. package/resources/audio/voices.d.ts +119 -0
  69. package/resources/audio/voices.d.ts.map +1 -0
  70. package/resources/audio/voices.js +41 -0
  71. package/resources/audio/voices.js.map +1 -0
  72. package/resources/audio/voices.mjs +37 -0
  73. package/resources/audio/voices.mjs.map +1 -0
  74. package/resources/beta/agents/agents.d.mts +2 -4
  75. package/resources/beta/agents/agents.d.mts.map +1 -1
  76. package/resources/beta/agents/agents.d.ts +2 -4
  77. package/resources/beta/agents/agents.d.ts.map +1 -1
  78. package/resources/beta/agents/agents.js.map +1 -1
  79. package/resources/beta/agents/agents.mjs.map +1 -1
  80. package/resources/beta/agents/environments/files.d.mts +12 -0
  81. package/resources/beta/agents/environments/files.d.mts.map +1 -1
  82. package/resources/beta/agents/environments/files.d.ts +12 -0
  83. package/resources/beta/agents/environments/files.d.ts.map +1 -1
  84. package/resources/beta/agents/environments/files.js +9 -0
  85. package/resources/beta/agents/environments/files.js.map +1 -1
  86. package/resources/beta/agents/environments/files.mjs +9 -0
  87. package/resources/beta/agents/environments/files.mjs.map +1 -1
  88. package/resources/beta/agents/sessions/artifacts.d.mts +4 -0
  89. package/resources/beta/agents/sessions/artifacts.d.mts.map +1 -1
  90. package/resources/beta/agents/sessions/artifacts.d.ts +4 -0
  91. package/resources/beta/agents/sessions/artifacts.d.ts.map +1 -1
  92. package/resources/beta/agents/sessions/artifacts.js +5 -0
  93. package/resources/beta/agents/sessions/artifacts.js.map +1 -1
  94. package/resources/beta/agents/sessions/artifacts.mjs +5 -0
  95. package/resources/beta/agents/sessions/artifacts.mjs.map +1 -1
  96. package/resources/beta/agents/sessions/sessions.d.mts +2 -4
  97. package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
  98. package/resources/beta/agents/sessions/sessions.d.ts +2 -4
  99. package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
  100. package/resources/beta/agents/sessions/sessions.js.map +1 -1
  101. package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
  102. package/resources/beta/responses/responses.d.mts +1 -3
  103. package/resources/beta/responses/responses.d.mts.map +1 -1
  104. package/resources/beta/responses/responses.d.ts +1 -3
  105. package/resources/beta/responses/responses.d.ts.map +1 -1
  106. package/resources/beta/responses/responses.js.map +1 -1
  107. package/resources/beta/responses/responses.mjs.map +1 -1
  108. package/resources/chat/completions/completions.d.mts +2 -1
  109. package/resources/chat/completions/completions.d.mts.map +1 -1
  110. package/resources/chat/completions/completions.d.ts +2 -1
  111. package/resources/chat/completions/completions.d.ts.map +1 -1
  112. package/resources/chat/completions/completions.js.map +1 -1
  113. package/resources/chat/completions/completions.mjs.map +1 -1
  114. package/resources/images.d.mts +57 -72
  115. package/resources/images.d.mts.map +1 -1
  116. package/resources/images.d.ts +57 -72
  117. package/resources/images.d.ts.map +1 -1
  118. package/resources/images.js +4 -7
  119. package/resources/images.js.map +1 -1
  120. package/resources/images.mjs +4 -7
  121. package/resources/images.mjs.map +1 -1
  122. package/resources/realtime/realtime.d.mts +6 -4
  123. package/resources/realtime/realtime.d.mts.map +1 -1
  124. package/resources/realtime/realtime.d.ts +6 -4
  125. package/resources/realtime/realtime.d.ts.map +1 -1
  126. package/resources/realtime/realtime.js.map +1 -1
  127. package/resources/realtime/realtime.mjs.map +1 -1
  128. package/resources/responses/responses.d.mts +1 -3
  129. package/resources/responses/responses.d.mts.map +1 -1
  130. package/resources/responses/responses.d.ts +1 -3
  131. package/resources/responses/responses.d.ts.map +1 -1
  132. package/resources/responses/responses.js.map +1 -1
  133. package/resources/responses/responses.mjs.map +1 -1
  134. package/resources/shared.d.mts +64 -0
  135. package/resources/shared.d.mts.map +1 -1
  136. package/resources/shared.d.ts +64 -0
  137. package/resources/shared.d.ts.map +1 -1
  138. package/resources/webhooks/webhooks.d.mts +211 -6
  139. package/resources/webhooks/webhooks.d.mts.map +1 -1
  140. package/resources/webhooks/webhooks.d.ts +211 -6
  141. package/resources/webhooks/webhooks.d.ts.map +1 -1
  142. package/resources/webhooks/webhooks.js.map +1 -1
  143. package/resources/webhooks/webhooks.mjs.map +1 -1
  144. package/src/helpers/beta/agents/filesystem.ts +187 -0
  145. package/src/internal/shim-types.ts +17 -0
  146. package/src/lib/beta/agents/files.ts +119 -0
  147. package/src/lib/beta/agents/pages.ts +32 -0
  148. package/src/lib/beta/agents/result-artifacts.ts +76 -0
  149. package/src/resources/admin/organization/usage.ts +88 -11
  150. package/src/resources/audio/audio.ts +6 -0
  151. package/src/resources/audio/index.ts +1 -0
  152. package/src/resources/audio/speech.ts +2 -0
  153. package/src/resources/audio/voices.ts +152 -0
  154. package/src/resources/beta/agents/agents.ts +2 -4
  155. package/src/resources/beta/agents/environments/files.ts +16 -0
  156. package/src/resources/beta/agents/sessions/artifacts.ts +7 -0
  157. package/src/resources/beta/agents/sessions/sessions.ts +2 -4
  158. package/src/resources/beta/responses/responses.ts +1 -3
  159. package/src/resources/chat/completions/completions.ts +2 -1
  160. package/src/resources/images.ts +58 -73
  161. package/src/resources/realtime/realtime.ts +6 -4
  162. package/src/resources/responses/responses.ts +1 -3
  163. package/src/resources/shared.ts +64 -0
  164. package/src/resources/webhooks/api.md +5 -0
  165. package/src/resources/webhooks/webhooks.ts +273 -1
  166. package/src/version.ts +1 -1
  167. package/version.d.mts +1 -1
  168. package/version.d.ts +1 -1
  169. package/version.js +1 -1
  170. package/version.mjs +1 -1
@@ -495,9 +495,8 @@ export namespace SessionCreateParams {
495
495
  * - `flex` - Uses the flex service tier.
496
496
  * - `priority` - Uses the priority service tier.
497
497
  * - `fast` - Uses the fast service tier.
498
- * - `ultrafast` - Uses the ultrafast service tier.
499
498
  */
500
- service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | 'ultrafast' | null;
499
+ service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | null;
501
500
 
502
501
  /**
503
502
  * Configuration for text generated by the agent.
@@ -565,9 +564,8 @@ export namespace SessionUpdateParams {
565
564
  * - `flex` - Uses the flex service tier.
566
565
  * - `priority` - Uses the priority service tier.
567
566
  * - `fast` - Uses the fast service tier.
568
- * - `ultrafast` - Uses the ultrafast service tier.
569
567
  */
570
- service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | 'ultrafast' | null;
568
+ service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | null;
571
569
  }
572
570
 
573
571
  export namespace Agent {
@@ -13842,9 +13842,7 @@ export namespace BetaTool {
13842
13842
  * the maximum supported resolution is `3840x2160`. The requested size must also
13843
13843
  * satisfy the model's current pixel and edge limits. The standard sizes
13844
13844
  * `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
13845
- * `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
13846
- * one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
13847
- * `1024x1024`, `1792x1024`, or `1024x1792`.
13845
+ * `auto` is supported for models that allow automatic sizing.
13848
13846
  */
13849
13847
  size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
13850
13848
  }
@@ -991,7 +991,8 @@ export interface ChatCompletionAudioParam {
991
991
  * The voice the model uses to respond. Supported built-in voices are `alloy`,
992
992
  * `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, `shimmer`,
993
993
  * `marin`, and `cedar`. You may also provide a custom voice object with an `id`,
994
- * for example `{ "id": "voice_1234" }`.
994
+ * for example `{ "id": "voice_1234" }`. Custom voices must be created from audio
995
+ * samples. Voices created from text prompts are supported only in Live.
995
996
  */
996
997
  voice:
997
998
  | string
@@ -20,14 +20,11 @@ function resolveResourceRequestOptions(
20
20
  */
21
21
  export class Images extends APIResource {
22
22
  /**
23
- * Creates a variation of a given image. This endpoint only supports `dall-e-2`.
23
+ * This endpoint is retired and no longer available. Use the image edits endpoint
24
+ * with a GPT Image model and a prompt to create a variation of an image. The
25
+ * request and response schemas below describe the legacy contract.
24
26
  *
25
- * @example
26
- * ```ts
27
- * const imagesResponse = await client.images.createVariation({
28
- * image: fs.createReadStream('otter.png'),
29
- * });
30
- * ```
27
+ * @deprecated
31
28
  */
32
29
  createVariation(body: ImageCreateVariationParams, options?: RequestOptions): APIPromise<ImagesResponse> {
33
30
  return this._client.post(
@@ -40,7 +37,7 @@ export class Images extends APIResource {
40
37
 
41
38
  /**
42
39
  * Creates an edited or extended image given one or more source images and a
43
- * prompt. This endpoint supports GPT Image models and `dall-e-2`.
40
+ * prompt. This endpoint supports GPT Image models.
44
41
  *
45
42
  * @example
46
43
  * ```ts
@@ -78,7 +75,7 @@ export class Images extends APIResource {
78
75
  }
79
76
 
80
77
  /**
81
- * Creates an image given a prompt.
78
+ * Creates an image given a prompt using a GPT Image model.
82
79
  * [Learn more](https://developers.openai.com/api/docs/guides/images-vision).
83
80
  *
84
81
  * @example
@@ -118,21 +115,21 @@ export class Images extends APIResource {
118
115
  */
119
116
  export interface Image {
120
117
  /**
121
- * The base64-encoded JSON of the generated image. Returned by default for the GPT
122
- * image models, and only present if `response_format` is set to `b64_json` for
123
- * `dall-e-2` and `dall-e-3`.
118
+ * The base64-encoded JSON of the generated image. Returned by default for GPT
119
+ * image models, or when `response_format` is set to `b64_json` for models that
120
+ * support that parameter.
124
121
  */
125
122
  b64_json?: string;
126
123
 
127
124
  /**
128
- * For `dall-e-3` only, the revised prompt that was used to generate the image.
125
+ * The revised prompt used to generate the image, for models that support prompt
126
+ * revision. Not returned by GPT image models.
129
127
  */
130
128
  revised_prompt?: string;
131
129
 
132
130
  /**
133
- * When using `dall-e-2` or `dall-e-3`, the URL of the generated image if
134
- * `response_format` is set to `url` (default value). Unsupported for the GPT image
135
- * models.
131
+ * The URL of the generated image when `response_format` is set to `url` for models
132
+ * that support that parameter. Unsupported for GPT image models.
136
133
  */
137
134
  url?: string;
138
135
  }
@@ -419,16 +416,22 @@ export interface ImageGenPartialImageEvent {
419
416
  */
420
417
  export type ImageGenStreamEvent = ImageGenPartialImageEvent | ImageGenCompletedEvent;
421
418
 
419
+ /**
420
+ * Deprecated values:
421
+ *
422
+ * - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT
423
+ * image model instead.
424
+ */
422
425
  export type ImageModel =
423
- | 'gpt-image-1'
424
- | 'gpt-image-1-mini'
426
+ | 'gpt-image-1.5'
425
427
  | 'gpt-image-2'
426
428
  | 'gpt-image-2-2026-04-21'
427
429
  | 'gpt-image-2.5-sunburst'
428
430
  | 'gpt-image-2.5-sunburst-2026-09-08'
429
431
  | 'gpt-image-2.5-flare'
430
432
  | 'gpt-image-2.5-flare-2026-09-08'
431
- | 'gpt-image-1.5'
433
+ | 'gpt-image-1'
434
+ | 'gpt-image-1-mini'
432
435
  | 'chatgpt-image-latest'
433
436
  | 'dall-e-2'
434
437
  | 'dall-e-3';
@@ -547,8 +550,8 @@ export interface ImageCreateVariationParams {
547
550
  image: Uploadable;
548
551
 
549
552
  /**
550
- * The model to use for image generation. Only `dall-e-2` is supported at this
551
- * time.
553
+ * The legacy model used by the retired image variations endpoint. This endpoint no
554
+ * longer accepts requests.
552
555
  */
553
556
  model?: (string & {}) | ImageModel | null;
554
557
 
@@ -590,15 +593,12 @@ export interface ImageEditParamsBase {
590
593
  * `gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`), each image should
591
594
  * be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to 16
592
595
  * images.
593
- *
594
- * For `dall-e-2`, you can only provide one image, and it should be a square `png`
595
- * file less than 4MB.
596
596
  */
597
597
  image: Uploadable | Array<Uploadable>;
598
598
 
599
599
  /**
600
- * A text description of the desired image(s). The maximum length is 1000
601
- * characters for `dall-e-2`, and 32000 characters for the GPT image models.
600
+ * A text description of the desired image(s). The maximum length is 32000
601
+ * characters for the GPT image models.
602
602
  */
603
603
  prompt: string;
604
604
 
@@ -631,12 +631,11 @@ export interface ImageEditParamsBase {
631
631
  mask?: Uploadable;
632
632
 
633
633
  /**
634
- * The model to use for image generation. One of `dall-e-2` or a GPT image model
635
- * (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
636
- * `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
637
- * `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
638
- * `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`). Defaults to
639
- * `gpt-image-1.5`.
634
+ * The GPT image model to use for image editing (`gpt-image-1`, `gpt-image-1-mini`,
635
+ * `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`,
636
+ * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
637
+ * `gpt-image-2.5-flare`, `gpt-image-2.5-flare-2026-09-08`, or
638
+ * `chatgpt-image-latest`).
640
639
  */
641
640
  model?: (string & {}) | ImageModel | null;
642
641
 
@@ -675,31 +674,28 @@ export interface ImageEditParamsBase {
675
674
  * `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support
676
675
  * `xhigh` and `max`. Defaults to `auto`.
677
676
  */
678
- quality?: 'standard' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
677
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | 'standard' | null;
679
678
 
680
679
  /**
681
- * The format in which the generated images are returned. Must be one of `url` or
682
- * `b64_json`. URLs are only valid for 60 minutes after the image has been
683
- * generated. This parameter is only supported for `dall-e-2` (default is `url` for
684
- * `dall-e-2`), as GPT image models always return base64-encoded images.
680
+ * @deprecated Legacy response format parameter for retired image models.
681
+ * Unsupported for GPT image models, which always return base64-encoded images.
685
682
  */
686
683
  response_format?: 'url' | 'b64_json' | null;
687
684
 
688
685
  /**
689
- * The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
690
- * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
691
- * `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
692
- * resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
693
- * Width and height must both be divisible by 16 and the requested aspect ratio
694
- * must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
695
- * the maximum supported resolution is `3840x2160`. The requested size must also
696
- * satisfy the model's current pixel and edge limits. The standard sizes
697
- * `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
698
- * `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
699
- * one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
700
- * `1024x1024`, `1792x1024`, or `1024x1792`.
686
+ * The size of the generated images. Defaults to `auto`. For `gpt-image-2`,
687
+ * `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
688
+ * `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and
689
+ * `gpt-image-2.5-flare-2026-09-08`, arbitrary resolutions are supported as
690
+ * `WIDTHxHEIGHT` strings, for example `1536x864`. Width and height must both be
691
+ * divisible by 16 and the requested aspect ratio must be between 1:3 and 3:1.
692
+ * Resolutions above `2560x1440` are experimental, and the maximum supported
693
+ * resolution is `3840x2160`. The requested size must also satisfy the model's
694
+ * current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and
695
+ * `1024x1536` are supported by the GPT image models; `auto` is supported for
696
+ * models that allow automatic sizing.
701
697
  */
702
- size?: (string & {}) | '256x256' | '512x512' | '1024x1024' | '1536x1024' | '1024x1536' | 'auto' | null;
698
+ size?: (string & {}) | '1024x1024' | '1536x1024' | '1024x1536' | 'auto' | '256x256' | '512x512' | null;
703
699
 
704
700
  /**
705
701
  * Edit the image in streaming mode. Defaults to `false`. See the
@@ -744,8 +740,7 @@ export type ImageGenerateParams = ImageGenerateParamsNonStreaming | ImageGenerat
744
740
  export interface ImageGenerateParamsBase {
745
741
  /**
746
742
  * A text description of the desired image(s). The maximum length is 32000
747
- * characters for the GPT image models, 1000 characters for `dall-e-2` and 4000
748
- * characters for `dall-e-3`.
743
+ * characters.
749
744
  */
750
745
  prompt: string;
751
746
 
@@ -763,12 +758,11 @@ export interface ImageGenerateParamsBase {
763
758
  background?: 'transparent' | 'opaque' | 'auto' | null;
764
759
 
765
760
  /**
766
- * The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or a GPT
767
- * image model (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
768
- * `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
761
+ * The GPT image model to use for image generation. Specify a model explicitly.
762
+ * Supported models include `gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
763
+ * `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
769
764
  * `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
770
- * `gpt-image-2.5-flare-2026-09-08`). Defaults to `dall-e-2` unless a parameter
771
- * specific to the GPT image models is used.
765
+ * `gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`.
772
766
  */
773
767
  model?: (string & {}) | ImageModel | null;
774
768
 
@@ -780,8 +774,7 @@ export interface ImageGenerateParamsBase {
780
774
  moderation?: 'low' | 'auto' | null;
781
775
 
782
776
  /**
783
- * The number of images to generate. Must be between 1 and 10. For `dall-e-3`, only
784
- * `n=1` is supported.
777
+ * The number of images to generate. Must be between 1 and 10.
785
778
  */
786
779
  n?: number | null;
787
780
 
@@ -816,16 +809,12 @@ export interface ImageGenerateParamsBase {
816
809
  * - `high`, `medium` and `low` are supported for the GPT image models.
817
810
  * - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their
818
811
  * `2026-09-08` snapshots, also support `xhigh` and `max`.
819
- * - `hd` and `standard` are supported for `dall-e-3`.
820
- * - `standard` is the only option for `dall-e-2`.
821
812
  */
822
- quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
813
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | 'standard' | 'hd' | null;
823
814
 
824
815
  /**
825
- * The format in which generated images with `dall-e-2` and `dall-e-3` are
826
- * returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes
827
- * after the image has been generated. This parameter isn't supported for the GPT
828
- * image models, which always return base64-encoded images.
816
+ * @deprecated Legacy response format parameter for retired image models.
817
+ * Unsupported for GPT image models, which always return base64-encoded images.
829
818
  */
830
819
  response_format?: 'url' | 'b64_json' | null;
831
820
 
@@ -839,9 +828,7 @@ export interface ImageGenerateParamsBase {
839
828
  * the maximum supported resolution is `3840x2160`. The requested size must also
840
829
  * satisfy the model's current pixel and edge limits. The standard sizes
841
830
  * `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
842
- * `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
843
- * one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
844
- * `1024x1024`, `1792x1024`, or `1024x1792`.
831
+ * `auto` is supported for models that allow automatic sizing.
845
832
  */
846
833
  size?:
847
834
  | (string & {})
@@ -863,10 +850,8 @@ export interface ImageGenerateParamsBase {
863
850
  stream?: boolean | null;
864
851
 
865
852
  /**
866
- * The style of the generated images. This parameter is only supported for
867
- * `dall-e-3`. Must be one of `vivid` or `natural`. Vivid causes the model to lean
868
- * towards generating hyper-real and dramatic images. Natural causes the model to
869
- * produce more natural, less hyper-real looking images.
853
+ * @deprecated Legacy style parameter for retired image models. Unsupported for GPT
854
+ * image models; describe the desired style in the prompt instead.
870
855
  */
871
856
  style?: 'vivid' | 'natural' | null;
872
857
 
@@ -1302,8 +1302,9 @@ export interface RealtimeAudioConfigOutput {
1302
1302
  * `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
1303
1303
  * `cedar`. You may also provide a custom voice object with an `id`, for example
1304
1304
  * `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
1305
- * model has responded with audio at least once. We recommend `marin` and `cedar`
1306
- * for best quality.
1305
+ * model has responded with audio at least once. Custom voices must be created from
1306
+ * audio samples. Voices created from text prompts are supported only in Live. We
1307
+ * recommend `marin` and `cedar` for best quality.
1307
1308
  */
1308
1309
  voice?:
1309
1310
  | string
@@ -2202,8 +2203,9 @@ export namespace RealtimeResponseCreateAudioOutput {
2202
2203
  * `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
2203
2204
  * `cedar`. You may also provide a custom voice object with an `id`, for example
2204
2205
  * `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
2205
- * model has responded with audio at least once. We recommend `marin` and `cedar`
2206
- * for best quality.
2206
+ * model has responded with audio at least once. Custom voices must be created from
2207
+ * audio samples. Voices created from text prompts are supported only in Live. We
2208
+ * recommend `marin` and `cedar` for best quality.
2207
2209
  */
2208
2210
  voice?:
2209
2211
  | string
@@ -10683,9 +10683,7 @@ export namespace Tool {
10683
10683
  * the maximum supported resolution is `3840x2160`. The requested size must also
10684
10684
  * satisfy the model's current pixel and edge limits. The standard sizes
10685
10685
  * `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
10686
- * `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
10687
- * one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
10688
- * `1024x1024`, `1792x1024`, or `1024x1792`.
10686
+ * `auto` is supported for models that allow automatic sizing.
10689
10687
  */
10690
10688
  size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
10691
10689
  }
@@ -24,6 +24,70 @@ export type AllModels =
24
24
  | 'gpt-5.6-cyber'
25
25
  | 'gpt-rosalind-research';
26
26
 
27
+ /**
28
+ * Deprecated values:
29
+ *
30
+ * - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date:
31
+ * 2026-08-10. See https://developers.openai.com/api/docs/deprecations for
32
+ * details and recommended replacements.
33
+ * - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest",
34
+ * "gpt-4o-search-preview", "gpt-4o-mini-search-preview",
35
+ * "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11":
36
+ * Announced shutdown date: 2026-07-23. See
37
+ * https://developers.openai.com/api/docs/deprecations for details and
38
+ * recommended replacements.
39
+ * - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility.
40
+ * - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07",
41
+ * "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16":
42
+ * Announced shutdown date: 2026-12-11. See
43
+ * https://developers.openai.com/api/docs/deprecations for details and
44
+ * recommended replacements.
45
+ * - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16",
46
+ * "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13",
47
+ * "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4",
48
+ * "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date:
49
+ * 2026-10-23. See https://developers.openai.com/api/docs/deprecations for
50
+ * details and recommended replacements.
51
+ * - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28.
52
+ * See https://developers.openai.com/api/docs/deprecations for details and
53
+ * recommended replacements.
54
+ * - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See
55
+ * https://developers.openai.com/api/docs/deprecations for details and
56
+ * recommended replacements.
57
+ * - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date:
58
+ * 2027-01-20. See https://developers.openai.com/api/docs/deprecations for
59
+ * details and recommended replacements.
60
+ * - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17",
61
+ * "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview",
62
+ * "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07.
63
+ * See https://developers.openai.com/api/docs/deprecations for details and
64
+ * recommended replacements.
65
+ * - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See
66
+ * https://developers.openai.com/api/docs/deprecations for details and
67
+ * recommended replacements.
68
+ * - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See
69
+ * https://developers.openai.com/api/docs/deprecations for details and
70
+ * recommended replacements.
71
+ * - "codex-mini-latest": Announced shutdown date: 2026-02-12. See
72
+ * https://developers.openai.com/api/docs/deprecations for details and
73
+ * recommended replacements.
74
+ * - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown
75
+ * date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for
76
+ * details and recommended replacements.
77
+ * - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See
78
+ * https://developers.openai.com/api/docs/deprecations for details and
79
+ * recommended replacements.
80
+ * - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date:
81
+ * 2025-06-06. See https://developers.openai.com/api/docs/deprecations for
82
+ * details and recommended replacements.
83
+ * - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613",
84
+ * "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See
85
+ * https://developers.openai.com/api/docs/deprecations for details and
86
+ * recommended replacements.
87
+ * - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See
88
+ * https://developers.openai.com/api/docs/deprecations for details and
89
+ * recommended replacements.
90
+ */
27
91
  export type ChatModel =
28
92
  | 'gpt-6-astra'
29
93
  | 'gpt-6.1-sol'
@@ -2,6 +2,11 @@
2
2
 
3
3
  Types:
4
4
 
5
+ - <code><a href="./src/resources/webhooks/webhooks.ts">AgentSessionActionRequiredWebhookEvent</a></code>
6
+ - <code><a href="./src/resources/webhooks/webhooks.ts">AgentSessionCreatedWebhookEvent</a></code>
7
+ - <code><a href="./src/resources/webhooks/webhooks.ts">AgentSessionFailedWebhookEvent</a></code>
8
+ - <code><a href="./src/resources/webhooks/webhooks.ts">AgentSessionIdleWebhookEvent</a></code>
9
+ - <code><a href="./src/resources/webhooks/webhooks.ts">AgentSessionInProgressWebhookEvent</a></code>
5
10
  - <code><a href="./src/resources/webhooks/webhooks.ts">BatchCancelledWebhookEvent</a></code>
6
11
  - <code><a href="./src/resources/webhooks/webhooks.ts">BatchCompletedWebhookEvent</a></code>
7
12
  - <code><a href="./src/resources/webhooks/webhooks.ts">BatchExpiredWebhookEvent</a></code>