@depup/openai 7.4.0-depup.0 → 7.7.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 +436 -0
- package/README.md +2 -2
- package/_vendor/partial-json-parser/parser.d.mts.map +1 -1
- package/_vendor/partial-json-parser/parser.d.ts.map +1 -1
- package/_vendor/partial-json-parser/parser.js +52 -36
- package/_vendor/partial-json-parser/parser.js.map +1 -1
- package/_vendor/partial-json-parser/parser.mjs +52 -36
- package/_vendor/partial-json-parser/parser.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/Options.d.mts +3 -3
- package/_vendor/zod-to-json-schema/Options.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/Options.d.ts +3 -3
- package/_vendor/zod-to-json-schema/Options.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/Options.js +9 -2
- package/_vendor/zod-to-json-schema/Options.js.map +1 -1
- package/_vendor/zod-to-json-schema/Options.mjs +9 -2
- package/_vendor/zod-to-json-schema/Options.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/Refs.d.mts +2 -2
- package/_vendor/zod-to-json-schema/Refs.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/Refs.d.ts +2 -2
- package/_vendor/zod-to-json-schema/Refs.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/Refs.js +4 -4
- package/_vendor/zod-to-json-schema/Refs.js.map +1 -1
- package/_vendor/zod-to-json-schema/Refs.mjs +4 -4
- package/_vendor/zod-to-json-schema/Refs.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/errorMessages.d.mts +2 -2
- package/_vendor/zod-to-json-schema/errorMessages.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/errorMessages.d.ts +2 -2
- package/_vendor/zod-to-json-schema/errorMessages.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/errorMessages.js +2 -1
- package/_vendor/zod-to-json-schema/errorMessages.js.map +1 -1
- package/_vendor/zod-to-json-schema/errorMessages.mjs +2 -1
- package/_vendor/zod-to-json-schema/errorMessages.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/index.d.mts +1 -1
- package/_vendor/zod-to-json-schema/index.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/index.d.ts +1 -1
- package/_vendor/zod-to-json-schema/index.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/index.js +1 -1
- package/_vendor/zod-to-json-schema/index.js.map +1 -1
- package/_vendor/zod-to-json-schema/index.mjs +1 -1
- package/_vendor/zod-to-json-schema/index.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parseDef.d.mts +24 -24
- package/_vendor/zod-to-json-schema/parseDef.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parseDef.d.ts +24 -24
- package/_vendor/zod-to-json-schema/parseDef.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parseDef.js +98 -40
- package/_vendor/zod-to-json-schema/parseDef.js.map +1 -1
- package/_vendor/zod-to-json-schema/parseDef.mjs +98 -40
- package/_vendor/zod-to-json-schema/parseDef.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.d.mts +4 -4
- package/_vendor/zod-to-json-schema/parsers/array.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.d.ts +4 -4
- package/_vendor/zod-to-json-schema/parsers/array.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.js +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.mjs +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/bigint.d.mts +8 -8
- package/_vendor/zod-to-json-schema/parsers/bigint.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/bigint.d.ts +8 -8
- package/_vendor/zod-to-json-schema/parsers/bigint.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/bigint.js +8 -4
- package/_vendor/zod-to-json-schema/parsers/bigint.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/bigint.mjs +8 -4
- package/_vendor/zod-to-json-schema/parsers/bigint.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/branded.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/branded.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/branded.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/branded.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/catch.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/catch.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/catch.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/catch.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/catch.js +1 -3
- package/_vendor/zod-to-json-schema/parsers/catch.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/catch.mjs +1 -3
- package/_vendor/zod-to-json-schema/parsers/catch.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/date.d.mts +5 -5
- package/_vendor/zod-to-json-schema/parsers/date.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/date.d.ts +5 -5
- package/_vendor/zod-to-json-schema/parsers/date.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/date.js +10 -5
- package/_vendor/zod-to-json-schema/parsers/date.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/date.mjs +10 -5
- package/_vendor/zod-to-json-schema/parsers/date.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/default.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/default.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/default.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/default.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/default.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/default.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/effects.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/effects.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/effects.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/effects.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/effects.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/effects.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/enum.d.mts +1 -1
- package/_vendor/zod-to-json-schema/parsers/enum.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/enum.d.ts +1 -1
- package/_vendor/zod-to-json-schema/parsers/enum.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/intersection.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/intersection.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/intersection.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/intersection.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/intersection.js +6 -5
- package/_vendor/zod-to-json-schema/parsers/intersection.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/intersection.mjs +6 -5
- package/_vendor/zod-to-json-schema/parsers/intersection.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/literal.d.mts +5 -2
- package/_vendor/zod-to-json-schema/parsers/literal.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/literal.d.ts +5 -2
- package/_vendor/zod-to-json-schema/parsers/literal.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/literal.js +4 -0
- package/_vendor/zod-to-json-schema/parsers/literal.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/literal.mjs +4 -0
- package/_vendor/zod-to-json-schema/parsers/literal.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/map.d.mts +4 -4
- package/_vendor/zod-to-json-schema/parsers/map.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/map.d.ts +4 -4
- package/_vendor/zod-to-json-schema/parsers/map.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/map.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/map.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.mts +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.js +7 -9
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs +7 -9
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.d.mts +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.d.ts +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.js +2 -2
- package/_vendor/zod-to-json-schema/parsers/null.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.mjs +2 -2
- package/_vendor/zod-to-json-schema/parsers/null.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.d.mts +4 -4
- package/_vendor/zod-to-json-schema/parsers/nullable.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.d.ts +4 -4
- package/_vendor/zod-to-json-schema/parsers/nullable.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.js +2 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.mjs +2 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/number.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/number.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/number.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/number.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/number.js +10 -5
- package/_vendor/zod-to-json-schema/parsers/number.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/number.mjs +10 -5
- package/_vendor/zod-to-json-schema/parsers/number.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/object.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/object.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/object.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/object.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/object.js +43 -38
- package/_vendor/zod-to-json-schema/parsers/object.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/object.mjs +43 -38
- package/_vendor/zod-to-json-schema/parsers/object.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/optional.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/optional.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/optional.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/optional.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/optional.js +2 -2
- package/_vendor/zod-to-json-schema/parsers/optional.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/optional.mjs +2 -2
- package/_vendor/zod-to-json-schema/parsers/optional.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/pipeline.d.mts +4 -4
- package/_vendor/zod-to-json-schema/parsers/pipeline.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/pipeline.d.ts +4 -4
- package/_vendor/zod-to-json-schema/parsers/pipeline.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/pipeline.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/pipeline.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/promise.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/promise.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/promise.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/promise.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/promise.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/promise.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/readonly.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/readonly.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/readonly.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/readonly.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/readonly.js +1 -3
- package/_vendor/zod-to-json-schema/parsers/readonly.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/readonly.mjs +1 -3
- package/_vendor/zod-to-json-schema/parsers/readonly.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/record.d.mts +5 -5
- package/_vendor/zod-to-json-schema/parsers/record.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/record.d.ts +5 -5
- package/_vendor/zod-to-json-schema/parsers/record.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/record.js +5 -5
- package/_vendor/zod-to-json-schema/parsers/record.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/record.mjs +5 -5
- package/_vendor/zod-to-json-schema/parsers/record.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/set.d.mts +4 -4
- package/_vendor/zod-to-json-schema/parsers/set.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/set.d.ts +4 -4
- package/_vendor/zod-to-json-schema/parsers/set.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/set.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/set.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/string.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/string.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.js +55 -33
- package/_vendor/zod-to-json-schema/parsers/string.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.mjs +55 -33
- package/_vendor/zod-to-json-schema/parsers/string.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/tuple.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/tuple.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.js +12 -14
- package/_vendor/zod-to-json-schema/parsers/tuple.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.mjs +12 -14
- package/_vendor/zod-to-json-schema/parsers/tuple.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/union.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/union.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/union.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/union.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/union.js +43 -24
- package/_vendor/zod-to-json-schema/parsers/union.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/union.mjs +43 -24
- package/_vendor/zod-to-json-schema/parsers/union.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/util.d.mts +1 -1
- package/_vendor/zod-to-json-schema/util.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/util.d.ts +1 -1
- package/_vendor/zod-to-json-schema/util.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/util.js +6 -5
- package/_vendor/zod-to-json-schema/util.js.map +1 -1
- package/_vendor/zod-to-json-schema/util.mjs +6 -5
- package/_vendor/zod-to-json-schema/util.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts +4 -6
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts +4 -6
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.js +102 -36
- package/_vendor/zod-to-json-schema/zodToJsonSchema.js.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs +102 -36
- package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs.map +1 -1
- package/auth/index.d.mts +1 -1
- package/auth/index.d.mts.map +1 -1
- package/auth/index.d.ts +1 -1
- package/auth/index.d.ts.map +1 -1
- package/auth/index.js.map +1 -1
- package/auth/index.mjs.map +1 -1
- package/auth/subject-token-providers.d.mts +52 -0
- package/auth/subject-token-providers.d.mts.map +1 -1
- package/auth/subject-token-providers.d.ts +52 -0
- package/auth/subject-token-providers.d.ts.map +1 -1
- package/auth/subject-token-providers.js +222 -7
- package/auth/subject-token-providers.js.map +1 -1
- package/auth/subject-token-providers.mjs +222 -7
- package/auth/subject-token-providers.mjs.map +1 -1
- package/auth/types.d.mts +31 -5
- package/auth/types.d.mts.map +1 -1
- package/auth/types.d.ts +31 -5
- package/auth/types.d.ts.map +1 -1
- package/auth/workload-identity-auth.d.mts +26 -1
- package/auth/workload-identity-auth.d.mts.map +1 -1
- package/auth/workload-identity-auth.d.ts +26 -1
- package/auth/workload-identity-auth.d.ts.map +1 -1
- package/auth/workload-identity-auth.js +139 -22
- package/auth/workload-identity-auth.js.map +1 -1
- package/auth/workload-identity-auth.mjs +139 -22
- package/auth/workload-identity-auth.mjs.map +1 -1
- package/auth/x509-transport.d.mts +5 -0
- package/auth/x509-transport.d.mts.map +1 -0
- package/auth/x509-transport.d.ts +5 -0
- package/auth/x509-transport.d.ts.map +1 -0
- package/auth/x509-transport.js +39 -0
- package/auth/x509-transport.js.map +1 -0
- package/auth/x509-transport.mjs +36 -0
- package/auth/x509-transport.mjs.map +1 -0
- package/azure.d.mts +38 -16
- package/azure.d.mts.map +1 -1
- package/azure.d.ts +38 -16
- package/azure.d.ts.map +1 -1
- package/azure.js +36 -19
- package/azure.js.map +1 -1
- package/azure.mjs +36 -19
- package/azure.mjs.map +1 -1
- package/bedrock.d.mts +23 -5
- package/bedrock.d.mts.map +1 -1
- package/bedrock.d.ts +23 -5
- package/bedrock.d.ts.map +1 -1
- package/bedrock.js +69 -8
- package/bedrock.js.map +1 -1
- package/bedrock.mjs +69 -8
- package/bedrock.mjs.map +1 -1
- package/beta/realtime/internal-base.d.mts +47 -4
- package/beta/realtime/internal-base.d.mts.map +1 -1
- package/beta/realtime/internal-base.d.ts +47 -4
- package/beta/realtime/internal-base.d.ts.map +1 -1
- package/beta/realtime/internal-base.js +53 -10
- package/beta/realtime/internal-base.js.map +1 -1
- package/beta/realtime/internal-base.mjs +52 -10
- package/beta/realtime/internal-base.mjs.map +1 -1
- package/beta/realtime/websocket.d.mts +63 -4
- package/beta/realtime/websocket.d.mts.map +1 -1
- package/beta/realtime/websocket.d.ts +63 -4
- package/beta/realtime/websocket.d.ts.map +1 -1
- package/beta/realtime/websocket.js +161 -26
- package/beta/realtime/websocket.js.map +1 -1
- package/beta/realtime/websocket.mjs +162 -27
- package/beta/realtime/websocket.mjs.map +1 -1
- package/beta/realtime/ws.d.mts +51 -3
- package/beta/realtime/ws.d.mts.map +1 -1
- package/beta/realtime/ws.d.ts +51 -3
- package/beta/realtime/ws.d.ts.map +1 -1
- package/beta/realtime/ws.js +82 -9
- package/beta/realtime/ws.js.map +1 -1
- package/beta/realtime/ws.mjs +83 -10
- package/beta/realtime/ws.mjs.map +1 -1
- package/changes.json +1 -1
- package/client.d.mts +40 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +40 -2
- package/client.d.ts.map +1 -1
- package/client.js +597 -75
- package/client.js.map +1 -1
- package/client.mjs +598 -76
- package/client.mjs.map +1 -1
- package/core/EventEmitter.d.mts +10 -6
- package/core/EventEmitter.d.mts.map +1 -1
- package/core/EventEmitter.d.ts +10 -6
- package/core/EventEmitter.d.ts.map +1 -1
- package/core/EventEmitter.js +98 -16
- package/core/EventEmitter.js.map +1 -1
- package/core/EventEmitter.mjs +99 -17
- package/core/EventEmitter.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +0 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +0 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js +5 -5
- package/core/error.js.map +1 -1
- package/core/error.mjs +5 -5
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +0 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +0 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js +0 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs +0 -1
- package/core/resource.mjs.map +1 -1
- package/core/streaming.d.mts +29 -2
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts +29 -2
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js +333 -80
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +334 -81
- package/core/streaming.mjs.map +1 -1
- package/helpers/audio.d.mts +29 -0
- package/helpers/audio.d.mts.map +1 -1
- package/helpers/audio.d.ts +29 -0
- package/helpers/audio.d.ts.map +1 -1
- package/helpers/audio.js +163 -28
- package/helpers/audio.js.map +1 -1
- package/helpers/audio.mjs +163 -28
- package/helpers/audio.mjs.map +1 -1
- package/helpers/standard-schema.d.mts +154 -18
- package/helpers/standard-schema.d.mts.map +1 -1
- package/helpers/standard-schema.d.ts +154 -18
- package/helpers/standard-schema.d.ts.map +1 -1
- package/helpers/standard-schema.js +92 -29
- package/helpers/standard-schema.js.map +1 -1
- package/helpers/standard-schema.mjs +93 -30
- package/helpers/standard-schema.mjs.map +1 -1
- package/helpers/zod-v3-strict-schema.d.mts +7 -0
- package/helpers/zod-v3-strict-schema.d.mts.map +1 -0
- package/helpers/zod-v3-strict-schema.d.ts +7 -0
- package/helpers/zod-v3-strict-schema.d.ts.map +1 -0
- package/helpers/zod-v3-strict-schema.js +403 -0
- package/helpers/zod-v3-strict-schema.js.map +1 -0
- package/helpers/zod-v3-strict-schema.mjs +399 -0
- package/helpers/zod-v3-strict-schema.mjs.map +1 -0
- package/helpers/zod.d.mts +79 -5
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts +79 -5
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js +84 -23
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +86 -25
- package/helpers/zod.mjs.map +1 -1
- package/index.d.mts +2 -2
- package/index.d.mts.map +1 -1
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/index.mjs +0 -1
- package/index.mjs.map +1 -1
- package/internal/assistant-stream-delta.d.mts +7 -0
- package/internal/assistant-stream-delta.d.mts.map +1 -0
- package/internal/assistant-stream-delta.d.ts +7 -0
- package/internal/assistant-stream-delta.d.ts.map +1 -0
- package/internal/assistant-stream-delta.js +309 -0
- package/internal/assistant-stream-delta.js.map +1 -0
- package/internal/assistant-stream-delta.mjs +301 -0
- package/internal/assistant-stream-delta.mjs.map +1 -0
- package/internal/auth/x509-token-exchange.d.mts +16 -0
- package/internal/auth/x509-token-exchange.d.mts.map +1 -0
- package/internal/auth/x509-token-exchange.d.ts +16 -0
- package/internal/auth/x509-token-exchange.d.ts.map +1 -0
- package/internal/auth/x509-token-exchange.js +246 -0
- package/internal/auth/x509-token-exchange.js.map +1 -0
- package/internal/auth/x509-token-exchange.mjs +243 -0
- package/internal/auth/x509-token-exchange.mjs.map +1 -0
- package/internal/auth/x509-transport-capability.d.mts +37 -0
- package/internal/auth/x509-transport-capability.d.mts.map +1 -0
- package/internal/auth/x509-transport-capability.d.ts +37 -0
- package/internal/auth/x509-transport-capability.d.ts.map +1 -0
- package/internal/auth/x509-transport-capability.js +169 -0
- package/internal/auth/x509-transport-capability.js.map +1 -0
- package/internal/auth/x509-transport-capability.mjs +164 -0
- package/internal/auth/x509-transport-capability.mjs.map +1 -0
- package/internal/auth/x509-transport-registry.d.mts +63 -0
- package/internal/auth/x509-transport-registry.d.mts.map +1 -0
- package/internal/auth/x509-transport-registry.d.ts +63 -0
- package/internal/auth/x509-transport-registry.d.ts.map +1 -0
- package/internal/auth/x509-transport-registry.js +53 -0
- package/internal/auth/x509-transport-registry.js.map +1 -0
- package/internal/auth/x509-transport-registry.mjs +48 -0
- package/internal/auth/x509-transport-registry.mjs.map +1 -0
- package/internal/auth/x509-transport-state-browser.d.mts +21 -0
- package/internal/auth/x509-transport-state-browser.d.mts.map +1 -0
- package/internal/auth/x509-transport-state-browser.d.ts +21 -0
- package/internal/auth/x509-transport-state-browser.d.ts.map +1 -0
- package/internal/auth/x509-transport-state-browser.js +30 -0
- package/internal/auth/x509-transport-state-browser.js.map +1 -0
- package/internal/auth/x509-transport-state-browser.mjs +27 -0
- package/internal/auth/x509-transport-state-browser.mjs.map +1 -0
- package/internal/auth/x509-transport-state.cjs +30 -0
- package/internal/auth/x509-transport-state.cjs.map +1 -0
- package/internal/auth/x509-transport-state.d.cts +21 -0
- package/internal/auth/x509-transport-state.d.cts.map +1 -0
- package/internal/auth/x509-workload-identity-auth.d.mts +128 -0
- package/internal/auth/x509-workload-identity-auth.d.mts.map +1 -0
- package/internal/auth/x509-workload-identity-auth.d.ts +128 -0
- package/internal/auth/x509-workload-identity-auth.d.ts.map +1 -0
- package/internal/auth/x509-workload-identity-auth.js +767 -0
- package/internal/auth/x509-workload-identity-auth.js.map +1 -0
- package/internal/auth/x509-workload-identity-auth.mjs +757 -0
- package/internal/auth/x509-workload-identity-auth.mjs.map +1 -0
- package/internal/bedrock.d.mts +82 -5
- package/internal/bedrock.d.mts.map +1 -1
- package/internal/bedrock.d.ts +82 -5
- package/internal/bedrock.d.ts.map +1 -1
- package/internal/bedrock.js +312 -13
- package/internal/bedrock.js.map +1 -1
- package/internal/bedrock.mjs +307 -13
- package/internal/bedrock.mjs.map +1 -1
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/builtin-types.js +0 -1
- package/internal/builtin-types.js.map +1 -1
- package/internal/builtin-types.mjs +0 -1
- package/internal/builtin-types.mjs.map +1 -1
- package/internal/data-residency.d.mts +12 -0
- package/internal/data-residency.d.mts.map +1 -0
- package/internal/data-residency.d.ts +12 -0
- package/internal/data-residency.d.ts.map +1 -0
- package/internal/data-residency.js +34 -0
- package/internal/data-residency.js.map +1 -0
- package/internal/data-residency.mjs +30 -0
- package/internal/data-residency.mjs.map +1 -0
- package/internal/decoders/line.d.mts +25 -2
- package/internal/decoders/line.d.mts.map +1 -1
- package/internal/decoders/line.d.ts +25 -2
- package/internal/decoders/line.d.ts.map +1 -1
- package/internal/decoders/line.js +139 -54
- package/internal/decoders/line.js.map +1 -1
- package/internal/decoders/line.mjs +140 -55
- package/internal/decoders/line.mjs.map +1 -1
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +1 -2
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +1 -2
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +0 -1
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +0 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +0 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +0 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/multipart-encoding.d.mts +8 -0
- package/internal/multipart-encoding.d.mts.map +1 -0
- package/internal/multipart-encoding.d.ts +8 -0
- package/internal/multipart-encoding.d.ts.map +1 -0
- package/internal/multipart-encoding.js +51 -0
- package/internal/multipart-encoding.js.map +1 -0
- package/internal/multipart-encoding.mjs +48 -0
- package/internal/multipart-encoding.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +23 -3
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +23 -3
- package/internal/parse.mjs.map +1 -1
- package/internal/provider.d.mts +26 -0
- package/internal/provider.d.mts.map +1 -1
- package/internal/provider.d.ts +26 -0
- package/internal/provider.d.ts.map +1 -1
- package/internal/provider.js +11 -0
- package/internal/provider.js.map +1 -1
- package/internal/provider.mjs +11 -0
- package/internal/provider.mjs.map +1 -1
- package/internal/qs/formats.d.mts +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +1 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +1 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +57 -51
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +57 -51
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/types.d.mts +1 -1
- package/internal/qs/types.d.mts.map +1 -1
- package/internal/qs/types.d.ts +1 -1
- package/internal/qs/types.d.ts.map +1 -1
- package/internal/qs/utils.d.mts +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +356 -50
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +356 -50
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts +7 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +7 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js +43 -2
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs +42 -2
- package/internal/request-options.mjs.map +1 -1
- package/internal/responses/canonical-output-text.d.mts +16 -0
- package/internal/responses/canonical-output-text.d.mts.map +1 -0
- package/internal/responses/canonical-output-text.d.ts +16 -0
- package/internal/responses/canonical-output-text.d.ts.map +1 -0
- package/internal/responses/canonical-output-text.js +123 -0
- package/internal/responses/canonical-output-text.js.map +1 -0
- package/internal/responses/canonical-output-text.mjs +115 -0
- package/internal/responses/canonical-output-text.mjs.map +1 -0
- package/internal/responses/output-text-index.d.mts +18 -0
- package/internal/responses/output-text-index.d.mts.map +1 -0
- package/internal/responses/output-text-index.d.ts +18 -0
- package/internal/responses/output-text-index.d.ts.map +1 -0
- package/internal/responses/output-text-index.js +77 -0
- package/internal/responses/output-text-index.js.map +1 -0
- package/internal/responses/output-text-index.mjs +73 -0
- package/internal/responses/output-text-index.mjs.map +1 -0
- package/internal/responses/response-accumulator.d.mts +11 -0
- package/internal/responses/response-accumulator.d.mts.map +1 -0
- package/internal/responses/response-accumulator.d.ts +11 -0
- package/internal/responses/response-accumulator.d.ts.map +1 -0
- package/internal/responses/response-accumulator.js +925 -0
- package/internal/responses/response-accumulator.js.map +1 -0
- package/internal/responses/response-accumulator.mjs +921 -0
- package/internal/responses/response-accumulator.mjs.map +1 -0
- package/internal/shim-types.d.mts.map +1 -1
- package/internal/shim-types.d.ts.map +1 -1
- package/internal/shim-types.js +6 -1
- package/internal/shim-types.js.map +1 -1
- package/internal/shim-types.mjs +6 -1
- package/internal/shim-types.mjs.map +1 -1
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +6 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +6 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/stream-utils.d.mts +10 -3
- package/internal/stream-utils.d.mts.map +1 -1
- package/internal/stream-utils.d.ts +10 -3
- package/internal/stream-utils.d.ts.map +1 -1
- package/internal/stream-utils.js +35 -7
- package/internal/stream-utils.js.map +1 -1
- package/internal/stream-utils.mjs +35 -7
- package/internal/stream-utils.mjs.map +1 -1
- package/internal/to-file.d.mts +39 -17
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +39 -17
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +44 -22
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +44 -22
- package/internal/to-file.mjs.map +1 -1
- package/internal/tslib.js +6 -0
- package/internal/tslib.mjs +6 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/types.js +0 -1
- package/internal/types.js.map +1 -1
- package/internal/types.mjs +0 -1
- package/internal/types.mjs.map +1 -1
- package/internal/uploads.d.mts +84 -14
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +84 -14
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +212 -75
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +212 -75
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +0 -1
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +0 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +3 -0
- package/internal/utils/bytes.d.mts.map +1 -1
- package/internal/utils/bytes.d.ts +3 -0
- package/internal/utils/bytes.d.ts.map +1 -1
- package/internal/utils/bytes.js +3 -0
- package/internal/utils/bytes.js.map +1 -1
- package/internal/utils/bytes.mjs +3 -0
- package/internal/utils/bytes.mjs.map +1 -1
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js +9 -5
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +9 -5
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -4
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -4
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts +14 -2
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts +14 -2
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +48 -30
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +48 -30
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.d.mts.map +1 -1
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +0 -1
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +0 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/sleep.js +0 -1
- package/internal/utils/sleep.js.map +1 -1
- package/internal/utils/sleep.mjs +0 -1
- package/internal/utils/sleep.mjs.map +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +0 -1
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +0 -1
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +0 -1
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +0 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.js +0 -1
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +0 -1
- package/internal/utils.mjs.map +1 -1
- package/internal/ws-adapter-browser.d.mts +26 -3
- package/internal/ws-adapter-browser.d.mts.map +1 -1
- package/internal/ws-adapter-browser.d.ts +26 -3
- package/internal/ws-adapter-browser.d.ts.map +1 -1
- package/internal/ws-adapter-browser.js +64 -21
- package/internal/ws-adapter-browser.js.map +1 -1
- package/internal/ws-adapter-browser.mjs +64 -21
- package/internal/ws-adapter-browser.mjs.map +1 -1
- package/internal/ws-adapter-node.d.mts +18 -3
- package/internal/ws-adapter-node.d.mts.map +1 -1
- package/internal/ws-adapter-node.d.ts +18 -3
- package/internal/ws-adapter-node.d.ts.map +1 -1
- package/internal/ws-adapter-node.js +90 -24
- package/internal/ws-adapter-node.js.map +1 -1
- package/internal/ws-adapter-node.mjs +90 -24
- package/internal/ws-adapter-node.mjs.map +1 -1
- package/internal/ws-adapter.d.mts +14 -0
- package/internal/ws-adapter.d.mts.map +1 -1
- package/internal/ws-adapter.d.ts +14 -0
- package/internal/ws-adapter.d.ts.map +1 -1
- package/internal/ws-adapter.js +4 -0
- package/internal/ws-adapter.js.map +1 -1
- package/internal/ws-adapter.mjs +4 -0
- package/internal/ws-adapter.mjs.map +1 -1
- package/internal/ws.d.mts +36 -8
- package/internal/ws.d.mts.map +1 -1
- package/internal/ws.d.ts +36 -8
- package/internal/ws.d.ts.map +1 -1
- package/internal/ws.js +116 -47
- package/internal/ws.js.map +1 -1
- package/internal/ws.mjs +115 -47
- package/internal/ws.mjs.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.mts +26 -5
- package/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.ts +26 -5
- package/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/lib/AbstractChatCompletionRunner.js +89 -39
- package/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/lib/AbstractChatCompletionRunner.mjs +92 -42
- package/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/lib/AssistantStream.d.mts +49 -8
- package/lib/AssistantStream.d.mts.map +1 -1
- package/lib/AssistantStream.d.ts +49 -8
- package/lib/AssistantStream.d.ts.map +1 -1
- package/lib/AssistantStream.js +388 -227
- package/lib/AssistantStream.js.map +1 -1
- package/lib/AssistantStream.mjs +389 -228
- package/lib/AssistantStream.mjs.map +1 -1
- package/lib/ChatCompletionRunner.d.mts +16 -5
- package/lib/ChatCompletionRunner.d.mts.map +1 -1
- package/lib/ChatCompletionRunner.d.ts +16 -5
- package/lib/ChatCompletionRunner.d.ts.map +1 -1
- package/lib/ChatCompletionRunner.js +4 -1
- package/lib/ChatCompletionRunner.js.map +1 -1
- package/lib/ChatCompletionRunner.mjs +5 -2
- package/lib/ChatCompletionRunner.mjs.map +1 -1
- package/lib/ChatCompletionStream.d.mts +137 -35
- package/lib/ChatCompletionStream.d.mts.map +1 -1
- package/lib/ChatCompletionStream.d.ts +137 -35
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +1252 -162
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +1255 -165
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.mts +20 -7
- package/lib/ChatCompletionStreamingRunner.d.mts.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.ts +20 -7
- package/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
- package/lib/ChatCompletionStreamingRunner.js +27 -67
- package/lib/ChatCompletionStreamingRunner.js.map +1 -1
- package/lib/ChatCompletionStreamingRunner.mjs +28 -68
- package/lib/ChatCompletionStreamingRunner.mjs.map +1 -1
- package/lib/EventEmitter.d.mts +9 -6
- package/lib/EventEmitter.d.mts.map +1 -1
- package/lib/EventEmitter.d.ts +9 -6
- package/lib/EventEmitter.d.ts.map +1 -1
- package/lib/EventEmitter.js +89 -20
- package/lib/EventEmitter.js.map +1 -1
- package/lib/EventEmitter.mjs +90 -21
- package/lib/EventEmitter.mjs.map +1 -1
- package/lib/EventStream.d.mts +49 -9
- package/lib/EventStream.d.mts.map +1 -1
- package/lib/EventStream.d.ts +49 -9
- package/lib/EventStream.d.ts.map +1 -1
- package/lib/EventStream.js +1257 -51
- package/lib/EventStream.js.map +1 -1
- package/lib/EventStream.mjs +1258 -52
- package/lib/EventStream.mjs.map +1 -1
- package/lib/ResponsesParser.d.mts +52 -5
- package/lib/ResponsesParser.d.mts.map +1 -1
- package/lib/ResponsesParser.d.ts +52 -5
- package/lib/ResponsesParser.d.ts.map +1 -1
- package/lib/ResponsesParser.js +32 -17
- package/lib/ResponsesParser.js.map +1 -1
- package/lib/ResponsesParser.mjs +33 -18
- package/lib/ResponsesParser.mjs.map +1 -1
- package/lib/RunnableFunction.d.mts +38 -10
- package/lib/RunnableFunction.d.mts.map +1 -1
- package/lib/RunnableFunction.d.ts +38 -10
- package/lib/RunnableFunction.d.ts.map +1 -1
- package/lib/RunnableFunction.js +3 -0
- package/lib/RunnableFunction.js.map +1 -1
- package/lib/RunnableFunction.mjs +3 -0
- package/lib/RunnableFunction.mjs.map +1 -1
- package/lib/Util.d.mts +2 -0
- package/lib/Util.d.mts.map +1 -1
- package/lib/Util.d.ts +2 -0
- package/lib/Util.d.ts.map +1 -1
- package/lib/Util.js +7 -4
- package/lib/Util.js.map +1 -1
- package/lib/Util.mjs +7 -4
- package/lib/Util.mjs.map +1 -1
- package/lib/assistant-run-polling.d.mts +12 -0
- package/lib/assistant-run-polling.d.mts.map +1 -0
- package/lib/assistant-run-polling.d.ts +12 -0
- package/lib/assistant-run-polling.d.ts.map +1 -0
- package/lib/assistant-run-polling.js +17 -0
- package/lib/assistant-run-polling.js.map +1 -0
- package/lib/assistant-run-polling.mjs +14 -0
- package/lib/assistant-run-polling.mjs.map +1 -0
- package/lib/chatCompletionUtils.d.mts +4 -1
- package/lib/chatCompletionUtils.d.mts.map +1 -1
- package/lib/chatCompletionUtils.d.ts +4 -1
- package/lib/chatCompletionUtils.d.ts.map +1 -1
- package/lib/chatCompletionUtils.js +5 -6
- package/lib/chatCompletionUtils.js.map +1 -1
- package/lib/chatCompletionUtils.mjs +5 -6
- package/lib/chatCompletionUtils.mjs.map +1 -1
- package/lib/embeddings.d.mts +18 -0
- package/lib/embeddings.d.mts.map +1 -0
- package/lib/embeddings.d.ts +18 -0
- package/lib/embeddings.d.ts.map +1 -0
- package/lib/embeddings.js +50 -0
- package/lib/embeddings.js.map +1 -0
- package/lib/embeddings.mjs +47 -0
- package/lib/embeddings.mjs.map +1 -0
- package/lib/file-processing.d.mts +10 -0
- package/lib/file-processing.d.mts.map +1 -0
- package/lib/file-processing.d.ts +10 -0
- package/lib/file-processing.d.ts.map +1 -0
- package/lib/file-processing.js +30 -0
- package/lib/file-processing.js.map +1 -0
- package/lib/file-processing.mjs +27 -0
- package/lib/file-processing.mjs.map +1 -0
- package/lib/jsonschema.d.mts +70 -14
- package/lib/jsonschema.d.mts.map +1 -1
- package/lib/jsonschema.d.ts +70 -14
- package/lib/jsonschema.d.ts.map +1 -1
- package/lib/parser.d.mts +97 -6
- package/lib/parser.d.mts.map +1 -1
- package/lib/parser.d.ts +97 -6
- package/lib/parser.d.ts.map +1 -1
- package/lib/parser.js +128 -41
- package/lib/parser.js.map +1 -1
- package/lib/parser.mjs +126 -41
- package/lib/parser.mjs.map +1 -1
- package/lib/polling.d.mts +20 -0
- package/lib/polling.d.mts.map +1 -0
- package/lib/polling.d.ts +20 -0
- package/lib/polling.d.ts.map +1 -0
- package/lib/polling.js +130 -0
- package/lib/polling.js.map +1 -0
- package/lib/polling.mjs +127 -0
- package/lib/polling.mjs.map +1 -0
- package/lib/responses/EventTypes.d.mts +7 -2
- package/lib/responses/EventTypes.d.mts.map +1 -1
- package/lib/responses/EventTypes.d.ts +7 -2
- package/lib/responses/EventTypes.d.ts.map +1 -1
- package/lib/responses/ResponseAccumulator.d.mts +4 -1
- package/lib/responses/ResponseAccumulator.d.mts.map +1 -1
- package/lib/responses/ResponseAccumulator.d.ts +4 -1
- package/lib/responses/ResponseAccumulator.d.ts.map +1 -1
- package/lib/responses/ResponseAccumulator.js +2 -390
- package/lib/responses/ResponseAccumulator.js.map +1 -1
- package/lib/responses/ResponseAccumulator.mjs +2 -390
- package/lib/responses/ResponseAccumulator.mjs.map +1 -1
- package/lib/responses/ResponseInputItems.d.mts +1 -0
- package/lib/responses/ResponseInputItems.d.mts.map +1 -1
- package/lib/responses/ResponseInputItems.d.ts +1 -0
- package/lib/responses/ResponseInputItems.d.ts.map +1 -1
- package/lib/responses/ResponseInputItems.js.map +1 -1
- package/lib/responses/ResponseInputItems.mjs.map +1 -1
- package/lib/responses/ResponseStream.d.mts +29 -10
- package/lib/responses/ResponseStream.d.mts.map +1 -1
- package/lib/responses/ResponseStream.d.ts +29 -10
- package/lib/responses/ResponseStream.d.ts.map +1 -1
- package/lib/responses/ResponseStream.js +57 -71
- package/lib/responses/ResponseStream.js.map +1 -1
- package/lib/responses/ResponseStream.mjs +58 -72
- package/lib/responses/ResponseStream.mjs.map +1 -1
- package/lib/transform.d.mts +21 -0
- package/lib/transform.d.mts.map +1 -1
- package/lib/transform.d.ts +21 -0
- package/lib/transform.d.ts.map +1 -1
- package/lib/transform.js +126 -76
- package/lib/transform.js.map +1 -1
- package/lib/transform.mjs +126 -76
- package/lib/transform.mjs.map +1 -1
- package/lib/vector-store-polling.d.mts +22 -0
- package/lib/vector-store-polling.d.mts.map +1 -0
- package/lib/vector-store-polling.d.ts +22 -0
- package/lib/vector-store-polling.d.ts.map +1 -0
- package/lib/vector-store-polling.js +24 -0
- package/lib/vector-store-polling.js.map +1 -0
- package/lib/vector-store-polling.mjs +20 -0
- package/lib/vector-store-polling.mjs.map +1 -0
- package/lib/vector-store-upload.d.mts +17 -0
- package/lib/vector-store-upload.d.mts.map +1 -0
- package/lib/vector-store-upload.d.ts +17 -0
- package/lib/vector-store-upload.d.ts.map +1 -0
- package/lib/vector-store-upload.js +37 -0
- package/lib/vector-store-upload.js.map +1 -0
- package/lib/vector-store-upload.mjs +34 -0
- package/lib/vector-store-upload.mjs.map +1 -0
- package/lib/webhook-signature.d.mts +15 -0
- package/lib/webhook-signature.d.mts.map +1 -0
- package/lib/webhook-signature.d.ts +15 -0
- package/lib/webhook-signature.d.ts.map +1 -0
- package/lib/webhook-signature.js +125 -0
- package/lib/webhook-signature.js.map +1 -0
- package/lib/webhook-signature.mjs +121 -0
- package/lib/webhook-signature.mjs.map +1 -0
- package/package.json +25 -5
- package/providers/bedrock/aws.d.mts +35 -8
- package/providers/bedrock/aws.d.mts.map +1 -1
- package/providers/bedrock/aws.d.ts +35 -8
- package/providers/bedrock/aws.d.ts.map +1 -1
- package/providers/bedrock/aws.js +60 -21
- package/providers/bedrock/aws.js.map +1 -1
- package/providers/bedrock/aws.mjs +61 -22
- package/providers/bedrock/aws.mjs.map +1 -1
- package/providers/bedrock.d.mts +17 -2
- package/providers/bedrock.d.mts.map +1 -1
- package/providers/bedrock.d.ts +17 -2
- package/providers/bedrock.d.ts.map +1 -1
- package/providers/bedrock.js +19 -2
- package/providers/bedrock.js.map +1 -1
- package/providers/bedrock.mjs +20 -3
- package/providers/bedrock.mjs.map +1 -1
- package/realtime/internal-base.d.mts +99 -10
- package/realtime/internal-base.d.mts.map +1 -1
- package/realtime/internal-base.d.ts +99 -10
- package/realtime/internal-base.d.ts.map +1 -1
- package/realtime/internal-base.js +94 -29
- package/realtime/internal-base.js.map +1 -1
- package/realtime/internal-base.mjs +93 -29
- package/realtime/internal-base.mjs.map +1 -1
- package/realtime/websocket.d.mts +63 -4
- package/realtime/websocket.d.mts.map +1 -1
- package/realtime/websocket.d.ts +63 -4
- package/realtime/websocket.d.ts.map +1 -1
- package/realtime/websocket.js +152 -27
- package/realtime/websocket.js.map +1 -1
- package/realtime/websocket.mjs +153 -28
- package/realtime/websocket.mjs.map +1 -1
- package/realtime/ws.d.mts +58 -3
- package/realtime/ws.d.mts.map +1 -1
- package/realtime/ws.d.ts +58 -3
- package/realtime/ws.d.ts.map +1 -1
- package/realtime/ws.js +72 -8
- package/realtime/ws.js.map +1 -1
- package/realtime/ws.mjs +73 -9
- package/realtime/ws.mjs.map +1 -1
- package/resources/admin/admin.js +1 -1
- package/resources/admin/admin.js.map +1 -1
- package/resources/admin/admin.mjs +1 -1
- package/resources/admin/admin.mjs.map +1 -1
- package/resources/admin/index.js +1 -1
- package/resources/admin/index.js.map +1 -1
- package/resources/admin/index.mjs +1 -1
- package/resources/admin/index.mjs.map +1 -1
- package/resources/admin/organization/admin-api-keys.js +1 -1
- package/resources/admin/organization/admin-api-keys.js.map +1 -1
- package/resources/admin/organization/admin-api-keys.mjs +1 -1
- package/resources/admin/organization/admin-api-keys.mjs.map +1 -1
- package/resources/admin/organization/audit-logs.d.mts +2 -2
- package/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/resources/admin/organization/audit-logs.d.ts +2 -2
- package/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/resources/admin/organization/audit-logs.js +1 -1
- package/resources/admin/organization/audit-logs.js.map +1 -1
- package/resources/admin/organization/audit-logs.mjs +1 -1
- package/resources/admin/organization/audit-logs.mjs.map +1 -1
- package/resources/admin/organization/certificates.js +1 -1
- package/resources/admin/organization/certificates.js.map +1 -1
- package/resources/admin/organization/certificates.mjs +1 -1
- package/resources/admin/organization/certificates.mjs.map +1 -1
- package/resources/admin/organization/data-retention.js +1 -1
- package/resources/admin/organization/data-retention.js.map +1 -1
- package/resources/admin/organization/data-retention.mjs +1 -1
- package/resources/admin/organization/data-retention.mjs.map +1 -1
- package/resources/admin/organization/groups/groups.js +1 -1
- package/resources/admin/organization/groups/groups.js.map +1 -1
- package/resources/admin/organization/groups/groups.mjs +1 -1
- package/resources/admin/organization/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/groups/index.js +1 -1
- package/resources/admin/organization/groups/index.js.map +1 -1
- package/resources/admin/organization/groups/index.mjs +1 -1
- package/resources/admin/organization/groups/index.mjs.map +1 -1
- package/resources/admin/organization/groups/roles.js +1 -1
- package/resources/admin/organization/groups/roles.js.map +1 -1
- package/resources/admin/organization/groups/roles.mjs +1 -1
- package/resources/admin/organization/groups/roles.mjs.map +1 -1
- package/resources/admin/organization/groups/users.js +1 -1
- package/resources/admin/organization/groups/users.js.map +1 -1
- package/resources/admin/organization/groups/users.mjs +1 -1
- package/resources/admin/organization/groups/users.mjs.map +1 -1
- package/resources/admin/organization/groups.js +1 -1
- package/resources/admin/organization/groups.js.map +1 -1
- package/resources/admin/organization/groups.mjs +1 -1
- package/resources/admin/organization/groups.mjs.map +1 -1
- package/resources/admin/organization/index.d.mts +2 -2
- package/resources/admin/organization/index.d.mts.map +1 -1
- package/resources/admin/organization/index.d.ts +2 -2
- package/resources/admin/organization/index.d.ts.map +1 -1
- package/resources/admin/organization/index.js +1 -1
- package/resources/admin/organization/index.js.map +1 -1
- package/resources/admin/organization/index.mjs +1 -1
- package/resources/admin/organization/index.mjs.map +1 -1
- package/resources/admin/organization/invites.js +1 -1
- package/resources/admin/organization/invites.js.map +1 -1
- package/resources/admin/organization/invites.mjs +1 -1
- package/resources/admin/organization/invites.mjs.map +1 -1
- package/resources/admin/organization/organization.d.mts +4 -4
- package/resources/admin/organization/organization.d.mts.map +1 -1
- package/resources/admin/organization/organization.d.ts +4 -4
- package/resources/admin/organization/organization.d.ts.map +1 -1
- package/resources/admin/organization/organization.js +1 -1
- package/resources/admin/organization/organization.js.map +1 -1
- package/resources/admin/organization/organization.mjs +1 -1
- package/resources/admin/organization/organization.mjs.map +1 -1
- package/resources/admin/organization/projects/api-keys.js +1 -1
- package/resources/admin/organization/projects/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/api-keys.mjs +1 -1
- package/resources/admin/organization/projects/api-keys.mjs.map +1 -1
- package/resources/admin/organization/projects/certificates.js +1 -1
- package/resources/admin/organization/projects/certificates.js.map +1 -1
- package/resources/admin/organization/projects/certificates.mjs +1 -1
- package/resources/admin/organization/projects/certificates.mjs.map +1 -1
- package/resources/admin/organization/projects/data-retention.js +1 -1
- package/resources/admin/organization/projects/data-retention.js.map +1 -1
- package/resources/admin/organization/projects/data-retention.mjs +1 -1
- package/resources/admin/organization/projects/data-retention.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/groups.js +1 -1
- package/resources/admin/organization/projects/groups/groups.js.map +1 -1
- package/resources/admin/organization/projects/groups/groups.mjs +1 -1
- package/resources/admin/organization/projects/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/index.js +1 -1
- package/resources/admin/organization/projects/groups/index.js.map +1 -1
- package/resources/admin/organization/projects/groups/index.mjs +1 -1
- package/resources/admin/organization/projects/groups/index.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/roles.js +1 -1
- package/resources/admin/organization/projects/groups/roles.js.map +1 -1
- package/resources/admin/organization/projects/groups/roles.mjs +1 -1
- package/resources/admin/organization/projects/groups/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/groups.js +1 -1
- package/resources/admin/organization/projects/groups.js.map +1 -1
- package/resources/admin/organization/projects/groups.mjs +1 -1
- package/resources/admin/organization/projects/groups.mjs.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.js +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.js.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.mjs +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.mjs.map +1 -1
- package/resources/admin/organization/projects/index.d.mts +1 -1
- package/resources/admin/organization/projects/index.d.mts.map +1 -1
- package/resources/admin/organization/projects/index.d.ts +1 -1
- package/resources/admin/organization/projects/index.d.ts.map +1 -1
- package/resources/admin/organization/projects/index.js +1 -1
- package/resources/admin/organization/projects/index.js.map +1 -1
- package/resources/admin/organization/projects/index.mjs +1 -1
- package/resources/admin/organization/projects/index.mjs.map +1 -1
- package/resources/admin/organization/projects/model-permissions.js +1 -1
- package/resources/admin/organization/projects/model-permissions.js.map +1 -1
- package/resources/admin/organization/projects/model-permissions.mjs +1 -1
- package/resources/admin/organization/projects/model-permissions.mjs.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +22 -5
- package/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/resources/admin/organization/projects/projects.d.ts +22 -5
- package/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.js +1 -1
- package/resources/admin/organization/projects/projects.js.map +1 -1
- package/resources/admin/organization/projects/projects.mjs +1 -1
- package/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/resources/admin/organization/projects/rate-limits.js +1 -1
- package/resources/admin/organization/projects/rate-limits.js.map +1 -1
- package/resources/admin/organization/projects/rate-limits.mjs +1 -1
- package/resources/admin/organization/projects/rate-limits.mjs.map +1 -1
- package/resources/admin/organization/projects/roles.js +1 -1
- package/resources/admin/organization/projects/roles.js.map +1 -1
- package/resources/admin/organization/projects/roles.mjs +1 -1
- package/resources/admin/organization/projects/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.js +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.mjs +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/index.js +1 -1
- package/resources/admin/organization/projects/service-accounts/index.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/index.mjs +1 -1
- package/resources/admin/organization/projects/service-accounts/index.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts.js +1 -1
- package/resources/admin/organization/projects/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts.mjs +1 -1
- package/resources/admin/organization/projects/service-accounts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.js +1 -1
- package/resources/admin/organization/projects/spend-alerts.js.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.mjs +1 -1
- package/resources/admin/organization/projects/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-limit.js +1 -1
- package/resources/admin/organization/projects/spend-limit.js.map +1 -1
- package/resources/admin/organization/projects/spend-limit.mjs +1 -1
- package/resources/admin/organization/projects/spend-limit.mjs.map +1 -1
- package/resources/admin/organization/projects/users/index.js +1 -1
- package/resources/admin/organization/projects/users/index.js.map +1 -1
- package/resources/admin/organization/projects/users/index.mjs +1 -1
- package/resources/admin/organization/projects/users/index.mjs.map +1 -1
- package/resources/admin/organization/projects/users/roles.js +1 -1
- package/resources/admin/organization/projects/users/roles.js.map +1 -1
- package/resources/admin/organization/projects/users/roles.mjs +1 -1
- package/resources/admin/organization/projects/users/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/users/users.js +1 -1
- package/resources/admin/organization/projects/users/users.js.map +1 -1
- package/resources/admin/organization/projects/users/users.mjs +1 -1
- package/resources/admin/organization/projects/users/users.mjs.map +1 -1
- package/resources/admin/organization/projects/users.js +1 -1
- package/resources/admin/organization/projects/users.js.map +1 -1
- package/resources/admin/organization/projects/users.mjs +1 -1
- package/resources/admin/organization/projects/users.mjs.map +1 -1
- package/resources/admin/organization/projects.js +1 -1
- package/resources/admin/organization/projects.js.map +1 -1
- package/resources/admin/organization/projects.mjs +1 -1
- package/resources/admin/organization/projects.mjs.map +1 -1
- package/resources/admin/organization/roles.js +1 -1
- package/resources/admin/organization/roles.js.map +1 -1
- package/resources/admin/organization/roles.mjs +1 -1
- package/resources/admin/organization/roles.mjs.map +1 -1
- package/resources/admin/organization/spend-alerts.js +1 -1
- package/resources/admin/organization/spend-alerts.js.map +1 -1
- package/resources/admin/organization/spend-alerts.mjs +1 -1
- package/resources/admin/organization/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/spend-limit.js +1 -1
- package/resources/admin/organization/spend-limit.js.map +1 -1
- package/resources/admin/organization/spend-limit.mjs +1 -1
- package/resources/admin/organization/spend-limit.mjs.map +1 -1
- package/resources/admin/organization/usage.d.mts +62 -1
- package/resources/admin/organization/usage.d.mts.map +1 -1
- package/resources/admin/organization/usage.d.ts +62 -1
- package/resources/admin/organization/usage.d.ts.map +1 -1
- package/resources/admin/organization/usage.js +1 -1
- package/resources/admin/organization/usage.js.map +1 -1
- package/resources/admin/organization/usage.mjs +1 -1
- package/resources/admin/organization/usage.mjs.map +1 -1
- package/resources/admin/organization/users/index.js +1 -1
- package/resources/admin/organization/users/index.js.map +1 -1
- package/resources/admin/organization/users/index.mjs +1 -1
- package/resources/admin/organization/users/index.mjs.map +1 -1
- package/resources/admin/organization/users/roles.js +1 -1
- package/resources/admin/organization/users/roles.js.map +1 -1
- package/resources/admin/organization/users/roles.mjs +1 -1
- package/resources/admin/organization/users/roles.mjs.map +1 -1
- package/resources/admin/organization/users/users.js +1 -1
- package/resources/admin/organization/users/users.js.map +1 -1
- package/resources/admin/organization/users/users.mjs +1 -1
- package/resources/admin/organization/users/users.mjs.map +1 -1
- package/resources/admin/organization/users.js +1 -1
- package/resources/admin/organization/users.js.map +1 -1
- package/resources/admin/organization/users.mjs +1 -1
- package/resources/admin/organization/users.mjs.map +1 -1
- package/resources/admin/organization.js +1 -1
- package/resources/admin/organization.js.map +1 -1
- package/resources/admin/organization.mjs +1 -1
- package/resources/admin/organization.mjs.map +1 -1
- package/resources/admin.js +1 -1
- package/resources/admin.js.map +1 -1
- package/resources/admin.mjs +1 -1
- package/resources/admin.mjs.map +1 -1
- package/resources/audio/audio.js +1 -1
- package/resources/audio/audio.js.map +1 -1
- package/resources/audio/audio.mjs +1 -1
- package/resources/audio/audio.mjs.map +1 -1
- package/resources/audio/index.js +1 -1
- package/resources/audio/index.js.map +1 -1
- package/resources/audio/index.mjs +1 -1
- package/resources/audio/index.mjs.map +1 -1
- package/resources/audio/speech.js +1 -1
- package/resources/audio/speech.js.map +1 -1
- package/resources/audio/speech.mjs +1 -1
- package/resources/audio/speech.mjs.map +1 -1
- package/resources/audio/transcriptions.d.mts +3 -1
- package/resources/audio/transcriptions.d.mts.map +1 -1
- package/resources/audio/transcriptions.d.ts +3 -1
- package/resources/audio/transcriptions.d.ts.map +1 -1
- package/resources/audio/transcriptions.js +1 -1
- package/resources/audio/transcriptions.js.map +1 -1
- package/resources/audio/transcriptions.mjs +1 -1
- package/resources/audio/transcriptions.mjs.map +1 -1
- package/resources/audio/translations.d.mts +3 -1
- package/resources/audio/translations.d.mts.map +1 -1
- package/resources/audio/translations.d.ts +3 -1
- package/resources/audio/translations.d.ts.map +1 -1
- package/resources/audio/translations.js +1 -1
- package/resources/audio/translations.js.map +1 -1
- package/resources/audio/translations.mjs +1 -1
- package/resources/audio/translations.mjs.map +1 -1
- package/resources/audio.js +1 -1
- package/resources/audio.js.map +1 -1
- package/resources/audio.mjs +1 -1
- package/resources/audio.mjs.map +1 -1
- package/resources/batches.js +1 -1
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +1 -1
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/assistants.js +1 -1
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +1 -1
- package/resources/beta/assistants.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 +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/chatkit/chatkit.js +1 -1
- package/resources/beta/chatkit/chatkit.js.map +1 -1
- package/resources/beta/chatkit/chatkit.mjs +1 -1
- package/resources/beta/chatkit/chatkit.mjs.map +1 -1
- package/resources/beta/chatkit/index.js +1 -1
- package/resources/beta/chatkit/index.js.map +1 -1
- package/resources/beta/chatkit/index.mjs +1 -1
- package/resources/beta/chatkit/index.mjs.map +1 -1
- package/resources/beta/chatkit/sessions.js +1 -1
- package/resources/beta/chatkit/sessions.js.map +1 -1
- package/resources/beta/chatkit/sessions.mjs +1 -1
- package/resources/beta/chatkit/sessions.mjs.map +1 -1
- package/resources/beta/chatkit/threads.js +1 -1
- package/resources/beta/chatkit/threads.js.map +1 -1
- package/resources/beta/chatkit/threads.mjs +1 -1
- package/resources/beta/chatkit/threads.mjs.map +1 -1
- package/resources/beta/chatkit.js +1 -1
- package/resources/beta/chatkit.js.map +1 -1
- package/resources/beta/chatkit.mjs +1 -1
- package/resources/beta/chatkit.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 +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/realtime/index.d.mts.map +1 -1
- package/resources/beta/realtime/index.d.ts.map +1 -1
- package/resources/beta/realtime/index.js +0 -1
- package/resources/beta/realtime/index.js.map +1 -1
- package/resources/beta/realtime/index.mjs +0 -1
- package/resources/beta/realtime/index.mjs.map +1 -1
- package/resources/beta/realtime/realtime.d.mts.map +1 -1
- package/resources/beta/realtime/realtime.d.ts.map +1 -1
- package/resources/beta/realtime/realtime.js +0 -1
- package/resources/beta/realtime/realtime.js.map +1 -1
- package/resources/beta/realtime/realtime.mjs +0 -1
- package/resources/beta/realtime/realtime.mjs.map +1 -1
- package/resources/beta/realtime/sessions.d.mts.map +1 -1
- package/resources/beta/realtime/sessions.d.ts.map +1 -1
- package/resources/beta/realtime/sessions.js +0 -1
- package/resources/beta/realtime/sessions.js.map +1 -1
- package/resources/beta/realtime/sessions.mjs +0 -1
- package/resources/beta/realtime/sessions.mjs.map +1 -1
- package/resources/beta/realtime/transcription-sessions.d.mts.map +1 -1
- package/resources/beta/realtime/transcription-sessions.d.ts.map +1 -1
- package/resources/beta/realtime/transcription-sessions.js +0 -1
- package/resources/beta/realtime/transcription-sessions.js.map +1 -1
- package/resources/beta/realtime/transcription-sessions.mjs +0 -1
- package/resources/beta/realtime/transcription-sessions.mjs.map +1 -1
- package/resources/beta/realtime.d.mts.map +1 -1
- package/resources/beta/realtime.d.ts.map +1 -1
- package/resources/beta/realtime.js +0 -1
- package/resources/beta/realtime.js.map +1 -1
- package/resources/beta/realtime.mjs +0 -1
- package/resources/beta/realtime.mjs.map +1 -1
- package/resources/beta/responses/index.d.mts +1 -1
- package/resources/beta/responses/index.d.mts.map +1 -1
- package/resources/beta/responses/index.d.ts +1 -1
- package/resources/beta/responses/index.d.ts.map +1 -1
- package/resources/beta/responses/index.js +1 -1
- package/resources/beta/responses/index.js.map +1 -1
- package/resources/beta/responses/index.mjs +1 -1
- package/resources/beta/responses/index.mjs.map +1 -1
- package/resources/beta/responses/input-items.js +1 -1
- package/resources/beta/responses/input-items.js.map +1 -1
- package/resources/beta/responses/input-items.mjs +1 -1
- package/resources/beta/responses/input-items.mjs.map +1 -1
- package/resources/beta/responses/input-tokens.js +1 -1
- package/resources/beta/responses/input-tokens.js.map +1 -1
- package/resources/beta/responses/input-tokens.mjs +1 -1
- package/resources/beta/responses/input-tokens.mjs.map +1 -1
- package/resources/beta/responses/internal-base.d.mts +6 -3
- package/resources/beta/responses/internal-base.d.mts.map +1 -1
- package/resources/beta/responses/internal-base.d.ts +6 -3
- package/resources/beta/responses/internal-base.d.ts.map +1 -1
- package/resources/beta/responses/internal-base.js +5 -2
- package/resources/beta/responses/internal-base.js.map +1 -1
- package/resources/beta/responses/internal-base.mjs +5 -2
- package/resources/beta/responses/internal-base.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +1569 -458
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +1569 -458
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/beta/responses/ws-base.js +1 -1
- package/resources/beta/responses/ws-base.js.map +1 -1
- package/resources/beta/responses/ws-base.mjs +1 -1
- package/resources/beta/responses/ws-base.mjs.map +1 -1
- package/resources/beta/responses/ws.js +1 -1
- package/resources/beta/responses/ws.js.map +1 -1
- package/resources/beta/responses/ws.mjs +1 -1
- package/resources/beta/responses/ws.mjs.map +1 -1
- package/resources/beta/responses.js +1 -1
- package/resources/beta/responses.js.map +1 -1
- package/resources/beta/responses.mjs +1 -1
- package/resources/beta/responses.mjs.map +1 -1
- package/resources/beta/threads/index.js +1 -1
- package/resources/beta/threads/index.js.map +1 -1
- package/resources/beta/threads/index.mjs +1 -1
- package/resources/beta/threads/index.mjs.map +1 -1
- package/resources/beta/threads/messages.js +1 -1
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +1 -1
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/index.d.mts +1 -1
- package/resources/beta/threads/runs/index.d.mts.map +1 -1
- package/resources/beta/threads/runs/index.d.ts +1 -1
- package/resources/beta/threads/runs/index.d.ts.map +1 -1
- package/resources/beta/threads/runs/index.js +1 -1
- package/resources/beta/threads/runs/index.js.map +1 -1
- package/resources/beta/threads/runs/index.mjs +1 -1
- package/resources/beta/threads/runs/index.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +3 -44
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +3 -44
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.js +1 -1
- package/resources/beta/threads/runs/steps.js.map +1 -1
- package/resources/beta/threads/runs/steps.mjs +1 -1
- package/resources/beta/threads/runs/steps.mjs.map +1 -1
- package/resources/beta/threads/runs.js +1 -1
- package/resources/beta/threads/runs.js.map +1 -1
- package/resources/beta/threads/runs.mjs +1 -1
- package/resources/beta/threads/runs.mjs.map +1 -1
- package/resources/beta/threads/threads.js +1 -1
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs +1 -1
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/beta/threads.js +1 -1
- package/resources/beta/threads.js.map +1 -1
- package/resources/beta/threads.mjs +1 -1
- package/resources/beta/threads.mjs.map +1 -1
- package/resources/beta.js +1 -1
- package/resources/beta.js.map +1 -1
- package/resources/beta.mjs +1 -1
- package/resources/beta.mjs.map +1 -1
- package/resources/chat/chat.js +1 -1
- package/resources/chat/chat.js.map +1 -1
- package/resources/chat/chat.mjs +1 -1
- package/resources/chat/chat.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +36 -3
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +36 -3
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +2 -5
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +2 -5
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/chat/completions/index.js +1 -1
- package/resources/chat/completions/index.js.map +1 -1
- package/resources/chat/completions/index.mjs +1 -1
- package/resources/chat/completions/index.mjs.map +1 -1
- package/resources/chat/completions/messages.js +1 -1
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs +1 -1
- package/resources/chat/completions/messages.mjs.map +1 -1
- package/resources/chat/completions.js +1 -1
- package/resources/chat/completions.js.map +1 -1
- package/resources/chat/completions.mjs +1 -1
- package/resources/chat/completions.mjs.map +1 -1
- package/resources/chat/index.js +1 -1
- package/resources/chat/index.js.map +1 -1
- package/resources/chat/index.mjs +1 -1
- package/resources/chat/index.mjs.map +1 -1
- package/resources/chat.js +1 -1
- package/resources/chat.js.map +1 -1
- package/resources/chat.mjs +1 -1
- package/resources/chat.mjs.map +1 -1
- package/resources/completions.d.mts +12 -0
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +12 -0
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +1 -1
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +1 -1
- package/resources/completions.mjs.map +1 -1
- package/resources/containers/containers.js +1 -1
- package/resources/containers/containers.js.map +1 -1
- package/resources/containers/containers.mjs +1 -1
- package/resources/containers/containers.mjs.map +1 -1
- package/resources/containers/files/content.js +1 -1
- package/resources/containers/files/content.js.map +1 -1
- package/resources/containers/files/content.mjs +1 -1
- package/resources/containers/files/content.mjs.map +1 -1
- package/resources/containers/files/files.js +1 -1
- package/resources/containers/files/files.js.map +1 -1
- package/resources/containers/files/files.mjs +1 -1
- package/resources/containers/files/files.mjs.map +1 -1
- package/resources/containers/files/index.js +1 -1
- package/resources/containers/files/index.js.map +1 -1
- package/resources/containers/files/index.mjs +1 -1
- package/resources/containers/files/index.mjs.map +1 -1
- package/resources/containers/files.js +1 -1
- package/resources/containers/files.js.map +1 -1
- package/resources/containers/files.mjs +1 -1
- package/resources/containers/files.mjs.map +1 -1
- package/resources/containers/index.js +1 -1
- package/resources/containers/index.js.map +1 -1
- package/resources/containers/index.mjs +1 -1
- package/resources/containers/index.mjs.map +1 -1
- package/resources/containers.js +1 -1
- package/resources/containers.js.map +1 -1
- package/resources/containers.mjs +1 -1
- package/resources/containers.mjs.map +1 -1
- package/resources/content-provenance-checks.js +1 -1
- package/resources/content-provenance-checks.js.map +1 -1
- package/resources/content-provenance-checks.mjs +1 -1
- package/resources/content-provenance-checks.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts +1 -1
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts +1 -1
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js +1 -1
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs +1 -1
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/index.js +1 -1
- package/resources/conversations/index.js.map +1 -1
- package/resources/conversations/index.mjs +1 -1
- package/resources/conversations/index.mjs.map +1 -1
- package/resources/conversations/items.d.mts +1 -1
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +1 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js +1 -1
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs +1 -1
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/conversations.js +1 -1
- package/resources/conversations.js.map +1 -1
- package/resources/conversations.mjs +1 -1
- package/resources/conversations.mjs.map +1 -1
- package/resources/embeddings.d.mts +9 -0
- package/resources/embeddings.d.mts.map +1 -1
- package/resources/embeddings.d.ts +9 -0
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/embeddings.js +3 -47
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +3 -47
- package/resources/embeddings.mjs.map +1 -1
- package/resources/evals/evals.js +1 -1
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs +1 -1
- package/resources/evals/evals.mjs.map +1 -1
- package/resources/evals/index.js +1 -1
- package/resources/evals/index.js.map +1 -1
- package/resources/evals/index.mjs +1 -1
- package/resources/evals/index.mjs.map +1 -1
- package/resources/evals/runs/index.js +1 -1
- package/resources/evals/runs/index.js.map +1 -1
- package/resources/evals/runs/index.mjs +1 -1
- package/resources/evals/runs/index.mjs.map +1 -1
- package/resources/evals/runs/output-items.js +1 -1
- package/resources/evals/runs/output-items.js.map +1 -1
- package/resources/evals/runs/output-items.mjs +1 -1
- package/resources/evals/runs/output-items.mjs.map +1 -1
- package/resources/evals/runs/runs.js +1 -1
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +1 -1
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/evals/runs.js +1 -1
- package/resources/evals/runs.js.map +1 -1
- package/resources/evals/runs.mjs +1 -1
- package/resources/evals/runs.mjs.map +1 -1
- package/resources/evals.js +1 -1
- package/resources/evals.js.map +1 -1
- package/resources/evals.mjs +1 -1
- package/resources/evals.mjs.map +1 -1
- package/resources/files.d.mts +1 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +1 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +4 -17
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +4 -17
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/alpha/alpha.js +1 -1
- package/resources/fine-tuning/alpha/alpha.js.map +1 -1
- package/resources/fine-tuning/alpha/alpha.mjs +1 -1
- package/resources/fine-tuning/alpha/alpha.mjs.map +1 -1
- package/resources/fine-tuning/alpha/graders.js +1 -1
- package/resources/fine-tuning/alpha/graders.js.map +1 -1
- package/resources/fine-tuning/alpha/graders.mjs +1 -1
- package/resources/fine-tuning/alpha/graders.mjs.map +1 -1
- package/resources/fine-tuning/alpha/index.js +1 -1
- package/resources/fine-tuning/alpha/index.js.map +1 -1
- package/resources/fine-tuning/alpha/index.mjs +1 -1
- package/resources/fine-tuning/alpha/index.mjs.map +1 -1
- package/resources/fine-tuning/alpha.js +1 -1
- package/resources/fine-tuning/alpha.js.map +1 -1
- package/resources/fine-tuning/alpha.mjs +1 -1
- package/resources/fine-tuning/alpha.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/checkpoints.js +1 -1
- package/resources/fine-tuning/checkpoints/checkpoints.js.map +1 -1
- package/resources/fine-tuning/checkpoints/checkpoints.mjs +1 -1
- package/resources/fine-tuning/checkpoints/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/index.js +1 -1
- package/resources/fine-tuning/checkpoints/index.js.map +1 -1
- package/resources/fine-tuning/checkpoints/index.mjs +1 -1
- package/resources/fine-tuning/checkpoints/index.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints.js +1 -1
- package/resources/fine-tuning/checkpoints.js.map +1 -1
- package/resources/fine-tuning/checkpoints.mjs +1 -1
- package/resources/fine-tuning/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/fine-tuning.js +1 -1
- package/resources/fine-tuning/fine-tuning.js.map +1 -1
- package/resources/fine-tuning/fine-tuning.mjs +1 -1
- package/resources/fine-tuning/fine-tuning.mjs.map +1 -1
- package/resources/fine-tuning/index.js +1 -1
- package/resources/fine-tuning/index.js.map +1 -1
- package/resources/fine-tuning/index.mjs +1 -1
- package/resources/fine-tuning/index.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/index.js +1 -1
- package/resources/fine-tuning/jobs/index.js.map +1 -1
- package/resources/fine-tuning/jobs/index.mjs +1 -1
- package/resources/fine-tuning/jobs/index.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +1 -1
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/fine-tuning/jobs.js +1 -1
- package/resources/fine-tuning/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs.mjs +1 -1
- package/resources/fine-tuning/jobs.mjs.map +1 -1
- package/resources/fine-tuning/methods.js +1 -1
- package/resources/fine-tuning/methods.js.map +1 -1
- package/resources/fine-tuning/methods.mjs +1 -1
- package/resources/fine-tuning/methods.mjs.map +1 -1
- package/resources/fine-tuning.js +1 -1
- package/resources/fine-tuning.js.map +1 -1
- package/resources/fine-tuning.mjs +1 -1
- package/resources/fine-tuning.mjs.map +1 -1
- package/resources/graders/grader-models.js +1 -1
- package/resources/graders/grader-models.js.map +1 -1
- package/resources/graders/grader-models.mjs +1 -1
- package/resources/graders/grader-models.mjs.map +1 -1
- package/resources/graders/graders.js +1 -1
- package/resources/graders/graders.js.map +1 -1
- package/resources/graders/graders.mjs +1 -1
- package/resources/graders/graders.mjs.map +1 -1
- package/resources/graders/index.js +1 -1
- package/resources/graders/index.js.map +1 -1
- package/resources/graders/index.mjs +1 -1
- package/resources/graders/index.mjs.map +1 -1
- package/resources/graders.js +1 -1
- package/resources/graders.js.map +1 -1
- package/resources/graders.mjs +1 -1
- package/resources/graders.mjs.map +1 -1
- package/resources/images.d.mts +12 -22
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +12 -22
- 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/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +4 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +4 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +1 -1
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +1 -1
- package/resources/models.mjs.map +1 -1
- package/resources/moderations.js +1 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +1 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/realtime/calls.d.mts +23 -1
- package/resources/realtime/calls.d.mts.map +1 -1
- package/resources/realtime/calls.d.ts +23 -1
- package/resources/realtime/calls.d.ts.map +1 -1
- package/resources/realtime/calls.js +25 -1
- package/resources/realtime/calls.js.map +1 -1
- package/resources/realtime/calls.mjs +25 -1
- package/resources/realtime/calls.mjs.map +1 -1
- package/resources/realtime/client-secrets.js +1 -1
- package/resources/realtime/client-secrets.js.map +1 -1
- package/resources/realtime/client-secrets.mjs +1 -1
- package/resources/realtime/client-secrets.mjs.map +1 -1
- package/resources/realtime/index.d.mts +1 -1
- package/resources/realtime/index.d.mts.map +1 -1
- package/resources/realtime/index.d.ts +1 -1
- package/resources/realtime/index.d.ts.map +1 -1
- package/resources/realtime/index.js +1 -1
- package/resources/realtime/index.js.map +1 -1
- package/resources/realtime/index.mjs +2 -2
- package/resources/realtime/index.mjs.map +1 -1
- package/resources/realtime/realtime.d.mts +5 -4
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +5 -4
- package/resources/realtime/realtime.d.ts.map +1 -1
- package/resources/realtime/realtime.js +1 -1
- package/resources/realtime/realtime.js.map +1 -1
- package/resources/realtime/realtime.mjs +1 -1
- package/resources/realtime/realtime.mjs.map +1 -1
- package/resources/realtime.js +1 -1
- package/resources/realtime.js.map +1 -1
- package/resources/realtime.mjs +1 -1
- package/resources/realtime.mjs.map +1 -1
- package/resources/responses/index.js +1 -1
- package/resources/responses/index.js.map +1 -1
- package/resources/responses/index.mjs +1 -1
- package/resources/responses/index.mjs.map +1 -1
- package/resources/responses/input-items.js +1 -1
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +1 -1
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/input-tokens.js +1 -1
- package/resources/responses/input-tokens.js.map +1 -1
- package/resources/responses/input-tokens.mjs +1 -1
- package/resources/responses/input-tokens.mjs.map +1 -1
- package/resources/responses/internal-base.d.mts +6 -3
- package/resources/responses/internal-base.d.mts.map +1 -1
- package/resources/responses/internal-base.d.ts +6 -3
- package/resources/responses/internal-base.d.ts.map +1 -1
- package/resources/responses/internal-base.js +5 -2
- package/resources/responses/internal-base.js.map +1 -1
- package/resources/responses/internal-base.mjs +5 -2
- package/resources/responses/internal-base.mjs.map +1 -1
- package/resources/responses/responses.d.mts +1194 -167
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +1194 -167
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/responses/ws-base.js +1 -1
- package/resources/responses/ws-base.js.map +1 -1
- package/resources/responses/ws-base.mjs +1 -1
- package/resources/responses/ws-base.mjs.map +1 -1
- package/resources/responses/ws.js +1 -1
- package/resources/responses/ws.js.map +1 -1
- package/resources/responses/ws.mjs +1 -1
- package/resources/responses/ws.mjs.map +1 -1
- package/resources/responses.js +1 -1
- package/resources/responses.js.map +1 -1
- package/resources/responses.mjs +1 -1
- package/resources/responses.mjs.map +1 -1
- package/resources/shared.d.mts +3 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +3 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/skills/content.js +1 -1
- package/resources/skills/content.js.map +1 -1
- package/resources/skills/content.mjs +1 -1
- package/resources/skills/content.mjs.map +1 -1
- package/resources/skills/index.js +1 -1
- package/resources/skills/index.js.map +1 -1
- package/resources/skills/index.mjs +1 -1
- package/resources/skills/index.mjs.map +1 -1
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +4 -2
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +4 -2
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions/content.js +1 -1
- package/resources/skills/versions/content.js.map +1 -1
- package/resources/skills/versions/content.mjs +1 -1
- package/resources/skills/versions/content.mjs.map +1 -1
- package/resources/skills/versions/index.js +1 -1
- package/resources/skills/versions/index.js.map +1 -1
- package/resources/skills/versions/index.mjs +1 -1
- package/resources/skills/versions/index.mjs.map +1 -1
- package/resources/skills/versions/versions.d.mts.map +1 -1
- package/resources/skills/versions/versions.d.ts.map +1 -1
- package/resources/skills/versions/versions.js +4 -2
- package/resources/skills/versions/versions.js.map +1 -1
- package/resources/skills/versions/versions.mjs +4 -2
- package/resources/skills/versions/versions.mjs.map +1 -1
- package/resources/skills/versions.js +1 -1
- package/resources/skills/versions.js.map +1 -1
- package/resources/skills/versions.mjs +1 -1
- package/resources/skills/versions.mjs.map +1 -1
- package/resources/skills.js +1 -1
- package/resources/skills.js.map +1 -1
- package/resources/skills.mjs +1 -1
- package/resources/skills.mjs.map +1 -1
- package/resources/uploads/index.js +1 -1
- package/resources/uploads/index.js.map +1 -1
- package/resources/uploads/index.mjs +1 -1
- package/resources/uploads/index.mjs.map +1 -1
- package/resources/uploads/parts.js +1 -1
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +1 -1
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.js +1 -1
- package/resources/uploads/uploads.js.map +1 -1
- package/resources/uploads/uploads.mjs +1 -1
- package/resources/uploads/uploads.mjs.map +1 -1
- package/resources/uploads.js +1 -1
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +1 -1
- package/resources/uploads.mjs.map +1 -1
- package/resources/vector-stores/file-batches.d.mts.map +1 -1
- package/resources/vector-stores/file-batches.d.ts.map +1 -1
- package/resources/vector-stores/file-batches.js +6 -63
- package/resources/vector-stores/file-batches.js.map +1 -1
- package/resources/vector-stores/file-batches.mjs +6 -63
- package/resources/vector-stores/file-batches.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +1 -1
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +1 -1
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +3 -36
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +3 -36
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.js +1 -1
- package/resources/vector-stores/index.js.map +1 -1
- package/resources/vector-stores/index.mjs +1 -1
- package/resources/vector-stores/index.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.js +1 -1
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +1 -1
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/vector-stores.js +1 -1
- package/resources/vector-stores.js.map +1 -1
- package/resources/vector-stores.mjs +1 -1
- package/resources/vector-stores.mjs.map +1 -1
- package/resources/videos.d.mts +23 -0
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +23 -0
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +24 -1
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +24 -1
- package/resources/videos.mjs.map +1 -1
- package/resources/webhooks/index.js +1 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -1
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +6 -43
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +6 -43
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/webhooks.js +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/_vendor/partial-json-parser/parser.ts +63 -33
- package/src/_vendor/zod-to-json-schema/Options.ts +30 -18
- package/src/_vendor/zod-to-json-schema/Refs.ts +7 -6
- package/src/_vendor/zod-to-json-schema/errorMessages.ts +5 -3
- package/src/_vendor/zod-to-json-schema/index.ts +3 -1
- package/src/_vendor/zod-to-json-schema/parseDef.ts +150 -64
- package/src/_vendor/zod-to-json-schema/parsers/array.ts +8 -5
- package/src/_vendor/zod-to-json-schema/parsers/bigint.ts +18 -12
- package/src/_vendor/zod-to-json-schema/parsers/branded.ts +2 -2
- package/src/_vendor/zod-to-json-schema/parsers/catch.ts +4 -5
- package/src/_vendor/zod-to-json-schema/parsers/date.ts +16 -10
- package/src/_vendor/zod-to-json-schema/parsers/default.ts +4 -3
- package/src/_vendor/zod-to-json-schema/parsers/effects.ts +4 -3
- package/src/_vendor/zod-to-json-schema/parsers/enum.ts +1 -1
- package/src/_vendor/zod-to-json-schema/parsers/intersection.ts +12 -9
- package/src/_vendor/zod-to-json-schema/parsers/literal.ts +11 -2
- package/src/_vendor/zod-to-json-schema/parsers/map.ts +6 -4
- package/src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts +10 -11
- package/src/_vendor/zod-to-json-schema/parsers/null.ts +3 -3
- package/src/_vendor/zod-to-json-schema/parsers/nullable.ts +8 -5
- package/src/_vendor/zod-to-json-schema/parsers/number.ts +15 -8
- package/src/_vendor/zod-to-json-schema/parsers/object.ts +57 -54
- package/src/_vendor/zod-to-json-schema/parsers/optional.ts +6 -5
- package/src/_vendor/zod-to-json-schema/parsers/pipeline.ts +5 -4
- package/src/_vendor/zod-to-json-schema/parsers/promise.ts +4 -3
- package/src/_vendor/zod-to-json-schema/parsers/readonly.ts +4 -5
- package/src/_vendor/zod-to-json-schema/parsers/record.ts +20 -19
- package/src/_vendor/zod-to-json-schema/parsers/set.ts +6 -4
- package/src/_vendor/zod-to-json-schema/parsers/string.ts +60 -36
- package/src/_vendor/zod-to-json-schema/parsers/tuple.ts +18 -18
- package/src/_vendor/zod-to-json-schema/parsers/union.ts +48 -33
- package/src/_vendor/zod-to-json-schema/util.ts +10 -6
- package/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +119 -45
- package/src/auth/index.ts +6 -1
- package/src/auth/subject-token-providers.ts +267 -12
- package/src/auth/types.ts +42 -5
- package/src/auth/workload-identity-auth.ts +164 -22
- package/src/auth/x509-transport.ts +49 -0
- package/src/azure.ts +81 -26
- package/src/bedrock.ts +93 -9
- package/src/beta/realtime/internal-base.ts +94 -15
- package/src/beta/realtime/websocket.ts +237 -44
- package/src/beta/realtime/ws.ts +124 -23
- package/src/client.ts +760 -104
- package/src/core/EventEmitter.ts +136 -24
- package/src/core/api-promise.ts +0 -2
- package/src/core/error.ts +6 -8
- package/src/core/pagination.ts +3 -5
- package/src/core/resource.ts +0 -2
- package/src/core/streaming.ts +369 -91
- package/src/helpers/audio.ts +177 -31
- package/src/helpers/standard-schema.ts +294 -57
- package/src/helpers/zod-v3-strict-schema.ts +514 -0
- package/src/helpers/zod.ts +151 -41
- package/src/index.ts +2 -4
- package/src/internal/assistant-stream-delta.ts +434 -0
- package/src/internal/auth/x509-token-exchange.ts +310 -0
- package/src/internal/auth/x509-transport-capability.ts +219 -0
- package/src/internal/auth/x509-transport-registry.ts +118 -0
- package/src/internal/auth/x509-transport-state-browser.ts +36 -0
- package/src/internal/auth/x509-transport-state.cts +36 -0
- package/src/internal/auth/x509-workload-identity-auth.ts +958 -0
- package/src/internal/bedrock.ts +410 -18
- package/src/internal/builtin-types.ts +0 -2
- package/src/internal/data-residency.ts +44 -0
- package/src/internal/decoders/line.ts +144 -61
- package/src/internal/detect-platform.ts +1 -3
- package/src/internal/errors.ts +0 -2
- package/src/internal/headers.ts +0 -2
- package/src/internal/multipart-encoding.ts +53 -0
- package/src/internal/parse.ts +31 -8
- package/src/internal/provider.ts +29 -0
- package/src/internal/qs/formats.ts +1 -1
- package/src/internal/qs/stringify.ts +54 -53
- package/src/internal/qs/types.ts +1 -1
- package/src/internal/qs/utils.ts +432 -54
- package/src/internal/request-options.ts +52 -3
- package/src/internal/responses/canonical-output-text.ts +160 -0
- package/src/internal/responses/output-text-index.ts +84 -0
- package/src/internal/responses/response-accumulator.ts +1232 -0
- package/src/internal/shim-types.ts +3 -4
- package/src/internal/shims.ts +0 -2
- package/src/internal/stream-utils.ts +37 -5
- package/src/internal/to-file.ts +87 -33
- package/src/internal/types.ts +21 -29
- package/src/internal/uploads.ts +323 -86
- package/src/internal/utils/base64.ts +0 -2
- package/src/internal/utils/bytes.ts +5 -0
- package/src/internal/utils/env.ts +9 -7
- package/src/internal/utils/log.ts +8 -12
- package/src/internal/utils/path.ts +51 -32
- package/src/internal/utils/query.ts +0 -2
- package/src/internal/utils/sleep.ts +0 -2
- package/src/internal/utils/uuid.ts +0 -2
- package/src/internal/utils/values.ts +0 -2
- package/src/internal/utils.ts +0 -2
- package/src/internal/ws-adapter-browser.ts +81 -24
- package/src/internal/ws-adapter-node.ts +105 -26
- package/src/internal/ws-adapter.ts +23 -0
- package/src/internal/ws.ts +153 -50
- package/src/lib/.keep +2 -2
- package/src/lib/AbstractChatCompletionRunner.ts +140 -62
- package/src/lib/AssistantStream.ts +498 -239
- package/src/lib/ChatCompletionRunner.ts +24 -16
- package/src/lib/ChatCompletionStream.ts +1783 -249
- package/src/lib/ChatCompletionStreamingRunner.ts +54 -94
- package/src/lib/EventEmitter.ts +127 -27
- package/src/lib/EventStream.ts +1704 -62
- package/src/lib/ResponsesParser.ts +95 -40
- package/src/lib/RunnableFunction.ts +62 -32
- package/src/lib/Util.ts +7 -5
- package/src/lib/assistant-run-polling.ts +27 -0
- package/src/lib/chatCompletionUtils.ts +9 -10
- package/src/lib/embeddings.ts +65 -0
- package/src/lib/file-processing.ts +36 -0
- package/src/lib/jsonschema.ts +74 -34
- package/src/lib/parser.ts +197 -61
- package/src/lib/polling.ts +144 -0
- package/src/lib/responses/EventTypes.ts +16 -1
- package/src/lib/responses/ResponseAccumulator.ts +8 -402
- package/src/lib/responses/ResponseInputItems.ts +1 -0
- package/src/lib/responses/ResponseStream.ts +105 -91
- package/src/lib/transform.ts +160 -108
- package/src/lib/vector-store-polling.ts +46 -0
- package/src/lib/vector-store-upload.ts +53 -0
- package/src/lib/webhook-signature.ts +164 -0
- package/src/providers/bedrock/aws.ts +114 -41
- package/src/providers/bedrock.ts +22 -4
- package/src/realtime/internal-base.ts +206 -41
- package/src/realtime/websocket.ts +226 -41
- package/src/realtime/ws.ts +112 -18
- package/src/resources/admin/admin.ts +1 -1
- package/src/resources/admin/index.ts +1 -1
- package/src/resources/admin/organization/admin-api-keys.ts +1 -1
- package/src/resources/admin/organization/audit-logs.ts +5 -1
- package/src/resources/admin/organization/certificates.ts +1 -1
- package/src/resources/admin/organization/data-retention.ts +1 -1
- package/src/resources/admin/organization/groups/groups.ts +1 -1
- package/src/resources/admin/organization/groups/index.ts +1 -1
- package/src/resources/admin/organization/groups/roles.ts +1 -1
- package/src/resources/admin/organization/groups/users.ts +1 -1
- package/src/resources/admin/organization/groups.ts +1 -1
- package/src/resources/admin/organization/index.ts +3 -1
- package/src/resources/admin/organization/invites.ts +1 -1
- package/src/resources/admin/organization/organization.ts +5 -1
- package/src/resources/admin/organization/projects/api-keys.ts +1 -1
- package/src/resources/admin/organization/projects/certificates.ts +1 -1
- package/src/resources/admin/organization/projects/data-retention.ts +1 -1
- package/src/resources/admin/organization/projects/groups/groups.ts +1 -1
- package/src/resources/admin/organization/projects/groups/index.ts +1 -1
- package/src/resources/admin/organization/projects/groups/roles.ts +1 -1
- package/src/resources/admin/organization/projects/groups.ts +1 -1
- package/src/resources/admin/organization/projects/hosted-tool-permissions.ts +1 -1
- package/src/resources/admin/organization/projects/index.ts +2 -1
- package/src/resources/admin/organization/projects/model-permissions.ts +1 -1
- package/src/resources/admin/organization/projects/projects.ts +38 -5
- package/src/resources/admin/organization/projects/rate-limits.ts +1 -1
- package/src/resources/admin/organization/projects/roles.ts +1 -1
- package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +1 -1
- package/src/resources/admin/organization/projects/service-accounts/index.ts +1 -1
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +1 -1
- package/src/resources/admin/organization/projects/service-accounts.ts +1 -1
- package/src/resources/admin/organization/projects/spend-alerts.ts +1 -1
- package/src/resources/admin/organization/projects/spend-limit.ts +1 -1
- package/src/resources/admin/organization/projects/users/index.ts +1 -1
- package/src/resources/admin/organization/projects/users/roles.ts +1 -1
- package/src/resources/admin/organization/projects/users/users.ts +1 -1
- package/src/resources/admin/organization/projects/users.ts +1 -1
- package/src/resources/admin/organization/projects.ts +1 -1
- package/src/resources/admin/organization/roles.ts +1 -1
- package/src/resources/admin/organization/spend-alerts.ts +1 -1
- package/src/resources/admin/organization/spend-limit.ts +1 -1
- package/src/resources/admin/organization/usage.ts +84 -1
- package/src/resources/admin/organization/users/index.ts +1 -1
- package/src/resources/admin/organization/users/roles.ts +1 -1
- package/src/resources/admin/organization/users/users.ts +1 -1
- package/src/resources/admin/organization/users.ts +1 -1
- package/src/resources/admin/organization.ts +1 -1
- package/src/resources/admin.ts +1 -1
- package/src/resources/audio/audio.ts +1 -1
- package/src/resources/audio/index.ts +1 -1
- package/src/resources/audio/speech.ts +1 -1
- package/src/resources/audio/transcriptions.ts +4 -2
- package/src/resources/audio/translations.ts +4 -2
- package/src/resources/audio.ts +1 -1
- package/src/resources/batches.ts +1 -1
- package/src/resources/beta/assistants.ts +1 -1
- package/src/resources/beta/beta.ts +17 -1
- package/src/resources/beta/chatkit/chatkit.ts +1 -1
- package/src/resources/beta/chatkit/index.ts +1 -1
- package/src/resources/beta/chatkit/sessions.ts +1 -1
- package/src/resources/beta/chatkit/threads.ts +1 -1
- package/src/resources/beta/chatkit.ts +1 -1
- package/src/resources/beta/index.ts +9 -1
- package/src/resources/beta/realtime/index.ts +0 -2
- package/src/resources/beta/realtime/realtime.ts +0 -2
- package/src/resources/beta/realtime/sessions.ts +0 -2
- package/src/resources/beta/realtime/transcription-sessions.ts +0 -2
- package/src/resources/beta/realtime.ts +0 -2
- package/src/resources/beta/responses/index.ts +9 -1
- package/src/resources/beta/responses/input-items.ts +1 -1
- package/src/resources/beta/responses/input-tokens.ts +1 -1
- package/src/resources/beta/responses/internal-base.ts +11 -10
- package/src/resources/beta/responses/responses.ts +2289 -969
- package/src/resources/beta/responses/ws-base.ts +1 -1
- package/src/resources/beta/responses/ws.ts +1 -1
- package/src/resources/beta/responses.ts +1 -1
- package/src/resources/beta/threads/index.ts +1 -1
- package/src/resources/beta/threads/messages.ts +1 -1
- package/src/resources/beta/threads/runs/index.ts +2 -2
- package/src/resources/beta/threads/runs/runs.ts +3 -46
- package/src/resources/beta/threads/runs/steps.ts +1 -1
- package/src/resources/beta/threads/runs.ts +1 -1
- package/src/resources/beta/threads/threads.ts +1 -1
- package/src/resources/beta/threads.ts +1 -1
- package/src/resources/beta.ts +1 -1
- package/src/resources/chat/chat.ts +1 -1
- package/src/resources/chat/completions/completions.ts +46 -8
- package/src/resources/chat/completions/index.ts +1 -1
- package/src/resources/chat/completions/messages.ts +1 -1
- package/src/resources/chat/completions.ts +1 -1
- package/src/resources/chat/index.ts +1 -1
- package/src/resources/chat.ts +1 -1
- package/src/resources/completions.ts +16 -1
- package/src/resources/containers/containers.ts +1 -1
- package/src/resources/containers/files/content.ts +1 -1
- package/src/resources/containers/files/files.ts +1 -1
- package/src/resources/containers/files/index.ts +1 -1
- package/src/resources/containers/files.ts +1 -1
- package/src/resources/containers/index.ts +1 -1
- package/src/resources/containers.ts +1 -1
- package/src/resources/content-provenance-checks.ts +1 -1
- package/src/resources/conversations/conversations.ts +2 -2
- package/src/resources/conversations/index.ts +1 -1
- package/src/resources/conversations/items.ts +2 -2
- package/src/resources/conversations.ts +1 -1
- package/src/resources/embeddings.ts +16 -43
- package/src/resources/evals/evals.ts +1 -1
- package/src/resources/evals/index.ts +1 -1
- package/src/resources/evals/runs/index.ts +1 -1
- package/src/resources/evals/runs/output-items.ts +1 -1
- package/src/resources/evals/runs/runs.ts +1 -1
- package/src/resources/evals/runs.ts +1 -1
- package/src/resources/evals.ts +1 -1
- package/src/resources/files.ts +4 -21
- package/src/resources/fine-tuning/alpha/alpha.ts +1 -1
- package/src/resources/fine-tuning/alpha/graders.ts +1 -1
- package/src/resources/fine-tuning/alpha/index.ts +1 -1
- package/src/resources/fine-tuning/alpha.ts +1 -1
- package/src/resources/fine-tuning/checkpoints/checkpoints.ts +1 -1
- package/src/resources/fine-tuning/checkpoints/index.ts +1 -1
- package/src/resources/fine-tuning/checkpoints/permissions.ts +1 -1
- package/src/resources/fine-tuning/checkpoints.ts +1 -1
- package/src/resources/fine-tuning/fine-tuning.ts +1 -1
- package/src/resources/fine-tuning/index.ts +1 -1
- package/src/resources/fine-tuning/jobs/checkpoints.ts +1 -1
- package/src/resources/fine-tuning/jobs/index.ts +1 -1
- package/src/resources/fine-tuning/jobs/jobs.ts +1 -1
- package/src/resources/fine-tuning/jobs.ts +1 -1
- package/src/resources/fine-tuning/methods.ts +1 -1
- package/src/resources/fine-tuning.ts +1 -1
- package/src/resources/graders/grader-models.ts +1 -1
- package/src/resources/graders/graders.ts +1 -1
- package/src/resources/graders/index.ts +1 -1
- package/src/resources/graders.ts +1 -1
- package/src/resources/images.ts +20 -24
- package/src/resources/index.ts +1 -1
- package/src/resources/models.ts +6 -1
- package/src/resources/moderations.ts +1 -1
- package/src/resources/realtime/api.md +1 -0
- package/src/resources/realtime/calls.ts +47 -1
- package/src/resources/realtime/client-secrets.ts +1 -1
- package/src/resources/realtime/index.ts +8 -2
- package/src/resources/realtime/realtime.ts +6 -4
- package/src/resources/realtime.ts +1 -1
- package/src/resources/responses/api.md +8 -0
- package/src/resources/responses/index.ts +1 -1
- package/src/resources/responses/input-items.ts +1 -1
- package/src/resources/responses/input-tokens.ts +1 -1
- package/src/resources/responses/internal-base.ts +11 -10
- package/src/resources/responses/responses.ts +1920 -722
- package/src/resources/responses/ws-base.ts +1 -1
- package/src/resources/responses/ws.ts +1 -1
- package/src/resources/responses.ts +1 -1
- package/src/resources/shared.ts +14 -3
- package/src/resources/skills/content.ts +1 -1
- package/src/resources/skills/index.ts +1 -1
- package/src/resources/skills/skills.ts +4 -2
- package/src/resources/skills/versions/content.ts +1 -1
- package/src/resources/skills/versions/index.ts +1 -1
- package/src/resources/skills/versions/versions.ts +4 -2
- package/src/resources/skills/versions.ts +1 -1
- package/src/resources/skills.ts +1 -1
- package/src/resources/uploads/index.ts +1 -1
- package/src/resources/uploads/parts.ts +1 -1
- package/src/resources/uploads/uploads.ts +1 -1
- package/src/resources/uploads.ts +1 -1
- package/src/resources/vector-stores/file-batches.ts +13 -78
- package/src/resources/vector-stores/files.ts +4 -44
- package/src/resources/vector-stores/index.ts +1 -1
- package/src/resources/vector-stores/vector-stores.ts +1 -1
- package/src/resources/vector-stores.ts +1 -1
- package/src/resources/videos.ts +24 -1
- package/src/resources/webhooks/index.ts +1 -1
- package/src/resources/webhooks/webhooks.ts +6 -65
- package/src/resources/webhooks.ts +1 -1
- package/src/tsconfig.dist-src.d.ts +29 -0
- package/src/tsconfig.json +6 -3
- package/src/version.ts +2 -1
- package/version.d.mts +2 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +2 -1
- package/version.d.ts.map +1 -1
- package/version.js +2 -1
- package/version.js.map +1 -1
- package/version.mjs +2 -1
- package/version.mjs.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by
|
|
1
|
+
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
type ExtractParsedContentFromParams,
|
|
@@ -863,6 +863,8 @@ export interface FunctionTool {
|
|
|
863
863
|
output_schema?: { [key: string]: unknown } | null;
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
+
export type ImageDetail = 'low' | 'high' | 'auto' | 'original';
|
|
867
|
+
|
|
866
868
|
export interface InlineSkill {
|
|
867
869
|
/**
|
|
868
870
|
* The description of the skill.
|
|
@@ -934,6 +936,35 @@ export interface LocalSkill {
|
|
|
934
936
|
path: string;
|
|
935
937
|
}
|
|
936
938
|
|
|
939
|
+
export type McpToolCallError =
|
|
940
|
+
| McpToolCallError.McpProtocolError
|
|
941
|
+
| McpToolCallError.McpToolExecutionError
|
|
942
|
+
| McpToolCallError.HTTPError;
|
|
943
|
+
|
|
944
|
+
export namespace McpToolCallError {
|
|
945
|
+
export interface McpProtocolError {
|
|
946
|
+
code: number;
|
|
947
|
+
|
|
948
|
+
message: string;
|
|
949
|
+
|
|
950
|
+
type: 'mcp_protocol_error';
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export interface McpToolExecutionError {
|
|
954
|
+
content: unknown;
|
|
955
|
+
|
|
956
|
+
type: 'mcp_tool_execution_error';
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
export interface HTTPError {
|
|
960
|
+
code: number;
|
|
961
|
+
|
|
962
|
+
message: string;
|
|
963
|
+
|
|
964
|
+
type: 'http_error';
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
|
|
937
968
|
/**
|
|
938
969
|
* Groups function/custom tools under a shared namespace.
|
|
939
970
|
*/
|
|
@@ -1235,12 +1266,16 @@ export interface Response {
|
|
|
1235
1266
|
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
1236
1267
|
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
1237
1268
|
* request.
|
|
1269
|
+
* - If set to 'ultrafast', then the request will be processed with the
|
|
1270
|
+
* access-controlled Ultrafast Processing service tier. This tier is currently
|
|
1271
|
+
* available for `gpt-5.6-sol`; a response served through it will show
|
|
1272
|
+
* `service_tier=ultrafast`.
|
|
1238
1273
|
* - When not set, the default behavior is 'auto'.
|
|
1239
1274
|
*
|
|
1240
1275
|
* When this parameter is set, the response body will include the `service_tier`
|
|
1241
1276
|
* utilized.
|
|
1242
1277
|
*/
|
|
1243
|
-
service_tier?:
|
|
1278
|
+
service_tier?: ServiceTier | null;
|
|
1244
1279
|
|
|
1245
1280
|
/**
|
|
1246
1281
|
* The status of the response generation. One of `completed`, `failed`,
|
|
@@ -3440,11 +3475,6 @@ export interface ResponseFunctionToolCallOutputItem {
|
|
|
3440
3475
|
*/
|
|
3441
3476
|
id: string;
|
|
3442
3477
|
|
|
3443
|
-
/**
|
|
3444
|
-
* The unique ID of the function tool call generated by the model.
|
|
3445
|
-
*/
|
|
3446
|
-
call_id: string;
|
|
3447
|
-
|
|
3448
3478
|
/**
|
|
3449
3479
|
* The output from the function call generated by your code. Can be a string or an
|
|
3450
3480
|
* list of output content.
|
|
@@ -3462,6 +3492,11 @@ export interface ResponseFunctionToolCallOutputItem {
|
|
|
3462
3492
|
*/
|
|
3463
3493
|
type: 'function_call_output';
|
|
3464
3494
|
|
|
3495
|
+
/**
|
|
3496
|
+
* The unique ID of the function tool call generated by the model.
|
|
3497
|
+
*/
|
|
3498
|
+
call_id?: string;
|
|
3499
|
+
|
|
3465
3500
|
/**
|
|
3466
3501
|
* The execution context that produced this tool call.
|
|
3467
3502
|
*/
|
|
@@ -3725,6 +3760,26 @@ export interface ResponseImageGenCallPartialImageEvent {
|
|
|
3725
3760
|
* The type of the event. Always 'response.image_generation_call.partial_image'.
|
|
3726
3761
|
*/
|
|
3727
3762
|
type: 'response.image_generation_call.partial_image';
|
|
3763
|
+
|
|
3764
|
+
/**
|
|
3765
|
+
* The background setting that was used.
|
|
3766
|
+
*/
|
|
3767
|
+
background?: string;
|
|
3768
|
+
|
|
3769
|
+
/**
|
|
3770
|
+
* The output format that was used.
|
|
3771
|
+
*/
|
|
3772
|
+
output_format?: string;
|
|
3773
|
+
|
|
3774
|
+
/**
|
|
3775
|
+
* The image quality that was used.
|
|
3776
|
+
*/
|
|
3777
|
+
quality?: string;
|
|
3778
|
+
|
|
3779
|
+
/**
|
|
3780
|
+
* The image size that was used.
|
|
3781
|
+
*/
|
|
3782
|
+
size?: string;
|
|
3728
3783
|
}
|
|
3729
3784
|
|
|
3730
3785
|
/**
|
|
@@ -3968,7 +4023,7 @@ export interface ResponseInputImage {
|
|
|
3968
4023
|
* The detail level of the image to be sent to the model. One of `high`, `low`,
|
|
3969
4024
|
* `auto`, or `original`. Defaults to `auto`.
|
|
3970
4025
|
*/
|
|
3971
|
-
detail:
|
|
4026
|
+
detail: ImageDetail;
|
|
3972
4027
|
|
|
3973
4028
|
/**
|
|
3974
4029
|
* The type of the input item. Always `input_image`.
|
|
@@ -4022,7 +4077,7 @@ export interface ResponseInputImageContent {
|
|
|
4022
4077
|
* The detail level of the image to be sent to the model. One of `high`, `low`,
|
|
4023
4078
|
* `auto`, or `original`. Defaults to `auto`.
|
|
4024
4079
|
*/
|
|
4025
|
-
detail?:
|
|
4080
|
+
detail?: ImageDetail | null;
|
|
4026
4081
|
|
|
4027
4082
|
/**
|
|
4028
4083
|
* The ID of the file to be sent to the model.
|
|
@@ -4191,11 +4246,6 @@ export namespace ResponseInputItem {
|
|
|
4191
4246
|
* The output of a function tool call.
|
|
4192
4247
|
*/
|
|
4193
4248
|
export interface FunctionCallOutput {
|
|
4194
|
-
/**
|
|
4195
|
-
* The unique ID of the function tool call generated by the model.
|
|
4196
|
-
*/
|
|
4197
|
-
call_id: string;
|
|
4198
|
-
|
|
4199
4249
|
/**
|
|
4200
4250
|
* Text, image, or file output of the function tool call.
|
|
4201
4251
|
*/
|
|
@@ -4212,6 +4262,11 @@ export namespace ResponseInputItem {
|
|
|
4212
4262
|
*/
|
|
4213
4263
|
id?: string | null;
|
|
4214
4264
|
|
|
4265
|
+
/**
|
|
4266
|
+
* The unique ID of the function tool call generated by the model.
|
|
4267
|
+
*/
|
|
4268
|
+
call_id?: string | null;
|
|
4269
|
+
|
|
4215
4270
|
/**
|
|
4216
4271
|
* The execution context that produced this tool call.
|
|
4217
4272
|
*/
|
|
@@ -4902,7 +4957,7 @@ export namespace ResponseInputItem {
|
|
|
4902
4957
|
/**
|
|
4903
4958
|
* The error from the tool call, if any.
|
|
4904
4959
|
*/
|
|
4905
|
-
error?:
|
|
4960
|
+
error?: ResponsesAPI.McpToolCallError | null;
|
|
4906
4961
|
|
|
4907
4962
|
/**
|
|
4908
4963
|
* The output from the tool call.
|
|
@@ -5487,7 +5542,7 @@ export namespace ResponseItem {
|
|
|
5487
5542
|
/**
|
|
5488
5543
|
* The error from the tool call, if any.
|
|
5489
5544
|
*/
|
|
5490
|
-
error?:
|
|
5545
|
+
error?: ResponsesAPI.McpToolCallError | null;
|
|
5491
5546
|
|
|
5492
5547
|
/**
|
|
5493
5548
|
* The output from the tool call.
|
|
@@ -6011,7 +6066,7 @@ export namespace ResponseOutputItem {
|
|
|
6011
6066
|
/**
|
|
6012
6067
|
* The error from the tool call, if any.
|
|
6013
6068
|
*/
|
|
6014
|
-
error?:
|
|
6069
|
+
error?: ResponsesAPI.McpToolCallError | null;
|
|
6015
6070
|
|
|
6016
6071
|
/**
|
|
6017
6072
|
* The output from the tool call.
|
|
@@ -6148,7 +6203,10 @@ export namespace ResponseOutputItem {
|
|
|
6148
6203
|
*/
|
|
6149
6204
|
export interface ResponseOutputItemAddedEvent {
|
|
6150
6205
|
/**
|
|
6151
|
-
* The output item that was added.
|
|
6206
|
+
* The output item that was added. For reasoning items, `encrypted_content` may be
|
|
6207
|
+
* incomplete while the item is in progress. Use the reasoning item from the
|
|
6208
|
+
* corresponding `response.output_item.done` event when passing it as input to a
|
|
6209
|
+
* subsequent request.
|
|
6152
6210
|
*/
|
|
6153
6211
|
item: ResponseOutputItem;
|
|
6154
6212
|
|
|
@@ -6417,9 +6475,14 @@ export namespace ResponseOutputText {
|
|
|
6417
6475
|
*/
|
|
6418
6476
|
export interface ResponseOutputTextAnnotationAddedEvent {
|
|
6419
6477
|
/**
|
|
6420
|
-
*
|
|
6478
|
+
* An annotation that applies to a span of output text.
|
|
6421
6479
|
*/
|
|
6422
|
-
annotation:
|
|
6480
|
+
annotation:
|
|
6481
|
+
| ResponseOutputTextAnnotationAddedEvent.FileCitation
|
|
6482
|
+
| ResponseOutputTextAnnotationAddedEvent.URLCitation
|
|
6483
|
+
| ResponseOutputTextAnnotationAddedEvent.ContainerFileCitation
|
|
6484
|
+
| ResponseOutputTextAnnotationAddedEvent.FilePath
|
|
6485
|
+
| null;
|
|
6423
6486
|
|
|
6424
6487
|
/**
|
|
6425
6488
|
* The index of the annotation within the content part.
|
|
@@ -6452,6 +6515,118 @@ export interface ResponseOutputTextAnnotationAddedEvent {
|
|
|
6452
6515
|
type: 'response.output_text.annotation.added';
|
|
6453
6516
|
}
|
|
6454
6517
|
|
|
6518
|
+
export namespace ResponseOutputTextAnnotationAddedEvent {
|
|
6519
|
+
/**
|
|
6520
|
+
* A citation to a file.
|
|
6521
|
+
*/
|
|
6522
|
+
export interface FileCitation {
|
|
6523
|
+
/**
|
|
6524
|
+
* The ID of the file.
|
|
6525
|
+
*/
|
|
6526
|
+
file_id: string;
|
|
6527
|
+
|
|
6528
|
+
/**
|
|
6529
|
+
* The filename of the file cited.
|
|
6530
|
+
*/
|
|
6531
|
+
filename: string;
|
|
6532
|
+
|
|
6533
|
+
/**
|
|
6534
|
+
* The index of the file in the list of files.
|
|
6535
|
+
*/
|
|
6536
|
+
index: number;
|
|
6537
|
+
|
|
6538
|
+
/**
|
|
6539
|
+
* The type of the file citation. Always `file_citation`.
|
|
6540
|
+
*/
|
|
6541
|
+
type: 'file_citation';
|
|
6542
|
+
}
|
|
6543
|
+
|
|
6544
|
+
/**
|
|
6545
|
+
* A citation for a web resource used to generate a model response.
|
|
6546
|
+
*/
|
|
6547
|
+
export interface URLCitation {
|
|
6548
|
+
/**
|
|
6549
|
+
* The index of the last character of the URL citation in the message.
|
|
6550
|
+
*/
|
|
6551
|
+
end_index: number;
|
|
6552
|
+
|
|
6553
|
+
/**
|
|
6554
|
+
* The index of the first character of the URL citation in the message.
|
|
6555
|
+
*/
|
|
6556
|
+
start_index: number;
|
|
6557
|
+
|
|
6558
|
+
/**
|
|
6559
|
+
* The title of the web resource.
|
|
6560
|
+
*/
|
|
6561
|
+
title: string;
|
|
6562
|
+
|
|
6563
|
+
/**
|
|
6564
|
+
* The type of the URL citation. Always `url_citation`.
|
|
6565
|
+
*/
|
|
6566
|
+
type: 'url_citation';
|
|
6567
|
+
|
|
6568
|
+
/**
|
|
6569
|
+
* The URL of the web resource.
|
|
6570
|
+
*/
|
|
6571
|
+
url: string;
|
|
6572
|
+
}
|
|
6573
|
+
|
|
6574
|
+
/**
|
|
6575
|
+
* A citation for a container file used to generate a model response.
|
|
6576
|
+
*/
|
|
6577
|
+
export interface ContainerFileCitation {
|
|
6578
|
+
/**
|
|
6579
|
+
* The ID of the container file.
|
|
6580
|
+
*/
|
|
6581
|
+
container_id: string;
|
|
6582
|
+
|
|
6583
|
+
/**
|
|
6584
|
+
* The index of the last character of the container file citation in the message.
|
|
6585
|
+
*/
|
|
6586
|
+
end_index: number;
|
|
6587
|
+
|
|
6588
|
+
/**
|
|
6589
|
+
* The ID of the file.
|
|
6590
|
+
*/
|
|
6591
|
+
file_id: string;
|
|
6592
|
+
|
|
6593
|
+
/**
|
|
6594
|
+
* The filename of the container file cited.
|
|
6595
|
+
*/
|
|
6596
|
+
filename: string;
|
|
6597
|
+
|
|
6598
|
+
/**
|
|
6599
|
+
* The index of the first character of the container file citation in the message.
|
|
6600
|
+
*/
|
|
6601
|
+
start_index: number;
|
|
6602
|
+
|
|
6603
|
+
/**
|
|
6604
|
+
* The type of the container file citation. Always `container_file_citation`.
|
|
6605
|
+
*/
|
|
6606
|
+
type: 'container_file_citation';
|
|
6607
|
+
}
|
|
6608
|
+
|
|
6609
|
+
/**
|
|
6610
|
+
* A path to a file.
|
|
6611
|
+
*/
|
|
6612
|
+
export interface FilePath {
|
|
6613
|
+
/**
|
|
6614
|
+
* The ID of the file.
|
|
6615
|
+
*/
|
|
6616
|
+
file_id: string;
|
|
6617
|
+
|
|
6618
|
+
/**
|
|
6619
|
+
* The index of the file in the list of files.
|
|
6620
|
+
*/
|
|
6621
|
+
index: number;
|
|
6622
|
+
|
|
6623
|
+
/**
|
|
6624
|
+
* The type of the file path. Always `file_path`.
|
|
6625
|
+
*/
|
|
6626
|
+
type: 'file_path';
|
|
6627
|
+
}
|
|
6628
|
+
}
|
|
6629
|
+
|
|
6455
6630
|
/**
|
|
6456
6631
|
* Reference to a prompt template and its variables.
|
|
6457
6632
|
* [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
|
|
@@ -6526,6 +6701,11 @@ export interface ResponseReasoningItem {
|
|
|
6526
6701
|
* The encrypted content of the reasoning item. This is populated by default for
|
|
6527
6702
|
* reasoning items returned by `POST /v1/responses` and WebSocket `response.create`
|
|
6528
6703
|
* requests.
|
|
6704
|
+
*
|
|
6705
|
+
* When streaming, use the completed reasoning item and its `encrypted_content`
|
|
6706
|
+
* from the `response.output_item.done` event in subsequent requests. The
|
|
6707
|
+
* `encrypted_content` in `response.output_item.added` may be incomplete. This is
|
|
6708
|
+
* especially important when `store` is `false` or when using Zero Data Retention.
|
|
6529
6709
|
*/
|
|
6530
6710
|
encrypted_content?: string | null;
|
|
6531
6711
|
|
|
@@ -6889,995 +7069,1991 @@ export interface ResponseRefusalDoneEvent {
|
|
|
6889
7069
|
}
|
|
6890
7070
|
|
|
6891
7071
|
/**
|
|
6892
|
-
*
|
|
6893
|
-
* `in_progress`, `cancelled`, `queued`, or `incomplete`.
|
|
6894
|
-
*/
|
|
6895
|
-
export type ResponseStatus = 'completed' | 'failed' | 'in_progress' | 'cancelled' | 'queued' | 'incomplete';
|
|
6896
|
-
|
|
6897
|
-
/**
|
|
6898
|
-
* Emitted when there is a partial audio response.
|
|
6899
|
-
*/
|
|
6900
|
-
export type ResponseStreamEvent =
|
|
6901
|
-
| ResponseAudioDeltaEvent
|
|
6902
|
-
| ResponseAudioDoneEvent
|
|
6903
|
-
| ResponseAudioTranscriptDeltaEvent
|
|
6904
|
-
| ResponseAudioTranscriptDoneEvent
|
|
6905
|
-
| ResponseCodeInterpreterCallCodeDeltaEvent
|
|
6906
|
-
| ResponseCodeInterpreterCallCodeDoneEvent
|
|
6907
|
-
| ResponseCodeInterpreterCallCompletedEvent
|
|
6908
|
-
| ResponseCodeInterpreterCallInProgressEvent
|
|
6909
|
-
| ResponseCodeInterpreterCallInterpretingEvent
|
|
6910
|
-
| ResponseCompletedEvent
|
|
6911
|
-
| ResponseContentPartAddedEvent
|
|
6912
|
-
| ResponseContentPartDoneEvent
|
|
6913
|
-
| ResponseCreatedEvent
|
|
6914
|
-
| ResponseErrorEvent
|
|
6915
|
-
| ResponseFileSearchCallCompletedEvent
|
|
6916
|
-
| ResponseFileSearchCallInProgressEvent
|
|
6917
|
-
| ResponseFileSearchCallSearchingEvent
|
|
6918
|
-
| ResponseFunctionCallArgumentsDeltaEvent
|
|
6919
|
-
| ResponseFunctionCallArgumentsDoneEvent
|
|
6920
|
-
| ResponseInProgressEvent
|
|
6921
|
-
| ResponseFailedEvent
|
|
6922
|
-
| ResponseIncompleteEvent
|
|
6923
|
-
| ResponseOutputItemAddedEvent
|
|
6924
|
-
| ResponseOutputItemDoneEvent
|
|
6925
|
-
| ResponseReasoningSummaryPartAddedEvent
|
|
6926
|
-
| ResponseReasoningSummaryPartDoneEvent
|
|
6927
|
-
| ResponseReasoningSummaryTextDeltaEvent
|
|
6928
|
-
| ResponseReasoningSummaryTextDoneEvent
|
|
6929
|
-
| ResponseReasoningTextDeltaEvent
|
|
6930
|
-
| ResponseReasoningTextDoneEvent
|
|
6931
|
-
| ResponseRefusalDeltaEvent
|
|
6932
|
-
| ResponseRefusalDoneEvent
|
|
6933
|
-
| ResponseTextDeltaEvent
|
|
6934
|
-
| ResponseTextDoneEvent
|
|
6935
|
-
| ResponseWebSearchCallCompletedEvent
|
|
6936
|
-
| ResponseWebSearchCallInProgressEvent
|
|
6937
|
-
| ResponseWebSearchCallSearchingEvent
|
|
6938
|
-
| ResponseImageGenCallCompletedEvent
|
|
6939
|
-
| ResponseImageGenCallGeneratingEvent
|
|
6940
|
-
| ResponseImageGenCallInProgressEvent
|
|
6941
|
-
| ResponseImageGenCallPartialImageEvent
|
|
6942
|
-
| ResponseMcpCallArgumentsDeltaEvent
|
|
6943
|
-
| ResponseMcpCallArgumentsDoneEvent
|
|
6944
|
-
| ResponseMcpCallCompletedEvent
|
|
6945
|
-
| ResponseMcpCallFailedEvent
|
|
6946
|
-
| ResponseMcpCallInProgressEvent
|
|
6947
|
-
| ResponseMcpListToolsCompletedEvent
|
|
6948
|
-
| ResponseMcpListToolsFailedEvent
|
|
6949
|
-
| ResponseMcpListToolsInProgressEvent
|
|
6950
|
-
| ResponseOutputTextAnnotationAddedEvent
|
|
6951
|
-
| ResponseQueuedEvent
|
|
6952
|
-
| ResponseCustomToolCallInputDeltaEvent
|
|
6953
|
-
| ResponseCustomToolCallInputDoneEvent;
|
|
6954
|
-
|
|
6955
|
-
/**
|
|
6956
|
-
* Configuration options for a text response from the model. Can be plain text or
|
|
6957
|
-
* structured JSON data. Learn more:
|
|
6958
|
-
*
|
|
6959
|
-
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
6960
|
-
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
7072
|
+
* A streaming event that indicated a shell command was added to a tool call.
|
|
6961
7073
|
*/
|
|
6962
|
-
export interface
|
|
7074
|
+
export interface ResponseShellCallCommandAddedEvent {
|
|
6963
7075
|
/**
|
|
6964
|
-
*
|
|
6965
|
-
*
|
|
6966
|
-
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
|
|
6967
|
-
* ensures the model will match your supplied JSON schema. Learn more in the
|
|
6968
|
-
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
|
|
6969
|
-
*
|
|
6970
|
-
* The default format is `{ "type": "text" }` with no additional options.
|
|
6971
|
-
*
|
|
6972
|
-
* **Not recommended for gpt-4o and newer models:**
|
|
6973
|
-
*
|
|
6974
|
-
* Setting to `{ "type": "json_object" }` enables the older JSON mode, which
|
|
6975
|
-
* ensures the message the model generates is valid JSON. Using `json_schema` is
|
|
6976
|
-
* preferred for models that support it.
|
|
7076
|
+
* The shell command that was added.
|
|
6977
7077
|
*/
|
|
6978
|
-
|
|
7078
|
+
command: string;
|
|
6979
7079
|
|
|
6980
7080
|
/**
|
|
6981
|
-
*
|
|
6982
|
-
* more concise responses, while higher values will result in more verbose
|
|
6983
|
-
* responses. Currently supported values are `low`, `medium`, and `high`. The
|
|
6984
|
-
* default is `medium`.
|
|
7081
|
+
* The index of the shell command that was added.
|
|
6985
7082
|
*/
|
|
6986
|
-
|
|
6987
|
-
}
|
|
7083
|
+
command_index: number;
|
|
6988
7084
|
|
|
6989
|
-
/**
|
|
6990
|
-
* Emitted when there is an additional text delta.
|
|
6991
|
-
*/
|
|
6992
|
-
export interface ResponseTextDeltaEvent {
|
|
6993
7085
|
/**
|
|
6994
|
-
* The index of the
|
|
6995
|
-
*/
|
|
6996
|
-
content_index: number;
|
|
6997
|
-
|
|
6998
|
-
/**
|
|
6999
|
-
* The text delta that was added.
|
|
7000
|
-
*/
|
|
7001
|
-
delta: string;
|
|
7002
|
-
|
|
7003
|
-
/**
|
|
7004
|
-
* The ID of the output item that the text delta was added to.
|
|
7005
|
-
*/
|
|
7006
|
-
item_id: string;
|
|
7007
|
-
|
|
7008
|
-
/**
|
|
7009
|
-
* The log probabilities of the tokens in the delta.
|
|
7010
|
-
*/
|
|
7011
|
-
logprobs: Array<ResponseTextDeltaEvent.Logprob>;
|
|
7012
|
-
|
|
7013
|
-
/**
|
|
7014
|
-
* The index of the output item that the text delta was added to.
|
|
7086
|
+
* The index of the output item that was updated.
|
|
7015
7087
|
*/
|
|
7016
7088
|
output_index: number;
|
|
7017
7089
|
|
|
7018
7090
|
/**
|
|
7019
|
-
* The sequence number
|
|
7091
|
+
* The sequence number of the event that was emitted.
|
|
7020
7092
|
*/
|
|
7021
7093
|
sequence_number: number;
|
|
7022
7094
|
|
|
7023
7095
|
/**
|
|
7024
|
-
* The type of the event
|
|
7025
|
-
*/
|
|
7026
|
-
type: 'response.output_text.delta';
|
|
7027
|
-
}
|
|
7028
|
-
|
|
7029
|
-
export namespace ResponseTextDeltaEvent {
|
|
7030
|
-
/**
|
|
7031
|
-
* A logprob is the logarithmic probability that the model assigns to producing a
|
|
7032
|
-
* particular token at a given position in the sequence. Less-negative (higher)
|
|
7033
|
-
* logprob values indicate greater model confidence in that token choice.
|
|
7096
|
+
* The type of the event, always `response.shell_call_command.added`.
|
|
7034
7097
|
*/
|
|
7035
|
-
|
|
7036
|
-
/**
|
|
7037
|
-
* A possible text token.
|
|
7038
|
-
*/
|
|
7039
|
-
token: string;
|
|
7040
|
-
|
|
7041
|
-
/**
|
|
7042
|
-
* The log probability of this token.
|
|
7043
|
-
*/
|
|
7044
|
-
logprob: number;
|
|
7045
|
-
|
|
7046
|
-
/**
|
|
7047
|
-
* The log probabilities of up to 20 of the most likely tokens.
|
|
7048
|
-
*/
|
|
7049
|
-
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
7050
|
-
}
|
|
7051
|
-
|
|
7052
|
-
export namespace Logprob {
|
|
7053
|
-
export interface TopLogprob {
|
|
7054
|
-
/**
|
|
7055
|
-
* A possible text token.
|
|
7056
|
-
*/
|
|
7057
|
-
token?: string;
|
|
7058
|
-
|
|
7059
|
-
/**
|
|
7060
|
-
* The log probability of this token.
|
|
7061
|
-
*/
|
|
7062
|
-
logprob?: number;
|
|
7063
|
-
}
|
|
7064
|
-
}
|
|
7098
|
+
type: 'response.shell_call_command.added';
|
|
7065
7099
|
}
|
|
7066
7100
|
|
|
7067
7101
|
/**
|
|
7068
|
-
*
|
|
7102
|
+
* A streaming event that indicated a shell command was incrementally updated.
|
|
7069
7103
|
*/
|
|
7070
|
-
export interface
|
|
7071
|
-
/**
|
|
7072
|
-
* The index of the content part that the text content is finalized.
|
|
7073
|
-
*/
|
|
7074
|
-
content_index: number;
|
|
7075
|
-
|
|
7104
|
+
export interface ResponseShellCallCommandDeltaEvent {
|
|
7076
7105
|
/**
|
|
7077
|
-
* The
|
|
7106
|
+
* The index of the shell command that was updated.
|
|
7078
7107
|
*/
|
|
7079
|
-
|
|
7108
|
+
command_index: number;
|
|
7080
7109
|
|
|
7081
7110
|
/**
|
|
7082
|
-
* The
|
|
7111
|
+
* The shell command delta that was appended.
|
|
7083
7112
|
*/
|
|
7084
|
-
|
|
7113
|
+
delta: string;
|
|
7085
7114
|
|
|
7086
7115
|
/**
|
|
7087
|
-
* The index of the output item that
|
|
7116
|
+
* The index of the output item that was updated.
|
|
7088
7117
|
*/
|
|
7089
7118
|
output_index: number;
|
|
7090
7119
|
|
|
7091
7120
|
/**
|
|
7092
|
-
* The sequence number
|
|
7121
|
+
* The sequence number of the event that was emitted.
|
|
7093
7122
|
*/
|
|
7094
7123
|
sequence_number: number;
|
|
7095
7124
|
|
|
7096
7125
|
/**
|
|
7097
|
-
* The
|
|
7098
|
-
*/
|
|
7099
|
-
text: string;
|
|
7100
|
-
|
|
7101
|
-
/**
|
|
7102
|
-
* The type of the event. Always `response.output_text.done`.
|
|
7126
|
+
* The type of the event, always `response.shell_call_command.delta`.
|
|
7103
7127
|
*/
|
|
7104
|
-
type: 'response.
|
|
7105
|
-
}
|
|
7128
|
+
type: 'response.shell_call_command.delta';
|
|
7106
7129
|
|
|
7107
|
-
export namespace ResponseTextDoneEvent {
|
|
7108
7130
|
/**
|
|
7109
|
-
*
|
|
7110
|
-
* particular token at a given position in the sequence. Less-negative (higher)
|
|
7111
|
-
* logprob values indicate greater model confidence in that token choice.
|
|
7131
|
+
* An obfuscation string that was added to pad the event payload.
|
|
7112
7132
|
*/
|
|
7113
|
-
|
|
7114
|
-
/**
|
|
7115
|
-
* A possible text token.
|
|
7116
|
-
*/
|
|
7117
|
-
token: string;
|
|
7118
|
-
|
|
7119
|
-
/**
|
|
7120
|
-
* The log probability of this token.
|
|
7121
|
-
*/
|
|
7122
|
-
logprob: number;
|
|
7123
|
-
|
|
7124
|
-
/**
|
|
7125
|
-
* The log probabilities of up to 20 of the most likely tokens.
|
|
7126
|
-
*/
|
|
7127
|
-
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
7128
|
-
}
|
|
7129
|
-
|
|
7130
|
-
export namespace Logprob {
|
|
7131
|
-
export interface TopLogprob {
|
|
7132
|
-
/**
|
|
7133
|
-
* A possible text token.
|
|
7134
|
-
*/
|
|
7135
|
-
token?: string;
|
|
7136
|
-
|
|
7137
|
-
/**
|
|
7138
|
-
* The log probability of this token.
|
|
7139
|
-
*/
|
|
7140
|
-
logprob?: number;
|
|
7141
|
-
}
|
|
7142
|
-
}
|
|
7133
|
+
obfuscation?: string;
|
|
7143
7134
|
}
|
|
7144
7135
|
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
id: string;
|
|
7150
|
-
|
|
7151
|
-
/**
|
|
7152
|
-
* Arguments used for the tool search call.
|
|
7153
|
-
*/
|
|
7154
|
-
arguments: unknown;
|
|
7155
|
-
|
|
7136
|
+
/**
|
|
7137
|
+
* A streaming event that indicated a shell command was completed.
|
|
7138
|
+
*/
|
|
7139
|
+
export interface ResponseShellCallCommandDoneEvent {
|
|
7156
7140
|
/**
|
|
7157
|
-
* The
|
|
7141
|
+
* The final shell command that was emitted.
|
|
7158
7142
|
*/
|
|
7159
|
-
|
|
7143
|
+
command: string;
|
|
7160
7144
|
|
|
7161
7145
|
/**
|
|
7162
|
-
*
|
|
7146
|
+
* The index of the shell command that was completed.
|
|
7163
7147
|
*/
|
|
7164
|
-
|
|
7148
|
+
command_index: number;
|
|
7165
7149
|
|
|
7166
7150
|
/**
|
|
7167
|
-
* The
|
|
7151
|
+
* The index of the output item that was updated.
|
|
7168
7152
|
*/
|
|
7169
|
-
|
|
7153
|
+
output_index: number;
|
|
7170
7154
|
|
|
7171
7155
|
/**
|
|
7172
|
-
* The
|
|
7156
|
+
* The sequence number of the event that was emitted.
|
|
7173
7157
|
*/
|
|
7174
|
-
|
|
7158
|
+
sequence_number: number;
|
|
7175
7159
|
|
|
7176
7160
|
/**
|
|
7177
|
-
* The
|
|
7161
|
+
* The type of the event, always `response.shell_call_command.done`.
|
|
7178
7162
|
*/
|
|
7179
|
-
|
|
7163
|
+
type: 'response.shell_call_command.done';
|
|
7180
7164
|
}
|
|
7181
7165
|
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
id: string;
|
|
7187
|
-
|
|
7166
|
+
/**
|
|
7167
|
+
* A streaming event that indicated shell call output was incrementally added.
|
|
7168
|
+
*/
|
|
7169
|
+
export interface ResponseShellCallOutputContentDeltaEvent {
|
|
7188
7170
|
/**
|
|
7189
|
-
* The
|
|
7171
|
+
* The index of the shell command that produced output.
|
|
7190
7172
|
*/
|
|
7191
|
-
|
|
7173
|
+
command_index: number;
|
|
7192
7174
|
|
|
7193
7175
|
/**
|
|
7194
|
-
*
|
|
7176
|
+
* The stdout/stderr delta that was emitted.
|
|
7195
7177
|
*/
|
|
7196
|
-
|
|
7178
|
+
delta: ResponseShellCallOutputContentDeltaEvent.Delta;
|
|
7197
7179
|
|
|
7198
7180
|
/**
|
|
7199
|
-
* The
|
|
7181
|
+
* The ID of the output item that was updated.
|
|
7200
7182
|
*/
|
|
7201
|
-
|
|
7183
|
+
item_id: string;
|
|
7202
7184
|
|
|
7203
7185
|
/**
|
|
7204
|
-
* The
|
|
7186
|
+
* The index of the output item that was updated.
|
|
7205
7187
|
*/
|
|
7206
|
-
|
|
7188
|
+
output_index: number;
|
|
7207
7189
|
|
|
7208
7190
|
/**
|
|
7209
|
-
* The
|
|
7191
|
+
* The sequence number of the event that was emitted.
|
|
7210
7192
|
*/
|
|
7211
|
-
|
|
7193
|
+
sequence_number: number;
|
|
7212
7194
|
|
|
7213
7195
|
/**
|
|
7214
|
-
* The
|
|
7196
|
+
* The type of the event, always `response.shell_call_output_content.delta`.
|
|
7215
7197
|
*/
|
|
7216
|
-
|
|
7198
|
+
type: 'response.shell_call_output_content.delta';
|
|
7217
7199
|
}
|
|
7218
7200
|
|
|
7219
|
-
export
|
|
7220
|
-
/**
|
|
7221
|
-
* The loaded tool definitions returned by the tool search output.
|
|
7222
|
-
*/
|
|
7223
|
-
tools: Array<Tool>;
|
|
7224
|
-
|
|
7201
|
+
export namespace ResponseShellCallOutputContentDeltaEvent {
|
|
7225
7202
|
/**
|
|
7226
|
-
* The
|
|
7203
|
+
* The stdout/stderr delta that was emitted.
|
|
7227
7204
|
*/
|
|
7228
|
-
|
|
7205
|
+
export interface Delta {
|
|
7206
|
+
/**
|
|
7207
|
+
* The stderr delta that was emitted.
|
|
7208
|
+
*/
|
|
7209
|
+
stderr?: string;
|
|
7229
7210
|
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7211
|
+
/**
|
|
7212
|
+
* The stdout delta that was emitted.
|
|
7213
|
+
*/
|
|
7214
|
+
stdout?: string;
|
|
7215
|
+
}
|
|
7216
|
+
}
|
|
7234
7217
|
|
|
7218
|
+
/**
|
|
7219
|
+
* A streaming event that indicated shell call output was completed.
|
|
7220
|
+
*/
|
|
7221
|
+
export interface ResponseShellCallOutputContentDoneEvent {
|
|
7235
7222
|
/**
|
|
7236
|
-
* The
|
|
7223
|
+
* The index of the shell command that produced output.
|
|
7237
7224
|
*/
|
|
7238
|
-
|
|
7225
|
+
command_index: number;
|
|
7239
7226
|
|
|
7240
7227
|
/**
|
|
7241
|
-
*
|
|
7228
|
+
* The ID of the output item that was updated.
|
|
7242
7229
|
*/
|
|
7243
|
-
|
|
7230
|
+
item_id: string;
|
|
7244
7231
|
|
|
7245
7232
|
/**
|
|
7246
|
-
* The
|
|
7233
|
+
* The output contents emitted for the shell command.
|
|
7247
7234
|
*/
|
|
7248
|
-
|
|
7249
|
-
}
|
|
7235
|
+
output: Array<ResponseShellCallOutputContentDoneEvent.Output>;
|
|
7250
7236
|
|
|
7251
|
-
/**
|
|
7252
|
-
* Represents token usage details including input tokens, output tokens, a
|
|
7253
|
-
* breakdown of output tokens, and the total tokens used.
|
|
7254
|
-
*/
|
|
7255
|
-
export interface ResponseUsage {
|
|
7256
7237
|
/**
|
|
7257
|
-
* The
|
|
7238
|
+
* The index of the output item that was updated.
|
|
7258
7239
|
*/
|
|
7259
|
-
|
|
7240
|
+
output_index: number;
|
|
7260
7241
|
|
|
7261
7242
|
/**
|
|
7262
|
-
*
|
|
7243
|
+
* The sequence number of the event that was emitted.
|
|
7263
7244
|
*/
|
|
7264
|
-
|
|
7245
|
+
sequence_number: number;
|
|
7265
7246
|
|
|
7266
7247
|
/**
|
|
7267
|
-
* The
|
|
7248
|
+
* The type of the event, always `response.shell_call_output_content.done`.
|
|
7268
7249
|
*/
|
|
7269
|
-
|
|
7250
|
+
type: 'response.shell_call_output_content.done';
|
|
7251
|
+
}
|
|
7270
7252
|
|
|
7253
|
+
export namespace ResponseShellCallOutputContentDoneEvent {
|
|
7271
7254
|
/**
|
|
7272
|
-
*
|
|
7255
|
+
* The content of a shell tool call output that was emitted.
|
|
7273
7256
|
*/
|
|
7274
|
-
|
|
7257
|
+
export interface Output {
|
|
7258
|
+
/**
|
|
7259
|
+
* Represents either an exit outcome (with an exit code) or a timeout outcome for a
|
|
7260
|
+
* shell call output chunk.
|
|
7261
|
+
*/
|
|
7262
|
+
outcome: Output.Timeout | Output.Exit;
|
|
7275
7263
|
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
}
|
|
7264
|
+
/**
|
|
7265
|
+
* The standard error output that was captured.
|
|
7266
|
+
*/
|
|
7267
|
+
stderr: string;
|
|
7281
7268
|
|
|
7282
|
-
export namespace ResponseUsage {
|
|
7283
|
-
/**
|
|
7284
|
-
* A detailed breakdown of the input tokens.
|
|
7285
|
-
*/
|
|
7286
|
-
export interface InputTokensDetails {
|
|
7287
7269
|
/**
|
|
7288
|
-
* The
|
|
7270
|
+
* The standard output that was captured.
|
|
7289
7271
|
*/
|
|
7290
|
-
|
|
7272
|
+
stdout: string;
|
|
7291
7273
|
|
|
7292
7274
|
/**
|
|
7293
|
-
* The
|
|
7294
|
-
* [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching).
|
|
7275
|
+
* The identifier of the actor that created the item.
|
|
7295
7276
|
*/
|
|
7296
|
-
|
|
7277
|
+
created_by?: string;
|
|
7297
7278
|
}
|
|
7298
7279
|
|
|
7299
|
-
|
|
7300
|
-
* A detailed breakdown of the output tokens.
|
|
7301
|
-
*/
|
|
7302
|
-
export interface OutputTokensDetails {
|
|
7280
|
+
export namespace Output {
|
|
7303
7281
|
/**
|
|
7304
|
-
*
|
|
7282
|
+
* Indicates that the shell call exceeded its configured time limit.
|
|
7305
7283
|
*/
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7284
|
+
export interface Timeout {
|
|
7285
|
+
/**
|
|
7286
|
+
* The outcome type. Always `timeout`.
|
|
7287
|
+
*/
|
|
7288
|
+
type: 'timeout';
|
|
7289
|
+
}
|
|
7309
7290
|
|
|
7310
|
-
/**
|
|
7311
|
-
|
|
7291
|
+
/**
|
|
7292
|
+
* Indicates that the shell commands finished and returned an exit code.
|
|
7293
|
+
*/
|
|
7294
|
+
export interface Exit {
|
|
7295
|
+
/**
|
|
7296
|
+
* Exit code from the shell process.
|
|
7297
|
+
*/
|
|
7298
|
+
exit_code: number;
|
|
7299
|
+
|
|
7300
|
+
/**
|
|
7301
|
+
* The outcome type. Always `exit`.
|
|
7302
|
+
*/
|
|
7303
|
+
type: 'exit';
|
|
7304
|
+
}
|
|
7305
|
+
}
|
|
7306
|
+
}
|
|
7307
|
+
|
|
7308
|
+
/**
|
|
7309
|
+
* The status of the response generation. One of `completed`, `failed`,
|
|
7310
|
+
* `in_progress`, `cancelled`, `queued`, or `incomplete`.
|
|
7312
7311
|
*/
|
|
7313
|
-
export
|
|
7312
|
+
export type ResponseStatus = 'completed' | 'failed' | 'in_progress' | 'cancelled' | 'queued' | 'incomplete';
|
|
7313
|
+
|
|
7314
|
+
/**
|
|
7315
|
+
* Event emitted while a response is streamed.
|
|
7316
|
+
*/
|
|
7317
|
+
export type ResponseStreamEvent =
|
|
7318
|
+
| ResponseAudioDeltaEvent
|
|
7319
|
+
| ResponseAudioDoneEvent
|
|
7320
|
+
| ResponseAudioTranscriptDeltaEvent
|
|
7321
|
+
| ResponseAudioTranscriptDoneEvent
|
|
7322
|
+
| ResponseCodeInterpreterCallCodeDeltaEvent
|
|
7323
|
+
| ResponseCodeInterpreterCallCodeDoneEvent
|
|
7324
|
+
| ResponseCodeInterpreterCallCompletedEvent
|
|
7325
|
+
| ResponseCodeInterpreterCallInProgressEvent
|
|
7326
|
+
| ResponseCodeInterpreterCallInterpretingEvent
|
|
7327
|
+
| ResponseCompletedEvent
|
|
7328
|
+
| ResponseContentPartAddedEvent
|
|
7329
|
+
| ResponseContentPartDoneEvent
|
|
7330
|
+
| ResponseCreatedEvent
|
|
7331
|
+
| ResponseErrorEvent
|
|
7332
|
+
| ResponseFileSearchCallCompletedEvent
|
|
7333
|
+
| ResponseFileSearchCallInProgressEvent
|
|
7334
|
+
| ResponseFileSearchCallSearchingEvent
|
|
7335
|
+
| ResponseFunctionCallArgumentsDeltaEvent
|
|
7336
|
+
| ResponseFunctionCallArgumentsDoneEvent
|
|
7337
|
+
| ResponseShellCallCommandAddedEvent
|
|
7338
|
+
| ResponseShellCallCommandDeltaEvent
|
|
7339
|
+
| ResponseShellCallCommandDoneEvent
|
|
7340
|
+
| ResponseShellCallOutputContentDeltaEvent
|
|
7341
|
+
| ResponseShellCallOutputContentDoneEvent
|
|
7342
|
+
| ResponseInProgressEvent
|
|
7343
|
+
| ResponseFailedEvent
|
|
7344
|
+
| ResponseIncompleteEvent
|
|
7345
|
+
| ResponseOutputItemAddedEvent
|
|
7346
|
+
| ResponseOutputItemDoneEvent
|
|
7347
|
+
| ResponseReasoningSummaryPartAddedEvent
|
|
7348
|
+
| ResponseReasoningSummaryPartDoneEvent
|
|
7349
|
+
| ResponseReasoningSummaryTextDeltaEvent
|
|
7350
|
+
| ResponseReasoningSummaryTextDoneEvent
|
|
7351
|
+
| ResponseReasoningTextDeltaEvent
|
|
7352
|
+
| ResponseReasoningTextDoneEvent
|
|
7353
|
+
| ResponseRefusalDeltaEvent
|
|
7354
|
+
| ResponseRefusalDoneEvent
|
|
7355
|
+
| ResponseTextDeltaEvent
|
|
7356
|
+
| ResponseTextDoneEvent
|
|
7357
|
+
| ResponseWebSearchCallCompletedEvent
|
|
7358
|
+
| ResponseWebSearchCallInProgressEvent
|
|
7359
|
+
| ResponseWebSearchCallSearchingEvent
|
|
7360
|
+
| ResponseImageGenCallCompletedEvent
|
|
7361
|
+
| ResponseImageGenCallGeneratingEvent
|
|
7362
|
+
| ResponseImageGenCallInProgressEvent
|
|
7363
|
+
| ResponseImageGenCallPartialImageEvent
|
|
7364
|
+
| ResponseMcpCallArgumentsDeltaEvent
|
|
7365
|
+
| ResponseMcpCallArgumentsDoneEvent
|
|
7366
|
+
| ResponseMcpCallCompletedEvent
|
|
7367
|
+
| ResponseMcpCallFailedEvent
|
|
7368
|
+
| ResponseMcpCallInProgressEvent
|
|
7369
|
+
| ResponseMcpListToolsCompletedEvent
|
|
7370
|
+
| ResponseMcpListToolsFailedEvent
|
|
7371
|
+
| ResponseMcpListToolsInProgressEvent
|
|
7372
|
+
| ResponseOutputTextAnnotationAddedEvent
|
|
7373
|
+
| ResponseQueuedEvent
|
|
7374
|
+
| ResponseCustomToolCallInputDeltaEvent
|
|
7375
|
+
| ResponseCustomToolCallInputDoneEvent;
|
|
7376
|
+
|
|
7377
|
+
/**
|
|
7378
|
+
* Configuration options for a text response from the model. Can be plain text or
|
|
7379
|
+
* structured JSON data. Learn more:
|
|
7380
|
+
*
|
|
7381
|
+
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
7382
|
+
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
7383
|
+
*/
|
|
7384
|
+
export interface ResponseTextConfig {
|
|
7314
7385
|
/**
|
|
7315
|
-
*
|
|
7386
|
+
* An object specifying the format that the model must output.
|
|
7387
|
+
*
|
|
7388
|
+
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
|
|
7389
|
+
* ensures the model will match your supplied JSON schema. Learn more in the
|
|
7390
|
+
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
|
|
7391
|
+
*
|
|
7392
|
+
* The default format is `{ "type": "text" }` with no additional options.
|
|
7393
|
+
*
|
|
7394
|
+
* **Not recommended for gpt-4o and newer models:**
|
|
7395
|
+
*
|
|
7396
|
+
* Setting to `{ "type": "json_object" }` enables the older JSON mode, which
|
|
7397
|
+
* ensures the message the model generates is valid JSON. Using `json_schema` is
|
|
7398
|
+
* preferred for models that support it.
|
|
7316
7399
|
*/
|
|
7317
|
-
|
|
7400
|
+
format?: ResponseFormatTextConfig;
|
|
7318
7401
|
|
|
7319
7402
|
/**
|
|
7320
|
-
*
|
|
7403
|
+
* Constrains the verbosity of the model's response. Lower values will result in
|
|
7404
|
+
* more concise responses, while higher values will result in more verbose
|
|
7405
|
+
* responses. Currently supported values are `low`, `medium`, and `high`. The
|
|
7406
|
+
* default is `medium`.
|
|
7321
7407
|
*/
|
|
7322
|
-
|
|
7408
|
+
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
7409
|
+
}
|
|
7323
7410
|
|
|
7411
|
+
/**
|
|
7412
|
+
* Emitted when there is an additional text delta.
|
|
7413
|
+
*/
|
|
7414
|
+
export interface ResponseTextDeltaEvent {
|
|
7324
7415
|
/**
|
|
7325
|
-
* The
|
|
7416
|
+
* The index of the content part that the text delta was added to.
|
|
7326
7417
|
*/
|
|
7327
|
-
|
|
7418
|
+
content_index: number;
|
|
7328
7419
|
|
|
7329
7420
|
/**
|
|
7330
|
-
* The
|
|
7421
|
+
* The text delta that was added.
|
|
7331
7422
|
*/
|
|
7332
|
-
|
|
7333
|
-
}
|
|
7423
|
+
delta: string;
|
|
7334
7424
|
|
|
7335
|
-
/**
|
|
7336
|
-
* Emitted when a web search call is initiated.
|
|
7337
|
-
*/
|
|
7338
|
-
export interface ResponseWebSearchCallInProgressEvent {
|
|
7339
7425
|
/**
|
|
7340
|
-
*
|
|
7426
|
+
* The ID of the output item that the text delta was added to.
|
|
7341
7427
|
*/
|
|
7342
7428
|
item_id: string;
|
|
7343
7429
|
|
|
7344
7430
|
/**
|
|
7345
|
-
* The
|
|
7431
|
+
* The log probabilities of the tokens in the delta.
|
|
7432
|
+
*/
|
|
7433
|
+
logprobs: Array<ResponseTextDeltaEvent.Logprob>;
|
|
7434
|
+
|
|
7435
|
+
/**
|
|
7436
|
+
* The index of the output item that the text delta was added to.
|
|
7346
7437
|
*/
|
|
7347
7438
|
output_index: number;
|
|
7348
7439
|
|
|
7349
7440
|
/**
|
|
7350
|
-
* The sequence number
|
|
7441
|
+
* The sequence number for this event.
|
|
7351
7442
|
*/
|
|
7352
7443
|
sequence_number: number;
|
|
7353
7444
|
|
|
7354
7445
|
/**
|
|
7355
|
-
* The type of the event. Always `response.
|
|
7446
|
+
* The type of the event. Always `response.output_text.delta`.
|
|
7356
7447
|
*/
|
|
7357
|
-
type: 'response.
|
|
7448
|
+
type: 'response.output_text.delta';
|
|
7449
|
+
}
|
|
7450
|
+
|
|
7451
|
+
export namespace ResponseTextDeltaEvent {
|
|
7452
|
+
/**
|
|
7453
|
+
* A logprob is the logarithmic probability that the model assigns to producing a
|
|
7454
|
+
* particular token at a given position in the sequence. Less-negative (higher)
|
|
7455
|
+
* logprob values indicate greater model confidence in that token choice.
|
|
7456
|
+
*/
|
|
7457
|
+
export interface Logprob {
|
|
7458
|
+
/**
|
|
7459
|
+
* A possible text token.
|
|
7460
|
+
*/
|
|
7461
|
+
token: string;
|
|
7462
|
+
|
|
7463
|
+
/**
|
|
7464
|
+
* The log probability of this token.
|
|
7465
|
+
*/
|
|
7466
|
+
logprob: number;
|
|
7467
|
+
|
|
7468
|
+
/**
|
|
7469
|
+
* The log probabilities of up to 20 of the most likely tokens.
|
|
7470
|
+
*/
|
|
7471
|
+
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
7472
|
+
}
|
|
7473
|
+
|
|
7474
|
+
export namespace Logprob {
|
|
7475
|
+
export interface TopLogprob {
|
|
7476
|
+
/**
|
|
7477
|
+
* A possible text token.
|
|
7478
|
+
*/
|
|
7479
|
+
token?: string;
|
|
7480
|
+
|
|
7481
|
+
/**
|
|
7482
|
+
* The log probability of this token.
|
|
7483
|
+
*/
|
|
7484
|
+
logprob?: number;
|
|
7485
|
+
}
|
|
7486
|
+
}
|
|
7358
7487
|
}
|
|
7359
7488
|
|
|
7360
7489
|
/**
|
|
7361
|
-
* Emitted when
|
|
7490
|
+
* Emitted when text content is finalized.
|
|
7362
7491
|
*/
|
|
7363
|
-
export interface
|
|
7492
|
+
export interface ResponseTextDoneEvent {
|
|
7364
7493
|
/**
|
|
7365
|
-
*
|
|
7494
|
+
* The index of the content part that the text content is finalized.
|
|
7495
|
+
*/
|
|
7496
|
+
content_index: number;
|
|
7497
|
+
|
|
7498
|
+
/**
|
|
7499
|
+
* The ID of the output item that the text content is finalized.
|
|
7366
7500
|
*/
|
|
7367
7501
|
item_id: string;
|
|
7368
7502
|
|
|
7369
7503
|
/**
|
|
7370
|
-
* The
|
|
7504
|
+
* The log probabilities of the tokens in the delta.
|
|
7505
|
+
*/
|
|
7506
|
+
logprobs: Array<ResponseTextDoneEvent.Logprob>;
|
|
7507
|
+
|
|
7508
|
+
/**
|
|
7509
|
+
* The index of the output item that the text content is finalized.
|
|
7371
7510
|
*/
|
|
7372
7511
|
output_index: number;
|
|
7373
7512
|
|
|
7374
7513
|
/**
|
|
7375
|
-
* The sequence number
|
|
7514
|
+
* The sequence number for this event.
|
|
7376
7515
|
*/
|
|
7377
7516
|
sequence_number: number;
|
|
7378
7517
|
|
|
7379
7518
|
/**
|
|
7380
|
-
* The
|
|
7519
|
+
* The text content that is finalized.
|
|
7381
7520
|
*/
|
|
7382
|
-
|
|
7521
|
+
text: string;
|
|
7522
|
+
|
|
7523
|
+
/**
|
|
7524
|
+
* The type of the event. Always `response.output_text.done`.
|
|
7525
|
+
*/
|
|
7526
|
+
type: 'response.output_text.done';
|
|
7383
7527
|
}
|
|
7384
7528
|
|
|
7385
|
-
export
|
|
7529
|
+
export namespace ResponseTextDoneEvent {
|
|
7386
7530
|
/**
|
|
7387
|
-
*
|
|
7531
|
+
* A logprob is the logarithmic probability that the model assigns to producing a
|
|
7532
|
+
* particular token at a given position in the sequence. Less-negative (higher)
|
|
7533
|
+
* logprob values indicate greater model confidence in that token choice.
|
|
7388
7534
|
*/
|
|
7389
|
-
|
|
7535
|
+
export interface Logprob {
|
|
7536
|
+
/**
|
|
7537
|
+
* A possible text token.
|
|
7538
|
+
*/
|
|
7539
|
+
token: string;
|
|
7540
|
+
|
|
7541
|
+
/**
|
|
7542
|
+
* The log probability of this token.
|
|
7543
|
+
*/
|
|
7544
|
+
logprob: number;
|
|
7545
|
+
|
|
7546
|
+
/**
|
|
7547
|
+
* The log probabilities of up to 20 of the most likely tokens.
|
|
7548
|
+
*/
|
|
7549
|
+
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
7550
|
+
}
|
|
7551
|
+
|
|
7552
|
+
export namespace Logprob {
|
|
7553
|
+
export interface TopLogprob {
|
|
7554
|
+
/**
|
|
7555
|
+
* A possible text token.
|
|
7556
|
+
*/
|
|
7557
|
+
token?: string;
|
|
7558
|
+
|
|
7559
|
+
/**
|
|
7560
|
+
* The log probability of this token.
|
|
7561
|
+
*/
|
|
7562
|
+
logprob?: number;
|
|
7563
|
+
}
|
|
7564
|
+
}
|
|
7565
|
+
}
|
|
7566
|
+
|
|
7567
|
+
export interface ResponseToolSearchCall {
|
|
7568
|
+
/**
|
|
7569
|
+
* The unique ID of the tool search call item.
|
|
7570
|
+
*/
|
|
7571
|
+
id: string;
|
|
7572
|
+
|
|
7573
|
+
/**
|
|
7574
|
+
* Arguments used for the tool search call.
|
|
7575
|
+
*/
|
|
7576
|
+
arguments: unknown;
|
|
7577
|
+
|
|
7578
|
+
/**
|
|
7579
|
+
* The unique ID of the tool search call generated by the model.
|
|
7580
|
+
*/
|
|
7581
|
+
call_id: string | null;
|
|
7582
|
+
|
|
7583
|
+
/**
|
|
7584
|
+
* Whether tool search was executed by the server or by the client.
|
|
7585
|
+
*/
|
|
7586
|
+
execution: 'server' | 'client';
|
|
7587
|
+
|
|
7588
|
+
/**
|
|
7589
|
+
* The status of the tool search call item that was recorded.
|
|
7590
|
+
*/
|
|
7591
|
+
status: 'in_progress' | 'completed' | 'incomplete';
|
|
7592
|
+
|
|
7593
|
+
/**
|
|
7594
|
+
* The type of the item. Always `tool_search_call`.
|
|
7595
|
+
*/
|
|
7596
|
+
type: 'tool_search_call';
|
|
7597
|
+
|
|
7598
|
+
/**
|
|
7599
|
+
* The identifier of the actor that created the item.
|
|
7600
|
+
*/
|
|
7601
|
+
created_by?: string;
|
|
7602
|
+
}
|
|
7603
|
+
|
|
7604
|
+
export interface ResponseToolSearchOutputItem {
|
|
7605
|
+
/**
|
|
7606
|
+
* The unique ID of the tool search output item.
|
|
7607
|
+
*/
|
|
7608
|
+
id: string;
|
|
7609
|
+
|
|
7610
|
+
/**
|
|
7611
|
+
* The unique ID of the tool search call generated by the model.
|
|
7612
|
+
*/
|
|
7613
|
+
call_id: string | null;
|
|
7614
|
+
|
|
7615
|
+
/**
|
|
7616
|
+
* Whether tool search was executed by the server or by the client.
|
|
7617
|
+
*/
|
|
7618
|
+
execution: 'server' | 'client';
|
|
7619
|
+
|
|
7620
|
+
/**
|
|
7621
|
+
* The status of the tool search output item that was recorded.
|
|
7622
|
+
*/
|
|
7623
|
+
status: 'in_progress' | 'completed' | 'incomplete';
|
|
7624
|
+
|
|
7625
|
+
/**
|
|
7626
|
+
* The loaded tool definitions returned by tool search.
|
|
7627
|
+
*/
|
|
7628
|
+
tools: Array<Tool>;
|
|
7629
|
+
|
|
7630
|
+
/**
|
|
7631
|
+
* The type of the item. Always `tool_search_output`.
|
|
7632
|
+
*/
|
|
7633
|
+
type: 'tool_search_output';
|
|
7634
|
+
|
|
7635
|
+
/**
|
|
7636
|
+
* The identifier of the actor that created the item.
|
|
7637
|
+
*/
|
|
7638
|
+
created_by?: string;
|
|
7639
|
+
}
|
|
7640
|
+
|
|
7641
|
+
export interface ResponseToolSearchOutputItemParam {
|
|
7642
|
+
/**
|
|
7643
|
+
* The loaded tool definitions returned by the tool search output.
|
|
7644
|
+
*/
|
|
7645
|
+
tools: Array<Tool>;
|
|
7646
|
+
|
|
7647
|
+
/**
|
|
7648
|
+
* The item type. Always `tool_search_output`.
|
|
7649
|
+
*/
|
|
7650
|
+
type: 'tool_search_output';
|
|
7651
|
+
|
|
7652
|
+
/**
|
|
7653
|
+
* The unique ID of this tool search output.
|
|
7654
|
+
*/
|
|
7655
|
+
id?: string | null;
|
|
7656
|
+
|
|
7657
|
+
/**
|
|
7658
|
+
* The unique ID of the tool search call generated by the model.
|
|
7659
|
+
*/
|
|
7660
|
+
call_id?: string | null;
|
|
7661
|
+
|
|
7662
|
+
/**
|
|
7663
|
+
* Whether tool search was executed by the server or by the client.
|
|
7664
|
+
*/
|
|
7665
|
+
execution?: 'server' | 'client';
|
|
7666
|
+
|
|
7667
|
+
/**
|
|
7668
|
+
* The status of the tool search output.
|
|
7669
|
+
*/
|
|
7670
|
+
status?: 'in_progress' | 'completed' | 'incomplete' | null;
|
|
7671
|
+
}
|
|
7672
|
+
|
|
7673
|
+
/**
|
|
7674
|
+
* Represents token usage details including input tokens, output tokens, a
|
|
7675
|
+
* breakdown of output tokens, and the total tokens used.
|
|
7676
|
+
*/
|
|
7677
|
+
export interface ResponseUsage {
|
|
7678
|
+
/**
|
|
7679
|
+
* The number of input tokens.
|
|
7680
|
+
*/
|
|
7681
|
+
input_tokens: number;
|
|
7682
|
+
|
|
7683
|
+
/**
|
|
7684
|
+
* A detailed breakdown of the input tokens.
|
|
7685
|
+
*/
|
|
7686
|
+
input_tokens_details: ResponseUsage.InputTokensDetails;
|
|
7687
|
+
|
|
7688
|
+
/**
|
|
7689
|
+
* The number of output tokens.
|
|
7690
|
+
*/
|
|
7691
|
+
output_tokens: number;
|
|
7692
|
+
|
|
7693
|
+
/**
|
|
7694
|
+
* A detailed breakdown of the output tokens.
|
|
7695
|
+
*/
|
|
7696
|
+
output_tokens_details: ResponseUsage.OutputTokensDetails;
|
|
7697
|
+
|
|
7698
|
+
/**
|
|
7699
|
+
* The total number of tokens used.
|
|
7700
|
+
*/
|
|
7701
|
+
total_tokens: number;
|
|
7702
|
+
}
|
|
7703
|
+
|
|
7704
|
+
export namespace ResponseUsage {
|
|
7705
|
+
/**
|
|
7706
|
+
* A detailed breakdown of the input tokens.
|
|
7707
|
+
*/
|
|
7708
|
+
export interface InputTokensDetails {
|
|
7709
|
+
/**
|
|
7710
|
+
* The number of input tokens that were written to the cache.
|
|
7711
|
+
*/
|
|
7712
|
+
cache_write_tokens: number;
|
|
7713
|
+
|
|
7714
|
+
/**
|
|
7715
|
+
* The number of tokens that were retrieved from the cache.
|
|
7716
|
+
* [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching).
|
|
7717
|
+
*/
|
|
7718
|
+
cached_tokens: number;
|
|
7719
|
+
}
|
|
7720
|
+
|
|
7721
|
+
/**
|
|
7722
|
+
* A detailed breakdown of the output tokens.
|
|
7723
|
+
*/
|
|
7724
|
+
export interface OutputTokensDetails {
|
|
7725
|
+
/**
|
|
7726
|
+
* The number of reasoning tokens.
|
|
7727
|
+
*/
|
|
7728
|
+
reasoning_tokens: number;
|
|
7729
|
+
}
|
|
7730
|
+
}
|
|
7731
|
+
|
|
7732
|
+
/**
|
|
7733
|
+
* Emitted when a web search call is completed.
|
|
7734
|
+
*/
|
|
7735
|
+
export interface ResponseWebSearchCallCompletedEvent {
|
|
7736
|
+
/**
|
|
7737
|
+
* Unique ID for the output item associated with the web search call.
|
|
7738
|
+
*/
|
|
7739
|
+
item_id: string;
|
|
7740
|
+
|
|
7741
|
+
/**
|
|
7742
|
+
* The index of the output item that the web search call is associated with.
|
|
7743
|
+
*/
|
|
7744
|
+
output_index: number;
|
|
7745
|
+
|
|
7746
|
+
/**
|
|
7747
|
+
* The sequence number of the web search call being processed.
|
|
7748
|
+
*/
|
|
7749
|
+
sequence_number: number;
|
|
7750
|
+
|
|
7751
|
+
/**
|
|
7752
|
+
* The type of the event. Always `response.web_search_call.completed`.
|
|
7753
|
+
*/
|
|
7754
|
+
type: 'response.web_search_call.completed';
|
|
7755
|
+
}
|
|
7756
|
+
|
|
7757
|
+
/**
|
|
7758
|
+
* Emitted when a web search call is initiated.
|
|
7759
|
+
*/
|
|
7760
|
+
export interface ResponseWebSearchCallInProgressEvent {
|
|
7761
|
+
/**
|
|
7762
|
+
* Unique ID for the output item associated with the web search call.
|
|
7763
|
+
*/
|
|
7764
|
+
item_id: string;
|
|
7765
|
+
|
|
7766
|
+
/**
|
|
7767
|
+
* The index of the output item that the web search call is associated with.
|
|
7768
|
+
*/
|
|
7769
|
+
output_index: number;
|
|
7770
|
+
|
|
7771
|
+
/**
|
|
7772
|
+
* The sequence number of the web search call being processed.
|
|
7773
|
+
*/
|
|
7774
|
+
sequence_number: number;
|
|
7775
|
+
|
|
7776
|
+
/**
|
|
7777
|
+
* The type of the event. Always `response.web_search_call.in_progress`.
|
|
7778
|
+
*/
|
|
7779
|
+
type: 'response.web_search_call.in_progress';
|
|
7780
|
+
}
|
|
7781
|
+
|
|
7782
|
+
/**
|
|
7783
|
+
* Emitted when a web search call is executing.
|
|
7784
|
+
*/
|
|
7785
|
+
export interface ResponseWebSearchCallSearchingEvent {
|
|
7786
|
+
/**
|
|
7787
|
+
* Unique ID for the output item associated with the web search call.
|
|
7788
|
+
*/
|
|
7789
|
+
item_id: string;
|
|
7790
|
+
|
|
7791
|
+
/**
|
|
7792
|
+
* The index of the output item that the web search call is associated with.
|
|
7793
|
+
*/
|
|
7794
|
+
output_index: number;
|
|
7795
|
+
|
|
7796
|
+
/**
|
|
7797
|
+
* The sequence number of the web search call being processed.
|
|
7798
|
+
*/
|
|
7799
|
+
sequence_number: number;
|
|
7800
|
+
|
|
7801
|
+
/**
|
|
7802
|
+
* The type of the event. Always `response.web_search_call.searching`.
|
|
7803
|
+
*/
|
|
7804
|
+
type: 'response.web_search_call.searching';
|
|
7805
|
+
}
|
|
7806
|
+
|
|
7807
|
+
export interface ResponsesClientEvent {
|
|
7808
|
+
/**
|
|
7809
|
+
* The type of the client event. Always `response.create`.
|
|
7810
|
+
*/
|
|
7811
|
+
type: 'response.create';
|
|
7812
|
+
|
|
7813
|
+
/**
|
|
7814
|
+
* Whether to run the model response in the background.
|
|
7815
|
+
* [Learn more](https://platform.openai.com/docs/guides/background).
|
|
7816
|
+
*/
|
|
7817
|
+
background?: boolean | null;
|
|
7818
|
+
|
|
7819
|
+
/**
|
|
7820
|
+
* Context management configuration for this request.
|
|
7821
|
+
*/
|
|
7822
|
+
context_management?: Array<ResponsesClientEvent.ContextManagement> | null;
|
|
7823
|
+
|
|
7824
|
+
/**
|
|
7825
|
+
* The conversation that this response belongs to. Items from this conversation are
|
|
7826
|
+
* prepended to `input_items` for this response request. Input items and output
|
|
7827
|
+
* items from this response are automatically added to this conversation after this
|
|
7828
|
+
* response completes.
|
|
7829
|
+
*/
|
|
7830
|
+
conversation?: string | ResponseConversationParam | null;
|
|
7831
|
+
|
|
7832
|
+
/**
|
|
7833
|
+
* Specify additional output data to include in the model response. Currently
|
|
7834
|
+
* supported values are:
|
|
7835
|
+
*
|
|
7836
|
+
* - `web_search_call.action.sources`: Include the sources of the web search tool
|
|
7837
|
+
* call.
|
|
7838
|
+
* - `code_interpreter_call.outputs`: Includes the outputs of python code execution
|
|
7839
|
+
* in code interpreter tool call items.
|
|
7840
|
+
* - `computer_call_output.output.image_url`: Include image urls from the computer
|
|
7841
|
+
* call output.
|
|
7842
|
+
* - `file_search_call.results`: Include the search results of the file search tool
|
|
7843
|
+
* call.
|
|
7844
|
+
* - `message.input_image.image_url`: Include image urls from the input message.
|
|
7845
|
+
* - `message.output_text.logprobs`: Include logprobs with assistant messages.
|
|
7846
|
+
* - `reasoning.encrypted_content`: Includes an encrypted version of reasoning
|
|
7847
|
+
* tokens in reasoning item outputs. This enables reasoning items to be used in
|
|
7848
|
+
* multi-turn conversations when using the Responses API statelessly (like when
|
|
7849
|
+
* the `store` parameter is set to `false`, or when an organization is enrolled
|
|
7850
|
+
* in the zero data retention program).
|
|
7851
|
+
*/
|
|
7852
|
+
include?: Array<ResponseIncludable> | null;
|
|
7853
|
+
|
|
7854
|
+
/**
|
|
7855
|
+
* Text, image, or file inputs to the model, used to generate a response.
|
|
7856
|
+
*
|
|
7857
|
+
* Learn more:
|
|
7858
|
+
*
|
|
7859
|
+
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
7860
|
+
* - [Image inputs](https://platform.openai.com/docs/guides/images)
|
|
7861
|
+
* - [File inputs](https://platform.openai.com/docs/guides/pdf-files)
|
|
7862
|
+
* - [Conversation state](https://platform.openai.com/docs/guides/conversation-state)
|
|
7863
|
+
* - [Function calling](https://platform.openai.com/docs/guides/function-calling)
|
|
7864
|
+
*/
|
|
7865
|
+
input?: string | ResponseInput;
|
|
7866
|
+
|
|
7867
|
+
/**
|
|
7868
|
+
* A system (or developer) message inserted into the model's context.
|
|
7869
|
+
*
|
|
7870
|
+
* When using along with `previous_response_id`, the instructions from a previous
|
|
7871
|
+
* response will not be carried over to the next response. This makes it simple to
|
|
7872
|
+
* swap out system (or developer) messages in new responses.
|
|
7873
|
+
*/
|
|
7874
|
+
instructions?: string | null;
|
|
7875
|
+
|
|
7876
|
+
/**
|
|
7877
|
+
* An upper bound for the number of tokens that can be generated for a response,
|
|
7878
|
+
* including visible output tokens and
|
|
7879
|
+
* [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).
|
|
7880
|
+
*/
|
|
7881
|
+
max_output_tokens?: number | null;
|
|
7882
|
+
|
|
7883
|
+
/**
|
|
7884
|
+
* The maximum number of total calls to built-in tools that can be processed in a
|
|
7885
|
+
* response. This maximum number applies across all built-in tool calls, not per
|
|
7886
|
+
* individual tool. Any further attempts to call a tool by the model will be
|
|
7887
|
+
* ignored.
|
|
7888
|
+
*/
|
|
7889
|
+
max_tool_calls?: number | null;
|
|
7890
|
+
|
|
7891
|
+
/**
|
|
7892
|
+
* Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
7893
|
+
* for storing additional information about the object in a structured format, and
|
|
7894
|
+
* querying for objects via API or the dashboard.
|
|
7895
|
+
*
|
|
7896
|
+
* Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
7897
|
+
* a maximum length of 512 characters.
|
|
7898
|
+
*/
|
|
7899
|
+
metadata?: Shared.Metadata | null;
|
|
7900
|
+
|
|
7901
|
+
/**
|
|
7902
|
+
* Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a
|
|
7903
|
+
* wide range of models with different capabilities, performance characteristics,
|
|
7904
|
+
* and price points. Refer to the
|
|
7905
|
+
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
7906
|
+
* available models.
|
|
7907
|
+
*/
|
|
7908
|
+
model?: Shared.ResponsesModel;
|
|
7909
|
+
|
|
7910
|
+
/**
|
|
7911
|
+
* Configuration for running moderation on the input and output of this response.
|
|
7912
|
+
*/
|
|
7913
|
+
moderation?: ResponsesClientEvent.Moderation | null;
|
|
7914
|
+
|
|
7915
|
+
/**
|
|
7916
|
+
* Whether to allow the model to run tool calls in parallel.
|
|
7917
|
+
*/
|
|
7918
|
+
parallel_tool_calls?: boolean | null;
|
|
7919
|
+
|
|
7920
|
+
/**
|
|
7921
|
+
* The unique ID of the previous response to the model. Use this to create
|
|
7922
|
+
* multi-turn conversations. Learn more about
|
|
7923
|
+
* [conversation state](https://platform.openai.com/docs/guides/conversation-state).
|
|
7924
|
+
* Cannot be used in conjunction with `conversation`.
|
|
7925
|
+
*/
|
|
7926
|
+
previous_response_id?: string | null;
|
|
7927
|
+
|
|
7928
|
+
/**
|
|
7929
|
+
* Reference to a prompt template and its variables.
|
|
7930
|
+
* [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
|
|
7931
|
+
*/
|
|
7932
|
+
prompt?: ResponsePrompt | null;
|
|
7933
|
+
|
|
7934
|
+
/**
|
|
7935
|
+
* Used by OpenAI to cache responses for similar requests to optimize your cache
|
|
7936
|
+
* hit rates. Replaces the `user` field.
|
|
7937
|
+
* [Learn more](https://platform.openai.com/docs/guides/prompt-caching).
|
|
7938
|
+
*/
|
|
7939
|
+
prompt_cache_key?: string | null;
|
|
7940
|
+
|
|
7941
|
+
/**
|
|
7942
|
+
* Options for prompt caching. Supported for `gpt-5.6` and later models. By
|
|
7943
|
+
* default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
7944
|
+
* explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
7945
|
+
* request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
7946
|
+
* up to the latest 80 breakpoints in the conversation, without a content-block
|
|
7947
|
+
* lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
7948
|
+
* `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
7949
|
+
* [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
|
|
7950
|
+
* for current details.
|
|
7951
|
+
*/
|
|
7952
|
+
prompt_cache_options?: ResponsesClientEvent.PromptCacheOptions;
|
|
7953
|
+
|
|
7954
|
+
/**
|
|
7955
|
+
* @deprecated Deprecated. Use `prompt_cache_options.ttl` instead.
|
|
7956
|
+
*
|
|
7957
|
+
* The retention policy for the prompt cache. Set to `24h` to enable extended
|
|
7958
|
+
* prompt caching, which keeps cached prefixes active for longer, up to a maximum
|
|
7959
|
+
* of 24 hours.
|
|
7960
|
+
* [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
|
|
7961
|
+
* This field expresses a maximum retention policy, while
|
|
7962
|
+
* `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two fields
|
|
7963
|
+
* are independent and do not interact. For `gpt-5.5`, `gpt-5.5-pro`, and future
|
|
7964
|
+
* models, only `24h` is supported.
|
|
7965
|
+
*
|
|
7966
|
+
* For older models that support both `in_memory` and `24h`, the default depends on
|
|
7967
|
+
* your organization's data retention policy:
|
|
7968
|
+
*
|
|
7969
|
+
* - Organizations without ZDR enabled default to `24h`.
|
|
7970
|
+
* - Organizations with ZDR enabled default to `in_memory` when
|
|
7971
|
+
* `prompt_cache_retention` is not specified.
|
|
7972
|
+
*/
|
|
7973
|
+
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
7974
|
+
|
|
7975
|
+
/**
|
|
7976
|
+
* **gpt-5 and o-series models only**
|
|
7977
|
+
*
|
|
7978
|
+
* Configuration options for
|
|
7979
|
+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
7980
|
+
*/
|
|
7981
|
+
reasoning?: Shared.Reasoning | null;
|
|
7982
|
+
|
|
7983
|
+
/**
|
|
7984
|
+
* A stable identifier used to help detect users of your application that may be
|
|
7985
|
+
* violating OpenAI's usage policies. The IDs should be a string that uniquely
|
|
7986
|
+
* identifies each user, with a maximum length of 64 characters. We recommend
|
|
7987
|
+
* hashing their username or email address, in order to avoid sending us any
|
|
7988
|
+
* identifying information.
|
|
7989
|
+
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
7990
|
+
*/
|
|
7991
|
+
safety_identifier?: string | null;
|
|
7992
|
+
|
|
7993
|
+
/**
|
|
7994
|
+
* Specifies the processing type used for serving the request.
|
|
7995
|
+
*
|
|
7996
|
+
* - If set to 'auto', then the request will be processed with the service tier
|
|
7997
|
+
* configured in the Project settings. Unless otherwise configured, the Project
|
|
7998
|
+
* will use 'default'.
|
|
7999
|
+
* - If set to 'default', then the request will be processed with the standard
|
|
8000
|
+
* pricing and performance for the selected model.
|
|
8001
|
+
* - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
8002
|
+
* then the request will be processed with the Flex Processing service tier.
|
|
8003
|
+
* - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
8004
|
+
* include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
8005
|
+
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
8006
|
+
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
8007
|
+
* request.
|
|
8008
|
+
* - If set to 'ultrafast', then the request will be processed with the
|
|
8009
|
+
* access-controlled Ultrafast Processing service tier. This tier is currently
|
|
8010
|
+
* available for `gpt-5.6-sol`; a response served through it will show
|
|
8011
|
+
* `service_tier=ultrafast`.
|
|
8012
|
+
* - When not set, the default behavior is 'auto'.
|
|
8013
|
+
*
|
|
8014
|
+
* When the `service_tier` parameter is set, the response body will include the
|
|
8015
|
+
* `service_tier` value based on the processing mode actually used to serve the
|
|
8016
|
+
* request. This response value may be different from the value set in the
|
|
8017
|
+
* parameter.
|
|
8018
|
+
*/
|
|
8019
|
+
service_tier?: ServiceTier | null;
|
|
8020
|
+
|
|
8021
|
+
/**
|
|
8022
|
+
* Whether to store the generated model response for later retrieval via API.
|
|
8023
|
+
*/
|
|
8024
|
+
store?: boolean | null;
|
|
8025
|
+
|
|
8026
|
+
/**
|
|
8027
|
+
* If set to true, the model response data will be streamed to the client as it is
|
|
8028
|
+
* generated using
|
|
8029
|
+
* [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
|
|
8030
|
+
* See the
|
|
8031
|
+
* [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)
|
|
8032
|
+
* for more information.
|
|
8033
|
+
*/
|
|
8034
|
+
stream?: boolean | null;
|
|
8035
|
+
|
|
8036
|
+
/**
|
|
8037
|
+
* The WebSocket lane for this response. Requests with the same `stream_id` are
|
|
8038
|
+
* processed FIFO, and events for the response echo the same `stream_id`.
|
|
8039
|
+
*
|
|
8040
|
+
* `stream_id` controls routing; `previous_response_id` controls conversation
|
|
8041
|
+
* lineage, so a new lane can fork from a response created on another lane.
|
|
8042
|
+
*/
|
|
8043
|
+
stream_id?: string;
|
|
8044
|
+
|
|
8045
|
+
/**
|
|
8046
|
+
* Options for streaming responses. Only set this when you set `stream: true`.
|
|
8047
|
+
*/
|
|
8048
|
+
stream_options?: ResponsesClientEvent.StreamOptions | null;
|
|
8049
|
+
|
|
8050
|
+
/**
|
|
8051
|
+
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
|
|
8052
|
+
* make the output more random, while lower values like 0.2 will make it more
|
|
8053
|
+
* focused and deterministic. We generally recommend altering this or `top_p` but
|
|
8054
|
+
* not both.
|
|
8055
|
+
*/
|
|
8056
|
+
temperature?: number | null;
|
|
8057
|
+
|
|
8058
|
+
/**
|
|
8059
|
+
* Configuration options for a text response from the model. Can be plain text or
|
|
8060
|
+
* structured JSON data. Learn more:
|
|
8061
|
+
*
|
|
8062
|
+
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
8063
|
+
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
8064
|
+
*/
|
|
8065
|
+
text?: ResponseTextConfig;
|
|
8066
|
+
|
|
8067
|
+
/**
|
|
8068
|
+
* How the model should select which tool (or tools) to use when generating a
|
|
8069
|
+
* response. See the `tools` parameter to see how to specify which tools the model
|
|
8070
|
+
* can call.
|
|
8071
|
+
*/
|
|
8072
|
+
tool_choice?:
|
|
8073
|
+
| ToolChoiceOptions
|
|
8074
|
+
| ToolChoiceAllowed
|
|
8075
|
+
| ToolChoiceTypes
|
|
8076
|
+
| ToolChoiceFunction
|
|
8077
|
+
| ToolChoiceMcp
|
|
8078
|
+
| ToolChoiceCustom
|
|
8079
|
+
| ResponsesClientEvent.SpecificProgrammaticToolCallingParam
|
|
8080
|
+
| ToolChoiceApplyPatch
|
|
8081
|
+
| ToolChoiceShell;
|
|
8082
|
+
|
|
8083
|
+
/**
|
|
8084
|
+
* An array of tools the model may call while generating a response. You can
|
|
8085
|
+
* specify which tool to use by setting the `tool_choice` parameter.
|
|
8086
|
+
*
|
|
8087
|
+
* We support the following categories of tools:
|
|
8088
|
+
*
|
|
8089
|
+
* - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
|
|
8090
|
+
* capabilities, like
|
|
8091
|
+
* [web search](https://platform.openai.com/docs/guides/tools-web-search) or
|
|
8092
|
+
* [file search](https://platform.openai.com/docs/guides/tools-file-search).
|
|
8093
|
+
* Learn more about
|
|
8094
|
+
* [built-in tools](https://platform.openai.com/docs/guides/tools).
|
|
8095
|
+
* - **MCP Tools**: Integrations with third-party systems via custom MCP servers or
|
|
8096
|
+
* predefined connectors such as Google Drive and SharePoint. Learn more about
|
|
8097
|
+
* [MCP Tools](https://platform.openai.com/docs/guides/tools-connectors-mcp).
|
|
8098
|
+
* - **Function calls (custom tools)**: Functions that are defined by you, enabling
|
|
8099
|
+
* the model to call your own code with strongly typed arguments and outputs.
|
|
8100
|
+
* Learn more about
|
|
8101
|
+
* [function calling](https://platform.openai.com/docs/guides/function-calling).
|
|
8102
|
+
* You can also use custom tools to call your own code.
|
|
8103
|
+
*/
|
|
8104
|
+
tools?: Array<Tool>;
|
|
8105
|
+
|
|
8106
|
+
/**
|
|
8107
|
+
* An integer between 0 and 20 specifying the maximum number of most likely tokens
|
|
8108
|
+
* to return at each token position, each with an associated log probability. In
|
|
8109
|
+
* some cases, the number of returned tokens may be fewer than requested.
|
|
8110
|
+
*/
|
|
8111
|
+
top_logprobs?: number | null;
|
|
8112
|
+
|
|
8113
|
+
/**
|
|
8114
|
+
* An alternative to sampling with temperature, called nucleus sampling, where the
|
|
8115
|
+
* model considers the results of the tokens with top_p probability mass. So 0.1
|
|
8116
|
+
* means only the tokens comprising the top 10% probability mass are considered.
|
|
8117
|
+
*
|
|
8118
|
+
* We generally recommend altering this or `temperature` but not both.
|
|
8119
|
+
*/
|
|
8120
|
+
top_p?: number | null;
|
|
8121
|
+
|
|
8122
|
+
/**
|
|
8123
|
+
* @deprecated The truncation strategy to use for the model response.
|
|
8124
|
+
*
|
|
8125
|
+
* - `auto`: If the input to this Response exceeds the model's context window size,
|
|
8126
|
+
* the model will truncate the response to fit the context window by dropping
|
|
8127
|
+
* items from the beginning of the conversation.
|
|
8128
|
+
* - `disabled` (default): If the input size will exceed the context window size
|
|
8129
|
+
* for a model, the request will fail with a 400 error.
|
|
8130
|
+
*/
|
|
8131
|
+
truncation?: 'auto' | 'disabled' | null;
|
|
8132
|
+
|
|
8133
|
+
/**
|
|
8134
|
+
* @deprecated This field is being replaced by `safety_identifier` and
|
|
8135
|
+
* `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching
|
|
8136
|
+
* optimizations. A stable identifier for your end-users. Used to boost cache hit
|
|
8137
|
+
* rates by better bucketing similar requests and to help OpenAI detect and prevent
|
|
8138
|
+
* abuse.
|
|
8139
|
+
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
8140
|
+
*/
|
|
8141
|
+
user?: string;
|
|
8142
|
+
}
|
|
8143
|
+
|
|
8144
|
+
export namespace ResponsesClientEvent {
|
|
8145
|
+
export interface ContextManagement {
|
|
8146
|
+
/**
|
|
8147
|
+
* The context management entry type. Currently only 'compaction' is supported.
|
|
8148
|
+
*/
|
|
8149
|
+
type: string;
|
|
8150
|
+
|
|
8151
|
+
/**
|
|
8152
|
+
* Token threshold at which compaction should be triggered for this entry.
|
|
8153
|
+
*/
|
|
8154
|
+
compact_threshold?: number | null;
|
|
8155
|
+
}
|
|
8156
|
+
|
|
8157
|
+
/**
|
|
8158
|
+
* Configuration for running moderation on the input and output of this response.
|
|
8159
|
+
*/
|
|
8160
|
+
export interface Moderation {
|
|
8161
|
+
/**
|
|
8162
|
+
* The moderation model to use for moderated completions, e.g.
|
|
8163
|
+
* 'omni-moderation-latest'.
|
|
8164
|
+
*/
|
|
8165
|
+
model: string;
|
|
8166
|
+
|
|
8167
|
+
/**
|
|
8168
|
+
* The policy to apply to moderated response input and output.
|
|
8169
|
+
*/
|
|
8170
|
+
policy?: Moderation.Policy | null;
|
|
8171
|
+
}
|
|
8172
|
+
|
|
8173
|
+
export namespace Moderation {
|
|
8174
|
+
/**
|
|
8175
|
+
* The policy to apply to moderated response input and output.
|
|
8176
|
+
*/
|
|
8177
|
+
export interface Policy {
|
|
8178
|
+
/**
|
|
8179
|
+
* The moderation policy for the response input.
|
|
8180
|
+
*/
|
|
8181
|
+
input?: Policy.Input | null;
|
|
8182
|
+
|
|
8183
|
+
/**
|
|
8184
|
+
* The moderation policy for the response output.
|
|
8185
|
+
*/
|
|
8186
|
+
output?: Policy.Output | null;
|
|
8187
|
+
}
|
|
8188
|
+
|
|
8189
|
+
export namespace Policy {
|
|
8190
|
+
/**
|
|
8191
|
+
* The moderation policy for the response input.
|
|
8192
|
+
*/
|
|
8193
|
+
export interface Input {
|
|
8194
|
+
mode: 'score' | 'block';
|
|
8195
|
+
}
|
|
8196
|
+
|
|
8197
|
+
/**
|
|
8198
|
+
* The moderation policy for the response output.
|
|
8199
|
+
*/
|
|
8200
|
+
export interface Output {
|
|
8201
|
+
mode: 'score' | 'block';
|
|
8202
|
+
}
|
|
8203
|
+
}
|
|
8204
|
+
}
|
|
8205
|
+
|
|
8206
|
+
/**
|
|
8207
|
+
* Options for prompt caching. Supported for `gpt-5.6` and later models. By
|
|
8208
|
+
* default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
8209
|
+
* explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
8210
|
+
* request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
8211
|
+
* up to the latest 80 breakpoints in the conversation, without a content-block
|
|
8212
|
+
* lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
8213
|
+
* `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
8214
|
+
* [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
|
|
8215
|
+
* for current details.
|
|
8216
|
+
*/
|
|
8217
|
+
export interface PromptCacheOptions {
|
|
8218
|
+
/**
|
|
8219
|
+
* Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
8220
|
+
* Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
8221
|
+
* and writes up to the latest three explicit breakpoints in the request. With
|
|
8222
|
+
* `explicit`, OpenAI does not create an implicit breakpoint and writes up to the
|
|
8223
|
+
* latest four explicit breakpoints. If there are no explicit breakpoints, the
|
|
8224
|
+
* request does not use prompt caching.
|
|
8225
|
+
*/
|
|
8226
|
+
mode?: 'implicit' | 'explicit';
|
|
8227
|
+
|
|
8228
|
+
/**
|
|
8229
|
+
* The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
8230
|
+
* written by the request. Defaults to `30m`, which is currently the only supported
|
|
8231
|
+
* value. The backend may retain cache entries for longer.
|
|
8232
|
+
*/
|
|
8233
|
+
ttl?: '30m';
|
|
8234
|
+
}
|
|
8235
|
+
|
|
8236
|
+
/**
|
|
8237
|
+
* Options for streaming responses. Only set this when you set `stream: true`.
|
|
8238
|
+
*/
|
|
8239
|
+
export interface StreamOptions {
|
|
8240
|
+
/**
|
|
8241
|
+
* When true, stream obfuscation will be enabled. Stream obfuscation adds random
|
|
8242
|
+
* characters to an `obfuscation` field on streaming delta events to normalize
|
|
8243
|
+
* payload sizes as a mitigation to certain side-channel attacks. These obfuscation
|
|
8244
|
+
* fields are included by default, but add a small amount of overhead to the data
|
|
8245
|
+
* stream. You can set `include_obfuscation` to false to optimize for bandwidth if
|
|
8246
|
+
* you trust the network links between your application and the OpenAI API.
|
|
8247
|
+
*/
|
|
8248
|
+
include_obfuscation?: boolean;
|
|
8249
|
+
}
|
|
8250
|
+
|
|
8251
|
+
export interface SpecificProgrammaticToolCallingParam {
|
|
8252
|
+
/**
|
|
8253
|
+
* The tool to call. Always `programmatic_tool_calling`.
|
|
8254
|
+
*/
|
|
8255
|
+
type: 'programmatic_tool_calling';
|
|
8256
|
+
}
|
|
8257
|
+
}
|
|
8258
|
+
|
|
8259
|
+
/**
|
|
8260
|
+
* Server events emitted by the Responses WebSocket server.
|
|
8261
|
+
*/
|
|
8262
|
+
export type ResponsesServerEvent =
|
|
8263
|
+
| ResponsesServerEvent.ResponseAudioWsDelta
|
|
8264
|
+
| ResponsesServerEvent.ResponseAudioWsDone
|
|
8265
|
+
| ResponsesServerEvent.ResponseAudioTranscriptWsDelta
|
|
8266
|
+
| ResponsesServerEvent.ResponseAudioTranscriptWsDone
|
|
8267
|
+
| ResponsesServerEvent.ResponseCodeInterpreterCallCodeWsDelta
|
|
8268
|
+
| ResponsesServerEvent.ResponseCodeInterpreterCallCodeWsDone
|
|
8269
|
+
| ResponsesServerEvent.ResponseCodeInterpreterCallWsCompleted
|
|
8270
|
+
| ResponsesServerEvent.ResponseCodeInterpreterCallInWsProgress
|
|
8271
|
+
| ResponsesServerEvent.ResponseCodeInterpreterCallWsInterpreting
|
|
8272
|
+
| ResponsesServerEvent.ResponseWsCompleted
|
|
8273
|
+
| ResponsesServerEvent.ResponseContentPartWsAdded
|
|
8274
|
+
| ResponsesServerEvent.ResponseContentPartWsDone
|
|
8275
|
+
| ResponsesServerEvent.ResponseWsCreated
|
|
8276
|
+
| ResponsesServerEvent.ResponseFileSearchCallWsCompleted
|
|
8277
|
+
| ResponsesServerEvent.ResponseFileSearchCallInWsProgress
|
|
8278
|
+
| ResponsesServerEvent.ResponseFileSearchCallWsSearching
|
|
8279
|
+
| ResponsesServerEvent.ResponseFunctionCallArgumentsWsDelta
|
|
8280
|
+
| ResponsesServerEvent.ResponseFunctionCallArgumentsWsDone
|
|
8281
|
+
| ResponsesServerEvent.ResponseShellCallCommandWsAdded
|
|
8282
|
+
| ResponsesServerEvent.ResponseShellCallCommandWsDelta
|
|
8283
|
+
| ResponsesServerEvent.ResponseShellCallCommandWsDone
|
|
8284
|
+
| ResponsesServerEvent.ResponseShellCallOutputContentWsDelta
|
|
8285
|
+
| ResponsesServerEvent.ResponseShellCallOutputContentWsDone
|
|
8286
|
+
| ResponsesServerEvent.ResponseInWsProgress
|
|
8287
|
+
| ResponsesServerEvent.ResponseWsFailed
|
|
8288
|
+
| ResponsesServerEvent.ResponseWsIncomplete
|
|
8289
|
+
| ResponsesServerEvent.ResponseOutputItemWsAdded
|
|
8290
|
+
| ResponsesServerEvent.ResponseOutputItemWsDone
|
|
8291
|
+
| ResponsesServerEvent.ResponseReasoningSummaryPartWsAdded
|
|
8292
|
+
| ResponsesServerEvent.ResponseReasoningSummaryPartWsDone
|
|
8293
|
+
| ResponsesServerEvent.ResponseReasoningSummaryTextWsDelta
|
|
8294
|
+
| ResponsesServerEvent.ResponseReasoningSummaryTextWsDone
|
|
8295
|
+
| ResponsesServerEvent.ResponseReasoningTextWsDelta
|
|
8296
|
+
| ResponsesServerEvent.ResponseReasoningTextWsDone
|
|
8297
|
+
| ResponsesServerEvent.ResponseRefusalWsDelta
|
|
8298
|
+
| ResponsesServerEvent.ResponseRefusalWsDone
|
|
8299
|
+
| ResponsesServerEvent.ResponseTextWsDelta
|
|
8300
|
+
| ResponsesServerEvent.ResponseTextWsDone
|
|
8301
|
+
| ResponsesServerEvent.ResponseWebSearchCallWsCompleted
|
|
8302
|
+
| ResponsesServerEvent.ResponseWebSearchCallInWsProgress
|
|
8303
|
+
| ResponsesServerEvent.ResponseWebSearchCallWsSearching
|
|
8304
|
+
| ResponsesServerEvent.ResponseImageGenCallWsCompleted
|
|
8305
|
+
| ResponsesServerEvent.ResponseImageGenCallWsGenerating
|
|
8306
|
+
| ResponsesServerEvent.ResponseImageGenCallInWsProgress
|
|
8307
|
+
| ResponsesServerEvent.ResponseImageGenCallPartialWsImage
|
|
8308
|
+
| ResponsesServerEvent.ResponseMcpCallArgumentsWsDelta
|
|
8309
|
+
| ResponsesServerEvent.ResponseMcpCallArgumentsWsDone
|
|
8310
|
+
| ResponsesServerEvent.ResponseMcpCallWsCompleted
|
|
8311
|
+
| ResponsesServerEvent.ResponseMcpCallWsFailed
|
|
8312
|
+
| ResponsesServerEvent.ResponseMcpCallInWsProgress
|
|
8313
|
+
| ResponsesServerEvent.ResponseMcpListToolsWsCompleted
|
|
8314
|
+
| ResponsesServerEvent.ResponseMcpListToolsWsFailed
|
|
8315
|
+
| ResponsesServerEvent.ResponseMcpListToolsInWsProgress
|
|
8316
|
+
| ResponsesServerEvent.ResponseOutputTextAnnotationWsAdded
|
|
8317
|
+
| ResponsesServerEvent.ResponseWsQueued
|
|
8318
|
+
| ResponsesServerEvent.ResponseCustomToolCallInputWsDelta
|
|
8319
|
+
| ResponsesServerEvent.ResponseCustomToolCallInputWsDone
|
|
8320
|
+
| ResponsesServerEvent.ResponseWsStreamingError
|
|
8321
|
+
| ResponsesServerEvent.ResponseWsError;
|
|
8322
|
+
|
|
8323
|
+
export namespace ResponsesServerEvent {
|
|
8324
|
+
/**
|
|
8325
|
+
* Emitted when there is a partial audio response.
|
|
8326
|
+
*/
|
|
8327
|
+
export interface ResponseAudioWsDelta extends ResponseAudioDeltaEvent {
|
|
8328
|
+
/**
|
|
8329
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8330
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8331
|
+
*/
|
|
8332
|
+
stream_id?: string;
|
|
8333
|
+
}
|
|
8334
|
+
|
|
8335
|
+
/**
|
|
8336
|
+
* Emitted when the audio response is complete.
|
|
8337
|
+
*/
|
|
8338
|
+
export interface ResponseAudioWsDone extends ResponseAudioDoneEvent {
|
|
8339
|
+
/**
|
|
8340
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8341
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8342
|
+
*/
|
|
8343
|
+
stream_id?: string;
|
|
8344
|
+
}
|
|
8345
|
+
|
|
8346
|
+
/**
|
|
8347
|
+
* Emitted when there is a partial transcript of audio.
|
|
8348
|
+
*/
|
|
8349
|
+
export interface ResponseAudioTranscriptWsDelta extends ResponseAudioTranscriptDeltaEvent {
|
|
8350
|
+
/**
|
|
8351
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8352
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8353
|
+
*/
|
|
8354
|
+
stream_id?: string;
|
|
8355
|
+
}
|
|
8356
|
+
|
|
8357
|
+
/**
|
|
8358
|
+
* Emitted when the full audio transcript is completed.
|
|
8359
|
+
*/
|
|
8360
|
+
export interface ResponseAudioTranscriptWsDone extends ResponseAudioTranscriptDoneEvent {
|
|
8361
|
+
/**
|
|
8362
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8363
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8364
|
+
*/
|
|
8365
|
+
stream_id?: string;
|
|
8366
|
+
}
|
|
8367
|
+
|
|
8368
|
+
/**
|
|
8369
|
+
* Emitted when a partial code snippet is streamed by the code interpreter.
|
|
8370
|
+
*/
|
|
8371
|
+
export interface ResponseCodeInterpreterCallCodeWsDelta extends ResponseCodeInterpreterCallCodeDeltaEvent {
|
|
8372
|
+
/**
|
|
8373
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8374
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8375
|
+
*/
|
|
8376
|
+
stream_id?: string;
|
|
8377
|
+
}
|
|
8378
|
+
|
|
8379
|
+
/**
|
|
8380
|
+
* Emitted when the code snippet is finalized by the code interpreter.
|
|
8381
|
+
*/
|
|
8382
|
+
export interface ResponseCodeInterpreterCallCodeWsDone extends ResponseCodeInterpreterCallCodeDoneEvent {
|
|
8383
|
+
/**
|
|
8384
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8385
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8386
|
+
*/
|
|
8387
|
+
stream_id?: string;
|
|
8388
|
+
}
|
|
8389
|
+
|
|
8390
|
+
/**
|
|
8391
|
+
* Emitted when the code interpreter call is completed.
|
|
8392
|
+
*/
|
|
8393
|
+
export interface ResponseCodeInterpreterCallWsCompleted extends ResponseCodeInterpreterCallCompletedEvent {
|
|
8394
|
+
/**
|
|
8395
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8396
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8397
|
+
*/
|
|
8398
|
+
stream_id?: string;
|
|
8399
|
+
}
|
|
8400
|
+
|
|
8401
|
+
/**
|
|
8402
|
+
* Emitted when a code interpreter call is in progress.
|
|
8403
|
+
*/
|
|
8404
|
+
export interface ResponseCodeInterpreterCallInWsProgress extends ResponseCodeInterpreterCallInProgressEvent {
|
|
8405
|
+
/**
|
|
8406
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8407
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8408
|
+
*/
|
|
8409
|
+
stream_id?: string;
|
|
8410
|
+
}
|
|
8411
|
+
|
|
8412
|
+
/**
|
|
8413
|
+
* Emitted when the code interpreter is actively interpreting the code snippet.
|
|
8414
|
+
*/
|
|
8415
|
+
export interface ResponseCodeInterpreterCallWsInterpreting extends ResponseCodeInterpreterCallInterpretingEvent {
|
|
8416
|
+
/**
|
|
8417
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8418
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8419
|
+
*/
|
|
8420
|
+
stream_id?: string;
|
|
8421
|
+
}
|
|
8422
|
+
|
|
8423
|
+
/**
|
|
8424
|
+
* Emitted when the model response is complete.
|
|
8425
|
+
*/
|
|
8426
|
+
export interface ResponseWsCompleted extends ResponseCompletedEvent {
|
|
8427
|
+
/**
|
|
8428
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8429
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8430
|
+
*/
|
|
8431
|
+
stream_id?: string;
|
|
8432
|
+
}
|
|
8433
|
+
|
|
8434
|
+
/**
|
|
8435
|
+
* Emitted when a new content part is added.
|
|
8436
|
+
*/
|
|
8437
|
+
export interface ResponseContentPartWsAdded extends ResponseContentPartAddedEvent {
|
|
8438
|
+
/**
|
|
8439
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8440
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8441
|
+
*/
|
|
8442
|
+
stream_id?: string;
|
|
8443
|
+
}
|
|
8444
|
+
|
|
8445
|
+
/**
|
|
8446
|
+
* Emitted when a content part is done.
|
|
8447
|
+
*/
|
|
8448
|
+
export interface ResponseContentPartWsDone extends ResponseContentPartDoneEvent {
|
|
8449
|
+
/**
|
|
8450
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8451
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8452
|
+
*/
|
|
8453
|
+
stream_id?: string;
|
|
8454
|
+
}
|
|
8455
|
+
|
|
8456
|
+
/**
|
|
8457
|
+
* An event that is emitted when a response is created.
|
|
8458
|
+
*/
|
|
8459
|
+
export interface ResponseWsCreated extends ResponseCreatedEvent {
|
|
8460
|
+
/**
|
|
8461
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8462
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8463
|
+
*/
|
|
8464
|
+
stream_id?: string;
|
|
8465
|
+
}
|
|
8466
|
+
|
|
8467
|
+
/**
|
|
8468
|
+
* Emitted when a file search call is completed (results found).
|
|
8469
|
+
*/
|
|
8470
|
+
export interface ResponseFileSearchCallWsCompleted extends ResponseFileSearchCallCompletedEvent {
|
|
8471
|
+
/**
|
|
8472
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8473
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8474
|
+
*/
|
|
8475
|
+
stream_id?: string;
|
|
8476
|
+
}
|
|
8477
|
+
|
|
8478
|
+
/**
|
|
8479
|
+
* Emitted when a file search call is initiated.
|
|
8480
|
+
*/
|
|
8481
|
+
export interface ResponseFileSearchCallInWsProgress extends ResponseFileSearchCallInProgressEvent {
|
|
8482
|
+
/**
|
|
8483
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8484
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8485
|
+
*/
|
|
8486
|
+
stream_id?: string;
|
|
8487
|
+
}
|
|
8488
|
+
|
|
8489
|
+
/**
|
|
8490
|
+
* Emitted when a file search is currently searching.
|
|
8491
|
+
*/
|
|
8492
|
+
export interface ResponseFileSearchCallWsSearching extends ResponseFileSearchCallSearchingEvent {
|
|
8493
|
+
/**
|
|
8494
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8495
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8496
|
+
*/
|
|
8497
|
+
stream_id?: string;
|
|
8498
|
+
}
|
|
8499
|
+
|
|
8500
|
+
/**
|
|
8501
|
+
* Emitted when there is a partial function-call arguments delta.
|
|
8502
|
+
*/
|
|
8503
|
+
export interface ResponseFunctionCallArgumentsWsDelta extends ResponseFunctionCallArgumentsDeltaEvent {
|
|
8504
|
+
/**
|
|
8505
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8506
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8507
|
+
*/
|
|
8508
|
+
stream_id?: string;
|
|
8509
|
+
}
|
|
7390
8510
|
|
|
7391
8511
|
/**
|
|
7392
|
-
*
|
|
7393
|
-
* [Learn more](https://platform.openai.com/docs/guides/background).
|
|
8512
|
+
* Emitted when function-call arguments are finalized.
|
|
7394
8513
|
*/
|
|
7395
|
-
|
|
8514
|
+
export interface ResponseFunctionCallArgumentsWsDone extends ResponseFunctionCallArgumentsDoneEvent {
|
|
8515
|
+
/**
|
|
8516
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8517
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8518
|
+
*/
|
|
8519
|
+
stream_id?: string;
|
|
8520
|
+
}
|
|
7396
8521
|
|
|
7397
8522
|
/**
|
|
7398
|
-
*
|
|
8523
|
+
* A streaming event that indicated a shell command was added to a tool call.
|
|
7399
8524
|
*/
|
|
7400
|
-
|
|
8525
|
+
export interface ResponseShellCallCommandWsAdded extends ResponseShellCallCommandAddedEvent {
|
|
8526
|
+
/**
|
|
8527
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8528
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8529
|
+
*/
|
|
8530
|
+
stream_id?: string;
|
|
8531
|
+
}
|
|
7401
8532
|
|
|
7402
8533
|
/**
|
|
7403
|
-
*
|
|
7404
|
-
* prepended to `input_items` for this response request. Input items and output
|
|
7405
|
-
* items from this response are automatically added to this conversation after this
|
|
7406
|
-
* response completes.
|
|
8534
|
+
* A streaming event that indicated a shell command was incrementally updated.
|
|
7407
8535
|
*/
|
|
7408
|
-
|
|
8536
|
+
export interface ResponseShellCallCommandWsDelta extends ResponseShellCallCommandDeltaEvent {
|
|
8537
|
+
/**
|
|
8538
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8539
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8540
|
+
*/
|
|
8541
|
+
stream_id?: string;
|
|
8542
|
+
}
|
|
7409
8543
|
|
|
7410
8544
|
/**
|
|
7411
|
-
*
|
|
7412
|
-
* supported values are:
|
|
7413
|
-
*
|
|
7414
|
-
* - `web_search_call.action.sources`: Include the sources of the web search tool
|
|
7415
|
-
* call.
|
|
7416
|
-
* - `code_interpreter_call.outputs`: Includes the outputs of python code execution
|
|
7417
|
-
* in code interpreter tool call items.
|
|
7418
|
-
* - `computer_call_output.output.image_url`: Include image urls from the computer
|
|
7419
|
-
* call output.
|
|
7420
|
-
* - `file_search_call.results`: Include the search results of the file search tool
|
|
7421
|
-
* call.
|
|
7422
|
-
* - `message.input_image.image_url`: Include image urls from the input message.
|
|
7423
|
-
* - `message.output_text.logprobs`: Include logprobs with assistant messages.
|
|
7424
|
-
* - `reasoning.encrypted_content`: Includes an encrypted version of reasoning
|
|
7425
|
-
* tokens in reasoning item outputs. This enables reasoning items to be used in
|
|
7426
|
-
* multi-turn conversations when using the Responses API statelessly (like when
|
|
7427
|
-
* the `store` parameter is set to `false`, or when an organization is enrolled
|
|
7428
|
-
* in the zero data retention program).
|
|
8545
|
+
* A streaming event that indicated a shell command was completed.
|
|
7429
8546
|
*/
|
|
7430
|
-
|
|
8547
|
+
export interface ResponseShellCallCommandWsDone extends ResponseShellCallCommandDoneEvent {
|
|
8548
|
+
/**
|
|
8549
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8550
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8551
|
+
*/
|
|
8552
|
+
stream_id?: string;
|
|
8553
|
+
}
|
|
7431
8554
|
|
|
7432
8555
|
/**
|
|
7433
|
-
*
|
|
7434
|
-
*
|
|
7435
|
-
* Learn more:
|
|
7436
|
-
*
|
|
7437
|
-
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
7438
|
-
* - [Image inputs](https://platform.openai.com/docs/guides/images)
|
|
7439
|
-
* - [File inputs](https://platform.openai.com/docs/guides/pdf-files)
|
|
7440
|
-
* - [Conversation state](https://platform.openai.com/docs/guides/conversation-state)
|
|
7441
|
-
* - [Function calling](https://platform.openai.com/docs/guides/function-calling)
|
|
8556
|
+
* A streaming event that indicated shell call output was incrementally added.
|
|
7442
8557
|
*/
|
|
7443
|
-
|
|
8558
|
+
export interface ResponseShellCallOutputContentWsDelta extends ResponseShellCallOutputContentDeltaEvent {
|
|
8559
|
+
/**
|
|
8560
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8561
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8562
|
+
*/
|
|
8563
|
+
stream_id?: string;
|
|
8564
|
+
}
|
|
7444
8565
|
|
|
7445
8566
|
/**
|
|
7446
|
-
* A
|
|
7447
|
-
*
|
|
7448
|
-
* When using along with `previous_response_id`, the instructions from a previous
|
|
7449
|
-
* response will not be carried over to the next response. This makes it simple to
|
|
7450
|
-
* swap out system (or developer) messages in new responses.
|
|
8567
|
+
* A streaming event that indicated shell call output was completed.
|
|
7451
8568
|
*/
|
|
7452
|
-
|
|
8569
|
+
export interface ResponseShellCallOutputContentWsDone extends ResponseShellCallOutputContentDoneEvent {
|
|
8570
|
+
/**
|
|
8571
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8572
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8573
|
+
*/
|
|
8574
|
+
stream_id?: string;
|
|
8575
|
+
}
|
|
7453
8576
|
|
|
7454
8577
|
/**
|
|
7455
|
-
*
|
|
7456
|
-
* including visible output tokens and
|
|
7457
|
-
* [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).
|
|
8578
|
+
* Emitted when the response is in progress.
|
|
7458
8579
|
*/
|
|
7459
|
-
|
|
8580
|
+
export interface ResponseInWsProgress extends ResponseInProgressEvent {
|
|
8581
|
+
/**
|
|
8582
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8583
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8584
|
+
*/
|
|
8585
|
+
stream_id?: string;
|
|
8586
|
+
}
|
|
7460
8587
|
|
|
7461
8588
|
/**
|
|
7462
|
-
*
|
|
7463
|
-
* response. This maximum number applies across all built-in tool calls, not per
|
|
7464
|
-
* individual tool. Any further attempts to call a tool by the model will be
|
|
7465
|
-
* ignored.
|
|
8589
|
+
* An event that is emitted when a response fails.
|
|
7466
8590
|
*/
|
|
7467
|
-
|
|
8591
|
+
export interface ResponseWsFailed extends ResponseFailedEvent {
|
|
8592
|
+
/**
|
|
8593
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8594
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8595
|
+
*/
|
|
8596
|
+
stream_id?: string;
|
|
8597
|
+
}
|
|
7468
8598
|
|
|
7469
8599
|
/**
|
|
7470
|
-
*
|
|
7471
|
-
* for storing additional information about the object in a structured format, and
|
|
7472
|
-
* querying for objects via API or the dashboard.
|
|
7473
|
-
*
|
|
7474
|
-
* Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
7475
|
-
* a maximum length of 512 characters.
|
|
8600
|
+
* An event that is emitted when a response finishes as incomplete.
|
|
7476
8601
|
*/
|
|
7477
|
-
|
|
8602
|
+
export interface ResponseWsIncomplete extends ResponseIncompleteEvent {
|
|
8603
|
+
/**
|
|
8604
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8605
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8606
|
+
*/
|
|
8607
|
+
stream_id?: string;
|
|
8608
|
+
}
|
|
7478
8609
|
|
|
7479
8610
|
/**
|
|
7480
|
-
*
|
|
7481
|
-
* wide range of models with different capabilities, performance characteristics,
|
|
7482
|
-
* and price points. Refer to the
|
|
7483
|
-
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
7484
|
-
* available models.
|
|
8611
|
+
* Emitted when a new output item is added.
|
|
7485
8612
|
*/
|
|
7486
|
-
|
|
8613
|
+
export interface ResponseOutputItemWsAdded extends ResponseOutputItemAddedEvent {
|
|
8614
|
+
/**
|
|
8615
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8616
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8617
|
+
*/
|
|
8618
|
+
stream_id?: string;
|
|
8619
|
+
}
|
|
7487
8620
|
|
|
7488
8621
|
/**
|
|
7489
|
-
*
|
|
8622
|
+
* Emitted when an output item is marked done.
|
|
7490
8623
|
*/
|
|
7491
|
-
|
|
8624
|
+
export interface ResponseOutputItemWsDone extends ResponseOutputItemDoneEvent {
|
|
8625
|
+
/**
|
|
8626
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8627
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8628
|
+
*/
|
|
8629
|
+
stream_id?: string;
|
|
8630
|
+
}
|
|
7492
8631
|
|
|
7493
8632
|
/**
|
|
7494
|
-
*
|
|
8633
|
+
* Emitted when a new reasoning summary part is added.
|
|
7495
8634
|
*/
|
|
7496
|
-
|
|
8635
|
+
export interface ResponseReasoningSummaryPartWsAdded extends ResponseReasoningSummaryPartAddedEvent {
|
|
8636
|
+
/**
|
|
8637
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8638
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8639
|
+
*/
|
|
8640
|
+
stream_id?: string;
|
|
8641
|
+
}
|
|
7497
8642
|
|
|
7498
8643
|
/**
|
|
7499
|
-
*
|
|
7500
|
-
* multi-turn conversations. Learn more about
|
|
7501
|
-
* [conversation state](https://platform.openai.com/docs/guides/conversation-state).
|
|
7502
|
-
* Cannot be used in conjunction with `conversation`.
|
|
8644
|
+
* Emitted when a reasoning summary part is completed.
|
|
7503
8645
|
*/
|
|
7504
|
-
|
|
8646
|
+
export interface ResponseReasoningSummaryPartWsDone extends ResponseReasoningSummaryPartDoneEvent {
|
|
8647
|
+
/**
|
|
8648
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8649
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8650
|
+
*/
|
|
8651
|
+
stream_id?: string;
|
|
8652
|
+
}
|
|
7505
8653
|
|
|
7506
8654
|
/**
|
|
7507
|
-
*
|
|
7508
|
-
* [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
|
|
8655
|
+
* Emitted when a delta is added to a reasoning summary text.
|
|
7509
8656
|
*/
|
|
7510
|
-
|
|
8657
|
+
export interface ResponseReasoningSummaryTextWsDelta extends ResponseReasoningSummaryTextDeltaEvent {
|
|
8658
|
+
/**
|
|
8659
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8660
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8661
|
+
*/
|
|
8662
|
+
stream_id?: string;
|
|
8663
|
+
}
|
|
7511
8664
|
|
|
7512
8665
|
/**
|
|
7513
|
-
*
|
|
7514
|
-
* hit rates. Replaces the `user` field.
|
|
7515
|
-
* [Learn more](https://platform.openai.com/docs/guides/prompt-caching).
|
|
8666
|
+
* Emitted when a reasoning summary text is completed.
|
|
7516
8667
|
*/
|
|
7517
|
-
|
|
8668
|
+
export interface ResponseReasoningSummaryTextWsDone extends ResponseReasoningSummaryTextDoneEvent {
|
|
8669
|
+
/**
|
|
8670
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8671
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8672
|
+
*/
|
|
8673
|
+
stream_id?: string;
|
|
8674
|
+
}
|
|
7518
8675
|
|
|
7519
8676
|
/**
|
|
7520
|
-
*
|
|
7521
|
-
* default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
7522
|
-
* explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
7523
|
-
* request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
7524
|
-
* up to the latest 80 breakpoints in the conversation, without a content-block
|
|
7525
|
-
* lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
7526
|
-
* `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
7527
|
-
* [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
|
|
7528
|
-
* for current details.
|
|
8677
|
+
* Emitted when a delta is added to a reasoning text.
|
|
7529
8678
|
*/
|
|
7530
|
-
|
|
8679
|
+
export interface ResponseReasoningTextWsDelta extends ResponseReasoningTextDeltaEvent {
|
|
8680
|
+
/**
|
|
8681
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8682
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8683
|
+
*/
|
|
8684
|
+
stream_id?: string;
|
|
8685
|
+
}
|
|
7531
8686
|
|
|
7532
8687
|
/**
|
|
7533
|
-
*
|
|
7534
|
-
*
|
|
7535
|
-
* The retention policy for the prompt cache. Set to `24h` to enable extended
|
|
7536
|
-
* prompt caching, which keeps cached prefixes active for longer, up to a maximum
|
|
7537
|
-
* of 24 hours.
|
|
7538
|
-
* [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
|
|
7539
|
-
* This field expresses a maximum retention policy, while
|
|
7540
|
-
* `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two fields
|
|
7541
|
-
* are independent and do not interact. For `gpt-5.5`, `gpt-5.5-pro`, and future
|
|
7542
|
-
* models, only `24h` is supported.
|
|
7543
|
-
*
|
|
7544
|
-
* For older models that support both `in_memory` and `24h`, the default depends on
|
|
7545
|
-
* your organization's data retention policy:
|
|
7546
|
-
*
|
|
7547
|
-
* - Organizations without ZDR enabled default to `24h`.
|
|
7548
|
-
* - Organizations with ZDR enabled default to `in_memory` when
|
|
7549
|
-
* `prompt_cache_retention` is not specified.
|
|
8688
|
+
* Emitted when a reasoning text is completed.
|
|
7550
8689
|
*/
|
|
7551
|
-
|
|
8690
|
+
export interface ResponseReasoningTextWsDone extends ResponseReasoningTextDoneEvent {
|
|
8691
|
+
/**
|
|
8692
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8693
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8694
|
+
*/
|
|
8695
|
+
stream_id?: string;
|
|
8696
|
+
}
|
|
7552
8697
|
|
|
7553
8698
|
/**
|
|
7554
|
-
*
|
|
7555
|
-
*
|
|
7556
|
-
* Configuration options for
|
|
7557
|
-
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
8699
|
+
* Emitted when there is a partial refusal text.
|
|
7558
8700
|
*/
|
|
7559
|
-
|
|
8701
|
+
export interface ResponseRefusalWsDelta extends ResponseRefusalDeltaEvent {
|
|
8702
|
+
/**
|
|
8703
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8704
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8705
|
+
*/
|
|
8706
|
+
stream_id?: string;
|
|
8707
|
+
}
|
|
7560
8708
|
|
|
7561
8709
|
/**
|
|
7562
|
-
*
|
|
7563
|
-
* violating OpenAI's usage policies. The IDs should be a string that uniquely
|
|
7564
|
-
* identifies each user, with a maximum length of 64 characters. We recommend
|
|
7565
|
-
* hashing their username or email address, in order to avoid sending us any
|
|
7566
|
-
* identifying information.
|
|
7567
|
-
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
8710
|
+
* Emitted when refusal text is finalized.
|
|
7568
8711
|
*/
|
|
7569
|
-
|
|
8712
|
+
export interface ResponseRefusalWsDone extends ResponseRefusalDoneEvent {
|
|
8713
|
+
/**
|
|
8714
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8715
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8716
|
+
*/
|
|
8717
|
+
stream_id?: string;
|
|
8718
|
+
}
|
|
7570
8719
|
|
|
7571
8720
|
/**
|
|
7572
|
-
*
|
|
7573
|
-
*
|
|
7574
|
-
* - If set to 'auto', then the request will be processed with the service tier
|
|
7575
|
-
* configured in the Project settings. Unless otherwise configured, the Project
|
|
7576
|
-
* will use 'default'.
|
|
7577
|
-
* - If set to 'default', then the request will be processed with the standard
|
|
7578
|
-
* pricing and performance for the selected model.
|
|
7579
|
-
* - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
7580
|
-
* then the request will be processed with the Flex Processing service tier.
|
|
7581
|
-
* - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
7582
|
-
* include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
7583
|
-
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
7584
|
-
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
7585
|
-
* request.
|
|
7586
|
-
* - When not set, the default behavior is 'auto'.
|
|
7587
|
-
*
|
|
7588
|
-
* When the `service_tier` parameter is set, the response body will include the
|
|
7589
|
-
* `service_tier` value based on the processing mode actually used to serve the
|
|
7590
|
-
* request. This response value may be different from the value set in the
|
|
7591
|
-
* parameter.
|
|
8721
|
+
* Emitted when there is an additional text delta.
|
|
7592
8722
|
*/
|
|
7593
|
-
|
|
8723
|
+
export interface ResponseTextWsDelta extends ResponseTextDeltaEvent {
|
|
8724
|
+
/**
|
|
8725
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8726
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8727
|
+
*/
|
|
8728
|
+
stream_id?: string;
|
|
8729
|
+
}
|
|
7594
8730
|
|
|
7595
8731
|
/**
|
|
7596
|
-
*
|
|
8732
|
+
* Emitted when text content is finalized.
|
|
7597
8733
|
*/
|
|
7598
|
-
|
|
8734
|
+
export interface ResponseTextWsDone extends ResponseTextDoneEvent {
|
|
8735
|
+
/**
|
|
8736
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8737
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8738
|
+
*/
|
|
8739
|
+
stream_id?: string;
|
|
8740
|
+
}
|
|
7599
8741
|
|
|
7600
8742
|
/**
|
|
7601
|
-
*
|
|
7602
|
-
* generated using
|
|
7603
|
-
* [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
|
|
7604
|
-
* See the
|
|
7605
|
-
* [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)
|
|
7606
|
-
* for more information.
|
|
8743
|
+
* Emitted when a web search call is completed.
|
|
7607
8744
|
*/
|
|
7608
|
-
|
|
8745
|
+
export interface ResponseWebSearchCallWsCompleted extends ResponseWebSearchCallCompletedEvent {
|
|
8746
|
+
/**
|
|
8747
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8748
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8749
|
+
*/
|
|
8750
|
+
stream_id?: string;
|
|
8751
|
+
}
|
|
7609
8752
|
|
|
7610
8753
|
/**
|
|
7611
|
-
*
|
|
8754
|
+
* Emitted when a web search call is initiated.
|
|
7612
8755
|
*/
|
|
7613
|
-
|
|
8756
|
+
export interface ResponseWebSearchCallInWsProgress extends ResponseWebSearchCallInProgressEvent {
|
|
8757
|
+
/**
|
|
8758
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8759
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8760
|
+
*/
|
|
8761
|
+
stream_id?: string;
|
|
8762
|
+
}
|
|
7614
8763
|
|
|
7615
8764
|
/**
|
|
7616
|
-
*
|
|
7617
|
-
* make the output more random, while lower values like 0.2 will make it more
|
|
7618
|
-
* focused and deterministic. We generally recommend altering this or `top_p` but
|
|
7619
|
-
* not both.
|
|
8765
|
+
* Emitted when a web search call is executing.
|
|
7620
8766
|
*/
|
|
7621
|
-
|
|
8767
|
+
export interface ResponseWebSearchCallWsSearching extends ResponseWebSearchCallSearchingEvent {
|
|
8768
|
+
/**
|
|
8769
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8770
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8771
|
+
*/
|
|
8772
|
+
stream_id?: string;
|
|
8773
|
+
}
|
|
7622
8774
|
|
|
7623
8775
|
/**
|
|
7624
|
-
*
|
|
7625
|
-
*
|
|
7626
|
-
*
|
|
7627
|
-
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
7628
|
-
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
8776
|
+
* Emitted when an image generation tool call has completed and the final image is
|
|
8777
|
+
* available.
|
|
7629
8778
|
*/
|
|
7630
|
-
|
|
8779
|
+
export interface ResponseImageGenCallWsCompleted extends ResponseImageGenCallCompletedEvent {
|
|
8780
|
+
/**
|
|
8781
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8782
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8783
|
+
*/
|
|
8784
|
+
stream_id?: string;
|
|
8785
|
+
}
|
|
7631
8786
|
|
|
7632
8787
|
/**
|
|
7633
|
-
*
|
|
7634
|
-
*
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
| ToolChoiceCustom
|
|
7644
|
-
| ResponsesClientEvent.SpecificProgrammaticToolCallingParam
|
|
7645
|
-
| ToolChoiceApplyPatch
|
|
7646
|
-
| ToolChoiceShell;
|
|
8788
|
+
* Emitted when an image generation tool call is actively generating an image
|
|
8789
|
+
* (intermediate state).
|
|
8790
|
+
*/
|
|
8791
|
+
export interface ResponseImageGenCallWsGenerating extends ResponseImageGenCallGeneratingEvent {
|
|
8792
|
+
/**
|
|
8793
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8794
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8795
|
+
*/
|
|
8796
|
+
stream_id?: string;
|
|
8797
|
+
}
|
|
7647
8798
|
|
|
7648
8799
|
/**
|
|
7649
|
-
*
|
|
7650
|
-
* specify which tool to use by setting the `tool_choice` parameter.
|
|
7651
|
-
*
|
|
7652
|
-
* We support the following categories of tools:
|
|
7653
|
-
*
|
|
7654
|
-
* - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
|
|
7655
|
-
* capabilities, like
|
|
7656
|
-
* [web search](https://platform.openai.com/docs/guides/tools-web-search) or
|
|
7657
|
-
* [file search](https://platform.openai.com/docs/guides/tools-file-search).
|
|
7658
|
-
* Learn more about
|
|
7659
|
-
* [built-in tools](https://platform.openai.com/docs/guides/tools).
|
|
7660
|
-
* - **MCP Tools**: Integrations with third-party systems via custom MCP servers or
|
|
7661
|
-
* predefined connectors such as Google Drive and SharePoint. Learn more about
|
|
7662
|
-
* [MCP Tools](https://platform.openai.com/docs/guides/tools-connectors-mcp).
|
|
7663
|
-
* - **Function calls (custom tools)**: Functions that are defined by you, enabling
|
|
7664
|
-
* the model to call your own code with strongly typed arguments and outputs.
|
|
7665
|
-
* Learn more about
|
|
7666
|
-
* [function calling](https://platform.openai.com/docs/guides/function-calling).
|
|
7667
|
-
* You can also use custom tools to call your own code.
|
|
8800
|
+
* Emitted when an image generation tool call is in progress.
|
|
7668
8801
|
*/
|
|
7669
|
-
|
|
8802
|
+
export interface ResponseImageGenCallInWsProgress extends ResponseImageGenCallInProgressEvent {
|
|
8803
|
+
/**
|
|
8804
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8805
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8806
|
+
*/
|
|
8807
|
+
stream_id?: string;
|
|
8808
|
+
}
|
|
7670
8809
|
|
|
7671
8810
|
/**
|
|
7672
|
-
*
|
|
7673
|
-
* to return at each token position, each with an associated log probability. In
|
|
7674
|
-
* some cases, the number of returned tokens may be fewer than requested.
|
|
8811
|
+
* Emitted when a partial image is available during image generation streaming.
|
|
7675
8812
|
*/
|
|
7676
|
-
|
|
8813
|
+
export interface ResponseImageGenCallPartialWsImage extends ResponseImageGenCallPartialImageEvent {
|
|
8814
|
+
/**
|
|
8815
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8816
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8817
|
+
*/
|
|
8818
|
+
stream_id?: string;
|
|
8819
|
+
}
|
|
7677
8820
|
|
|
7678
8821
|
/**
|
|
7679
|
-
*
|
|
7680
|
-
*
|
|
7681
|
-
* means only the tokens comprising the top 10% probability mass are considered.
|
|
7682
|
-
*
|
|
7683
|
-
* We generally recommend altering this or `temperature` but not both.
|
|
8822
|
+
* Emitted when there is a delta (partial update) to the arguments of an MCP tool
|
|
8823
|
+
* call.
|
|
7684
8824
|
*/
|
|
7685
|
-
|
|
8825
|
+
export interface ResponseMcpCallArgumentsWsDelta extends ResponseMcpCallArgumentsDeltaEvent {
|
|
8826
|
+
/**
|
|
8827
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8828
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8829
|
+
*/
|
|
8830
|
+
stream_id?: string;
|
|
8831
|
+
}
|
|
7686
8832
|
|
|
7687
8833
|
/**
|
|
7688
|
-
*
|
|
7689
|
-
*
|
|
7690
|
-
* - `auto`: If the input to this Response exceeds the model's context window size,
|
|
7691
|
-
* the model will truncate the response to fit the context window by dropping
|
|
7692
|
-
* items from the beginning of the conversation.
|
|
7693
|
-
* - `disabled` (default): If the input size will exceed the context window size
|
|
7694
|
-
* for a model, the request will fail with a 400 error.
|
|
8834
|
+
* Emitted when the arguments for an MCP tool call are finalized.
|
|
7695
8835
|
*/
|
|
7696
|
-
|
|
8836
|
+
export interface ResponseMcpCallArgumentsWsDone extends ResponseMcpCallArgumentsDoneEvent {
|
|
8837
|
+
/**
|
|
8838
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8839
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8840
|
+
*/
|
|
8841
|
+
stream_id?: string;
|
|
8842
|
+
}
|
|
7697
8843
|
|
|
7698
8844
|
/**
|
|
7699
|
-
*
|
|
7700
|
-
* `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching
|
|
7701
|
-
* optimizations. A stable identifier for your end-users. Used to boost cache hit
|
|
7702
|
-
* rates by better bucketing similar requests and to help OpenAI detect and prevent
|
|
7703
|
-
* abuse.
|
|
7704
|
-
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
8845
|
+
* Emitted when an MCP tool call has completed successfully.
|
|
7705
8846
|
*/
|
|
7706
|
-
|
|
7707
|
-
|
|
8847
|
+
export interface ResponseMcpCallWsCompleted extends ResponseMcpCallCompletedEvent {
|
|
8848
|
+
/**
|
|
8849
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8850
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8851
|
+
*/
|
|
8852
|
+
stream_id?: string;
|
|
8853
|
+
}
|
|
7708
8854
|
|
|
7709
|
-
|
|
7710
|
-
|
|
8855
|
+
/**
|
|
8856
|
+
* Emitted when an MCP tool call has failed.
|
|
8857
|
+
*/
|
|
8858
|
+
export interface ResponseMcpCallWsFailed extends ResponseMcpCallFailedEvent {
|
|
7711
8859
|
/**
|
|
7712
|
-
* The
|
|
8860
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8861
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
7713
8862
|
*/
|
|
7714
|
-
|
|
8863
|
+
stream_id?: string;
|
|
8864
|
+
}
|
|
7715
8865
|
|
|
8866
|
+
/**
|
|
8867
|
+
* Emitted when an MCP tool call is in progress.
|
|
8868
|
+
*/
|
|
8869
|
+
export interface ResponseMcpCallInWsProgress extends ResponseMcpCallInProgressEvent {
|
|
7716
8870
|
/**
|
|
7717
|
-
*
|
|
8871
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8872
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
7718
8873
|
*/
|
|
7719
|
-
|
|
8874
|
+
stream_id?: string;
|
|
7720
8875
|
}
|
|
7721
8876
|
|
|
7722
8877
|
/**
|
|
7723
|
-
*
|
|
8878
|
+
* Emitted when the list of available MCP tools has been successfully retrieved.
|
|
7724
8879
|
*/
|
|
7725
|
-
export interface
|
|
8880
|
+
export interface ResponseMcpListToolsWsCompleted extends ResponseMcpListToolsCompletedEvent {
|
|
7726
8881
|
/**
|
|
7727
|
-
* The
|
|
7728
|
-
*
|
|
8882
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8883
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
7729
8884
|
*/
|
|
7730
|
-
|
|
8885
|
+
stream_id?: string;
|
|
8886
|
+
}
|
|
7731
8887
|
|
|
8888
|
+
/**
|
|
8889
|
+
* Emitted when the attempt to list available MCP tools has failed.
|
|
8890
|
+
*/
|
|
8891
|
+
export interface ResponseMcpListToolsWsFailed extends ResponseMcpListToolsFailedEvent {
|
|
7732
8892
|
/**
|
|
7733
|
-
* The
|
|
8893
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8894
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
7734
8895
|
*/
|
|
7735
|
-
|
|
8896
|
+
stream_id?: string;
|
|
7736
8897
|
}
|
|
7737
8898
|
|
|
7738
|
-
|
|
8899
|
+
/**
|
|
8900
|
+
* Emitted when the system is in the process of retrieving the list of available
|
|
8901
|
+
* MCP tools.
|
|
8902
|
+
*/
|
|
8903
|
+
export interface ResponseMcpListToolsInWsProgress extends ResponseMcpListToolsInProgressEvent {
|
|
7739
8904
|
/**
|
|
7740
|
-
* The
|
|
8905
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8906
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
7741
8907
|
*/
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
* The moderation policy for the response input.
|
|
7745
|
-
*/
|
|
7746
|
-
input?: Policy.Input | null;
|
|
8908
|
+
stream_id?: string;
|
|
8909
|
+
}
|
|
7747
8910
|
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
8911
|
+
/**
|
|
8912
|
+
* Emitted when an annotation is added to output text content.
|
|
8913
|
+
*/
|
|
8914
|
+
export interface ResponseOutputTextAnnotationWsAdded extends ResponseOutputTextAnnotationAddedEvent {
|
|
8915
|
+
/**
|
|
8916
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8917
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8918
|
+
*/
|
|
8919
|
+
stream_id?: string;
|
|
8920
|
+
}
|
|
7753
8921
|
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
8922
|
+
/**
|
|
8923
|
+
* Emitted when a response is queued and waiting to be processed.
|
|
8924
|
+
*/
|
|
8925
|
+
export interface ResponseWsQueued extends ResponseQueuedEvent {
|
|
8926
|
+
/**
|
|
8927
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8928
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8929
|
+
*/
|
|
8930
|
+
stream_id?: string;
|
|
8931
|
+
}
|
|
7761
8932
|
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
8933
|
+
/**
|
|
8934
|
+
* Event representing a delta (partial update) to the input of a custom tool call.
|
|
8935
|
+
*/
|
|
8936
|
+
export interface ResponseCustomToolCallInputWsDelta extends ResponseCustomToolCallInputDeltaEvent {
|
|
8937
|
+
/**
|
|
8938
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8939
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8940
|
+
*/
|
|
8941
|
+
stream_id?: string;
|
|
7769
8942
|
}
|
|
7770
8943
|
|
|
7771
8944
|
/**
|
|
7772
|
-
*
|
|
7773
|
-
* default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
7774
|
-
* explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
7775
|
-
* request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
7776
|
-
* up to the latest 80 breakpoints in the conversation, without a content-block
|
|
7777
|
-
* lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
7778
|
-
* `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
7779
|
-
* [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
|
|
7780
|
-
* for current details.
|
|
8945
|
+
* Event indicating that input for a custom tool call is complete.
|
|
7781
8946
|
*/
|
|
7782
|
-
export interface
|
|
8947
|
+
export interface ResponseCustomToolCallInputWsDone extends ResponseCustomToolCallInputDoneEvent {
|
|
7783
8948
|
/**
|
|
7784
|
-
*
|
|
7785
|
-
*
|
|
7786
|
-
* and writes up to the latest three explicit breakpoints in the request. With
|
|
7787
|
-
* `explicit`, OpenAI does not create an implicit breakpoint and writes up to the
|
|
7788
|
-
* latest four explicit breakpoints. If there are no explicit breakpoints, the
|
|
7789
|
-
* request does not use prompt caching.
|
|
8949
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8950
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
7790
8951
|
*/
|
|
7791
|
-
|
|
8952
|
+
stream_id?: string;
|
|
8953
|
+
}
|
|
7792
8954
|
|
|
8955
|
+
/**
|
|
8956
|
+
* Emitted when an error occurs while streaming a response over the WebSocket.
|
|
8957
|
+
*/
|
|
8958
|
+
export interface ResponseWsStreamingError extends ResponseErrorEvent {
|
|
7793
8959
|
/**
|
|
7794
|
-
* The
|
|
7795
|
-
*
|
|
7796
|
-
* value. The backend may retain cache entries for longer.
|
|
8960
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8961
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
7797
8962
|
*/
|
|
7798
|
-
|
|
8963
|
+
stream_id?: string;
|
|
7799
8964
|
}
|
|
7800
8965
|
|
|
7801
8966
|
/**
|
|
7802
|
-
*
|
|
8967
|
+
* Emitted when an error occurs while processing a Responses WebSocket request.
|
|
7803
8968
|
*/
|
|
7804
|
-
export interface
|
|
8969
|
+
export interface ResponseWsError {
|
|
7805
8970
|
/**
|
|
7806
|
-
*
|
|
7807
|
-
* characters to an `obfuscation` field on streaming delta events to normalize
|
|
7808
|
-
* payload sizes as a mitigation to certain side-channel attacks. These obfuscation
|
|
7809
|
-
* fields are included by default, but add a small amount of overhead to the data
|
|
7810
|
-
* stream. You can set `include_obfuscation` to false to optimize for bandwidth if
|
|
7811
|
-
* you trust the network links between your application and the OpenAI API.
|
|
8971
|
+
* Details about the error.
|
|
7812
8972
|
*/
|
|
7813
|
-
|
|
8973
|
+
error: ResponseWsError.Error;
|
|
8974
|
+
|
|
8975
|
+
/**
|
|
8976
|
+
* The type of the event. Always `error`.
|
|
8977
|
+
*/
|
|
8978
|
+
type: 'error';
|
|
8979
|
+
|
|
8980
|
+
/**
|
|
8981
|
+
* The sequence number of an error emitted by the response stream.
|
|
8982
|
+
*/
|
|
8983
|
+
sequence_number?: number;
|
|
8984
|
+
|
|
8985
|
+
/**
|
|
8986
|
+
* The HTTP status code associated with a WebSocket protocol error.
|
|
8987
|
+
*/
|
|
8988
|
+
status?: number;
|
|
8989
|
+
|
|
8990
|
+
/**
|
|
8991
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
8992
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
8993
|
+
*/
|
|
8994
|
+
stream_id?: string;
|
|
7814
8995
|
}
|
|
7815
8996
|
|
|
7816
|
-
export
|
|
8997
|
+
export namespace ResponseWsError {
|
|
7817
8998
|
/**
|
|
7818
|
-
*
|
|
8999
|
+
* Details about the error.
|
|
7819
9000
|
*/
|
|
7820
|
-
|
|
9001
|
+
export interface Error {
|
|
9002
|
+
/**
|
|
9003
|
+
* The error code that was emitted, if any.
|
|
9004
|
+
*/
|
|
9005
|
+
code: string | null;
|
|
9006
|
+
|
|
9007
|
+
/**
|
|
9008
|
+
* The human-readable error message that was emitted.
|
|
9009
|
+
*/
|
|
9010
|
+
message: string;
|
|
9011
|
+
|
|
9012
|
+
/**
|
|
9013
|
+
* The parameter name that was associated with the error, if any.
|
|
9014
|
+
*/
|
|
9015
|
+
param: string | null;
|
|
9016
|
+
|
|
9017
|
+
/**
|
|
9018
|
+
* The error type that was emitted.
|
|
9019
|
+
*/
|
|
9020
|
+
type: string;
|
|
9021
|
+
|
|
9022
|
+
/**
|
|
9023
|
+
* The response headers that were emitted with the error, if any.
|
|
9024
|
+
*/
|
|
9025
|
+
headers?: { [key: string]: string };
|
|
9026
|
+
}
|
|
7821
9027
|
}
|
|
7822
9028
|
}
|
|
7823
9029
|
|
|
7824
9030
|
/**
|
|
7825
|
-
*
|
|
9031
|
+
* Specifies the processing type used for serving the request.
|
|
9032
|
+
*
|
|
9033
|
+
* - If set to 'auto', then the request will be processed with the service tier
|
|
9034
|
+
* configured in the Project settings. Unless otherwise configured, the Project
|
|
9035
|
+
* will use 'default'.
|
|
9036
|
+
* - If set to 'default', then the request will be processed with the standard
|
|
9037
|
+
* pricing and performance for the selected model.
|
|
9038
|
+
* - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
9039
|
+
* then the request will be processed with the Flex Processing service tier.
|
|
9040
|
+
* - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
9041
|
+
* include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
9042
|
+
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
9043
|
+
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
9044
|
+
* request.
|
|
9045
|
+
* - If set to 'ultrafast', then the request will be processed with the
|
|
9046
|
+
* access-controlled Ultrafast Processing service tier. This tier is currently
|
|
9047
|
+
* available for `gpt-5.6-sol`; a response served through it will show
|
|
9048
|
+
* `service_tier=ultrafast`.
|
|
9049
|
+
* - When not set, the default behavior is 'auto'.
|
|
9050
|
+
*
|
|
9051
|
+
* When the `service_tier` parameter is set, the response body will include the
|
|
9052
|
+
* `service_tier` value based on the processing mode actually used to serve the
|
|
9053
|
+
* request. This response value may be different from the value set in the
|
|
9054
|
+
* parameter.
|
|
7826
9055
|
*/
|
|
7827
|
-
export type
|
|
7828
|
-
| ResponseAudioDeltaEvent
|
|
7829
|
-
| ResponseAudioDoneEvent
|
|
7830
|
-
| ResponseAudioTranscriptDeltaEvent
|
|
7831
|
-
| ResponseAudioTranscriptDoneEvent
|
|
7832
|
-
| ResponseCodeInterpreterCallCodeDeltaEvent
|
|
7833
|
-
| ResponseCodeInterpreterCallCodeDoneEvent
|
|
7834
|
-
| ResponseCodeInterpreterCallCompletedEvent
|
|
7835
|
-
| ResponseCodeInterpreterCallInProgressEvent
|
|
7836
|
-
| ResponseCodeInterpreterCallInterpretingEvent
|
|
7837
|
-
| ResponseCompletedEvent
|
|
7838
|
-
| ResponseContentPartAddedEvent
|
|
7839
|
-
| ResponseContentPartDoneEvent
|
|
7840
|
-
| ResponseCreatedEvent
|
|
7841
|
-
| ResponseErrorEvent
|
|
7842
|
-
| ResponseFileSearchCallCompletedEvent
|
|
7843
|
-
| ResponseFileSearchCallInProgressEvent
|
|
7844
|
-
| ResponseFileSearchCallSearchingEvent
|
|
7845
|
-
| ResponseFunctionCallArgumentsDeltaEvent
|
|
7846
|
-
| ResponseFunctionCallArgumentsDoneEvent
|
|
7847
|
-
| ResponseInProgressEvent
|
|
7848
|
-
| ResponseFailedEvent
|
|
7849
|
-
| ResponseIncompleteEvent
|
|
7850
|
-
| ResponseOutputItemAddedEvent
|
|
7851
|
-
| ResponseOutputItemDoneEvent
|
|
7852
|
-
| ResponseReasoningSummaryPartAddedEvent
|
|
7853
|
-
| ResponseReasoningSummaryPartDoneEvent
|
|
7854
|
-
| ResponseReasoningSummaryTextDeltaEvent
|
|
7855
|
-
| ResponseReasoningSummaryTextDoneEvent
|
|
7856
|
-
| ResponseReasoningTextDeltaEvent
|
|
7857
|
-
| ResponseReasoningTextDoneEvent
|
|
7858
|
-
| ResponseRefusalDeltaEvent
|
|
7859
|
-
| ResponseRefusalDoneEvent
|
|
7860
|
-
| ResponseTextDeltaEvent
|
|
7861
|
-
| ResponseTextDoneEvent
|
|
7862
|
-
| ResponseWebSearchCallCompletedEvent
|
|
7863
|
-
| ResponseWebSearchCallInProgressEvent
|
|
7864
|
-
| ResponseWebSearchCallSearchingEvent
|
|
7865
|
-
| ResponseImageGenCallCompletedEvent
|
|
7866
|
-
| ResponseImageGenCallGeneratingEvent
|
|
7867
|
-
| ResponseImageGenCallInProgressEvent
|
|
7868
|
-
| ResponseImageGenCallPartialImageEvent
|
|
7869
|
-
| ResponseMcpCallArgumentsDeltaEvent
|
|
7870
|
-
| ResponseMcpCallArgumentsDoneEvent
|
|
7871
|
-
| ResponseMcpCallCompletedEvent
|
|
7872
|
-
| ResponseMcpCallFailedEvent
|
|
7873
|
-
| ResponseMcpCallInProgressEvent
|
|
7874
|
-
| ResponseMcpListToolsCompletedEvent
|
|
7875
|
-
| ResponseMcpListToolsFailedEvent
|
|
7876
|
-
| ResponseMcpListToolsInProgressEvent
|
|
7877
|
-
| ResponseOutputTextAnnotationAddedEvent
|
|
7878
|
-
| ResponseQueuedEvent
|
|
7879
|
-
| ResponseCustomToolCallInputDeltaEvent
|
|
7880
|
-
| ResponseCustomToolCallInputDoneEvent;
|
|
9056
|
+
export type ServiceTier = 'auto' | 'default' | 'flex' | 'scale' | 'priority' | 'fast' | 'ultrafast' | null;
|
|
7881
9057
|
|
|
7882
9058
|
export interface SkillReference {
|
|
7883
9059
|
/**
|
|
@@ -8160,18 +9336,13 @@ export namespace Tool {
|
|
|
8160
9336
|
action?: 'generate' | 'edit' | 'auto';
|
|
8161
9337
|
|
|
8162
9338
|
/**
|
|
8163
|
-
* Allows to set transparency for the background of the generated image(s).
|
|
8164
|
-
*
|
|
8165
|
-
*
|
|
8166
|
-
* When `auto` is used, the model will automatically determine the best background
|
|
8167
|
-
* for the image.
|
|
9339
|
+
* Allows to set transparency for the background of the generated image(s). Must be
|
|
9340
|
+
* one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
|
|
9341
|
+
* the model will automatically determine the best background for the image.
|
|
8168
9342
|
*
|
|
8169
|
-
*
|
|
8170
|
-
*
|
|
8171
|
-
*
|
|
8172
|
-
*
|
|
8173
|
-
* If `transparent`, the output format needs to support transparency, so it should
|
|
8174
|
-
* be set to either `png` (default value) or `webp`.
|
|
9343
|
+
* Transparent backgrounds are available for supported GPT Image models. For
|
|
9344
|
+
* `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in preview. When
|
|
9345
|
+
* using `transparent`, set the output format to `png` or `webp`.
|
|
8175
9346
|
*/
|
|
8176
9347
|
background?: 'transparent' | 'opaque' | 'auto';
|
|
8177
9348
|
|
|
@@ -8190,7 +9361,9 @@ export namespace Tool {
|
|
|
8190
9361
|
input_image_mask?: ImageGeneration.InputImageMask;
|
|
8191
9362
|
|
|
8192
9363
|
/**
|
|
8193
|
-
* The image generation model to use.
|
|
9364
|
+
* The image generation model to use. One of `gpt-image-1`, `gpt-image-1-mini`,
|
|
9365
|
+
* `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`, or
|
|
9366
|
+
* `chatgpt-image-latest`. Default: `gpt-image-1`.
|
|
8194
9367
|
*/
|
|
8195
9368
|
model?:
|
|
8196
9369
|
| (string & {})
|
|
@@ -8519,6 +9692,13 @@ export interface WebSearchTool {
|
|
|
8519
9692
|
*/
|
|
8520
9693
|
type: 'web_search' | 'web_search_2025_08_26';
|
|
8521
9694
|
|
|
9695
|
+
/**
|
|
9696
|
+
* Allow live internet access for web search. Defaults to true when omitted. When
|
|
9697
|
+
* false, the web search tool runs in offline/cache-only mode and will not fetch
|
|
9698
|
+
* new external content.
|
|
9699
|
+
*/
|
|
9700
|
+
external_web_access?: boolean;
|
|
9701
|
+
|
|
8522
9702
|
/**
|
|
8523
9703
|
* Filters for the search.
|
|
8524
9704
|
*/
|
|
@@ -8777,12 +9957,16 @@ export interface ResponseCreateParamsBase {
|
|
|
8777
9957
|
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
8778
9958
|
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
8779
9959
|
* request.
|
|
9960
|
+
* - If set to 'ultrafast', then the request will be processed with the
|
|
9961
|
+
* access-controlled Ultrafast Processing service tier. This tier is currently
|
|
9962
|
+
* available for `gpt-5.6-sol`; a response served through it will show
|
|
9963
|
+
* `service_tier=ultrafast`.
|
|
8780
9964
|
* - When not set, the default behavior is 'auto'.
|
|
8781
9965
|
*
|
|
8782
9966
|
* When this parameter is set, the response body will include the `service_tier`
|
|
8783
9967
|
* utilized.
|
|
8784
9968
|
*/
|
|
8785
|
-
service_tier?:
|
|
9969
|
+
service_tier?: ServiceTier | null;
|
|
8786
9970
|
|
|
8787
9971
|
/**
|
|
8788
9972
|
* Whether to store the generated model response for later retrieval via API.
|
|
@@ -9117,6 +10301,7 @@ export interface ResponseCompactParams {
|
|
|
9117
10301
|
| 'gpt-5.6-terra'
|
|
9118
10302
|
| 'gpt-5.6-luna'
|
|
9119
10303
|
| 'gpt-5.5'
|
|
10304
|
+
| 'gpt-5.5-2026-04-23'
|
|
9120
10305
|
| 'gpt-5.4'
|
|
9121
10306
|
| 'gpt-5.4-mini'
|
|
9122
10307
|
| 'gpt-5.4-nano'
|
|
@@ -9205,10 +10390,15 @@ export interface ResponseCompactParams {
|
|
|
9205
10390
|
| 'o4-mini-deep-research-2025-06-26'
|
|
9206
10391
|
| 'computer-use-preview'
|
|
9207
10392
|
| 'computer-use-preview-2025-03-11'
|
|
10393
|
+
| 'gpt-5.5-pro'
|
|
10394
|
+
| 'gpt-5.5-pro-2026-04-23'
|
|
9208
10395
|
| 'gpt-5-codex'
|
|
9209
10396
|
| 'gpt-5-pro'
|
|
9210
10397
|
| 'gpt-5-pro-2025-10-06'
|
|
9211
10398
|
| 'gpt-5.1-codex-max'
|
|
10399
|
+
| 'gpt-daybreak-blue-latest'
|
|
10400
|
+
| 'gpt-daybreak-red-latest'
|
|
10401
|
+
| 'gpt-5.6-cyber'
|
|
9212
10402
|
| (string & {})
|
|
9213
10403
|
| null;
|
|
9214
10404
|
|
|
@@ -9329,10 +10519,12 @@ export declare namespace Responses {
|
|
|
9329
10519
|
type FileSearchTool as FileSearchTool,
|
|
9330
10520
|
type FunctionShellTool as FunctionShellTool,
|
|
9331
10521
|
type FunctionTool as FunctionTool,
|
|
10522
|
+
type ImageDetail as ImageDetail,
|
|
9332
10523
|
type InlineSkill as InlineSkill,
|
|
9333
10524
|
type InlineSkillSource as InlineSkillSource,
|
|
9334
10525
|
type LocalEnvironment as LocalEnvironment,
|
|
9335
10526
|
type LocalSkill as LocalSkill,
|
|
10527
|
+
type McpToolCallError as McpToolCallError,
|
|
9336
10528
|
type NamespaceTool as NamespaceTool,
|
|
9337
10529
|
type Response as Response,
|
|
9338
10530
|
type ResponseApplyPatchToolCall as ResponseApplyPatchToolCall,
|
|
@@ -9433,6 +10625,11 @@ export declare namespace Responses {
|
|
|
9433
10625
|
type ResponseReasoningTextDoneEvent as ResponseReasoningTextDoneEvent,
|
|
9434
10626
|
type ResponseRefusalDeltaEvent as ResponseRefusalDeltaEvent,
|
|
9435
10627
|
type ResponseRefusalDoneEvent as ResponseRefusalDoneEvent,
|
|
10628
|
+
type ResponseShellCallCommandAddedEvent as ResponseShellCallCommandAddedEvent,
|
|
10629
|
+
type ResponseShellCallCommandDeltaEvent as ResponseShellCallCommandDeltaEvent,
|
|
10630
|
+
type ResponseShellCallCommandDoneEvent as ResponseShellCallCommandDoneEvent,
|
|
10631
|
+
type ResponseShellCallOutputContentDeltaEvent as ResponseShellCallOutputContentDeltaEvent,
|
|
10632
|
+
type ResponseShellCallOutputContentDoneEvent as ResponseShellCallOutputContentDoneEvent,
|
|
9436
10633
|
type ResponseStatus as ResponseStatus,
|
|
9437
10634
|
type ResponseStreamEvent as ResponseStreamEvent,
|
|
9438
10635
|
type ResponseTextConfig as ResponseTextConfig,
|
|
@@ -9447,6 +10644,7 @@ export declare namespace Responses {
|
|
|
9447
10644
|
type ResponseWebSearchCallSearchingEvent as ResponseWebSearchCallSearchingEvent,
|
|
9448
10645
|
type ResponsesClientEvent as ResponsesClientEvent,
|
|
9449
10646
|
type ResponsesServerEvent as ResponsesServerEvent,
|
|
10647
|
+
type ServiceTier as ServiceTier,
|
|
9450
10648
|
type SkillReference as SkillReference,
|
|
9451
10649
|
type Tool as Tool,
|
|
9452
10650
|
type ToolChoiceAllowed as ToolChoiceAllowed,
|