openai 7.23.0 → 7.25.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 +51 -0
- package/README.md +4 -1
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +43 -5
- package/client.js.map +1 -1
- package/client.mjs +43 -5
- package/client.mjs.map +1 -1
- package/internal/responses/canonical-output-text.d.mts +8 -4
- package/internal/responses/canonical-output-text.d.mts.map +1 -1
- package/internal/responses/canonical-output-text.d.ts +8 -4
- package/internal/responses/canonical-output-text.d.ts.map +1 -1
- package/internal/responses/canonical-output-text.js +11 -0
- package/internal/responses/canonical-output-text.js.map +1 -1
- package/internal/responses/canonical-output-text.mjs +11 -0
- package/internal/responses/canonical-output-text.mjs.map +1 -1
- package/internal/responses/response-accumulator.d.mts +12 -1
- package/internal/responses/response-accumulator.d.mts.map +1 -1
- package/internal/responses/response-accumulator.d.ts +12 -1
- package/internal/responses/response-accumulator.d.ts.map +1 -1
- package/internal/responses/response-accumulator.js +99 -25
- package/internal/responses/response-accumulator.js.map +1 -1
- package/internal/responses/response-accumulator.mjs +97 -26
- package/internal/responses/response-accumulator.mjs.map +1 -1
- package/internal/ws.d.mts +6 -2
- package/internal/ws.d.mts.map +1 -1
- package/internal/ws.d.ts +6 -2
- package/internal/ws.d.ts.map +1 -1
- package/internal/ws.js +5 -3
- package/internal/ws.js.map +1 -1
- package/internal/ws.mjs +5 -3
- package/internal/ws.mjs.map +1 -1
- package/lib/live/transcript-grouping.d.mts.map +1 -1
- package/lib/live/transcript-grouping.d.ts.map +1 -1
- package/lib/live/transcript-grouping.js +6 -5
- package/lib/live/transcript-grouping.js.map +1 -1
- package/lib/live/transcript-grouping.mjs +6 -5
- package/lib/live/transcript-grouping.mjs.map +1 -1
- package/lib/responses/responses-websocket-accumulator.d.mts +72 -0
- package/lib/responses/responses-websocket-accumulator.d.mts.map +1 -0
- package/lib/responses/responses-websocket-accumulator.d.ts +72 -0
- package/lib/responses/responses-websocket-accumulator.d.ts.map +1 -0
- package/lib/responses/responses-websocket-accumulator.js +291 -0
- package/lib/responses/responses-websocket-accumulator.js.map +1 -0
- package/lib/responses/responses-websocket-accumulator.mjs +287 -0
- package/lib/responses/responses-websocket-accumulator.mjs.map +1 -0
- package/package.json +1 -1
- package/realtime/translations/ws.d.mts +84 -0
- package/realtime/translations/ws.d.mts.map +1 -0
- package/realtime/translations/ws.d.ts +84 -0
- package/realtime/translations/ws.d.ts.map +1 -0
- package/realtime/translations/ws.js +444 -0
- package/realtime/translations/ws.js.map +1 -0
- package/realtime/translations/ws.mjs +439 -0
- package/realtime/translations/ws.mjs.map +1 -0
- package/resources/audio/speech.d.mts +2 -2
- package/resources/audio/speech.d.mts.map +1 -1
- package/resources/audio/speech.d.ts +2 -2
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/speech.js +1 -1
- package/resources/audio/speech.mjs +1 -1
- package/resources/audio/transcriptions.d.mts +2 -1
- package/resources/audio/transcriptions.d.mts.map +1 -1
- package/resources/audio/transcriptions.d.ts +2 -1
- package/resources/audio/transcriptions.d.ts.map +1 -1
- package/resources/audio/transcriptions.js.map +1 -1
- package/resources/audio/transcriptions.mjs.map +1 -1
- package/resources/beta/agents/agents.d.mts +577 -18
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +577 -18
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/environments/templates.d.mts +62 -9
- package/resources/beta/agents/environments/templates.d.mts.map +1 -1
- package/resources/beta/agents/environments/templates.d.ts +62 -9
- package/resources/beta/agents/environments/templates.d.ts.map +1 -1
- package/resources/beta/agents/index.d.mts +1 -1
- package/resources/beta/agents/index.d.mts.map +1 -1
- package/resources/beta/agents/index.d.ts +1 -1
- package/resources/beta/agents/index.d.ts.map +1 -1
- package/resources/beta/agents/index.js.map +1 -1
- package/resources/beta/agents/index.mjs.map +1 -1
- package/resources/beta/agents/sessions/events.d.mts +10 -7
- package/resources/beta/agents/sessions/events.d.mts.map +1 -1
- package/resources/beta/agents/sessions/events.d.ts +10 -7
- package/resources/beta/agents/sessions/events.d.ts.map +1 -1
- package/resources/beta/agents/sessions/events.js +10 -7
- package/resources/beta/agents/sessions/events.js.map +1 -1
- package/resources/beta/agents/sessions/events.mjs +10 -7
- package/resources/beta/agents/sessions/events.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts +4 -2
- package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.ts +4 -2
- package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.mts +24 -7
- package/resources/beta/agents/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/agents/vaults/credentials.d.ts +24 -7
- package/resources/beta/agents/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/agents/vaults/credentials.js +2 -6
- package/resources/beta/agents/vaults/credentials.js.map +1 -1
- package/resources/beta/agents/vaults/credentials.mjs +2 -6
- package/resources/beta/agents/vaults/credentials.mjs.map +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +69 -10
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +69 -10
- 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/files.d.mts +2 -2
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +2 -2
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/live/forks/ws-base.js +1 -1
- package/resources/live/forks/ws-base.js.map +1 -1
- package/resources/live/forks/ws-base.mjs +1 -1
- package/resources/live/forks/ws-base.mjs.map +1 -1
- package/resources/live/sideband/ws-base.js +1 -1
- package/resources/live/sideband/ws-base.js.map +1 -1
- package/resources/live/sideband/ws-base.mjs +1 -1
- package/resources/live/sideband/ws-base.mjs.map +1 -1
- package/resources/live/ws-base.js +1 -1
- package/resources/live/ws-base.js.map +1 -1
- package/resources/live/ws-base.mjs +1 -1
- package/resources/live/ws-base.mjs.map +1 -1
- package/resources/realtime/index.d.mts +1 -0
- package/resources/realtime/index.d.mts.map +1 -1
- package/resources/realtime/index.d.ts +1 -0
- package/resources/realtime/index.d.ts.map +1 -1
- package/resources/realtime/index.js +3 -1
- package/resources/realtime/index.js.map +1 -1
- package/resources/realtime/index.mjs +1 -0
- package/resources/realtime/index.mjs.map +1 -1
- package/resources/realtime/realtime.d.mts +4 -0
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +4 -0
- package/resources/realtime/realtime.d.ts.map +1 -1
- package/resources/realtime/realtime.js +4 -0
- package/resources/realtime/realtime.js.map +1 -1
- package/resources/realtime/realtime.mjs +4 -0
- package/resources/realtime/realtime.mjs.map +1 -1
- package/resources/realtime/translations/client-secrets.d.mts +67 -0
- package/resources/realtime/translations/client-secrets.d.mts.map +1 -0
- package/resources/realtime/translations/client-secrets.d.ts +67 -0
- package/resources/realtime/translations/client-secrets.d.ts.map +1 -0
- package/resources/realtime/translations/client-secrets.js +39 -0
- package/resources/realtime/translations/client-secrets.js.map +1 -0
- package/resources/realtime/translations/client-secrets.mjs +35 -0
- package/resources/realtime/translations/client-secrets.mjs.map +1 -0
- package/resources/realtime/translations/index.d.mts +3 -0
- package/resources/realtime/translations/index.d.mts.map +1 -0
- package/resources/realtime/translations/index.d.ts +3 -0
- package/resources/realtime/translations/index.d.ts.map +1 -0
- package/resources/realtime/translations/index.js +9 -0
- package/resources/realtime/translations/index.js.map +1 -0
- package/resources/realtime/translations/index.mjs +4 -0
- package/resources/realtime/translations/index.mjs.map +1 -0
- package/resources/realtime/translations/translations.d.mts +10 -0
- package/resources/realtime/translations/translations.d.mts.map +1 -0
- package/resources/realtime/translations/translations.d.ts +10 -0
- package/resources/realtime/translations/translations.d.ts.map +1 -0
- package/resources/realtime/translations/translations.js +17 -0
- package/resources/realtime/translations/translations.js.map +1 -0
- package/resources/realtime/translations/translations.mjs +12 -0
- package/resources/realtime/translations/translations.mjs.map +1 -0
- package/resources/realtime/translations.d.mts +2 -0
- package/resources/realtime/translations.d.mts.map +1 -0
- package/resources/realtime/translations.d.ts +2 -0
- package/resources/realtime/translations.d.ts.map +1 -0
- package/resources/realtime/translations.js +6 -0
- package/resources/realtime/translations.js.map +1 -0
- package/resources/realtime/translations.mjs +3 -0
- package/resources/realtime/translations.mjs.map +1 -0
- package/resources/responses/responses.d.mts +66 -7
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +66 -7
- 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 +42 -6
- package/src/internal/responses/canonical-output-text.ts +30 -5
- package/src/internal/responses/response-accumulator.ts +155 -56
- package/src/internal/ws.ts +5 -3
- package/src/lib/live/transcript-grouping.ts +6 -5
- package/src/lib/responses/responses-websocket-accumulator.ts +374 -0
- package/src/realtime/translations/ws.ts +539 -0
- package/src/resources/audio/speech.ts +4 -1
- package/src/resources/audio/transcriptions.ts +2 -1
- package/src/resources/beta/agents/agents.ts +699 -12
- package/src/resources/beta/agents/environments/templates.ts +70 -9
- package/src/resources/beta/agents/index.ts +3 -0
- package/src/resources/beta/agents/sessions/events.ts +10 -7
- package/src/resources/beta/agents/sessions/sessions.ts +4 -2
- package/src/resources/beta/agents/vaults/credentials.ts +21 -7
- package/src/resources/beta/beta.ts +6 -0
- package/src/resources/beta/index.ts +3 -0
- package/src/resources/beta/responses/responses.ts +75 -6
- package/src/resources/files.ts +3 -3
- package/src/resources/index.ts +1 -1
- package/src/resources/live/forks/ws-base.ts +1 -1
- package/src/resources/live/sideband/ws-base.ts +1 -1
- package/src/resources/live/ws-base.ts +1 -1
- package/src/resources/realtime/api.md +8 -0
- package/src/resources/realtime/index.ts +1 -0
- package/src/resources/realtime/realtime.ts +6 -0
- package/src/resources/realtime/translations/client-secrets.ts +93 -0
- package/src/resources/realtime/translations/index.ts +4 -0
- package/src/resources/realtime/translations/translations.ts +15 -0
- package/src/resources/realtime/translations.ts +3 -0
- package/src/resources/responses/responses.ts +72 -6
- 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
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as RealtimeAPI from '../realtime';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
function resolveResourceRequestOptions(
|
|
9
|
+
options: RequestOptions | undefined,
|
|
10
|
+
buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
|
|
11
|
+
): Promise<RequestOptions> {
|
|
12
|
+
return Promise.resolve(options).then(buildOptions);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class ClientSecrets extends APIResource {
|
|
16
|
+
/**
|
|
17
|
+
* Create a Realtime translation client secret with an associated translation
|
|
18
|
+
* session configuration.
|
|
19
|
+
*
|
|
20
|
+
* Client secrets are short-lived tokens that can be passed to a client app, such
|
|
21
|
+
* as a web frontend or mobile client, which grants access to the Realtime
|
|
22
|
+
* Translation API without leaking your main API key. You can configure a custom
|
|
23
|
+
* TTL for each client secret.
|
|
24
|
+
*
|
|
25
|
+
* Returns the created client secret and the effective translation session object.
|
|
26
|
+
* The client secret is a string that looks like `ek_1234`.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const realtimeTranslationClientSecretCreateResponse =
|
|
31
|
+
* await client.realtime.translations.clientSecrets.create(
|
|
32
|
+
* { session: { model: 'model' } },
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
create(
|
|
37
|
+
body: ClientSecretCreateParams,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<RealtimeAPI.RealtimeTranslationClientSecretCreateResponse> {
|
|
40
|
+
return this._client.post(
|
|
41
|
+
'/realtime/translations/client_secrets',
|
|
42
|
+
resolveResourceRequestOptions(options, (options) => ({
|
|
43
|
+
body,
|
|
44
|
+
...options,
|
|
45
|
+
__security: { bearerAuth: true },
|
|
46
|
+
})),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface ClientSecretCreateParams {
|
|
52
|
+
/**
|
|
53
|
+
* Realtime translation session configuration. Translation sessions stream source
|
|
54
|
+
* audio in and translated audio plus transcript deltas out continuously.
|
|
55
|
+
*/
|
|
56
|
+
session: RealtimeAPI.RealtimeTranslationSessionCreateRequest;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Configuration for the client secret expiration. Expiration refers to the time
|
|
60
|
+
* after which a client secret will no longer be valid for creating sessions. The
|
|
61
|
+
* session itself may continue after that time once started. A secret can be used
|
|
62
|
+
* to create multiple sessions until it expires.
|
|
63
|
+
*/
|
|
64
|
+
expires_after?: ClientSecretCreateParams.ExpiresAfter;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export namespace ClientSecretCreateParams {
|
|
68
|
+
/**
|
|
69
|
+
* Configuration for the client secret expiration. Expiration refers to the time
|
|
70
|
+
* after which a client secret will no longer be valid for creating sessions. The
|
|
71
|
+
* session itself may continue after that time once started. A secret can be used
|
|
72
|
+
* to create multiple sessions until it expires.
|
|
73
|
+
*/
|
|
74
|
+
export interface ExpiresAfter {
|
|
75
|
+
/**
|
|
76
|
+
* The anchor point for the client secret expiration, meaning that `seconds` will
|
|
77
|
+
* be added to the `created_at` time of the client secret to produce an expiration
|
|
78
|
+
* timestamp. Only `created_at` is currently supported.
|
|
79
|
+
*/
|
|
80
|
+
anchor?: 'created_at';
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The number of seconds from the anchor point to the expiration. Select a value
|
|
84
|
+
* between `10` and `7200` (2 hours). This default to 600 seconds (10 minutes) if
|
|
85
|
+
* not specified.
|
|
86
|
+
*/
|
|
87
|
+
seconds?: number;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export declare namespace ClientSecrets {
|
|
92
|
+
export { type ClientSecretCreateParams as ClientSecretCreateParams };
|
|
93
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as ClientSecretsAPI from './client-secrets';
|
|
5
|
+
import { ClientSecretCreateParams, ClientSecrets } from './client-secrets';
|
|
6
|
+
|
|
7
|
+
export class Translations extends APIResource {
|
|
8
|
+
clientSecrets: ClientSecretsAPI.ClientSecrets = new ClientSecretsAPI.ClientSecrets(this._client);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Translations.ClientSecrets = ClientSecrets;
|
|
12
|
+
|
|
13
|
+
export declare namespace Translations {
|
|
14
|
+
export { ClientSecrets as ClientSecrets, type ClientSecretCreateParams as ClientSecretCreateParams };
|
|
15
|
+
}
|
|
@@ -1318,6 +1318,8 @@ export interface Response {
|
|
|
1318
1318
|
*/
|
|
1319
1319
|
id: string;
|
|
1320
1320
|
|
|
1321
|
+
access_programs: Response.AccessPrograms | null;
|
|
1322
|
+
|
|
1321
1323
|
/**
|
|
1322
1324
|
* Unix timestamp (in seconds) of when this Response was created.
|
|
1323
1325
|
*/
|
|
@@ -1625,6 +1627,13 @@ export interface Response {
|
|
|
1625
1627
|
}
|
|
1626
1628
|
|
|
1627
1629
|
export namespace Response {
|
|
1630
|
+
export interface AccessPrograms {
|
|
1631
|
+
/**
|
|
1632
|
+
* The effective Cyber access program used for this response.
|
|
1633
|
+
*/
|
|
1634
|
+
cyber: 'standard' | 'daybreak_blue' | 'daybreak_red';
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1628
1637
|
/**
|
|
1629
1638
|
* Details about why the response is incomplete.
|
|
1630
1639
|
*/
|
|
@@ -6931,7 +6940,7 @@ export namespace ResponseOutputText {
|
|
|
6931
6940
|
filename: string;
|
|
6932
6941
|
|
|
6933
6942
|
/**
|
|
6934
|
-
* The index
|
|
6943
|
+
* The index in the output text at which to insert the file citation.
|
|
6935
6944
|
*/
|
|
6936
6945
|
index: number;
|
|
6937
6946
|
|
|
@@ -7114,7 +7123,7 @@ export namespace ResponseOutputTextAnnotationAddedEvent {
|
|
|
7114
7123
|
filename: string;
|
|
7115
7124
|
|
|
7116
7125
|
/**
|
|
7117
|
-
* The index
|
|
7126
|
+
* The index in the output text at which to insert the file citation.
|
|
7118
7127
|
*/
|
|
7119
7128
|
index: number;
|
|
7120
7129
|
|
|
@@ -8958,6 +8967,11 @@ export namespace ResponsesClientEvent {
|
|
|
8958
8967
|
*/
|
|
8959
8968
|
type: 'response.create';
|
|
8960
8969
|
|
|
8970
|
+
/**
|
|
8971
|
+
* Domain-specific access programs to use for this request.
|
|
8972
|
+
*/
|
|
8973
|
+
access_programs?: ResponseCreate.AccessPrograms;
|
|
8974
|
+
|
|
8961
8975
|
/**
|
|
8962
8976
|
* Whether to run the model response in the background.
|
|
8963
8977
|
* [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
@@ -9294,6 +9308,25 @@ export namespace ResponsesClientEvent {
|
|
|
9294
9308
|
}
|
|
9295
9309
|
|
|
9296
9310
|
export namespace ResponseCreate {
|
|
9311
|
+
/**
|
|
9312
|
+
* Domain-specific access programs to use for this request.
|
|
9313
|
+
*/
|
|
9314
|
+
export interface AccessPrograms {
|
|
9315
|
+
/**
|
|
9316
|
+
* The Cyber access program to use for this request. Supported values are
|
|
9317
|
+
* `standard`, `daybreak_blue`, and `daybreak_red`. If omitted, the API resolves
|
|
9318
|
+
* the program from the model's Cyber tier and your organization and project
|
|
9319
|
+
* access, subject to model-specific eligibility restrictions. By default, models
|
|
9320
|
+
* without a Cyber tier use Standard. Blue-tier models use Daybreak Blue when
|
|
9321
|
+
* authorized; otherwise they fall back to Standard unless the model requires
|
|
9322
|
+
* Daybreak access. Red-tier models use Daybreak Red and require authorization.
|
|
9323
|
+
* Requests that require unavailable Daybreak access return 403. An implicit
|
|
9324
|
+
* Standard fallback is represented by null in the response's access_programs
|
|
9325
|
+
* field, rather than an explicit Standard selection.
|
|
9326
|
+
*/
|
|
9327
|
+
cyber?: 'standard' | 'daybreak_blue' | 'daybreak_red';
|
|
9328
|
+
}
|
|
9329
|
+
|
|
9297
9330
|
export interface ContextManagement {
|
|
9298
9331
|
/**
|
|
9299
9332
|
* The context management entry type. Currently only 'compaction' is supported.
|
|
@@ -10882,14 +10915,18 @@ export interface WebSearchPreviewTool {
|
|
|
10882
10915
|
search_context_size?: 'low' | 'medium' | 'high';
|
|
10883
10916
|
|
|
10884
10917
|
/**
|
|
10885
|
-
* The
|
|
10918
|
+
* The approximate location of the user. If omitted or null, defaults to the United
|
|
10919
|
+
* States. To avoid this fallback, pass `{"type": "approximate"}` without location
|
|
10920
|
+
* fields. To localize results, provide the relevant location fields.
|
|
10886
10921
|
*/
|
|
10887
10922
|
user_location?: WebSearchPreviewTool.UserLocation | null;
|
|
10888
10923
|
}
|
|
10889
10924
|
|
|
10890
10925
|
export namespace WebSearchPreviewTool {
|
|
10891
10926
|
/**
|
|
10892
|
-
* The
|
|
10927
|
+
* The approximate location of the user. If omitted or null, defaults to the United
|
|
10928
|
+
* States. To avoid this fallback, pass `{"type": "approximate"}` without location
|
|
10929
|
+
* fields. To localize results, provide the relevant location fields.
|
|
10893
10930
|
*/
|
|
10894
10931
|
export interface UserLocation {
|
|
10895
10932
|
/**
|
|
@@ -10950,7 +10987,9 @@ export interface WebSearchTool {
|
|
|
10950
10987
|
search_context_size?: 'low' | 'medium' | 'high';
|
|
10951
10988
|
|
|
10952
10989
|
/**
|
|
10953
|
-
* The approximate location of the user.
|
|
10990
|
+
* The approximate location of the user. If omitted or null, defaults to the United
|
|
10991
|
+
* States. To avoid this fallback, pass `{"type": "approximate"}` without location
|
|
10992
|
+
* fields. To localize results, provide the relevant location fields.
|
|
10954
10993
|
*/
|
|
10955
10994
|
user_location?: WebSearchTool.UserLocation | null;
|
|
10956
10995
|
}
|
|
@@ -10970,7 +11009,9 @@ export namespace WebSearchTool {
|
|
|
10970
11009
|
}
|
|
10971
11010
|
|
|
10972
11011
|
/**
|
|
10973
|
-
* The approximate location of the user.
|
|
11012
|
+
* The approximate location of the user. If omitted or null, defaults to the United
|
|
11013
|
+
* States. To avoid this fallback, pass `{"type": "approximate"}` without location
|
|
11014
|
+
* fields. To localize results, provide the relevant location fields.
|
|
10974
11015
|
*/
|
|
10975
11016
|
export interface UserLocation {
|
|
10976
11017
|
/**
|
|
@@ -11005,6 +11046,11 @@ export namespace WebSearchTool {
|
|
|
11005
11046
|
export type ResponseCreateParams = ResponseCreateParamsNonStreaming | ResponseCreateParamsStreaming;
|
|
11006
11047
|
|
|
11007
11048
|
export interface ResponseCreateParamsBase {
|
|
11049
|
+
/**
|
|
11050
|
+
* Domain-specific access programs to use for this request.
|
|
11051
|
+
*/
|
|
11052
|
+
access_programs?: ResponseCreateParams.AccessPrograms;
|
|
11053
|
+
|
|
11008
11054
|
/**
|
|
11009
11055
|
* Whether to run the model response in the background.
|
|
11010
11056
|
* [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
@@ -11326,6 +11372,25 @@ export interface ResponseCreateParamsBase {
|
|
|
11326
11372
|
}
|
|
11327
11373
|
|
|
11328
11374
|
export namespace ResponseCreateParams {
|
|
11375
|
+
/**
|
|
11376
|
+
* Domain-specific access programs to use for this request.
|
|
11377
|
+
*/
|
|
11378
|
+
export interface AccessPrograms {
|
|
11379
|
+
/**
|
|
11380
|
+
* The Cyber access program to use for this request. Supported values are
|
|
11381
|
+
* `standard`, `daybreak_blue`, and `daybreak_red`. If omitted, the API resolves
|
|
11382
|
+
* the program from the model's Cyber tier and your organization and project
|
|
11383
|
+
* access, subject to model-specific eligibility restrictions. By default, models
|
|
11384
|
+
* without a Cyber tier use Standard. Blue-tier models use Daybreak Blue when
|
|
11385
|
+
* authorized; otherwise they fall back to Standard unless the model requires
|
|
11386
|
+
* Daybreak access. Red-tier models use Daybreak Red and require authorization.
|
|
11387
|
+
* Requests that require unavailable Daybreak access return 403. An implicit
|
|
11388
|
+
* Standard fallback is represented by null in the response's access_programs
|
|
11389
|
+
* field, rather than an explicit Standard selection.
|
|
11390
|
+
*/
|
|
11391
|
+
cyber?: 'standard' | 'daybreak_blue' | 'daybreak_red';
|
|
11392
|
+
}
|
|
11393
|
+
|
|
11329
11394
|
export interface ContextManagement {
|
|
11330
11395
|
/**
|
|
11331
11396
|
* The context management entry type. Currently only 'compaction' is supported.
|
|
@@ -11553,6 +11618,7 @@ export interface ResponseCompactParams {
|
|
|
11553
11618
|
*/
|
|
11554
11619
|
model:
|
|
11555
11620
|
| 'gpt-6-astra'
|
|
11621
|
+
| 'gpt-6.1-sol'
|
|
11556
11622
|
| 'gpt-6-sol'
|
|
11557
11623
|
| 'gpt-6-luna'
|
|
11558
11624
|
| 'gpt-5.6-sol'
|
package/src/resources/shared.ts
CHANGED
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.25.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.25.0'; // x-release-please-version
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED