@depup/openai 7.35.0-depup.0 → 7.36.0-depup.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 +7 -0
- package/README.md +1 -1
- package/changes.json +1 -1
- package/package.json +3 -3
- package/resources/images.d.mts +42 -4
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +42 -4
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js +8 -2
- package/resources/images.js.map +1 -1
- package/resources/images.mjs +8 -2
- package/resources/images.mjs.map +1 -1
- package/src/resources/images.ts +57 -6
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [7.36.0](https://github.com/openai/openai-node/compare/v7.35.0...v7.36.0) (2026-10-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** add safety identifiers to image requests and responses ([#2957](https://github.com/openai/openai-node/issues/2957)) ([c95ccaf](https://github.com/openai/openai-node/commit/c95ccafbd9eeb2de3159a813d40f175afa5c8748))
|
|
9
|
+
|
|
3
10
|
## [7.35.0](https://github.com/openai/openai-node/compare/v7.34.0...v7.35.0) (2026-10-16)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install @depup/openai
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [openai](https://www.npmjs.com/package/openai) @ 7.
|
|
16
|
+
| Original | [openai](https://www.npmjs.com/package/openai) @ 7.36.0 |
|
|
17
17
|
| Processed | 2026-10-17 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 0 |
|
package/changes.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/openai",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.36.0-depup.0",
|
|
4
4
|
"description": "The official TypeScript library for the OpenAI API (with updated dependencies)",
|
|
5
5
|
"author": "OpenAI <support@openai.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -321,8 +321,8 @@
|
|
|
321
321
|
"changes": {},
|
|
322
322
|
"depsUpdated": 0,
|
|
323
323
|
"originalPackage": "openai",
|
|
324
|
-
"originalVersion": "7.
|
|
325
|
-
"processedAt": "2026-10-
|
|
324
|
+
"originalVersion": "7.36.0",
|
|
325
|
+
"processedAt": "2026-10-17T08:10:51.026Z",
|
|
326
326
|
"smokeTest": "passed"
|
|
327
327
|
}
|
|
328
328
|
}
|
package/resources/images.d.mts
CHANGED
|
@@ -104,6 +104,12 @@ export interface ImageEditCompletedEvent {
|
|
|
104
104
|
* generation.
|
|
105
105
|
*/
|
|
106
106
|
usage: ImageEditCompletedEvent.Usage;
|
|
107
|
+
/**
|
|
108
|
+
* The effective safety identifier used for safety monitoring and abuse detection.
|
|
109
|
+
* This is the non-empty `safety_identifier` from the request, or the deprecated
|
|
110
|
+
* `user` value when `safety_identifier` is omitted, null, or empty.
|
|
111
|
+
*/
|
|
112
|
+
safety_identifier?: string | null;
|
|
107
113
|
}
|
|
108
114
|
export declare namespace ImageEditCompletedEvent {
|
|
109
115
|
/**
|
|
@@ -222,6 +228,12 @@ export interface ImageGenCompletedEvent {
|
|
|
222
228
|
* generation.
|
|
223
229
|
*/
|
|
224
230
|
usage: ImageGenCompletedEvent.Usage;
|
|
231
|
+
/**
|
|
232
|
+
* The effective safety identifier used for safety monitoring and abuse detection.
|
|
233
|
+
* This is the non-empty `safety_identifier` from the request, or the deprecated
|
|
234
|
+
* `user` value when `safety_identifier` is omitted, null, or empty.
|
|
235
|
+
*/
|
|
236
|
+
safety_identifier?: string | null;
|
|
225
237
|
}
|
|
226
238
|
export declare namespace ImageGenCompletedEvent {
|
|
227
239
|
/**
|
|
@@ -336,6 +348,12 @@ export interface ImagesResponse {
|
|
|
336
348
|
* `max`.
|
|
337
349
|
*/
|
|
338
350
|
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
351
|
+
/**
|
|
352
|
+
* The effective safety identifier used for safety monitoring and abuse detection.
|
|
353
|
+
* This is the non-empty `safety_identifier` from the request, or the deprecated
|
|
354
|
+
* `user` value when `safety_identifier` is omitted, null, or empty.
|
|
355
|
+
*/
|
|
356
|
+
safety_identifier?: string | null;
|
|
339
357
|
/**
|
|
340
358
|
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
341
359
|
*/
|
|
@@ -522,6 +540,15 @@ export interface ImageEditParamsBase {
|
|
|
522
540
|
* Unsupported for GPT image models, which always return base64-encoded images.
|
|
523
541
|
*/
|
|
524
542
|
response_format?: 'url' | 'b64_json' | null;
|
|
543
|
+
/**
|
|
544
|
+
* A stable identifier for an end user in your organization, used for safety
|
|
545
|
+
* monitoring and abuse detection. Hash a username or email address to avoid
|
|
546
|
+
* sending identifying information. A non-empty value takes precedence over the
|
|
547
|
+
* deprecated `user` parameter. If omitted, null, or empty, the API uses `user`
|
|
548
|
+
* when available.
|
|
549
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
550
|
+
*/
|
|
551
|
+
safety_identifier?: string | null;
|
|
525
552
|
/**
|
|
526
553
|
* The size of the generated images. Defaults to `auto`. For `gpt-image-2`,
|
|
527
554
|
* `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
@@ -543,8 +570,9 @@ export interface ImageEditParamsBase {
|
|
|
543
570
|
*/
|
|
544
571
|
stream?: boolean | null;
|
|
545
572
|
/**
|
|
546
|
-
*
|
|
547
|
-
* and
|
|
573
|
+
* @deprecated Deprecated: use `safety_identifier` instead. This parameter remains
|
|
574
|
+
* accepted for backward compatibility and is used when `safety_identifier` is
|
|
575
|
+
* omitted, null, or empty.
|
|
548
576
|
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
549
577
|
*/
|
|
550
578
|
user?: string;
|
|
@@ -641,6 +669,15 @@ export interface ImageGenerateParamsBase {
|
|
|
641
669
|
* Unsupported for GPT image models, which always return base64-encoded images.
|
|
642
670
|
*/
|
|
643
671
|
response_format?: 'url' | 'b64_json' | null;
|
|
672
|
+
/**
|
|
673
|
+
* A stable identifier for an end user in your organization, used for safety
|
|
674
|
+
* monitoring and abuse detection. Hash a username or email address to avoid
|
|
675
|
+
* sending identifying information. A non-empty value takes precedence over the
|
|
676
|
+
* deprecated `user` parameter. If omitted, null, or empty, the API uses `user`
|
|
677
|
+
* when available.
|
|
678
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
679
|
+
*/
|
|
680
|
+
safety_identifier?: string | null;
|
|
644
681
|
/**
|
|
645
682
|
* The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
646
683
|
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
@@ -666,8 +703,9 @@ export interface ImageGenerateParamsBase {
|
|
|
666
703
|
*/
|
|
667
704
|
style?: 'vivid' | 'natural' | null;
|
|
668
705
|
/**
|
|
669
|
-
*
|
|
670
|
-
* and
|
|
706
|
+
* @deprecated Deprecated: use `safety_identifier` instead. This parameter remains
|
|
707
|
+
* accepted for backward compatibility and is used when `safety_identifier` is
|
|
708
|
+
* omitted, null, or empty.
|
|
671
709
|
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
672
710
|
*/
|
|
673
711
|
user?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.d.mts","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAA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rD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
package/resources/images.d.ts
CHANGED
|
@@ -104,6 +104,12 @@ export interface ImageEditCompletedEvent {
|
|
|
104
104
|
* generation.
|
|
105
105
|
*/
|
|
106
106
|
usage: ImageEditCompletedEvent.Usage;
|
|
107
|
+
/**
|
|
108
|
+
* The effective safety identifier used for safety monitoring and abuse detection.
|
|
109
|
+
* This is the non-empty `safety_identifier` from the request, or the deprecated
|
|
110
|
+
* `user` value when `safety_identifier` is omitted, null, or empty.
|
|
111
|
+
*/
|
|
112
|
+
safety_identifier?: string | null;
|
|
107
113
|
}
|
|
108
114
|
export declare namespace ImageEditCompletedEvent {
|
|
109
115
|
/**
|
|
@@ -222,6 +228,12 @@ export interface ImageGenCompletedEvent {
|
|
|
222
228
|
* generation.
|
|
223
229
|
*/
|
|
224
230
|
usage: ImageGenCompletedEvent.Usage;
|
|
231
|
+
/**
|
|
232
|
+
* The effective safety identifier used for safety monitoring and abuse detection.
|
|
233
|
+
* This is the non-empty `safety_identifier` from the request, or the deprecated
|
|
234
|
+
* `user` value when `safety_identifier` is omitted, null, or empty.
|
|
235
|
+
*/
|
|
236
|
+
safety_identifier?: string | null;
|
|
225
237
|
}
|
|
226
238
|
export declare namespace ImageGenCompletedEvent {
|
|
227
239
|
/**
|
|
@@ -336,6 +348,12 @@ export interface ImagesResponse {
|
|
|
336
348
|
* `max`.
|
|
337
349
|
*/
|
|
338
350
|
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
351
|
+
/**
|
|
352
|
+
* The effective safety identifier used for safety monitoring and abuse detection.
|
|
353
|
+
* This is the non-empty `safety_identifier` from the request, or the deprecated
|
|
354
|
+
* `user` value when `safety_identifier` is omitted, null, or empty.
|
|
355
|
+
*/
|
|
356
|
+
safety_identifier?: string | null;
|
|
339
357
|
/**
|
|
340
358
|
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
341
359
|
*/
|
|
@@ -522,6 +540,15 @@ export interface ImageEditParamsBase {
|
|
|
522
540
|
* Unsupported for GPT image models, which always return base64-encoded images.
|
|
523
541
|
*/
|
|
524
542
|
response_format?: 'url' | 'b64_json' | null;
|
|
543
|
+
/**
|
|
544
|
+
* A stable identifier for an end user in your organization, used for safety
|
|
545
|
+
* monitoring and abuse detection. Hash a username or email address to avoid
|
|
546
|
+
* sending identifying information. A non-empty value takes precedence over the
|
|
547
|
+
* deprecated `user` parameter. If omitted, null, or empty, the API uses `user`
|
|
548
|
+
* when available.
|
|
549
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
550
|
+
*/
|
|
551
|
+
safety_identifier?: string | null;
|
|
525
552
|
/**
|
|
526
553
|
* The size of the generated images. Defaults to `auto`. For `gpt-image-2`,
|
|
527
554
|
* `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
@@ -543,8 +570,9 @@ export interface ImageEditParamsBase {
|
|
|
543
570
|
*/
|
|
544
571
|
stream?: boolean | null;
|
|
545
572
|
/**
|
|
546
|
-
*
|
|
547
|
-
* and
|
|
573
|
+
* @deprecated Deprecated: use `safety_identifier` instead. This parameter remains
|
|
574
|
+
* accepted for backward compatibility and is used when `safety_identifier` is
|
|
575
|
+
* omitted, null, or empty.
|
|
548
576
|
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
549
577
|
*/
|
|
550
578
|
user?: string;
|
|
@@ -641,6 +669,15 @@ export interface ImageGenerateParamsBase {
|
|
|
641
669
|
* Unsupported for GPT image models, which always return base64-encoded images.
|
|
642
670
|
*/
|
|
643
671
|
response_format?: 'url' | 'b64_json' | null;
|
|
672
|
+
/**
|
|
673
|
+
* A stable identifier for an end user in your organization, used for safety
|
|
674
|
+
* monitoring and abuse detection. Hash a username or email address to avoid
|
|
675
|
+
* sending identifying information. A non-empty value takes precedence over the
|
|
676
|
+
* deprecated `user` parameter. If omitted, null, or empty, the API uses `user`
|
|
677
|
+
* when available.
|
|
678
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
679
|
+
*/
|
|
680
|
+
safety_identifier?: string | null;
|
|
644
681
|
/**
|
|
645
682
|
* The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
646
683
|
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
@@ -666,8 +703,9 @@ export interface ImageGenerateParamsBase {
|
|
|
666
703
|
*/
|
|
667
704
|
style?: 'vivid' | 'natural' | null;
|
|
668
705
|
/**
|
|
669
|
-
*
|
|
670
|
-
* and
|
|
706
|
+
* @deprecated Deprecated: use `safety_identifier` instead. This parameter remains
|
|
707
|
+
* accepted for backward compatibility and is used when `safety_identifier` is
|
|
708
|
+
* omitted, null, or empty.
|
|
671
709
|
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
672
710
|
*/
|
|
673
711
|
user?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,6BAA0B;AAC3C,OAAO,E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AAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
package/resources/images.js
CHANGED
|
@@ -22,13 +22,19 @@ class Images extends resource_1.APIResource {
|
|
|
22
22
|
return this._client.post('/images/variations', resolveResourceRequestOptions(options, (options) => (0, uploads_1.multipartFormRequestOptions)({ body, ...options, __security: { bearerAuth: true } }, this._client)));
|
|
23
23
|
}
|
|
24
24
|
edit(body, options) {
|
|
25
|
-
return this._client.post('/images/edits', resolveResourceRequestOptions(options, (options) => (0, uploads_1.multipartFormRequestOptions)({
|
|
25
|
+
return this._client.post('/images/edits', resolveResourceRequestOptions(options, (options) => (0, uploads_1.multipartFormRequestOptions)(((requestOptions) => ({
|
|
26
|
+
...requestOptions,
|
|
27
|
+
body: Object.fromEntries(Object.entries(requestOptions.body ?? {}).map(([key, value]) => [
|
|
28
|
+
key,
|
|
29
|
+
key === 'safety_identifier' && value === null ? undefined : value,
|
|
30
|
+
])),
|
|
31
|
+
}))({
|
|
26
32
|
body,
|
|
27
33
|
...options,
|
|
28
34
|
stream: body.stream ?? false,
|
|
29
35
|
__metadata: { ...options?.__metadata, ...(body.model == null ? {} : { model: body.model }) },
|
|
30
36
|
__security: { bearerAuth: true },
|
|
31
|
-
}, this._client)));
|
|
37
|
+
}), this._client)));
|
|
32
38
|
}
|
|
33
39
|
generate(body, options) {
|
|
34
40
|
return this._client.post('/images/generations', resolveResourceRequestOptions(options, (options) => ({
|
package/resources/images.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.js","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":";AAA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AAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;YAC5B,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC,CACoE,CAAC;IAC5E,CAAC;CACF;AAlGD,wBAkGC"}
|
package/resources/images.mjs
CHANGED
|
@@ -19,13 +19,19 @@ export class Images extends APIResource {
|
|
|
19
19
|
return this._client.post('/images/variations', resolveResourceRequestOptions(options, (options) => multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client)));
|
|
20
20
|
}
|
|
21
21
|
edit(body, options) {
|
|
22
|
-
return this._client.post('/images/edits', resolveResourceRequestOptions(options, (options) => multipartFormRequestOptions({
|
|
22
|
+
return this._client.post('/images/edits', resolveResourceRequestOptions(options, (options) => multipartFormRequestOptions(((requestOptions) => ({
|
|
23
|
+
...requestOptions,
|
|
24
|
+
body: Object.fromEntries(Object.entries(requestOptions.body ?? {}).map(([key, value]) => [
|
|
25
|
+
key,
|
|
26
|
+
key === 'safety_identifier' && value === null ? undefined : value,
|
|
27
|
+
])),
|
|
28
|
+
}))({
|
|
23
29
|
body,
|
|
24
30
|
...options,
|
|
25
31
|
stream: body.stream ?? false,
|
|
26
32
|
__metadata: { ...options?.__metadata, ...(body.model == null ? {} : { model: body.model }) },
|
|
27
33
|
__security: { bearerAuth: true },
|
|
28
|
-
}, this._client)));
|
|
34
|
+
}), this._client)));
|
|
29
35
|
}
|
|
30
36
|
generate(body, options) {
|
|
31
37
|
return this._client.post('/images/generations', resolveResourceRequestOptions(options, (options) => ({
|
package/resources/images.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.mjs","sourceRoot":"","sources":["../src/resources/images.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAM/C,OAAO,EAAE,2BAA2B,EA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AO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;YAC5B,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC,CACoE,CAAC;IAC5E,CAAC;CACF"}
|
package/src/resources/images.ts
CHANGED
|
@@ -61,13 +61,21 @@ export class Images extends APIResource {
|
|
|
61
61
|
'/images/edits',
|
|
62
62
|
resolveResourceRequestOptions(options, (options) =>
|
|
63
63
|
multipartFormRequestOptions(
|
|
64
|
-
{
|
|
64
|
+
((requestOptions) => ({
|
|
65
|
+
...requestOptions,
|
|
66
|
+
body: Object.fromEntries(
|
|
67
|
+
Object.entries(requestOptions.body ?? {}).map(([key, value]) => [
|
|
68
|
+
key,
|
|
69
|
+
key === 'safety_identifier' && value === null ? undefined : value,
|
|
70
|
+
]),
|
|
71
|
+
),
|
|
72
|
+
}))({
|
|
65
73
|
body,
|
|
66
74
|
...options,
|
|
67
75
|
stream: body.stream ?? false,
|
|
68
76
|
__metadata: { ...options?.__metadata, ...(body.model == null ? {} : { model: body.model }) },
|
|
69
77
|
__security: { bearerAuth: true },
|
|
70
|
-
},
|
|
78
|
+
}),
|
|
71
79
|
this._client,
|
|
72
80
|
),
|
|
73
81
|
),
|
|
@@ -178,6 +186,13 @@ export interface ImageEditCompletedEvent {
|
|
|
178
186
|
* generation.
|
|
179
187
|
*/
|
|
180
188
|
usage: ImageEditCompletedEvent.Usage;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The effective safety identifier used for safety monitoring and abuse detection.
|
|
192
|
+
* This is the non-empty `safety_identifier` from the request, or the deprecated
|
|
193
|
+
* `user` value when `safety_identifier` is omitted, null, or empty.
|
|
194
|
+
*/
|
|
195
|
+
safety_identifier?: string | null;
|
|
181
196
|
}
|
|
182
197
|
|
|
183
198
|
export namespace ImageEditCompletedEvent {
|
|
@@ -319,6 +334,13 @@ export interface ImageGenCompletedEvent {
|
|
|
319
334
|
* generation.
|
|
320
335
|
*/
|
|
321
336
|
usage: ImageGenCompletedEvent.Usage;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* The effective safety identifier used for safety monitoring and abuse detection.
|
|
340
|
+
* This is the non-empty `safety_identifier` from the request, or the deprecated
|
|
341
|
+
* `user` value when `safety_identifier` is omitted, null, or empty.
|
|
342
|
+
*/
|
|
343
|
+
safety_identifier?: string | null;
|
|
322
344
|
}
|
|
323
345
|
|
|
324
346
|
export namespace ImageGenCompletedEvent {
|
|
@@ -467,6 +489,13 @@ export interface ImagesResponse {
|
|
|
467
489
|
*/
|
|
468
490
|
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
469
491
|
|
|
492
|
+
/**
|
|
493
|
+
* The effective safety identifier used for safety monitoring and abuse detection.
|
|
494
|
+
* This is the non-empty `safety_identifier` from the request, or the deprecated
|
|
495
|
+
* `user` value when `safety_identifier` is omitted, null, or empty.
|
|
496
|
+
*/
|
|
497
|
+
safety_identifier?: string | null;
|
|
498
|
+
|
|
470
499
|
/**
|
|
471
500
|
* The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
472
501
|
*/
|
|
@@ -683,6 +712,16 @@ export interface ImageEditParamsBase {
|
|
|
683
712
|
*/
|
|
684
713
|
response_format?: 'url' | 'b64_json' | null;
|
|
685
714
|
|
|
715
|
+
/**
|
|
716
|
+
* A stable identifier for an end user in your organization, used for safety
|
|
717
|
+
* monitoring and abuse detection. Hash a username or email address to avoid
|
|
718
|
+
* sending identifying information. A non-empty value takes precedence over the
|
|
719
|
+
* deprecated `user` parameter. If omitted, null, or empty, the API uses `user`
|
|
720
|
+
* when available.
|
|
721
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
722
|
+
*/
|
|
723
|
+
safety_identifier?: string | null;
|
|
724
|
+
|
|
686
725
|
/**
|
|
687
726
|
* The size of the generated images. Defaults to `auto`. For `gpt-image-2`,
|
|
688
727
|
* `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
|
|
@@ -706,8 +745,9 @@ export interface ImageEditParamsBase {
|
|
|
706
745
|
stream?: boolean | null;
|
|
707
746
|
|
|
708
747
|
/**
|
|
709
|
-
*
|
|
710
|
-
* and
|
|
748
|
+
* @deprecated Deprecated: use `safety_identifier` instead. This parameter remains
|
|
749
|
+
* accepted for backward compatibility and is used when `safety_identifier` is
|
|
750
|
+
* omitted, null, or empty.
|
|
711
751
|
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
712
752
|
*/
|
|
713
753
|
user?: string;
|
|
@@ -819,6 +859,16 @@ export interface ImageGenerateParamsBase {
|
|
|
819
859
|
*/
|
|
820
860
|
response_format?: 'url' | 'b64_json' | null;
|
|
821
861
|
|
|
862
|
+
/**
|
|
863
|
+
* A stable identifier for an end user in your organization, used for safety
|
|
864
|
+
* monitoring and abuse detection. Hash a username or email address to avoid
|
|
865
|
+
* sending identifying information. A non-empty value takes precedence over the
|
|
866
|
+
* deprecated `user` parameter. If omitted, null, or empty, the API uses `user`
|
|
867
|
+
* when available.
|
|
868
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
869
|
+
*/
|
|
870
|
+
safety_identifier?: string | null;
|
|
871
|
+
|
|
822
872
|
/**
|
|
823
873
|
* The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
|
|
824
874
|
* `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
|
|
@@ -857,8 +907,9 @@ export interface ImageGenerateParamsBase {
|
|
|
857
907
|
style?: 'vivid' | 'natural' | null;
|
|
858
908
|
|
|
859
909
|
/**
|
|
860
|
-
*
|
|
861
|
-
* and
|
|
910
|
+
* @deprecated Deprecated: use `safety_identifier` instead. This parameter remains
|
|
911
|
+
* accepted for backward compatibility and is used when `safety_identifier` is
|
|
912
|
+
* omitted, null, or empty.
|
|
862
913
|
* [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
863
914
|
*/
|
|
864
915
|
user?: string;
|
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.36.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.36.0'; // x-release-please-version
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED