openai 7.2.0 → 7.4.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 +48 -1
- package/README.md +37 -10
- 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/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +9 -3
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +9 -3
- package/internal/uploads.mjs.map +1 -1
- package/package.json +3 -1
- package/resources/beta/responses/responses.d.mts +37 -7
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +37 -7
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/content-provenance-checks.d.mts +103 -0
- package/resources/content-provenance-checks.d.mts.map +1 -0
- package/resources/content-provenance-checks.d.ts +103 -0
- package/resources/content-provenance-checks.d.ts.map +1 -0
- package/resources/content-provenance-checks.js +24 -0
- package/resources/content-provenance-checks.js.map +1 -0
- package/resources/content-provenance-checks.mjs +20 -0
- package/resources/content-provenance-checks.mjs.map +1 -0
- 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/responses/responses.d.mts +34 -4
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +34 -4
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +13 -0
- package/src/internal/uploads.ts +8 -4
- package/src/resources/beta/responses/responses.ts +41 -3
- package/src/resources/content-provenance-checks.ts +132 -0
- package/src/resources/index.ts +5 -0
- package/src/resources/responses/responses.ts +38 -3
- package/src/resources/shared.ts +1 -0
- 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
|
@@ -1101,6 +1101,7 @@ export interface BetaResponse {
|
|
|
1101
1101
|
| 'gpt-5.6-sol'
|
|
1102
1102
|
| 'gpt-5.6-terra'
|
|
1103
1103
|
| 'gpt-5.6-luna'
|
|
1104
|
+
| 'gpt-5.5'
|
|
1104
1105
|
| 'gpt-5.4'
|
|
1105
1106
|
| 'gpt-5.4-mini'
|
|
1106
1107
|
| 'gpt-5.4-nano'
|
|
@@ -4061,6 +4062,16 @@ export interface BetaResponseFunctionToolCallOutputItem {
|
|
|
4061
4062
|
* The identifier of the actor that created the item.
|
|
4062
4063
|
*/
|
|
4063
4064
|
created_by?: string;
|
|
4065
|
+
|
|
4066
|
+
/**
|
|
4067
|
+
* The name of the tool that produced the output.
|
|
4068
|
+
*/
|
|
4069
|
+
name?: string;
|
|
4070
|
+
|
|
4071
|
+
/**
|
|
4072
|
+
* The namespace of the tool that produced the output.
|
|
4073
|
+
*/
|
|
4074
|
+
namespace?: string;
|
|
4064
4075
|
}
|
|
4065
4076
|
|
|
4066
4077
|
export namespace BetaResponseFunctionToolCallOutputItem {
|
|
@@ -5065,6 +5076,16 @@ export namespace BetaResponseInputItem {
|
|
|
5065
5076
|
*/
|
|
5066
5077
|
caller?: FunctionCallOutput.Direct | FunctionCallOutput.Program | null;
|
|
5067
5078
|
|
|
5079
|
+
/**
|
|
5080
|
+
* The name of the tool that produced the output.
|
|
5081
|
+
*/
|
|
5082
|
+
name?: string | null;
|
|
5083
|
+
|
|
5084
|
+
/**
|
|
5085
|
+
* The namespace of the tool that produced the output.
|
|
5086
|
+
*/
|
|
5087
|
+
namespace?: string | null;
|
|
5088
|
+
|
|
5068
5089
|
/**
|
|
5069
5090
|
* The status of the item. One of `in_progress`, `completed`, or `incomplete`.
|
|
5070
5091
|
* Populated when items are returned via API.
|
|
@@ -10273,6 +10294,7 @@ export namespace BetaResponsesClientEvent {
|
|
|
10273
10294
|
| 'gpt-5.6-sol'
|
|
10274
10295
|
| 'gpt-5.6-terra'
|
|
10275
10296
|
| 'gpt-5.6-luna'
|
|
10297
|
+
| 'gpt-5.5'
|
|
10276
10298
|
| 'gpt-5.4'
|
|
10277
10299
|
| 'gpt-5.4-mini'
|
|
10278
10300
|
| 'gpt-5.4-nano'
|
|
@@ -11648,6 +11670,7 @@ export interface ResponseCreateParamsBase {
|
|
|
11648
11670
|
| 'gpt-5.6-sol'
|
|
11649
11671
|
| 'gpt-5.6-terra'
|
|
11650
11672
|
| 'gpt-5.6-luna'
|
|
11673
|
+
| 'gpt-5.5'
|
|
11651
11674
|
| 'gpt-5.4'
|
|
11652
11675
|
| 'gpt-5.4-mini'
|
|
11653
11676
|
| 'gpt-5.4-nano'
|
|
@@ -12291,6 +12314,7 @@ export interface ResponseCompactParams {
|
|
|
12291
12314
|
| 'gpt-5.6-sol'
|
|
12292
12315
|
| 'gpt-5.6-terra'
|
|
12293
12316
|
| 'gpt-5.6-luna'
|
|
12317
|
+
| 'gpt-5.5'
|
|
12294
12318
|
| 'gpt-5.4'
|
|
12295
12319
|
| 'gpt-5.4-mini'
|
|
12296
12320
|
| 'gpt-5.4-nano'
|
|
@@ -12434,9 +12458,23 @@ export interface ResponseCompactParams {
|
|
|
12434
12458
|
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
12435
12459
|
|
|
12436
12460
|
/**
|
|
12437
|
-
* Body param:
|
|
12438
|
-
|
|
12439
|
-
|
|
12461
|
+
* Body param: Specifies the processing type used for serving the request. - If set
|
|
12462
|
+
* to 'auto', then the request will be processed with the service tier configured
|
|
12463
|
+
* in the Project settings. Unless otherwise configured, the Project will use
|
|
12464
|
+
* 'default'. - If set to 'default', then the request will be processed with the
|
|
12465
|
+
* standard pricing and performance for the selected model. - If set to
|
|
12466
|
+
* '[flex](https://platform.openai.com/docs/guides/flex-processing)', then the
|
|
12467
|
+
* request will be processed with the Flex Processing service tier. - To opt-in to
|
|
12468
|
+
* [Fast mode](/api/docs/guides/fast-mode) at the request level, include the
|
|
12469
|
+
* `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat
|
|
12470
|
+
* Completions. The response will show `service_tier=priority` regardless of if you
|
|
12471
|
+
* specify `service_tier=fast` or `priority` in your request. - When not set, the
|
|
12472
|
+
* default behavior is 'auto'. When the `service_tier` parameter is set, the
|
|
12473
|
+
* response body will include the `service_tier` value based on the processing mode
|
|
12474
|
+
* actually used to serve the request. This response value may be different from
|
|
12475
|
+
* the value set in the parameter.
|
|
12476
|
+
*/
|
|
12477
|
+
service_tier?: 'auto' | 'default' | 'fast' | 'flex' | 'priority' | null;
|
|
12440
12478
|
|
|
12441
12479
|
/**
|
|
12442
12480
|
* Header param: Optional beta features to enable for this request.
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { type Uploadable } from '../core/uploads';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { multipartFormRequestOptions } from '../internal/uploads';
|
|
8
|
+
|
|
9
|
+
export class ContentProvenanceChecks extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Check whether an image or audio file contains known OpenAI provenance signals.
|
|
12
|
+
* [Learn more about content provenance](/api/docs/guides/content-provenance).
|
|
13
|
+
*
|
|
14
|
+
* If `not_detected`, it means the tool did not find supported signals in the
|
|
15
|
+
* uploaded file. The content could still have been generated by OpenAI if the
|
|
16
|
+
* metadata was stripped or has evidence of tampering, the watermark was degraded,
|
|
17
|
+
* it comes from a legacy generation model, or it was created before provenance
|
|
18
|
+
* signals were available. Content could also still be AI-generated by another
|
|
19
|
+
* company's model, which the tool currently does not detect.
|
|
20
|
+
*/
|
|
21
|
+
create(
|
|
22
|
+
body: ContentProvenanceCheckCreateParams,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): APIPromise<ContentProvenanceCheck> {
|
|
25
|
+
return this._client.post(
|
|
26
|
+
'/content_provenance_checks',
|
|
27
|
+
multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client),
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface ContentProvenanceCheck {
|
|
33
|
+
/**
|
|
34
|
+
* The Unix timestamp, in seconds, when the provenance check was created.
|
|
35
|
+
*/
|
|
36
|
+
created_at: number;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The object type. Always `content_provenance_check` for this endpoint.
|
|
40
|
+
*/
|
|
41
|
+
object: 'content_provenance_check';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The provenance results that apply to the uploaded file. Image results include
|
|
45
|
+
* C2PA and SynthID; audio results include SynthID.
|
|
46
|
+
*/
|
|
47
|
+
results: Array<ContentProvenanceCheck.C2PA | ContentProvenanceCheck.SynthID>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export namespace ContentProvenanceCheck {
|
|
51
|
+
export interface C2PA {
|
|
52
|
+
/**
|
|
53
|
+
* The UTC RFC 3339 timestamp recorded by the provenance signal for when the asset
|
|
54
|
+
* was generated, when available.
|
|
55
|
+
*/
|
|
56
|
+
generated_at: string | null;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The C2PA manifest issuer, when available.
|
|
60
|
+
*/
|
|
61
|
+
issuer: string | null;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The OpenAI model recorded by the provenance signal, when available.
|
|
65
|
+
*/
|
|
66
|
+
model: string | null;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Whether a supported OpenAI C2PA provenance signal was detected. If
|
|
70
|
+
* `not_detected`, it means the tool did not find supported signals in the uploaded
|
|
71
|
+
* file. The content could still have been generated by OpenAI if the metadata was
|
|
72
|
+
* stripped or has evidence of tampering, the watermark was degraded, it comes from
|
|
73
|
+
* a legacy generation model, or it was created before provenance signals were
|
|
74
|
+
* available. Content could also still be AI-generated by another company's model,
|
|
75
|
+
* which the tool currently does not detect.
|
|
76
|
+
*/
|
|
77
|
+
outcome: 'detected' | 'not_detected';
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The provenance signal type. Always `c2pa`.
|
|
81
|
+
*/
|
|
82
|
+
type: 'c2pa';
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The validation status of the C2PA manifest in the uploaded image.
|
|
86
|
+
*/
|
|
87
|
+
validation_state: 'trusted' | 'valid' | 'invalid' | 'not_present';
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface SynthID {
|
|
91
|
+
/**
|
|
92
|
+
* The UTC RFC 3339 timestamp recorded by the provenance signal for when the asset
|
|
93
|
+
* was generated, when available.
|
|
94
|
+
*/
|
|
95
|
+
generated_at: string | null;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The OpenAI model recorded by the provenance signal, when available.
|
|
99
|
+
*/
|
|
100
|
+
model: string | null;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Whether a supported OpenAI SynthID watermark was detected. If `not_detected`, it
|
|
104
|
+
* means the tool did not find supported signals in the uploaded file. The content
|
|
105
|
+
* could still have been generated by OpenAI if the metadata was stripped or has
|
|
106
|
+
* evidence of tampering, the watermark was degraded, it comes from a legacy
|
|
107
|
+
* generation model, or it was created before provenance signals were available.
|
|
108
|
+
* Content could also still be AI-generated by another company's model, which the
|
|
109
|
+
* tool currently does not detect.
|
|
110
|
+
*/
|
|
111
|
+
outcome: 'detected' | 'not_detected';
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The provenance signal type. Always `synthid`.
|
|
115
|
+
*/
|
|
116
|
+
type: 'synthid';
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface ContentProvenanceCheckCreateParams {
|
|
121
|
+
/**
|
|
122
|
+
* The image or audio file to check for supported OpenAI provenance signals.
|
|
123
|
+
*/
|
|
124
|
+
file: Uploadable;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export declare namespace ContentProvenanceChecks {
|
|
128
|
+
export {
|
|
129
|
+
type ContentProvenanceCheck as ContentProvenanceCheck,
|
|
130
|
+
type ContentProvenanceCheckCreateParams as ContentProvenanceCheckCreateParams,
|
|
131
|
+
};
|
|
132
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -33,6 +33,11 @@ export {
|
|
|
33
33
|
type ContainerListParams,
|
|
34
34
|
type ContainerListResponsesPage,
|
|
35
35
|
} from './containers/containers';
|
|
36
|
+
export {
|
|
37
|
+
ContentProvenanceChecks,
|
|
38
|
+
type ContentProvenanceCheck,
|
|
39
|
+
type ContentProvenanceCheckCreateParams,
|
|
40
|
+
} from './content-provenance-checks';
|
|
36
41
|
export { Conversations } from './conversations/conversations';
|
|
37
42
|
export {
|
|
38
43
|
Embeddings,
|
|
@@ -3471,6 +3471,16 @@ export interface ResponseFunctionToolCallOutputItem {
|
|
|
3471
3471
|
* The identifier of the actor that created the item.
|
|
3472
3472
|
*/
|
|
3473
3473
|
created_by?: string;
|
|
3474
|
+
|
|
3475
|
+
/**
|
|
3476
|
+
* The name of the tool that produced the output.
|
|
3477
|
+
*/
|
|
3478
|
+
name?: string;
|
|
3479
|
+
|
|
3480
|
+
/**
|
|
3481
|
+
* The namespace of the tool that produced the output.
|
|
3482
|
+
*/
|
|
3483
|
+
namespace?: string;
|
|
3474
3484
|
}
|
|
3475
3485
|
|
|
3476
3486
|
export namespace ResponseFunctionToolCallOutputItem {
|
|
@@ -4207,6 +4217,16 @@ export namespace ResponseInputItem {
|
|
|
4207
4217
|
*/
|
|
4208
4218
|
caller?: FunctionCallOutput.Direct | FunctionCallOutput.Program | null;
|
|
4209
4219
|
|
|
4220
|
+
/**
|
|
4221
|
+
* The name of the tool that produced the output.
|
|
4222
|
+
*/
|
|
4223
|
+
name?: string | null;
|
|
4224
|
+
|
|
4225
|
+
/**
|
|
4226
|
+
* The namespace of the tool that produced the output.
|
|
4227
|
+
*/
|
|
4228
|
+
namespace?: string | null;
|
|
4229
|
+
|
|
4210
4230
|
/**
|
|
4211
4231
|
* The status of the item. One of `in_progress`, `completed`, or `incomplete`.
|
|
4212
4232
|
* Populated when items are returned via API.
|
|
@@ -9096,6 +9116,7 @@ export interface ResponseCompactParams {
|
|
|
9096
9116
|
| 'gpt-5.6-sol'
|
|
9097
9117
|
| 'gpt-5.6-terra'
|
|
9098
9118
|
| 'gpt-5.6-luna'
|
|
9119
|
+
| 'gpt-5.5'
|
|
9099
9120
|
| 'gpt-5.4'
|
|
9100
9121
|
| 'gpt-5.4-mini'
|
|
9101
9122
|
| 'gpt-5.4-nano'
|
|
@@ -9236,9 +9257,23 @@ export interface ResponseCompactParams {
|
|
|
9236
9257
|
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
9237
9258
|
|
|
9238
9259
|
/**
|
|
9239
|
-
*
|
|
9240
|
-
|
|
9241
|
-
|
|
9260
|
+
* Specifies the processing type used for serving the request. - If set to 'auto',
|
|
9261
|
+
* then the request will be processed with the service tier configured in the
|
|
9262
|
+
* Project settings. Unless otherwise configured, the Project will use 'default'. -
|
|
9263
|
+
* If set to 'default', then the request will be processed with the standard
|
|
9264
|
+
* pricing and performance for the selected model. - If set to
|
|
9265
|
+
* '[flex](https://platform.openai.com/docs/guides/flex-processing)', then the
|
|
9266
|
+
* request will be processed with the Flex Processing service tier. - To opt-in to
|
|
9267
|
+
* [Fast mode](/api/docs/guides/fast-mode) at the request level, include the
|
|
9268
|
+
* `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat
|
|
9269
|
+
* Completions. The response will show `service_tier=priority` regardless of if you
|
|
9270
|
+
* specify `service_tier=fast` or `priority` in your request. - When not set, the
|
|
9271
|
+
* default behavior is 'auto'. When the `service_tier` parameter is set, the
|
|
9272
|
+
* response body will include the `service_tier` value based on the processing mode
|
|
9273
|
+
* actually used to serve the request. This response value may be different from
|
|
9274
|
+
* the value set in the parameter.
|
|
9275
|
+
*/
|
|
9276
|
+
service_tier?: 'auto' | 'default' | 'fast' | 'flex' | 'priority' | null;
|
|
9242
9277
|
}
|
|
9243
9278
|
|
|
9244
9279
|
export namespace ResponseCompactParams {
|
package/src/resources/shared.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '7.
|
|
1
|
+
export const VERSION = '7.4.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "7.
|
|
1
|
+
export declare const VERSION = "7.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "7.
|
|
1
|
+
export declare const VERSION = "7.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '7.
|
|
1
|
+
export const VERSION = '7.4.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|