@perplexity-ai/perplexity_ai 0.37.0 → 0.38.1
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 +59 -1
- package/LICENSE +0 -0
- package/README.md +14 -6
- package/dist/api-promise.d.ts +3 -0
- package/dist/api-promise.d.ts.map +1 -0
- package/dist/api-promise.js +3 -0
- package/dist/api-promise.js.map +1 -0
- package/{client.d.ts → dist/client.d.ts} +15 -49
- package/dist/client.d.ts.map +1 -0
- package/{client.mjs → dist/client.js} +34 -48
- package/dist/client.js.map +1 -0
- package/{core → dist/core}/api-promise.d.ts +3 -3
- package/dist/core/api-promise.d.ts.map +1 -0
- package/{core/api-promise.mjs → dist/core/api-promise.js} +13 -4
- package/dist/core/api-promise.js.map +1 -0
- package/{core → dist/core}/error.d.ts +0 -0
- package/dist/core/error.d.ts.map +1 -0
- package/{core/error.mjs → dist/core/error.js} +7 -7
- package/dist/core/error.js.map +1 -0
- package/{core → dist/core}/resource.d.ts +1 -1
- package/dist/core/resource.d.ts.map +1 -0
- package/dist/core/resource.js +6 -0
- package/dist/core/resource.js.map +1 -0
- package/{core → dist/core}/streaming.d.ts +2 -2
- package/dist/core/streaming.d.ts.map +1 -0
- package/{core/streaming.mjs → dist/core/streaming.js} +25 -13
- package/dist/core/streaming.js.map +1 -0
- package/dist/core/uploads.d.ts +3 -0
- package/dist/core/uploads.d.ts.map +1 -0
- package/dist/core/uploads.js +2 -0
- package/dist/core/uploads.js.map +1 -0
- package/dist/error.d.ts +3 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/error.js +3 -0
- package/dist/error.js.map +1 -0
- package/dist/generated/api.d.ts +1825 -0
- package/dist/generated/api.d.ts.map +1 -0
- package/dist/generated/api.js +223 -0
- package/dist/generated/api.js.map +1 -0
- package/dist/generated/runtime.d.ts +44 -0
- package/dist/generated/runtime.d.ts.map +1 -0
- package/dist/generated/runtime.js +23 -0
- package/dist/generated/runtime.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/{internal → dist/internal}/builtin-types.d.ts +0 -0
- package/dist/internal/builtin-types.d.ts.map +1 -0
- package/dist/internal/builtin-types.js +2 -0
- package/dist/internal/builtin-types.js.map +1 -0
- package/{internal → dist/internal}/decoders/line.d.ts +0 -0
- package/dist/internal/decoders/line.d.ts.map +1 -0
- package/{internal/decoders/line.mjs → dist/internal/decoders/line.js} +17 -5
- package/dist/internal/decoders/line.js.map +1 -0
- package/{internal → dist/internal}/errors.d.ts +0 -0
- package/dist/internal/errors.d.ts.map +1 -0
- package/{internal/errors.mjs → dist/internal/errors.js} +1 -2
- package/dist/internal/errors.js.map +1 -0
- package/{internal → dist/internal}/headers.d.ts +0 -0
- package/dist/internal/headers.d.ts.map +1 -0
- package/{internal/headers.mjs → dist/internal/headers.js} +2 -3
- package/dist/internal/headers.js.map +1 -0
- package/{internal → dist/internal}/parse.d.ts +2 -2
- package/dist/internal/parse.d.ts.map +1 -0
- package/{internal/parse.mjs → dist/internal/parse.js} +3 -4
- package/dist/internal/parse.js.map +1 -0
- package/{internal → dist/internal}/request-options.d.ts +5 -5
- package/dist/internal/request-options.d.ts.map +1 -0
- package/{internal/request-options.mjs → dist/internal/request-options.js} +1 -2
- package/dist/internal/request-options.js.map +1 -0
- package/{internal → dist/internal}/shim-types.d.ts +0 -0
- package/dist/internal/shim-types.d.ts.map +1 -0
- package/dist/internal/shim-types.js +8 -0
- package/dist/internal/shim-types.js.map +1 -0
- package/{internal → dist/internal}/shims.d.ts +2 -2
- package/dist/internal/shims.d.ts.map +1 -0
- package/{internal/shims.mjs → dist/internal/shims.js} +7 -2
- package/dist/internal/shims.js.map +1 -0
- package/{internal → dist/internal}/to-file.d.ts +1 -1
- package/dist/internal/to-file.d.ts.map +1 -0
- package/{internal/to-file.mjs → dist/internal/to-file.js} +3 -3
- package/dist/internal/to-file.js.map +1 -0
- package/dist/internal/types.d.ts +35 -0
- package/dist/internal/types.d.ts.map +1 -0
- package/dist/internal/types.js +2 -0
- package/dist/internal/types.js.map +1 -0
- package/{internal → dist/internal}/uploads.d.ts +3 -3
- package/dist/internal/uploads.d.ts.map +1 -0
- package/{internal/uploads.mjs → dist/internal/uploads.js} +5 -7
- package/dist/internal/uploads.js.map +1 -0
- package/{internal → dist/internal}/utils/base64.d.ts +0 -0
- package/dist/internal/utils/base64.d.ts.map +1 -0
- package/{internal/utils/base64.mjs → dist/internal/utils/base64.js} +3 -4
- package/dist/internal/utils/base64.js.map +1 -0
- package/{internal → dist/internal}/utils/bytes.d.ts +0 -0
- package/dist/internal/utils/bytes.d.ts.map +1 -0
- package/{internal/utils/bytes.mjs → dist/internal/utils/bytes.js} +1 -1
- package/dist/internal/utils/bytes.js.map +1 -0
- package/{internal → dist/internal}/utils/env.d.ts +0 -0
- package/dist/internal/utils/env.d.ts.map +1 -0
- package/{internal/utils/env.mjs → dist/internal/utils/env.js} +1 -2
- package/dist/internal/utils/env.js.map +1 -0
- package/{internal → dist/internal}/utils/log.d.ts +2 -2
- package/dist/internal/utils/log.d.ts.map +1 -0
- package/{internal/utils/log.mjs → dist/internal/utils/log.js} +5 -6
- package/dist/internal/utils/log.js.map +1 -0
- package/{internal → dist/internal}/utils/path.d.ts +0 -0
- package/dist/internal/utils/path.d.ts.map +1 -0
- package/{internal/utils/path.mjs → dist/internal/utils/path.js} +2 -2
- package/dist/internal/utils/path.js.map +1 -0
- package/{internal → dist/internal}/utils/query.d.ts +0 -0
- package/dist/internal/utils/query.d.ts.map +1 -0
- package/{internal/utils/query.mjs → dist/internal/utils/query.js} +2 -3
- package/dist/internal/utils/query.js.map +1 -0
- package/{internal → dist/internal}/utils/sleep.d.ts +0 -0
- package/dist/internal/utils/sleep.d.ts.map +1 -0
- package/dist/internal/utils/sleep.js +2 -0
- package/dist/internal/utils/sleep.js.map +1 -0
- package/{internal → dist/internal}/utils/uuid.d.ts +0 -0
- package/dist/internal/utils/uuid.d.ts.map +1 -0
- package/{internal/utils/uuid.mjs → dist/internal/utils/uuid.js} +1 -2
- package/dist/internal/utils/uuid.js.map +1 -0
- package/{internal → dist/internal}/utils/values.d.ts +0 -0
- package/dist/internal/utils/values.d.ts.map +1 -0
- package/{internal/utils/values.mjs → dist/internal/utils/values.js} +2 -3
- package/dist/internal/utils/values.js.map +1 -0
- package/dist/internal/utils.d.ts +8 -0
- package/dist/internal/utils.d.ts.map +1 -0
- package/dist/internal/utils.js +8 -0
- package/dist/internal/utils.js.map +1 -0
- package/dist/lib/add-output-text.d.ts +2 -0
- package/dist/lib/add-output-text.d.ts.map +1 -0
- package/dist/lib/add-output-text.js +2 -0
- package/dist/lib/add-output-text.js.map +1 -0
- package/dist/resource.d.ts +3 -0
- package/dist/resource.d.ts.map +1 -0
- package/dist/resource.js +3 -0
- package/dist/resource.js.map +1 -0
- package/dist/resources/async/async.d.ts +3 -0
- package/dist/resources/async/async.d.ts.map +1 -0
- package/dist/resources/async/async.js +3 -0
- package/dist/resources/async/async.js.map +1 -0
- package/dist/resources/async/chat/chat.d.ts +8 -0
- package/dist/resources/async/chat/chat.d.ts.map +1 -0
- package/dist/resources/async/chat/chat.js +3 -0
- package/dist/resources/async/chat/chat.js.map +1 -0
- package/dist/resources/async/chat/completions.d.ts +8 -0
- package/dist/resources/async/chat/completions.d.ts.map +1 -0
- package/dist/resources/async/chat/completions.js +3 -0
- package/dist/resources/async/chat/completions.js.map +1 -0
- package/dist/resources/async/chat/index.d.ts +3 -0
- package/dist/resources/async/chat/index.d.ts.map +1 -0
- package/dist/resources/async/chat/index.js +3 -0
- package/dist/resources/async/chat/index.js.map +1 -0
- package/dist/resources/async/chat.d.ts +2 -0
- package/dist/resources/async/chat.d.ts.map +1 -0
- package/dist/resources/async/chat.js +2 -0
- package/dist/resources/async/chat.js.map +1 -0
- package/dist/resources/async/index.d.ts +3 -0
- package/dist/resources/async/index.d.ts.map +1 -0
- package/dist/resources/async/index.js +3 -0
- package/dist/resources/async/index.js.map +1 -0
- package/dist/resources/async.d.ts +2 -0
- package/dist/resources/async.d.ts.map +1 -0
- package/dist/resources/async.js +2 -0
- package/dist/resources/async.js.map +1 -0
- package/dist/resources/browser/browser.d.ts +4 -0
- package/dist/resources/browser/browser.d.ts.map +1 -0
- package/dist/resources/browser/browser.js +3 -0
- package/dist/resources/browser/browser.js.map +1 -0
- package/dist/resources/browser/index.d.ts +3 -0
- package/dist/resources/browser/index.d.ts.map +1 -0
- package/dist/resources/browser/index.js +3 -0
- package/dist/resources/browser/index.js.map +1 -0
- package/dist/resources/browser/sessions.d.ts +4 -0
- package/dist/resources/browser/sessions.d.ts.map +1 -0
- package/dist/resources/browser/sessions.js +3 -0
- package/dist/resources/browser/sessions.js.map +1 -0
- package/dist/resources/browser.d.ts +2 -0
- package/dist/resources/browser.d.ts.map +1 -0
- package/dist/resources/browser.js +2 -0
- package/dist/resources/browser.js.map +1 -0
- package/dist/resources/chat/chat.d.ts +8 -0
- package/dist/resources/chat/chat.d.ts.map +1 -0
- package/dist/resources/chat/chat.js +3 -0
- package/dist/resources/chat/chat.js.map +1 -0
- package/dist/resources/chat/completions.d.ts +7 -0
- package/dist/resources/chat/completions.d.ts.map +1 -0
- package/dist/resources/chat/completions.js +3 -0
- package/dist/resources/chat/completions.js.map +1 -0
- package/dist/resources/chat/index.d.ts +3 -0
- package/dist/resources/chat/index.d.ts.map +1 -0
- package/dist/resources/chat/index.js +3 -0
- package/dist/resources/chat/index.js.map +1 -0
- package/dist/resources/chat.d.ts +2 -0
- package/dist/resources/chat.d.ts.map +1 -0
- package/dist/resources/chat.js +2 -0
- package/dist/resources/chat.js.map +1 -0
- package/dist/resources/client.d.ts +79 -0
- package/dist/resources/client.d.ts.map +1 -0
- package/dist/resources/client.js +22 -0
- package/dist/resources/client.js.map +1 -0
- package/dist/resources/contextualized-embeddings.d.ts +5 -0
- package/dist/resources/contextualized-embeddings.d.ts.map +1 -0
- package/dist/resources/contextualized-embeddings.js +3 -0
- package/dist/resources/contextualized-embeddings.js.map +1 -0
- package/dist/resources/embeddings.d.ts +5 -0
- package/dist/resources/embeddings.d.ts.map +1 -0
- package/dist/resources/embeddings.js +3 -0
- package/dist/resources/embeddings.js.map +1 -0
- package/dist/resources/index.d.ts +9 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +9 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/resources/responses/files.d.ts +4 -0
- package/dist/resources/responses/files.d.ts.map +1 -0
- package/dist/resources/responses/files.js +3 -0
- package/dist/resources/responses/files.js.map +1 -0
- package/dist/resources/responses/index.d.ts +3 -0
- package/dist/resources/responses/index.d.ts.map +1 -0
- package/dist/resources/responses/index.js +3 -0
- package/dist/resources/responses/index.js.map +1 -0
- package/dist/resources/responses/responses.d.ts +23 -0
- package/dist/resources/responses/responses.d.ts.map +1 -0
- package/dist/resources/responses/responses.js +3 -0
- package/dist/resources/responses/responses.js.map +1 -0
- package/dist/resources/responses.d.ts +2 -0
- package/dist/resources/responses.d.ts.map +1 -0
- package/dist/resources/responses.js +2 -0
- package/dist/resources/responses.js.map +1 -0
- package/dist/resources/search.d.ts +5 -0
- package/dist/resources/search.d.ts.map +1 -0
- package/dist/resources/search.js +3 -0
- package/dist/resources/search.js.map +1 -0
- package/dist/resources/shared.d.ts +39 -0
- package/dist/resources/shared.d.ts.map +1 -0
- package/dist/resources/shared.js +2 -0
- package/dist/resources/shared.js.map +1 -0
- package/dist/resources.d.ts +2 -0
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +2 -0
- package/dist/resources.js.map +1 -0
- package/dist/streaming.d.ts +3 -0
- package/dist/streaming.d.ts.map +1 -0
- package/dist/streaming.js +3 -0
- package/dist/streaming.js.map +1 -0
- package/dist/uploads.d.ts +3 -0
- package/dist/uploads.d.ts.map +1 -0
- package/dist/uploads.js +3 -0
- package/dist/uploads.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +20 -150
- package/src/api-promise.ts +1 -1
- package/src/client.ts +35 -141
- package/src/core/api-promise.ts +3 -5
- package/src/core/error.ts +7 -9
- package/src/core/resource.ts +1 -3
- package/src/core/streaming.ts +17 -15
- package/src/core/uploads.ts +2 -2
- package/src/error.ts +1 -1
- package/src/generated/api.ts +1959 -0
- package/src/generated/runtime.ts +81 -0
- package/src/index.ts +7 -7
- package/src/internal/builtin-types.ts +0 -2
- package/src/internal/decoders/line.ts +6 -4
- package/src/internal/errors.ts +0 -2
- package/src/internal/headers.ts +1 -3
- package/src/internal/parse.ts +4 -6
- package/src/internal/request-options.ts +5 -7
- package/src/internal/shim-types.ts +3 -4
- package/src/internal/shims.ts +2 -4
- package/src/internal/to-file.ts +3 -3
- package/src/internal/types.ts +23 -74
- package/src/internal/uploads.ts +9 -10
- package/src/internal/utils/base64.ts +2 -4
- package/src/internal/utils/bytes.ts +0 -0
- package/src/internal/utils/env.ts +0 -2
- package/src/internal/utils/log.ts +10 -14
- package/src/internal/utils/path.ts +1 -1
- package/src/internal/utils/query.ts +1 -3
- package/src/internal/utils/sleep.ts +0 -2
- package/src/internal/utils/uuid.ts +0 -2
- package/src/internal/utils/values.ts +1 -3
- package/src/internal/utils.ts +7 -9
- package/src/lib/add-output-text.ts +1 -45
- package/src/resource.ts +1 -1
- package/src/resources/async/async.ts +2 -15
- package/src/resources/async/chat/chat.ts +7 -29
- package/src/resources/async/chat/completions.ts +7 -392
- package/src/resources/async/chat/index.ts +2 -11
- package/src/resources/async/chat.ts +1 -3
- package/src/resources/async/index.ts +2 -4
- package/src/resources/async.ts +1 -3
- package/src/resources/browser/browser.ts +3 -15
- package/src/resources/browser/index.ts +2 -4
- package/src/resources/browser/sessions.ts +3 -36
- package/src/resources/browser.ts +1 -3
- package/src/resources/chat/chat.ts +7 -50
- package/src/resources/chat/completions.ts +6 -256
- package/src/resources/chat/index.ts +2 -9
- package/src/resources/chat.ts +1 -3
- package/src/resources/client.ts +88 -0
- package/src/resources/contextualized-embeddings.ts +4 -83
- package/src/resources/embeddings.ts +4 -76
- package/src/resources/index.ts +8 -34
- package/src/resources/responses/files.ts +3 -42
- package/src/resources/responses/index.ts +2 -24
- package/src/resources/responses/responses.ts +22 -1951
- package/src/resources/responses.ts +1 -3
- package/src/resources/search.ts +4 -83
- package/src/resources/shared.ts +38 -552
- package/src/resources.ts +1 -1
- package/src/streaming.ts +1 -1
- package/src/uploads.ts +1 -1
- package/src/version.ts +1 -1
- package/api-promise.d.mts +0 -3
- package/api-promise.d.mts.map +0 -1
- package/api-promise.d.ts +0 -3
- package/api-promise.d.ts.map +0 -1
- package/api-promise.js +0 -6
- package/api-promise.js.map +0 -1
- package/api-promise.mjs +0 -3
- package/api-promise.mjs.map +0 -1
- package/client.d.mts +0 -213
- package/client.d.mts.map +0 -1
- package/client.d.ts.map +0 -1
- package/client.js +0 -504
- package/client.js.map +0 -1
- package/client.mjs.map +0 -1
- package/core/api-promise.d.mts +0 -46
- package/core/api-promise.d.mts.map +0 -1
- package/core/api-promise.d.ts.map +0 -1
- package/core/api-promise.js +0 -74
- package/core/api-promise.js.map +0 -1
- package/core/api-promise.mjs.map +0 -1
- package/core/error.d.mts +0 -46
- package/core/error.d.mts.map +0 -1
- package/core/error.d.ts.map +0 -1
- package/core/error.js +0 -113
- package/core/error.js.map +0 -1
- package/core/error.mjs.map +0 -1
- package/core/resource.d.mts +0 -6
- package/core/resource.d.mts.map +0 -1
- package/core/resource.d.ts.map +0 -1
- package/core/resource.js +0 -11
- package/core/resource.js.map +0 -1
- package/core/resource.mjs +0 -7
- package/core/resource.mjs.map +0 -1
- package/core/streaming.d.mts +0 -33
- package/core/streaming.d.mts.map +0 -1
- package/core/streaming.d.ts.map +0 -1
- package/core/streaming.js +0 -276
- package/core/streaming.js.map +0 -1
- package/core/streaming.mjs.map +0 -1
- package/core/uploads.d.mts +0 -3
- package/core/uploads.d.mts.map +0 -1
- package/core/uploads.d.ts +0 -3
- package/core/uploads.d.ts.map +0 -1
- package/core/uploads.js +0 -6
- package/core/uploads.js.map +0 -1
- package/core/uploads.mjs +0 -2
- package/core/uploads.mjs.map +0 -1
- package/error.d.mts +0 -3
- package/error.d.mts.map +0 -1
- package/error.d.ts +0 -3
- package/error.d.ts.map +0 -1
- package/error.js +0 -6
- package/error.js.map +0 -1
- package/error.mjs +0 -3
- package/error.mjs.map +0 -1
- package/index.d.mts +0 -6
- package/index.d.mts.map +0 -1
- package/index.d.ts +0 -6
- package/index.d.ts.map +0 -1
- package/index.js +0 -30
- package/index.js.map +0 -1
- package/index.mjs +0 -7
- package/index.mjs.map +0 -1
- package/internal/builtin-types.d.mts +0 -73
- package/internal/builtin-types.d.mts.map +0 -1
- package/internal/builtin-types.d.ts.map +0 -1
- package/internal/builtin-types.js +0 -4
- package/internal/builtin-types.js.map +0 -1
- package/internal/builtin-types.mjs +0 -3
- package/internal/builtin-types.mjs.map +0 -1
- package/internal/decoders/line.d.mts +0 -17
- package/internal/decoders/line.d.mts.map +0 -1
- package/internal/decoders/line.d.ts.map +0 -1
- package/internal/decoders/line.js +0 -113
- package/internal/decoders/line.js.map +0 -1
- package/internal/decoders/line.mjs.map +0 -1
- package/internal/detect-platform.d.mts +0 -15
- package/internal/detect-platform.d.mts.map +0 -1
- package/internal/detect-platform.d.ts +0 -15
- package/internal/detect-platform.d.ts.map +0 -1
- package/internal/detect-platform.js +0 -162
- package/internal/detect-platform.js.map +0 -1
- package/internal/detect-platform.mjs +0 -157
- package/internal/detect-platform.mjs.map +0 -1
- package/internal/errors.d.mts +0 -3
- package/internal/errors.d.mts.map +0 -1
- package/internal/errors.d.ts.map +0 -1
- package/internal/errors.js +0 -41
- package/internal/errors.js.map +0 -1
- package/internal/errors.mjs.map +0 -1
- package/internal/headers.d.mts +0 -20
- package/internal/headers.d.mts.map +0 -1
- package/internal/headers.d.ts.map +0 -1
- package/internal/headers.js +0 -79
- package/internal/headers.js.map +0 -1
- package/internal/headers.mjs.map +0 -1
- package/internal/parse.d.mts +0 -12
- package/internal/parse.d.mts.map +0 -1
- package/internal/parse.d.ts.map +0 -1
- package/internal/parse.js +0 -50
- package/internal/parse.js.map +0 -1
- package/internal/parse.mjs.map +0 -1
- package/internal/request-options.d.mts +0 -77
- package/internal/request-options.d.mts.map +0 -1
- package/internal/request-options.d.ts.map +0 -1
- package/internal/request-options.js +0 -14
- package/internal/request-options.js.map +0 -1
- package/internal/request-options.mjs.map +0 -1
- package/internal/shim-types.d.mts +0 -17
- package/internal/shim-types.d.mts.map +0 -1
- package/internal/shim-types.d.ts.map +0 -1
- package/internal/shim-types.js +0 -4
- package/internal/shim-types.js.map +0 -1
- package/internal/shim-types.mjs +0 -3
- package/internal/shim-types.mjs.map +0 -1
- package/internal/shims.d.mts +0 -26
- package/internal/shims.d.mts.map +0 -1
- package/internal/shims.d.ts.map +0 -1
- package/internal/shims.js +0 -92
- package/internal/shims.js.map +0 -1
- package/internal/shims.mjs.map +0 -1
- package/internal/to-file.d.mts +0 -45
- package/internal/to-file.d.mts.map +0 -1
- package/internal/to-file.d.ts.map +0 -1
- package/internal/to-file.js +0 -91
- package/internal/to-file.js.map +0 -1
- package/internal/to-file.mjs.map +0 -1
- package/internal/tslib.js +0 -81
- package/internal/tslib.mjs +0 -17
- package/internal/types.d.mts +0 -69
- package/internal/types.d.mts.map +0 -1
- package/internal/types.d.ts +0 -69
- package/internal/types.d.ts.map +0 -1
- package/internal/types.js +0 -4
- package/internal/types.js.map +0 -1
- package/internal/types.mjs +0 -3
- package/internal/types.mjs.map +0 -1
- package/internal/uploads.d.mts +0 -42
- package/internal/uploads.d.mts.map +0 -1
- package/internal/uploads.d.ts.map +0 -1
- package/internal/uploads.js +0 -141
- package/internal/uploads.js.map +0 -1
- package/internal/uploads.mjs.map +0 -1
- package/internal/utils/base64.d.mts +0 -3
- package/internal/utils/base64.d.mts.map +0 -1
- package/internal/utils/base64.d.ts.map +0 -1
- package/internal/utils/base64.js +0 -38
- package/internal/utils/base64.js.map +0 -1
- package/internal/utils/base64.mjs.map +0 -1
- package/internal/utils/bytes.d.mts +0 -4
- package/internal/utils/bytes.d.mts.map +0 -1
- package/internal/utils/bytes.d.ts.map +0 -1
- package/internal/utils/bytes.js +0 -31
- package/internal/utils/bytes.js.map +0 -1
- package/internal/utils/bytes.mjs.map +0 -1
- package/internal/utils/env.d.mts +0 -9
- package/internal/utils/env.d.mts.map +0 -1
- package/internal/utils/env.d.ts.map +0 -1
- package/internal/utils/env.js +0 -22
- package/internal/utils/env.js.map +0 -1
- package/internal/utils/env.mjs.map +0 -1
- package/internal/utils/log.d.mts +0 -37
- package/internal/utils/log.d.mts.map +0 -1
- package/internal/utils/log.d.ts.map +0 -1
- package/internal/utils/log.js +0 -87
- package/internal/utils/log.js.map +0 -1
- package/internal/utils/log.mjs.map +0 -1
- package/internal/utils/path.d.mts +0 -15
- package/internal/utils/path.d.mts.map +0 -1
- package/internal/utils/path.d.ts.map +0 -1
- package/internal/utils/path.js +0 -79
- package/internal/utils/path.js.map +0 -1
- package/internal/utils/path.mjs.map +0 -1
- package/internal/utils/query.d.mts +0 -5
- package/internal/utils/query.d.mts.map +0 -1
- package/internal/utils/query.d.ts.map +0 -1
- package/internal/utils/query.js +0 -23
- package/internal/utils/query.js.map +0 -1
- package/internal/utils/query.mjs.map +0 -1
- package/internal/utils/sleep.d.mts +0 -2
- package/internal/utils/sleep.d.mts.map +0 -1
- package/internal/utils/sleep.d.ts.map +0 -1
- package/internal/utils/sleep.js +0 -7
- package/internal/utils/sleep.js.map +0 -1
- package/internal/utils/sleep.mjs +0 -3
- package/internal/utils/sleep.mjs.map +0 -1
- package/internal/utils/uuid.d.mts +0 -5
- package/internal/utils/uuid.d.mts.map +0 -1
- package/internal/utils/uuid.d.ts.map +0 -1
- package/internal/utils/uuid.js +0 -19
- package/internal/utils/uuid.js.map +0 -1
- package/internal/utils/uuid.mjs.map +0 -1
- package/internal/utils/values.d.mts +0 -18
- package/internal/utils/values.d.mts.map +0 -1
- package/internal/utils/values.d.ts.map +0 -1
- package/internal/utils/values.js +0 -112
- package/internal/utils/values.js.map +0 -1
- package/internal/utils/values.mjs.map +0 -1
- package/internal/utils.d.mts +0 -8
- package/internal/utils.d.mts.map +0 -1
- package/internal/utils.d.ts +0 -8
- package/internal/utils.d.ts.map +0 -1
- package/internal/utils.js +0 -12
- package/internal/utils.js.map +0 -1
- package/internal/utils.mjs +0 -9
- package/internal/utils.mjs.map +0 -1
- package/lib/add-output-text.d.mts +0 -26
- package/lib/add-output-text.d.mts.map +0 -1
- package/lib/add-output-text.d.ts +0 -26
- package/lib/add-output-text.d.ts.map +0 -1
- package/lib/add-output-text.js +0 -29
- package/lib/add-output-text.js.map +0 -1
- package/lib/add-output-text.mjs +0 -26
- package/lib/add-output-text.mjs.map +0 -1
- package/resource.d.mts +0 -3
- package/resource.d.mts.map +0 -1
- package/resource.d.ts +0 -3
- package/resource.d.ts.map +0 -1
- package/resource.js +0 -6
- package/resource.js.map +0 -1
- package/resource.mjs +0 -3
- package/resource.mjs.map +0 -1
- package/resources/async/async.d.mts +0 -10
- package/resources/async/async.d.mts.map +0 -1
- package/resources/async/async.d.ts +0 -10
- package/resources/async/async.d.ts.map +0 -1
- package/resources/async/async.js +0 -17
- package/resources/async/async.js.map +0 -1
- package/resources/async/async.mjs +0 -12
- package/resources/async/async.mjs.map +0 -1
- package/resources/async/chat/chat.d.mts +0 -10
- package/resources/async/chat/chat.d.mts.map +0 -1
- package/resources/async/chat/chat.d.ts +0 -10
- package/resources/async/chat/chat.d.ts.map +0 -1
- package/resources/async/chat/chat.js +0 -17
- package/resources/async/chat/chat.js.map +0 -1
- package/resources/async/chat/chat.mjs +0 -12
- package/resources/async/chat/chat.mjs.map +0 -1
- package/resources/async/chat/completions.d.mts +0 -229
- package/resources/async/chat/completions.d.mts.map +0 -1
- package/resources/async/chat/completions.d.ts +0 -229
- package/resources/async/chat/completions.d.ts.map +0 -1
- package/resources/async/chat/completions.js +0 -46
- package/resources/async/chat/completions.js.map +0 -1
- package/resources/async/chat/completions.mjs +0 -42
- package/resources/async/chat/completions.mjs.map +0 -1
- package/resources/async/chat/index.d.mts +0 -3
- package/resources/async/chat/index.d.mts.map +0 -1
- package/resources/async/chat/index.d.ts +0 -3
- package/resources/async/chat/index.d.ts.map +0 -1
- package/resources/async/chat/index.js +0 -9
- package/resources/async/chat/index.js.map +0 -1
- package/resources/async/chat/index.mjs +0 -4
- package/resources/async/chat/index.mjs.map +0 -1
- package/resources/async/chat.d.mts +0 -2
- package/resources/async/chat.d.mts.map +0 -1
- package/resources/async/chat.d.ts +0 -2
- package/resources/async/chat.d.ts.map +0 -1
- package/resources/async/chat.js +0 -6
- package/resources/async/chat.js.map +0 -1
- package/resources/async/chat.mjs +0 -3
- package/resources/async/chat.mjs.map +0 -1
- package/resources/async/index.d.mts +0 -3
- package/resources/async/index.d.mts.map +0 -1
- package/resources/async/index.d.ts +0 -3
- package/resources/async/index.d.ts.map +0 -1
- package/resources/async/index.js +0 -9
- package/resources/async/index.js.map +0 -1
- package/resources/async/index.mjs +0 -4
- package/resources/async/index.mjs.map +0 -1
- package/resources/async.d.mts +0 -2
- package/resources/async.d.mts.map +0 -1
- package/resources/async.d.ts +0 -2
- package/resources/async.d.ts.map +0 -1
- package/resources/async.js +0 -6
- package/resources/async.js.map +0 -1
- package/resources/async.mjs +0 -3
- package/resources/async.mjs.map +0 -1
- package/resources/browser/browser.d.mts +0 -10
- package/resources/browser/browser.d.mts.map +0 -1
- package/resources/browser/browser.d.ts +0 -10
- package/resources/browser/browser.d.ts.map +0 -1
- package/resources/browser/browser.js +0 -17
- package/resources/browser/browser.js.map +0 -1
- package/resources/browser/browser.mjs +0 -12
- package/resources/browser/browser.mjs.map +0 -1
- package/resources/browser/index.d.mts +0 -3
- package/resources/browser/index.d.mts.map +0 -1
- package/resources/browser/index.d.ts +0 -3
- package/resources/browser/index.d.ts.map +0 -1
- package/resources/browser/index.js +0 -9
- package/resources/browser/index.js.map +0 -1
- package/resources/browser/index.mjs +0 -4
- package/resources/browser/index.mjs.map +0 -1
- package/resources/browser/sessions.d.mts +0 -20
- package/resources/browser/sessions.d.mts.map +0 -1
- package/resources/browser/sessions.d.ts +0 -20
- package/resources/browser/sessions.d.ts.map +0 -1
- package/resources/browser/sessions.js +0 -26
- package/resources/browser/sessions.js.map +0 -1
- package/resources/browser/sessions.mjs +0 -22
- package/resources/browser/sessions.mjs.map +0 -1
- package/resources/browser.d.mts +0 -2
- package/resources/browser.d.mts.map +0 -1
- package/resources/browser.d.ts +0 -2
- package/resources/browser.d.ts.map +0 -1
- package/resources/browser.js +0 -6
- package/resources/browser.js.map +0 -1
- package/resources/browser.mjs +0 -3
- package/resources/browser.mjs.map +0 -1
- package/resources/chat/chat.d.mts +0 -24
- package/resources/chat/chat.d.mts.map +0 -1
- package/resources/chat/chat.d.ts +0 -24
- package/resources/chat/chat.d.ts.map +0 -1
- package/resources/chat/chat.js +0 -17
- package/resources/chat/chat.js.map +0 -1
- package/resources/chat/chat.mjs +0 -12
- package/resources/chat/chat.mjs.map +0 -1
- package/resources/chat/completions.d.mts +0 -152
- package/resources/chat/completions.d.mts.map +0 -1
- package/resources/chat/completions.d.ts +0 -152
- package/resources/chat/completions.d.ts.map +0 -1
- package/resources/chat/completions.js +0 -12
- package/resources/chat/completions.js.map +0 -1
- package/resources/chat/completions.mjs +0 -8
- package/resources/chat/completions.mjs.map +0 -1
- package/resources/chat/index.d.mts +0 -3
- package/resources/chat/index.d.mts.map +0 -1
- package/resources/chat/index.d.ts +0 -3
- package/resources/chat/index.d.ts.map +0 -1
- package/resources/chat/index.js +0 -9
- package/resources/chat/index.js.map +0 -1
- package/resources/chat/index.mjs +0 -4
- package/resources/chat/index.mjs.map +0 -1
- package/resources/chat.d.mts +0 -2
- package/resources/chat.d.mts.map +0 -1
- package/resources/chat.d.ts +0 -2
- package/resources/chat.d.ts.map +0 -1
- package/resources/chat.js +0 -6
- package/resources/chat.js.map +0 -1
- package/resources/chat.mjs +0 -3
- package/resources/chat.mjs.map +0 -1
- package/resources/contextualized-embeddings.d.mts +0 -64
- package/resources/contextualized-embeddings.d.mts.map +0 -1
- package/resources/contextualized-embeddings.d.ts +0 -64
- package/resources/contextualized-embeddings.d.ts.map +0 -1
- package/resources/contextualized-embeddings.js +0 -17
- package/resources/contextualized-embeddings.js.map +0 -1
- package/resources/contextualized-embeddings.mjs +0 -13
- package/resources/contextualized-embeddings.mjs.map +0 -1
- package/resources/embeddings.d.mts +0 -60
- package/resources/embeddings.d.mts.map +0 -1
- package/resources/embeddings.d.ts +0 -60
- package/resources/embeddings.d.ts.map +0 -1
- package/resources/embeddings.js +0 -16
- package/resources/embeddings.js.map +0 -1
- package/resources/embeddings.mjs +0 -12
- package/resources/embeddings.mjs.map +0 -1
- package/resources/index.d.mts +0 -9
- package/resources/index.d.mts.map +0 -1
- package/resources/index.d.ts +0 -9
- package/resources/index.d.ts.map +0 -1
- package/resources/index.js +0 -21
- package/resources/index.js.map +0 -1
- package/resources/index.mjs +0 -10
- package/resources/index.mjs.map +0 -1
- package/resources/responses/files.d.mts +0 -26
- package/resources/responses/files.d.mts.map +0 -1
- package/resources/responses/files.d.ts +0 -26
- package/resources/responses/files.d.ts.map +0 -1
- package/resources/responses/files.js +0 -30
- package/resources/responses/files.js.map +0 -1
- package/resources/responses/files.mjs +0 -26
- package/resources/responses/files.mjs.map +0 -1
- package/resources/responses/index.d.mts +0 -3
- package/resources/responses/index.d.mts.map +0 -1
- package/resources/responses/index.d.ts +0 -3
- package/resources/responses/index.d.ts.map +0 -1
- package/resources/responses/index.js +0 -9
- package/resources/responses/index.js.map +0 -1
- package/resources/responses/index.mjs +0 -4
- package/resources/responses/index.mjs.map +0 -1
- package/resources/responses/responses.d.mts +0 -1465
- package/resources/responses/responses.d.mts.map +0 -1
- package/resources/responses/responses.d.ts +0 -1465
- package/resources/responses/responses.d.ts.map +0 -1
- package/resources/responses/responses.js +0 -50
- package/resources/responses/responses.js.map +0 -1
- package/resources/responses/responses.mjs +0 -45
- package/resources/responses/responses.mjs.map +0 -1
- package/resources/responses.d.mts +0 -2
- package/resources/responses.d.mts.map +0 -1
- package/resources/responses.d.ts +0 -2
- package/resources/responses.d.ts.map +0 -1
- package/resources/responses.js +0 -6
- package/resources/responses.js.map +0 -1
- package/resources/responses.mjs +0 -3
- package/resources/responses.mjs.map +0 -1
- package/resources/search.d.mts +0 -54
- package/resources/search.d.mts.map +0 -1
- package/resources/search.d.ts +0 -54
- package/resources/search.d.ts.map +0 -1
- package/resources/search.js +0 -15
- package/resources/search.js.map +0 -1
- package/resources/search.mjs +0 -11
- package/resources/search.mjs.map +0 -1
- package/resources/shared.d.mts +0 -402
- package/resources/shared.d.mts.map +0 -1
- package/resources/shared.d.ts +0 -402
- package/resources/shared.d.ts.map +0 -1
- package/resources/shared.js +0 -4
- package/resources/shared.js.map +0 -1
- package/resources/shared.mjs +0 -3
- package/resources/shared.mjs.map +0 -1
- package/resources.d.mts +0 -2
- package/resources.d.mts.map +0 -1
- package/resources.d.ts +0 -2
- package/resources.d.ts.map +0 -1
- package/resources.js +0 -5
- package/resources.js.map +0 -1
- package/resources.mjs +0 -2
- package/resources.mjs.map +0 -1
- package/src/core/README.md +0 -3
- package/src/internal/README.md +0 -3
- package/src/internal/detect-platform.ts +0 -196
- package/src/lib/.keep +0 -4
- package/src/tsconfig.json +0 -11
- package/streaming.d.mts +0 -3
- package/streaming.d.mts.map +0 -1
- package/streaming.d.ts +0 -3
- package/streaming.d.ts.map +0 -1
- package/streaming.js +0 -6
- package/streaming.js.map +0 -1
- package/streaming.mjs +0 -3
- package/streaming.mjs.map +0 -1
- package/uploads.d.mts +0 -3
- package/uploads.d.mts.map +0 -1
- package/uploads.d.ts +0 -3
- package/uploads.d.ts.map +0 -1
- package/uploads.js +0 -6
- package/uploads.js.map +0 -1
- package/uploads.mjs +0 -3
- package/uploads.mjs.map +0 -1
- package/version.d.mts +0 -2
- package/version.d.mts.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -5
- package/version.js.map +0 -1
- package/version.mjs +0 -2
- package/version.mjs.map +0 -1
|
@@ -0,0 +1,1959 @@
|
|
|
1
|
+
import { addOutputText, normalizeHeaders } from "./runtime.js";
|
|
2
|
+
import type { APIPromise, RequestOptions, SdkTransport, Stream } from "./runtime.js";
|
|
3
|
+
export type { APIPromise, HeaderValue, HeadersLike, RequestOptions, SdkTransport, Stream } from "./runtime.js";
|
|
4
|
+
export type AdvisorResultOutputItemInput = {
|
|
5
|
+
advice?: string;
|
|
6
|
+
arguments?: string;
|
|
7
|
+
call_id: string;
|
|
8
|
+
error_code?: string;
|
|
9
|
+
error_message?: string;
|
|
10
|
+
question?: string;
|
|
11
|
+
status: StatusInput;
|
|
12
|
+
type: "advisor_result";
|
|
13
|
+
};
|
|
14
|
+
export type AdvisorResultOutputItemOutput = {
|
|
15
|
+
advice?: string;
|
|
16
|
+
arguments?: string;
|
|
17
|
+
call_id: string;
|
|
18
|
+
error_code?: string;
|
|
19
|
+
error_message?: string;
|
|
20
|
+
question?: string;
|
|
21
|
+
status: StatusOutput;
|
|
22
|
+
type: "advisor_result";
|
|
23
|
+
};
|
|
24
|
+
export type AnnotationInput = {
|
|
25
|
+
end_index?: number;
|
|
26
|
+
start_index?: number;
|
|
27
|
+
title?: string;
|
|
28
|
+
type?: string;
|
|
29
|
+
url?: string;
|
|
30
|
+
};
|
|
31
|
+
export type AnnotationOutput = {
|
|
32
|
+
end_index?: number;
|
|
33
|
+
start_index?: number;
|
|
34
|
+
title?: string;
|
|
35
|
+
type?: string;
|
|
36
|
+
url?: string;
|
|
37
|
+
};
|
|
38
|
+
export type ApiChatCompletionsRequestInput = {
|
|
39
|
+
_debug_pro_search?: boolean;
|
|
40
|
+
_force_new_agent?: boolean | null;
|
|
41
|
+
_inputs?: number[] | null;
|
|
42
|
+
_prompt_token_length?: number | null;
|
|
43
|
+
best_of?: number | null;
|
|
44
|
+
country?: string | null;
|
|
45
|
+
cum_logprobs?: boolean | null;
|
|
46
|
+
disable_search?: boolean | null;
|
|
47
|
+
diverse_first_token?: boolean | null;
|
|
48
|
+
enable_search_classifier?: boolean | null;
|
|
49
|
+
file_workspace_id?: string | null;
|
|
50
|
+
frequency_penalty?: number | null;
|
|
51
|
+
has_image_url?: boolean;
|
|
52
|
+
image_domain_filter?: string[] | null;
|
|
53
|
+
image_format_filter?: string[] | null;
|
|
54
|
+
language_preference?: string | null;
|
|
55
|
+
last_updated_after_filter?: string | null;
|
|
56
|
+
last_updated_before_filter?: string | null;
|
|
57
|
+
latitude?: number | null;
|
|
58
|
+
logprobs?: boolean | null;
|
|
59
|
+
longitude?: number | null;
|
|
60
|
+
max_tokens?: number | null;
|
|
61
|
+
messages: ChatMessageInputInput[];
|
|
62
|
+
model: string;
|
|
63
|
+
n?: number | null;
|
|
64
|
+
num_images?: number;
|
|
65
|
+
num_search_results?: number;
|
|
66
|
+
parallel_tool_calls?: boolean | null;
|
|
67
|
+
presence_penalty?: number | null;
|
|
68
|
+
ranking_model?: string | null;
|
|
69
|
+
reasoning_effort?: ("minimal" | "low" | "medium" | "high") | null;
|
|
70
|
+
response_format?: ResponseFormatTextInput | ResponseFormatJSONSchemaInput | ResponseFormatRegexInput | null;
|
|
71
|
+
response_formatting_locale?: string | null;
|
|
72
|
+
response_metadata?: ({} & Record<string, unknown>) | null;
|
|
73
|
+
return_images?: boolean | null;
|
|
74
|
+
return_related_questions?: boolean | null;
|
|
75
|
+
safe_search?: boolean | null;
|
|
76
|
+
search_after_date_filter?: string | null;
|
|
77
|
+
search_before_date_filter?: string | null;
|
|
78
|
+
search_domain_filter?: string[] | null;
|
|
79
|
+
search_internal_properties?: ({} & Record<string, unknown>) | null;
|
|
80
|
+
search_language_filter?: string[] | null;
|
|
81
|
+
search_mode?: ("web" | "academic" | "sec") | null;
|
|
82
|
+
search_recency_filter?: ("hour" | "day" | "week" | "month" | "year") | null;
|
|
83
|
+
search_tenant?: string | null;
|
|
84
|
+
stop?: string | string[] | null;
|
|
85
|
+
stream?: boolean | null;
|
|
86
|
+
stream_mode?: "full" | "concise";
|
|
87
|
+
temperature?: number | null;
|
|
88
|
+
thread_id?: string | null;
|
|
89
|
+
tool_choice?: ("none" | "auto" | "required") | null;
|
|
90
|
+
tools?: ToolSpecInput[] | null;
|
|
91
|
+
top_k?: number | null;
|
|
92
|
+
top_logprobs?: number | null;
|
|
93
|
+
top_p?: number | null;
|
|
94
|
+
updated_after_timestamp?: number | null;
|
|
95
|
+
updated_before_timestamp?: number | null;
|
|
96
|
+
use_threads?: boolean | null;
|
|
97
|
+
user_original_query?: string | null;
|
|
98
|
+
web_search_options?: WebSearchOptionsInput;
|
|
99
|
+
};
|
|
100
|
+
export type ApiChatCompletionsRequestOutput = {
|
|
101
|
+
_debug_pro_search?: boolean;
|
|
102
|
+
_force_new_agent?: boolean | null;
|
|
103
|
+
_inputs?: number[] | null;
|
|
104
|
+
_prompt_token_length?: number | null;
|
|
105
|
+
best_of?: number | null;
|
|
106
|
+
country?: string | null;
|
|
107
|
+
cum_logprobs?: boolean | null;
|
|
108
|
+
disable_search?: boolean | null;
|
|
109
|
+
diverse_first_token?: boolean | null;
|
|
110
|
+
enable_search_classifier?: boolean | null;
|
|
111
|
+
file_workspace_id?: string | null;
|
|
112
|
+
frequency_penalty?: number | null;
|
|
113
|
+
has_image_url?: boolean;
|
|
114
|
+
image_domain_filter?: string[] | null;
|
|
115
|
+
image_format_filter?: string[] | null;
|
|
116
|
+
language_preference?: string | null;
|
|
117
|
+
last_updated_after_filter?: string | null;
|
|
118
|
+
last_updated_before_filter?: string | null;
|
|
119
|
+
latitude?: number | null;
|
|
120
|
+
logprobs?: boolean | null;
|
|
121
|
+
longitude?: number | null;
|
|
122
|
+
max_tokens?: number | null;
|
|
123
|
+
messages: ChatMessageInputOutput[];
|
|
124
|
+
model: string;
|
|
125
|
+
n?: number | null;
|
|
126
|
+
num_images?: number;
|
|
127
|
+
num_search_results?: number;
|
|
128
|
+
parallel_tool_calls?: boolean | null;
|
|
129
|
+
presence_penalty?: number | null;
|
|
130
|
+
ranking_model?: string | null;
|
|
131
|
+
reasoning_effort?: ("minimal" | "low" | "medium" | "high") | null;
|
|
132
|
+
response_format?: ResponseFormatTextOutput | ResponseFormatJSONSchemaOutput | ResponseFormatRegexOutput | null;
|
|
133
|
+
response_formatting_locale?: string | null;
|
|
134
|
+
response_metadata?: ({} & Record<string, unknown>) | null;
|
|
135
|
+
return_images?: boolean | null;
|
|
136
|
+
return_related_questions?: boolean | null;
|
|
137
|
+
safe_search?: boolean | null;
|
|
138
|
+
search_after_date_filter?: string | null;
|
|
139
|
+
search_before_date_filter?: string | null;
|
|
140
|
+
search_domain_filter?: string[] | null;
|
|
141
|
+
search_internal_properties?: ({} & Record<string, unknown>) | null;
|
|
142
|
+
search_language_filter?: string[] | null;
|
|
143
|
+
search_mode?: ("web" | "academic" | "sec") | null;
|
|
144
|
+
search_recency_filter?: ("hour" | "day" | "week" | "month" | "year") | null;
|
|
145
|
+
search_tenant?: string | null;
|
|
146
|
+
stop?: string | string[] | null;
|
|
147
|
+
stream?: boolean | null;
|
|
148
|
+
stream_mode?: "full" | "concise";
|
|
149
|
+
temperature?: number | null;
|
|
150
|
+
thread_id?: string | null;
|
|
151
|
+
tool_choice?: ("none" | "auto" | "required") | null;
|
|
152
|
+
tools?: ToolSpecOutput[] | null;
|
|
153
|
+
top_k?: number | null;
|
|
154
|
+
top_logprobs?: number | null;
|
|
155
|
+
top_p?: number | null;
|
|
156
|
+
updated_after_timestamp?: number | null;
|
|
157
|
+
updated_before_timestamp?: number | null;
|
|
158
|
+
use_threads?: boolean | null;
|
|
159
|
+
user_original_query?: string | null;
|
|
160
|
+
web_search_options?: WebSearchOptionsOutput;
|
|
161
|
+
};
|
|
162
|
+
export type ApiPublicSearchResultInput = {
|
|
163
|
+
date?: string | null;
|
|
164
|
+
last_updated?: string | null;
|
|
165
|
+
snippet?: string;
|
|
166
|
+
source?: "web" | "attachment";
|
|
167
|
+
title: string;
|
|
168
|
+
url: string;
|
|
169
|
+
};
|
|
170
|
+
export type ApiPublicSearchResultOutput = {
|
|
171
|
+
date?: string | null;
|
|
172
|
+
last_updated?: string | null;
|
|
173
|
+
snippet?: string;
|
|
174
|
+
source?: "web" | "attachment";
|
|
175
|
+
title: string;
|
|
176
|
+
url: string;
|
|
177
|
+
};
|
|
178
|
+
export type ApiSearchPageInput = {
|
|
179
|
+
date?: string | null;
|
|
180
|
+
last_updated?: string | null;
|
|
181
|
+
snippet: string;
|
|
182
|
+
title: string;
|
|
183
|
+
url: string;
|
|
184
|
+
};
|
|
185
|
+
export type ApiSearchPageOutput = {
|
|
186
|
+
date?: string | null;
|
|
187
|
+
last_updated?: string | null;
|
|
188
|
+
snippet: string;
|
|
189
|
+
title: string;
|
|
190
|
+
url: string;
|
|
191
|
+
};
|
|
192
|
+
export type ApiSearchRequestInput = {
|
|
193
|
+
country?: string | null;
|
|
194
|
+
display_server_time?: boolean;
|
|
195
|
+
last_updated_after_filter?: string | null;
|
|
196
|
+
last_updated_before_filter?: string | null;
|
|
197
|
+
max_results?: number;
|
|
198
|
+
max_tokens?: number;
|
|
199
|
+
max_tokens_per_page?: number;
|
|
200
|
+
query: string | string[];
|
|
201
|
+
search_after_date_filter?: string | null;
|
|
202
|
+
search_before_date_filter?: string | null;
|
|
203
|
+
search_context_size?: "low" | "medium" | "high";
|
|
204
|
+
search_domain_filter?: string[] | null;
|
|
205
|
+
search_language_filter?: string[] | null;
|
|
206
|
+
search_mode?: ("web" | "academic" | "sec") | null;
|
|
207
|
+
search_recency_filter?: ("hour" | "day" | "week" | "month" | "year") | null;
|
|
208
|
+
search_type?: ("web" | "people") | null;
|
|
209
|
+
};
|
|
210
|
+
export type ApiSearchRequestOutput = {
|
|
211
|
+
country?: string | null;
|
|
212
|
+
display_server_time?: boolean;
|
|
213
|
+
last_updated_after_filter?: string | null;
|
|
214
|
+
last_updated_before_filter?: string | null;
|
|
215
|
+
max_results?: number;
|
|
216
|
+
max_tokens?: number;
|
|
217
|
+
max_tokens_per_page?: number;
|
|
218
|
+
query: string | string[];
|
|
219
|
+
search_after_date_filter?: string | null;
|
|
220
|
+
search_before_date_filter?: string | null;
|
|
221
|
+
search_context_size?: "low" | "medium" | "high";
|
|
222
|
+
search_domain_filter?: string[] | null;
|
|
223
|
+
search_language_filter?: string[] | null;
|
|
224
|
+
search_mode?: ("web" | "academic" | "sec") | null;
|
|
225
|
+
search_recency_filter?: ("hour" | "day" | "week" | "month" | "year") | null;
|
|
226
|
+
search_type?: ("web" | "people") | null;
|
|
227
|
+
};
|
|
228
|
+
export type ApiSearchResponseInput = {
|
|
229
|
+
id: string;
|
|
230
|
+
results: ApiSearchPageInput[];
|
|
231
|
+
server_time?: string | null;
|
|
232
|
+
};
|
|
233
|
+
export type ApiSearchResponseOutput = {
|
|
234
|
+
id: string;
|
|
235
|
+
results: ApiSearchPageOutput[];
|
|
236
|
+
server_time?: string | null;
|
|
237
|
+
};
|
|
238
|
+
export type AsyncApiChatCompletionsRequestInput = {
|
|
239
|
+
idempotency_key?: string | null;
|
|
240
|
+
request: ApiChatCompletionsRequestInput;
|
|
241
|
+
};
|
|
242
|
+
export type AsyncApiChatCompletionsRequestOutput = {
|
|
243
|
+
idempotency_key?: string | null;
|
|
244
|
+
request: ApiChatCompletionsRequestOutput;
|
|
245
|
+
};
|
|
246
|
+
export type AsyncApiChatCompletionsResponseInput = {
|
|
247
|
+
completed_at?: number | null;
|
|
248
|
+
created_at: number;
|
|
249
|
+
error_message?: string | null;
|
|
250
|
+
failed_at?: number | null;
|
|
251
|
+
id: string;
|
|
252
|
+
model: string;
|
|
253
|
+
response?: CompletionResponseInput | null;
|
|
254
|
+
started_at?: number | null;
|
|
255
|
+
status: AsyncProcessingStatusInput;
|
|
256
|
+
};
|
|
257
|
+
export type AsyncApiChatCompletionsResponseOutput = {
|
|
258
|
+
completed_at?: number | null;
|
|
259
|
+
created_at: number;
|
|
260
|
+
error_message?: string | null;
|
|
261
|
+
failed_at?: number | null;
|
|
262
|
+
id: string;
|
|
263
|
+
model: string;
|
|
264
|
+
response?: CompletionResponseOutput | null;
|
|
265
|
+
started_at?: number | null;
|
|
266
|
+
status: AsyncProcessingStatusOutput;
|
|
267
|
+
};
|
|
268
|
+
export type AsyncApiChatCompletionsResponseSummaryInput = {
|
|
269
|
+
completed_at?: number | null;
|
|
270
|
+
created_at: number;
|
|
271
|
+
failed_at?: number | null;
|
|
272
|
+
id: string;
|
|
273
|
+
model: string;
|
|
274
|
+
started_at?: number | null;
|
|
275
|
+
status: AsyncProcessingStatusInput;
|
|
276
|
+
};
|
|
277
|
+
export type AsyncApiChatCompletionsResponseSummaryOutput = {
|
|
278
|
+
completed_at?: number | null;
|
|
279
|
+
created_at: number;
|
|
280
|
+
failed_at?: number | null;
|
|
281
|
+
id: string;
|
|
282
|
+
model: string;
|
|
283
|
+
started_at?: number | null;
|
|
284
|
+
status: AsyncProcessingStatusOutput;
|
|
285
|
+
};
|
|
286
|
+
export type AsyncProcessingStatusInput = "CREATED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
|
|
287
|
+
export type AsyncProcessingStatusOutput = "CREATED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
|
|
288
|
+
export type BrowserSessionResponseInput = {
|
|
289
|
+
session_id?: string;
|
|
290
|
+
status?: "running" | "stopped";
|
|
291
|
+
};
|
|
292
|
+
export type BrowserSessionResponseOutput = {
|
|
293
|
+
session_id?: string;
|
|
294
|
+
status?: "running" | "stopped";
|
|
295
|
+
};
|
|
296
|
+
export type BuiltinSkillInput = {
|
|
297
|
+
name: "office" | "office/docx" | "office/pdf" | "office/pptx" | "office/xlsx";
|
|
298
|
+
type: "builtin";
|
|
299
|
+
};
|
|
300
|
+
export type BuiltinSkillOutput = {
|
|
301
|
+
name: "office" | "office/docx" | "office/pdf" | "office/pptx" | "office/xlsx";
|
|
302
|
+
type: "builtin";
|
|
303
|
+
};
|
|
304
|
+
export type ChatMessageInputInput = {
|
|
305
|
+
content: string | (ChatMessageContentTextChunkInput | ChatMessageContentImageChunkInput | ChatMessageContentFileChunkInput | ChatMessageContentPDFChunkInput | ChatMessageContentVideoChunkInput)[] | null;
|
|
306
|
+
reasoning_steps?: ReasoningStepInputInput[] | null;
|
|
307
|
+
role: ChatMessageRoleInput;
|
|
308
|
+
tool_call_id?: string | null;
|
|
309
|
+
tool_calls?: ToolCallInput[] | null;
|
|
310
|
+
};
|
|
311
|
+
export type ChatMessageInputOutput = {
|
|
312
|
+
content: string | (ChatMessageContentTextChunkOutput | ChatMessageContentImageChunkOutput | ChatMessageContentFileChunkOutput | ChatMessageContentPDFChunkOutput | ChatMessageContentVideoChunkOutput)[] | null;
|
|
313
|
+
reasoning_steps?: ReasoningStepInputOutput[] | null;
|
|
314
|
+
role: ChatMessageRoleOutput;
|
|
315
|
+
tool_call_id?: string | null;
|
|
316
|
+
tool_calls?: ToolCallOutput[] | null;
|
|
317
|
+
};
|
|
318
|
+
export type ChatMessageOutputInput = {
|
|
319
|
+
content: string | (ChatMessageContentTextChunkInput | ChatMessageContentImageChunkInput | ChatMessageContentFileChunkInput | ChatMessageContentPDFChunkInput | ChatMessageContentVideoChunkInput)[] | null;
|
|
320
|
+
reasoning_steps?: ReasoningStepOutputInput[] | null;
|
|
321
|
+
role: ChatMessageRoleInput;
|
|
322
|
+
tool_call_id?: string | null;
|
|
323
|
+
tool_calls?: ToolCallInput[] | null;
|
|
324
|
+
};
|
|
325
|
+
export type ChatMessageOutputOutput = {
|
|
326
|
+
content: string | (ChatMessageContentTextChunkOutput | ChatMessageContentImageChunkOutput | ChatMessageContentFileChunkOutput | ChatMessageContentPDFChunkOutput | ChatMessageContentVideoChunkOutput)[] | null;
|
|
327
|
+
reasoning_steps?: ReasoningStepOutputOutput[] | null;
|
|
328
|
+
role: ChatMessageRoleOutput;
|
|
329
|
+
tool_call_id?: string | null;
|
|
330
|
+
tool_calls?: ToolCallOutput[] | null;
|
|
331
|
+
};
|
|
332
|
+
export type ChatMessageContentFileChunkInput = {
|
|
333
|
+
file_name?: string | null;
|
|
334
|
+
file_url: URLInput | string;
|
|
335
|
+
type: "file_url";
|
|
336
|
+
};
|
|
337
|
+
export type ChatMessageContentFileChunkOutput = {
|
|
338
|
+
file_name?: string | null;
|
|
339
|
+
file_url: URLOutput | string;
|
|
340
|
+
type: "file_url";
|
|
341
|
+
};
|
|
342
|
+
export type ChatMessageContentImageChunkInput = {
|
|
343
|
+
image_url: URLInput | string;
|
|
344
|
+
type: "image_url";
|
|
345
|
+
};
|
|
346
|
+
export type ChatMessageContentImageChunkOutput = {
|
|
347
|
+
image_url: URLOutput | string;
|
|
348
|
+
type: "image_url";
|
|
349
|
+
};
|
|
350
|
+
export type ChatMessageContentPDFChunkInput = {
|
|
351
|
+
pdf_url: URLInput | string;
|
|
352
|
+
type: "pdf_url";
|
|
353
|
+
};
|
|
354
|
+
export type ChatMessageContentPDFChunkOutput = {
|
|
355
|
+
pdf_url: URLOutput | string;
|
|
356
|
+
type: "pdf_url";
|
|
357
|
+
};
|
|
358
|
+
export type ChatMessageContentTextChunkInput = {
|
|
359
|
+
text: string;
|
|
360
|
+
type: "text";
|
|
361
|
+
};
|
|
362
|
+
export type ChatMessageContentTextChunkOutput = {
|
|
363
|
+
text: string;
|
|
364
|
+
type: "text";
|
|
365
|
+
};
|
|
366
|
+
export type ChatMessageContentVideoChunkInput = {
|
|
367
|
+
type: "video_url";
|
|
368
|
+
video_url: VideoURLInput | string;
|
|
369
|
+
};
|
|
370
|
+
export type ChatMessageContentVideoChunkOutput = {
|
|
371
|
+
type: "video_url";
|
|
372
|
+
video_url: VideoURLOutput | string;
|
|
373
|
+
};
|
|
374
|
+
export type ChatMessageRoleInput = "system" | "user" | "assistant" | "tool";
|
|
375
|
+
export type ChatMessageRoleOutput = "system" | "user" | "assistant" | "tool";
|
|
376
|
+
export type ChoiceInput = {
|
|
377
|
+
delta: ChatMessageOutputInput;
|
|
378
|
+
finish_reason?: ("stop" | "length") | null;
|
|
379
|
+
index: number;
|
|
380
|
+
message: ChatMessageOutputInput;
|
|
381
|
+
};
|
|
382
|
+
export type ChoiceOutput = {
|
|
383
|
+
delta: ChatMessageOutputOutput;
|
|
384
|
+
finish_reason?: ("stop" | "length") | null;
|
|
385
|
+
index: number;
|
|
386
|
+
message: ChatMessageOutputOutput;
|
|
387
|
+
};
|
|
388
|
+
export type CompletionResponseInput = {
|
|
389
|
+
choices: ChoiceInput[];
|
|
390
|
+
citations?: string[] | null;
|
|
391
|
+
created: number;
|
|
392
|
+
id: string;
|
|
393
|
+
model: string;
|
|
394
|
+
object?: string;
|
|
395
|
+
search_results?: ApiPublicSearchResultInput[] | null;
|
|
396
|
+
status?: CompletionResponseStatusInput | null;
|
|
397
|
+
type?: CompletionResponseTypeInput | null;
|
|
398
|
+
usage?: UsageInfoInput | null;
|
|
399
|
+
};
|
|
400
|
+
export type CompletionResponseOutput = {
|
|
401
|
+
choices: ChoiceOutput[];
|
|
402
|
+
citations?: string[] | null;
|
|
403
|
+
created: number;
|
|
404
|
+
id: string;
|
|
405
|
+
model: string;
|
|
406
|
+
object?: string;
|
|
407
|
+
search_results?: ApiPublicSearchResultOutput[] | null;
|
|
408
|
+
status?: CompletionResponseStatusOutput | null;
|
|
409
|
+
type?: CompletionResponseTypeOutput | null;
|
|
410
|
+
usage?: UsageInfoOutput | null;
|
|
411
|
+
};
|
|
412
|
+
export type CompletionResponseStatusInput = "PENDING" | "COMPLETED";
|
|
413
|
+
export type CompletionResponseStatusOutput = "PENDING" | "COMPLETED";
|
|
414
|
+
export type CompletionResponseTypeInput = "message" | "info" | "end_of_stream";
|
|
415
|
+
export type CompletionResponseTypeOutput = "message" | "info" | "end_of_stream";
|
|
416
|
+
export type ContentPartInput = {
|
|
417
|
+
annotations?: AnnotationInput[];
|
|
418
|
+
text: string;
|
|
419
|
+
type: ContentPartTypeInput;
|
|
420
|
+
};
|
|
421
|
+
export type ContentPartOutput = {
|
|
422
|
+
annotations?: AnnotationOutput[];
|
|
423
|
+
text: string;
|
|
424
|
+
type: ContentPartTypeOutput;
|
|
425
|
+
};
|
|
426
|
+
export type ContentPartTypeInput = "output_text";
|
|
427
|
+
export type ContentPartTypeOutput = "output_text";
|
|
428
|
+
export type ContextualizedEmbeddingObjectInput = {
|
|
429
|
+
data?: EmbeddingObjectInput[];
|
|
430
|
+
index?: number;
|
|
431
|
+
object?: string;
|
|
432
|
+
};
|
|
433
|
+
export type ContextualizedEmbeddingObjectOutput = {
|
|
434
|
+
data?: EmbeddingObjectOutput[];
|
|
435
|
+
index?: number;
|
|
436
|
+
object?: string;
|
|
437
|
+
};
|
|
438
|
+
export type ContextualizedEmbeddingsRequestInput = {
|
|
439
|
+
dimensions?: number;
|
|
440
|
+
encoding_format?: "base64_int8" | "base64_binary";
|
|
441
|
+
input: string[][];
|
|
442
|
+
model: "pplx-embed-context-v1-0.6b" | "pplx-embed-context-v1-4b";
|
|
443
|
+
};
|
|
444
|
+
export type ContextualizedEmbeddingsRequestOutput = {
|
|
445
|
+
dimensions?: number;
|
|
446
|
+
encoding_format?: "base64_int8" | "base64_binary";
|
|
447
|
+
input: string[][];
|
|
448
|
+
model: "pplx-embed-context-v1-0.6b" | "pplx-embed-context-v1-4b";
|
|
449
|
+
};
|
|
450
|
+
export type ContextualizedEmbeddingsResponseInput = {
|
|
451
|
+
data?: ContextualizedEmbeddingObjectInput[];
|
|
452
|
+
model?: string;
|
|
453
|
+
object?: string;
|
|
454
|
+
usage?: EmbeddingsUsageInput;
|
|
455
|
+
};
|
|
456
|
+
export type ContextualizedEmbeddingsResponseOutput = {
|
|
457
|
+
data?: ContextualizedEmbeddingObjectOutput[];
|
|
458
|
+
model?: string;
|
|
459
|
+
object?: string;
|
|
460
|
+
usage?: EmbeddingsUsageOutput;
|
|
461
|
+
};
|
|
462
|
+
export type CostInput = {
|
|
463
|
+
citation_tokens_cost?: number | null;
|
|
464
|
+
input_tokens_cost: number;
|
|
465
|
+
output_tokens_cost: number;
|
|
466
|
+
reasoning_tokens_cost?: number | null;
|
|
467
|
+
request_cost?: number | null;
|
|
468
|
+
search_queries_cost?: number | null;
|
|
469
|
+
total_cost: number;
|
|
470
|
+
};
|
|
471
|
+
export type CostOutput = {
|
|
472
|
+
citation_tokens_cost?: number | null;
|
|
473
|
+
input_tokens_cost: number;
|
|
474
|
+
output_tokens_cost: number;
|
|
475
|
+
reasoning_tokens_cost?: number | null;
|
|
476
|
+
request_cost?: number | null;
|
|
477
|
+
search_queries_cost?: number | null;
|
|
478
|
+
total_cost: number;
|
|
479
|
+
};
|
|
480
|
+
export type CreateBrowserSessionRequestInput = {};
|
|
481
|
+
export type CreateBrowserSessionRequestOutput = {};
|
|
482
|
+
export type CurrencyInput = "USD";
|
|
483
|
+
export type CurrencyOutput = "USD";
|
|
484
|
+
export type DateInput = string;
|
|
485
|
+
export type DateOutput = string;
|
|
486
|
+
export type DateFiltersInput = {
|
|
487
|
+
last_updated_after_filter?: DateInput;
|
|
488
|
+
last_updated_before_filter?: DateInput;
|
|
489
|
+
search_after_date_filter?: DateInput;
|
|
490
|
+
search_before_date_filter?: DateInput;
|
|
491
|
+
search_recency_filter?: SearchRecencyFilterInput;
|
|
492
|
+
};
|
|
493
|
+
export type DateFiltersOutput = {
|
|
494
|
+
last_updated_after_filter?: DateOutput;
|
|
495
|
+
last_updated_before_filter?: DateOutput;
|
|
496
|
+
search_after_date_filter?: DateOutput;
|
|
497
|
+
search_before_date_filter?: DateOutput;
|
|
498
|
+
search_recency_filter?: SearchRecencyFilterOutput;
|
|
499
|
+
};
|
|
500
|
+
export type EmbeddingObjectInput = {
|
|
501
|
+
embedding?: string;
|
|
502
|
+
index?: number;
|
|
503
|
+
object?: string;
|
|
504
|
+
};
|
|
505
|
+
export type EmbeddingObjectOutput = {
|
|
506
|
+
embedding?: string;
|
|
507
|
+
index?: number;
|
|
508
|
+
object?: string;
|
|
509
|
+
};
|
|
510
|
+
export type EmbeddingsRequestInput = {
|
|
511
|
+
dimensions?: number;
|
|
512
|
+
encoding_format?: "base64_int8" | "base64_binary";
|
|
513
|
+
input: string | string[];
|
|
514
|
+
model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b";
|
|
515
|
+
};
|
|
516
|
+
export type EmbeddingsRequestOutput = {
|
|
517
|
+
dimensions?: number;
|
|
518
|
+
encoding_format?: "base64_int8" | "base64_binary";
|
|
519
|
+
input: string | string[];
|
|
520
|
+
model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b";
|
|
521
|
+
};
|
|
522
|
+
export type EmbeddingsResponseInput = {
|
|
523
|
+
data?: EmbeddingObjectInput[];
|
|
524
|
+
model?: string;
|
|
525
|
+
object?: string;
|
|
526
|
+
usage?: EmbeddingsUsageInput;
|
|
527
|
+
};
|
|
528
|
+
export type EmbeddingsResponseOutput = {
|
|
529
|
+
data?: EmbeddingObjectOutput[];
|
|
530
|
+
model?: string;
|
|
531
|
+
object?: string;
|
|
532
|
+
usage?: EmbeddingsUsageOutput;
|
|
533
|
+
};
|
|
534
|
+
export type EmbeddingsUsageInput = {
|
|
535
|
+
cost?: {
|
|
536
|
+
currency?: "USD";
|
|
537
|
+
input_cost?: number;
|
|
538
|
+
total_cost?: number;
|
|
539
|
+
};
|
|
540
|
+
prompt_tokens?: number;
|
|
541
|
+
total_tokens?: number;
|
|
542
|
+
};
|
|
543
|
+
export type EmbeddingsUsageOutput = {
|
|
544
|
+
cost?: {
|
|
545
|
+
currency?: "USD";
|
|
546
|
+
input_cost?: number;
|
|
547
|
+
total_cost?: number;
|
|
548
|
+
};
|
|
549
|
+
prompt_tokens?: number;
|
|
550
|
+
total_tokens?: number;
|
|
551
|
+
};
|
|
552
|
+
export type ErrorInfoInput = {
|
|
553
|
+
code?: string;
|
|
554
|
+
message: string;
|
|
555
|
+
type?: string;
|
|
556
|
+
};
|
|
557
|
+
export type ErrorInfoOutput = {
|
|
558
|
+
code?: string;
|
|
559
|
+
message: string;
|
|
560
|
+
type?: string;
|
|
561
|
+
};
|
|
562
|
+
export type EventTypeInput = "response.created" | "response.in_progress" | "response.completed" | "response.failed" | "response.output_item.added" | "response.output_item.done" | "response.output_text.delta" | "response.output_text.done" | "response.reasoning.started" | "response.reasoning.search_queries" | "response.reasoning.search_results" | "response.reasoning.fetch_url_queries" | "response.reasoning.fetch_url_results" | "response.reasoning.stopped" | "response.skill.loaded";
|
|
563
|
+
export type EventTypeOutput = "response.created" | "response.in_progress" | "response.completed" | "response.failed" | "response.output_item.added" | "response.output_item.done" | "response.output_text.delta" | "response.output_text.done" | "response.reasoning.started" | "response.reasoning.search_queries" | "response.reasoning.search_results" | "response.reasoning.fetch_url_queries" | "response.reasoning.fetch_url_results" | "response.reasoning.stopped" | "response.skill.loaded";
|
|
564
|
+
export type ExecutePythonStepDetailsInput = {
|
|
565
|
+
code: string;
|
|
566
|
+
result: string;
|
|
567
|
+
};
|
|
568
|
+
export type ExecutePythonStepDetailsOutput = {
|
|
569
|
+
code: string;
|
|
570
|
+
result: string;
|
|
571
|
+
};
|
|
572
|
+
export type FetchUrlContentStepDetailsInput = {
|
|
573
|
+
contents: ApiPublicSearchResultInput[];
|
|
574
|
+
};
|
|
575
|
+
export type FetchUrlContentStepDetailsOutput = {
|
|
576
|
+
contents: ApiPublicSearchResultOutput[];
|
|
577
|
+
};
|
|
578
|
+
export type FetchUrlQueriesEventInput = {
|
|
579
|
+
sequence_number: number;
|
|
580
|
+
thought?: string;
|
|
581
|
+
type: "response.reasoning.fetch_url_queries";
|
|
582
|
+
urls: string[];
|
|
583
|
+
};
|
|
584
|
+
export type FetchUrlQueriesEventOutput = {
|
|
585
|
+
sequence_number: number;
|
|
586
|
+
thought?: string;
|
|
587
|
+
type: "response.reasoning.fetch_url_queries";
|
|
588
|
+
urls: string[];
|
|
589
|
+
};
|
|
590
|
+
export type FetchUrlResultsEventInput = {
|
|
591
|
+
contents: UrlContentInput[];
|
|
592
|
+
sequence_number: number;
|
|
593
|
+
thought?: string;
|
|
594
|
+
type: "response.reasoning.fetch_url_results";
|
|
595
|
+
};
|
|
596
|
+
export type FetchUrlResultsEventOutput = {
|
|
597
|
+
contents: UrlContentOutput[];
|
|
598
|
+
sequence_number: number;
|
|
599
|
+
thought?: string;
|
|
600
|
+
type: "response.reasoning.fetch_url_results";
|
|
601
|
+
};
|
|
602
|
+
export type FetchUrlResultsOutputItemInput = {
|
|
603
|
+
contents: UrlContentInput[];
|
|
604
|
+
type: "fetch_url_results";
|
|
605
|
+
};
|
|
606
|
+
export type FetchUrlResultsOutputItemOutput = {
|
|
607
|
+
contents: UrlContentOutput[];
|
|
608
|
+
type: "fetch_url_results";
|
|
609
|
+
};
|
|
610
|
+
export type FetchUrlToolInput = {
|
|
611
|
+
max_urls?: number;
|
|
612
|
+
type: "fetch_url";
|
|
613
|
+
};
|
|
614
|
+
export type FetchUrlToolOutput = {
|
|
615
|
+
max_urls?: number;
|
|
616
|
+
type: "fetch_url";
|
|
617
|
+
};
|
|
618
|
+
export type FinanceSearchToolInput = {
|
|
619
|
+
type: "finance_search";
|
|
620
|
+
};
|
|
621
|
+
export type FinanceSearchToolOutput = {
|
|
622
|
+
type: "finance_search";
|
|
623
|
+
};
|
|
624
|
+
export type FunctionCallInputInput = {
|
|
625
|
+
arguments: string;
|
|
626
|
+
call_id: string;
|
|
627
|
+
name: string;
|
|
628
|
+
thought_signature?: string;
|
|
629
|
+
type: "function_call";
|
|
630
|
+
};
|
|
631
|
+
export type FunctionCallInputOutput = {
|
|
632
|
+
arguments: string;
|
|
633
|
+
call_id: string;
|
|
634
|
+
name: string;
|
|
635
|
+
thought_signature?: string;
|
|
636
|
+
type: "function_call";
|
|
637
|
+
};
|
|
638
|
+
export type FunctionCallOutputInputInput = {
|
|
639
|
+
call_id: string;
|
|
640
|
+
name?: string;
|
|
641
|
+
output: string;
|
|
642
|
+
thought_signature?: string;
|
|
643
|
+
type: "function_call_output";
|
|
644
|
+
};
|
|
645
|
+
export type FunctionCallOutputInputOutput = {
|
|
646
|
+
call_id: string;
|
|
647
|
+
name?: string;
|
|
648
|
+
output: string;
|
|
649
|
+
thought_signature?: string;
|
|
650
|
+
type: "function_call_output";
|
|
651
|
+
};
|
|
652
|
+
export type FunctionCallOutputItemInput = {
|
|
653
|
+
arguments: string;
|
|
654
|
+
call_id: string;
|
|
655
|
+
id: string;
|
|
656
|
+
name: string;
|
|
657
|
+
status: StatusInput;
|
|
658
|
+
thought_signature?: string;
|
|
659
|
+
type: "function_call";
|
|
660
|
+
};
|
|
661
|
+
export type FunctionCallOutputItemOutput = {
|
|
662
|
+
arguments: string;
|
|
663
|
+
call_id: string;
|
|
664
|
+
id: string;
|
|
665
|
+
name: string;
|
|
666
|
+
status: StatusOutput;
|
|
667
|
+
thought_signature?: string;
|
|
668
|
+
type: "function_call";
|
|
669
|
+
};
|
|
670
|
+
export type FunctionSpecInput = {
|
|
671
|
+
description: string;
|
|
672
|
+
name: string;
|
|
673
|
+
parameters: ParameterSpecInput;
|
|
674
|
+
strict?: boolean | null;
|
|
675
|
+
};
|
|
676
|
+
export type FunctionSpecOutput = {
|
|
677
|
+
description: string;
|
|
678
|
+
name: string;
|
|
679
|
+
parameters: ParameterSpecOutput;
|
|
680
|
+
strict?: boolean | null;
|
|
681
|
+
};
|
|
682
|
+
export type FunctionToolInput = {
|
|
683
|
+
description?: string;
|
|
684
|
+
name: string;
|
|
685
|
+
parameters?: {} & Record<string, unknown>;
|
|
686
|
+
strict?: boolean;
|
|
687
|
+
type: "function";
|
|
688
|
+
};
|
|
689
|
+
export type FunctionToolOutput = {
|
|
690
|
+
description?: string;
|
|
691
|
+
name: string;
|
|
692
|
+
parameters?: {} & Record<string, unknown>;
|
|
693
|
+
strict?: boolean;
|
|
694
|
+
type: "function";
|
|
695
|
+
};
|
|
696
|
+
export type HTTPValidationErrorInput = {
|
|
697
|
+
detail?: ValidationErrorInput[];
|
|
698
|
+
};
|
|
699
|
+
export type HTTPValidationErrorOutput = {
|
|
700
|
+
detail?: ValidationErrorOutput[];
|
|
701
|
+
};
|
|
702
|
+
export type InlineSkillInput = {
|
|
703
|
+
description: string;
|
|
704
|
+
instructions: string;
|
|
705
|
+
name: string;
|
|
706
|
+
type: "inline";
|
|
707
|
+
};
|
|
708
|
+
export type InlineSkillOutput = {
|
|
709
|
+
description: string;
|
|
710
|
+
instructions: string;
|
|
711
|
+
name: string;
|
|
712
|
+
type: "inline";
|
|
713
|
+
};
|
|
714
|
+
export type InputInput = string | InputItemInput[];
|
|
715
|
+
export type InputOutput = string | InputItemOutput[];
|
|
716
|
+
export type InputContentInput = string | InputContentPartInput[];
|
|
717
|
+
export type InputContentOutput = string | InputContentPartOutput[];
|
|
718
|
+
export type InputContentPartInput = {
|
|
719
|
+
image_url?: string;
|
|
720
|
+
text?: string;
|
|
721
|
+
type: "input_text" | "input_image";
|
|
722
|
+
};
|
|
723
|
+
export type InputContentPartOutput = {
|
|
724
|
+
image_url?: string;
|
|
725
|
+
text?: string;
|
|
726
|
+
type: "input_text" | "input_image";
|
|
727
|
+
};
|
|
728
|
+
export type InputItemInput = InputMessageInput | FunctionCallOutputInputInput | FunctionCallInputInput;
|
|
729
|
+
export type InputItemOutput = InputMessageOutput | FunctionCallOutputInputOutput | FunctionCallInputOutput;
|
|
730
|
+
export type InputMessageInput = {
|
|
731
|
+
content: InputContentInput;
|
|
732
|
+
role: "user" | "assistant" | "system" | "developer";
|
|
733
|
+
type: "message";
|
|
734
|
+
};
|
|
735
|
+
export type InputMessageOutput = {
|
|
736
|
+
content: InputContentOutput;
|
|
737
|
+
role: "user" | "assistant" | "system" | "developer";
|
|
738
|
+
type: "message";
|
|
739
|
+
};
|
|
740
|
+
export type JSONSchemaInput = {
|
|
741
|
+
description?: string | null;
|
|
742
|
+
name?: string | null;
|
|
743
|
+
schema: {} & Record<string, unknown>;
|
|
744
|
+
strict?: boolean | null;
|
|
745
|
+
};
|
|
746
|
+
export type JSONSchemaOutput = {
|
|
747
|
+
description?: string | null;
|
|
748
|
+
name?: string | null;
|
|
749
|
+
schema: {} & Record<string, unknown>;
|
|
750
|
+
strict?: boolean | null;
|
|
751
|
+
};
|
|
752
|
+
export type JSONSchemaFormatInput = {
|
|
753
|
+
description?: string;
|
|
754
|
+
name: string;
|
|
755
|
+
schema: {} & Record<string, unknown>;
|
|
756
|
+
strict?: boolean;
|
|
757
|
+
};
|
|
758
|
+
export type JSONSchemaFormatOutput = {
|
|
759
|
+
description?: string;
|
|
760
|
+
name: string;
|
|
761
|
+
schema: {} & Record<string, unknown>;
|
|
762
|
+
strict?: boolean;
|
|
763
|
+
};
|
|
764
|
+
export type ListAsyncApiChatCompletionsResponseInput = {
|
|
765
|
+
next_token?: string | null;
|
|
766
|
+
requests: AsyncApiChatCompletionsResponseSummaryInput[];
|
|
767
|
+
};
|
|
768
|
+
export type ListAsyncApiChatCompletionsResponseOutput = {
|
|
769
|
+
next_token?: string | null;
|
|
770
|
+
requests: AsyncApiChatCompletionsResponseSummaryOutput[];
|
|
771
|
+
};
|
|
772
|
+
export type McpCallOutputItemInput = {
|
|
773
|
+
arguments: string;
|
|
774
|
+
error?: string | null;
|
|
775
|
+
id: string;
|
|
776
|
+
name: string;
|
|
777
|
+
output?: string;
|
|
778
|
+
server_label: string;
|
|
779
|
+
type: "mcp_call";
|
|
780
|
+
};
|
|
781
|
+
export type McpCallOutputItemOutput = {
|
|
782
|
+
arguments: string;
|
|
783
|
+
error?: string | null;
|
|
784
|
+
id: string;
|
|
785
|
+
name: string;
|
|
786
|
+
output?: string;
|
|
787
|
+
server_label: string;
|
|
788
|
+
type: "mcp_call";
|
|
789
|
+
};
|
|
790
|
+
export type McpListToolsOutputItemInput = {
|
|
791
|
+
error?: string;
|
|
792
|
+
id: string;
|
|
793
|
+
server_label: string;
|
|
794
|
+
tools: McpToolDefInput[];
|
|
795
|
+
type: "mcp_list_tools";
|
|
796
|
+
};
|
|
797
|
+
export type McpListToolsOutputItemOutput = {
|
|
798
|
+
error?: string;
|
|
799
|
+
id: string;
|
|
800
|
+
server_label: string;
|
|
801
|
+
tools: McpToolDefOutput[];
|
|
802
|
+
type: "mcp_list_tools";
|
|
803
|
+
};
|
|
804
|
+
export type McpToolInput = {
|
|
805
|
+
allowed_tools?: string[];
|
|
806
|
+
authorization?: string;
|
|
807
|
+
headers?: {} & Record<string, string>;
|
|
808
|
+
server_label: string;
|
|
809
|
+
server_url: string;
|
|
810
|
+
type: "mcp";
|
|
811
|
+
};
|
|
812
|
+
export type McpToolOutput = {
|
|
813
|
+
allowed_tools?: string[];
|
|
814
|
+
authorization?: string;
|
|
815
|
+
headers?: {} & Record<string, string>;
|
|
816
|
+
server_label: string;
|
|
817
|
+
server_url: string;
|
|
818
|
+
type: "mcp";
|
|
819
|
+
};
|
|
820
|
+
export type McpToolDefInput = {
|
|
821
|
+
description?: string;
|
|
822
|
+
input_schema: {} & Record<string, unknown>;
|
|
823
|
+
name: string;
|
|
824
|
+
};
|
|
825
|
+
export type McpToolDefOutput = {
|
|
826
|
+
description?: string;
|
|
827
|
+
input_schema: {} & Record<string, unknown>;
|
|
828
|
+
name: string;
|
|
829
|
+
};
|
|
830
|
+
export type MessageOutputItemInput = {
|
|
831
|
+
content: ContentPartInput[];
|
|
832
|
+
id: string;
|
|
833
|
+
role: RoleTypeInput;
|
|
834
|
+
status: StatusInput;
|
|
835
|
+
type: "message";
|
|
836
|
+
};
|
|
837
|
+
export type MessageOutputItemOutput = {
|
|
838
|
+
content: ContentPartOutput[];
|
|
839
|
+
id: string;
|
|
840
|
+
role: RoleTypeOutput;
|
|
841
|
+
status: StatusOutput;
|
|
842
|
+
type: "message";
|
|
843
|
+
};
|
|
844
|
+
export type OutputItemInput = MessageOutputItemInput | SearchResultsOutputItemInput | FetchUrlResultsOutputItemInput | FunctionCallOutputItemInput | McpListToolsOutputItemInput | McpCallOutputItemInput | SkillLoadedOutputItemInput | AdvisorResultOutputItemInput | SandboxResultsOutputItemInput | SandboxWriteFileOutputItemInput | SandboxReadFileOutputItemInput | SandboxEditFileOutputItemInput | SandboxGrepOutputItemInput | SandboxGlobOutputItemInput | SandboxApplyPatchOutputItemInput | ShareFileOutputItemInput | UnknownOutputItemInput;
|
|
845
|
+
export type OutputItemOutput = MessageOutputItemOutput | SearchResultsOutputItemOutput | FetchUrlResultsOutputItemOutput | FunctionCallOutputItemOutput | McpListToolsOutputItemOutput | McpCallOutputItemOutput | SkillLoadedOutputItemOutput | AdvisorResultOutputItemOutput | SandboxResultsOutputItemOutput | SandboxWriteFileOutputItemOutput | SandboxReadFileOutputItemOutput | SandboxEditFileOutputItemOutput | SandboxGrepOutputItemOutput | SandboxGlobOutputItemOutput | SandboxApplyPatchOutputItemOutput | ShareFileOutputItemOutput | UnknownOutputItemOutput;
|
|
846
|
+
export type OutputItemAddedEventInput = {
|
|
847
|
+
item: OutputItemInput;
|
|
848
|
+
output_index: number;
|
|
849
|
+
sequence_number: number;
|
|
850
|
+
type: "response.output_item.added";
|
|
851
|
+
};
|
|
852
|
+
export type OutputItemAddedEventOutput = {
|
|
853
|
+
item: OutputItemOutput;
|
|
854
|
+
output_index: number;
|
|
855
|
+
sequence_number: number;
|
|
856
|
+
type: "response.output_item.added";
|
|
857
|
+
};
|
|
858
|
+
export type OutputItemDoneEventInput = {
|
|
859
|
+
item: OutputItemInput;
|
|
860
|
+
output_index: number;
|
|
861
|
+
sequence_number: number;
|
|
862
|
+
type: "response.output_item.done";
|
|
863
|
+
};
|
|
864
|
+
export type OutputItemDoneEventOutput = {
|
|
865
|
+
item: OutputItemOutput;
|
|
866
|
+
output_index: number;
|
|
867
|
+
sequence_number: number;
|
|
868
|
+
type: "response.output_item.done";
|
|
869
|
+
};
|
|
870
|
+
export type ParameterSpecInput = {
|
|
871
|
+
additional_properties?: boolean | null;
|
|
872
|
+
properties: {} & Record<string, unknown>;
|
|
873
|
+
required?: string[] | null;
|
|
874
|
+
type: string;
|
|
875
|
+
};
|
|
876
|
+
export type ParameterSpecOutput = {
|
|
877
|
+
additional_properties?: boolean | null;
|
|
878
|
+
properties: {} & Record<string, unknown>;
|
|
879
|
+
required?: string[] | null;
|
|
880
|
+
type: string;
|
|
881
|
+
};
|
|
882
|
+
export type PeopleSearchToolInput = {
|
|
883
|
+
type: "people_search";
|
|
884
|
+
};
|
|
885
|
+
export type PeopleSearchToolOutput = {
|
|
886
|
+
type: "people_search";
|
|
887
|
+
};
|
|
888
|
+
export type ReasoningConfigInput = {
|
|
889
|
+
effort?: "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
890
|
+
};
|
|
891
|
+
export type ReasoningConfigOutput = {
|
|
892
|
+
effort?: "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
893
|
+
};
|
|
894
|
+
export type ReasoningStartedEventInput = {
|
|
895
|
+
sequence_number: number;
|
|
896
|
+
thought?: string;
|
|
897
|
+
type: "response.reasoning.started";
|
|
898
|
+
};
|
|
899
|
+
export type ReasoningStartedEventOutput = {
|
|
900
|
+
sequence_number: number;
|
|
901
|
+
thought?: string;
|
|
902
|
+
type: "response.reasoning.started";
|
|
903
|
+
};
|
|
904
|
+
export type ReasoningStepInputInput = {
|
|
905
|
+
execute_python?: ExecutePythonStepDetailsInput | null;
|
|
906
|
+
fetch_url_content?: FetchUrlContentStepDetailsInput | null;
|
|
907
|
+
thought: string;
|
|
908
|
+
type?: string | null;
|
|
909
|
+
web_search?: WebSearchStepDetailsInput | null;
|
|
910
|
+
};
|
|
911
|
+
export type ReasoningStepInputOutput = {
|
|
912
|
+
execute_python?: ExecutePythonStepDetailsOutput | null;
|
|
913
|
+
fetch_url_content?: FetchUrlContentStepDetailsOutput | null;
|
|
914
|
+
thought: string;
|
|
915
|
+
type?: string | null;
|
|
916
|
+
web_search?: WebSearchStepDetailsOutput | null;
|
|
917
|
+
};
|
|
918
|
+
export type ReasoningStepOutputInput = {
|
|
919
|
+
execute_python?: ExecutePythonStepDetailsInput | null;
|
|
920
|
+
fetch_url_content?: FetchUrlContentStepDetailsInput | null;
|
|
921
|
+
thought: string;
|
|
922
|
+
type?: string | null;
|
|
923
|
+
web_search?: WebSearchStepDetailsInput | null;
|
|
924
|
+
};
|
|
925
|
+
export type ReasoningStepOutputOutput = {
|
|
926
|
+
execute_python?: ExecutePythonStepDetailsOutput | null;
|
|
927
|
+
fetch_url_content?: FetchUrlContentStepDetailsOutput | null;
|
|
928
|
+
thought: string;
|
|
929
|
+
type?: string | null;
|
|
930
|
+
web_search?: WebSearchStepDetailsOutput | null;
|
|
931
|
+
};
|
|
932
|
+
export type ReasoningStoppedEventInput = {
|
|
933
|
+
sequence_number: number;
|
|
934
|
+
thought?: string;
|
|
935
|
+
type: "response.reasoning.stopped";
|
|
936
|
+
};
|
|
937
|
+
export type ReasoningStoppedEventOutput = {
|
|
938
|
+
sequence_number: number;
|
|
939
|
+
thought?: string;
|
|
940
|
+
type: "response.reasoning.stopped";
|
|
941
|
+
};
|
|
942
|
+
export type RegexSchemaInput = {
|
|
943
|
+
description?: string | null;
|
|
944
|
+
name?: string | null;
|
|
945
|
+
regex: string;
|
|
946
|
+
strict?: boolean | null;
|
|
947
|
+
};
|
|
948
|
+
export type RegexSchemaOutput = {
|
|
949
|
+
description?: string | null;
|
|
950
|
+
name?: string | null;
|
|
951
|
+
regex: string;
|
|
952
|
+
strict?: boolean | null;
|
|
953
|
+
};
|
|
954
|
+
export type ResponseCompletedEventInput = {
|
|
955
|
+
response?: ResponsesResponseInput;
|
|
956
|
+
sequence_number: number;
|
|
957
|
+
type: "response.completed";
|
|
958
|
+
};
|
|
959
|
+
export type ResponseCompletedEventOutput = {
|
|
960
|
+
response?: ResponsesResponseOutput;
|
|
961
|
+
sequence_number: number;
|
|
962
|
+
type: "response.completed";
|
|
963
|
+
};
|
|
964
|
+
export type ResponseCreatedEventInput = {
|
|
965
|
+
response?: ResponsesResponseInput;
|
|
966
|
+
sequence_number: number;
|
|
967
|
+
type: "response.created";
|
|
968
|
+
};
|
|
969
|
+
export type ResponseCreatedEventOutput = {
|
|
970
|
+
response?: ResponsesResponseOutput;
|
|
971
|
+
sequence_number: number;
|
|
972
|
+
type: "response.created";
|
|
973
|
+
};
|
|
974
|
+
export type ResponseFailedEventInput = {
|
|
975
|
+
error: ErrorInfoInput;
|
|
976
|
+
sequence_number: number;
|
|
977
|
+
type: "response.failed";
|
|
978
|
+
};
|
|
979
|
+
export type ResponseFailedEventOutput = {
|
|
980
|
+
error: ErrorInfoOutput;
|
|
981
|
+
sequence_number: number;
|
|
982
|
+
type: "response.failed";
|
|
983
|
+
};
|
|
984
|
+
export type ResponseFileInput = {
|
|
985
|
+
bytes: number;
|
|
986
|
+
created_at: number;
|
|
987
|
+
filename: string;
|
|
988
|
+
id: string;
|
|
989
|
+
object: "file";
|
|
990
|
+
};
|
|
991
|
+
export type ResponseFileOutput = {
|
|
992
|
+
bytes: number;
|
|
993
|
+
created_at: number;
|
|
994
|
+
filename: string;
|
|
995
|
+
id: string;
|
|
996
|
+
object: "file";
|
|
997
|
+
};
|
|
998
|
+
export type ResponseFileListInput = {
|
|
999
|
+
data: ResponseFileInput[];
|
|
1000
|
+
object: "list";
|
|
1001
|
+
};
|
|
1002
|
+
export type ResponseFileListOutput = {
|
|
1003
|
+
data: ResponseFileOutput[];
|
|
1004
|
+
object: "list";
|
|
1005
|
+
};
|
|
1006
|
+
export type ResponseFormatInput = {
|
|
1007
|
+
json_schema?: JSONSchemaFormatInput;
|
|
1008
|
+
type: "json_schema";
|
|
1009
|
+
};
|
|
1010
|
+
export type ResponseFormatOutput = {
|
|
1011
|
+
json_schema?: JSONSchemaFormatOutput;
|
|
1012
|
+
type: "json_schema";
|
|
1013
|
+
};
|
|
1014
|
+
export type ResponseFormatJSONSchemaInput = {
|
|
1015
|
+
json_schema: JSONSchemaInput;
|
|
1016
|
+
type: "json_schema";
|
|
1017
|
+
};
|
|
1018
|
+
export type ResponseFormatJSONSchemaOutput = {
|
|
1019
|
+
json_schema: JSONSchemaOutput;
|
|
1020
|
+
type: "json_schema";
|
|
1021
|
+
};
|
|
1022
|
+
export type ResponseFormatRegexInput = {
|
|
1023
|
+
regex: RegexSchemaInput;
|
|
1024
|
+
type: "regex";
|
|
1025
|
+
};
|
|
1026
|
+
export type ResponseFormatRegexOutput = {
|
|
1027
|
+
regex: RegexSchemaOutput;
|
|
1028
|
+
type: "regex";
|
|
1029
|
+
};
|
|
1030
|
+
export type ResponseFormatTextInput = {
|
|
1031
|
+
type: "text";
|
|
1032
|
+
};
|
|
1033
|
+
export type ResponseFormatTextOutput = {
|
|
1034
|
+
type: "text";
|
|
1035
|
+
};
|
|
1036
|
+
export type ResponseInProgressEventInput = {
|
|
1037
|
+
response?: ResponsesResponseInput;
|
|
1038
|
+
sequence_number: number;
|
|
1039
|
+
type: "response.in_progress";
|
|
1040
|
+
};
|
|
1041
|
+
export type ResponseInProgressEventOutput = {
|
|
1042
|
+
response?: ResponsesResponseOutput;
|
|
1043
|
+
sequence_number: number;
|
|
1044
|
+
type: "response.in_progress";
|
|
1045
|
+
};
|
|
1046
|
+
export type ResponsesCostInput = {
|
|
1047
|
+
cache_creation_cost?: number;
|
|
1048
|
+
cache_read_cost?: number;
|
|
1049
|
+
currency: CurrencyInput;
|
|
1050
|
+
input_cost: number;
|
|
1051
|
+
output_cost: number;
|
|
1052
|
+
tool_calls_cost?: number;
|
|
1053
|
+
total_cost: number;
|
|
1054
|
+
};
|
|
1055
|
+
export type ResponsesCostOutput = {
|
|
1056
|
+
cache_creation_cost?: number;
|
|
1057
|
+
cache_read_cost?: number;
|
|
1058
|
+
currency: CurrencyOutput;
|
|
1059
|
+
input_cost: number;
|
|
1060
|
+
output_cost: number;
|
|
1061
|
+
tool_calls_cost?: number;
|
|
1062
|
+
total_cost: number;
|
|
1063
|
+
};
|
|
1064
|
+
export type ResponseSkillLoadedEventInput = {
|
|
1065
|
+
name: string;
|
|
1066
|
+
sequence_number: number;
|
|
1067
|
+
type: "response.skill.loaded";
|
|
1068
|
+
};
|
|
1069
|
+
export type ResponseSkillLoadedEventOutput = {
|
|
1070
|
+
name: string;
|
|
1071
|
+
sequence_number: number;
|
|
1072
|
+
type: "response.skill.loaded";
|
|
1073
|
+
};
|
|
1074
|
+
export type ResponsesObjectTypeInput = "response";
|
|
1075
|
+
export type ResponsesObjectTypeOutput = "response";
|
|
1076
|
+
export type ResponsesRequestInput = {
|
|
1077
|
+
background?: boolean | null;
|
|
1078
|
+
input: InputInput;
|
|
1079
|
+
instructions?: string;
|
|
1080
|
+
language_preference?: string;
|
|
1081
|
+
max_output_tokens?: number;
|
|
1082
|
+
max_steps?: number;
|
|
1083
|
+
model?: string;
|
|
1084
|
+
models?: string[];
|
|
1085
|
+
preset?: string;
|
|
1086
|
+
previous_response_id?: string;
|
|
1087
|
+
reasoning?: ReasoningConfigInput;
|
|
1088
|
+
response_format?: ResponseFormatInput;
|
|
1089
|
+
skills?: SkillInput[];
|
|
1090
|
+
store?: boolean;
|
|
1091
|
+
stream?: boolean;
|
|
1092
|
+
tools?: ToolInput[];
|
|
1093
|
+
};
|
|
1094
|
+
export type ResponsesRequestOutput = {
|
|
1095
|
+
background?: boolean | null;
|
|
1096
|
+
input: InputOutput;
|
|
1097
|
+
instructions?: string;
|
|
1098
|
+
language_preference?: string;
|
|
1099
|
+
max_output_tokens?: number;
|
|
1100
|
+
max_steps?: number;
|
|
1101
|
+
model?: string;
|
|
1102
|
+
models?: string[];
|
|
1103
|
+
preset?: string;
|
|
1104
|
+
previous_response_id?: string;
|
|
1105
|
+
reasoning?: ReasoningConfigOutput;
|
|
1106
|
+
response_format?: ResponseFormatOutput;
|
|
1107
|
+
skills?: SkillOutput[];
|
|
1108
|
+
store?: boolean;
|
|
1109
|
+
stream?: boolean;
|
|
1110
|
+
tools?: ToolOutput[];
|
|
1111
|
+
};
|
|
1112
|
+
export type ResponsesResponseInput = {
|
|
1113
|
+
background?: boolean;
|
|
1114
|
+
created_at: number;
|
|
1115
|
+
error?: ErrorInfoInput;
|
|
1116
|
+
id: string;
|
|
1117
|
+
model: string;
|
|
1118
|
+
object: ResponsesObjectTypeInput;
|
|
1119
|
+
output: OutputItemInput[];
|
|
1120
|
+
previous_response_id?: string | null;
|
|
1121
|
+
status: StatusInput;
|
|
1122
|
+
store?: boolean;
|
|
1123
|
+
usage?: ResponsesUsageInput;
|
|
1124
|
+
};
|
|
1125
|
+
export type ResponsesResponseOutput = {
|
|
1126
|
+
background?: boolean;
|
|
1127
|
+
created_at: number;
|
|
1128
|
+
error?: ErrorInfoOutput;
|
|
1129
|
+
id: string;
|
|
1130
|
+
model: string;
|
|
1131
|
+
object: ResponsesObjectTypeOutput;
|
|
1132
|
+
output: OutputItemOutput[];
|
|
1133
|
+
previous_response_id?: string | null;
|
|
1134
|
+
status: StatusOutput;
|
|
1135
|
+
store?: boolean;
|
|
1136
|
+
usage?: ResponsesUsageOutput;
|
|
1137
|
+
};
|
|
1138
|
+
export type ResponseStreamEventInput = ResponseCreatedEventInput | ResponseInProgressEventInput | ResponseCompletedEventInput | ResponseFailedEventInput | OutputItemAddedEventInput | OutputItemDoneEventInput | TextDeltaEventInput | TextDoneEventInput | ReasoningStartedEventInput | SearchQueriesEventInput | SearchResultsEventInput | FetchUrlQueriesEventInput | FetchUrlResultsEventInput | ReasoningStoppedEventInput | ResponseSkillLoadedEventInput;
|
|
1139
|
+
export type ResponseStreamEventOutput = ResponseCreatedEventOutput | ResponseInProgressEventOutput | ResponseCompletedEventOutput | ResponseFailedEventOutput | OutputItemAddedEventOutput | OutputItemDoneEventOutput | TextDeltaEventOutput | TextDoneEventOutput | ReasoningStartedEventOutput | SearchQueriesEventOutput | SearchResultsEventOutput | FetchUrlQueriesEventOutput | FetchUrlResultsEventOutput | ReasoningStoppedEventOutput | ResponseSkillLoadedEventOutput;
|
|
1140
|
+
export type ResponsesUsageInput = {
|
|
1141
|
+
cost?: ResponsesCostInput;
|
|
1142
|
+
input_tokens: number;
|
|
1143
|
+
input_tokens_details?: {
|
|
1144
|
+
cache_creation_input_tokens?: number;
|
|
1145
|
+
cache_read_input_tokens?: number;
|
|
1146
|
+
};
|
|
1147
|
+
output_tokens: number;
|
|
1148
|
+
tool_calls_details?: {} & Record<string, ToolCallDetailsInput>;
|
|
1149
|
+
total_tokens: number;
|
|
1150
|
+
};
|
|
1151
|
+
export type ResponsesUsageOutput = {
|
|
1152
|
+
cost?: ResponsesCostOutput;
|
|
1153
|
+
input_tokens: number;
|
|
1154
|
+
input_tokens_details?: {
|
|
1155
|
+
cache_creation_input_tokens?: number;
|
|
1156
|
+
cache_read_input_tokens?: number;
|
|
1157
|
+
};
|
|
1158
|
+
output_tokens: number;
|
|
1159
|
+
tool_calls_details?: {} & Record<string, ToolCallDetailsOutput>;
|
|
1160
|
+
total_tokens: number;
|
|
1161
|
+
};
|
|
1162
|
+
export type RoleTypeInput = "assistant";
|
|
1163
|
+
export type RoleTypeOutput = "assistant";
|
|
1164
|
+
export type SandboxApplyPatchOutputItemInput = {
|
|
1165
|
+
added?: string[];
|
|
1166
|
+
call_id: string;
|
|
1167
|
+
deleted?: string[];
|
|
1168
|
+
error?: string;
|
|
1169
|
+
modified?: string[];
|
|
1170
|
+
type: "sandbox_apply_patch";
|
|
1171
|
+
};
|
|
1172
|
+
export type SandboxApplyPatchOutputItemOutput = {
|
|
1173
|
+
added?: string[];
|
|
1174
|
+
call_id: string;
|
|
1175
|
+
deleted?: string[];
|
|
1176
|
+
error?: string;
|
|
1177
|
+
modified?: string[];
|
|
1178
|
+
type: "sandbox_apply_patch";
|
|
1179
|
+
};
|
|
1180
|
+
export type SandboxEditFileOutputItemInput = {
|
|
1181
|
+
call_id: string;
|
|
1182
|
+
error?: string;
|
|
1183
|
+
file_path?: string;
|
|
1184
|
+
message?: string;
|
|
1185
|
+
type: "sandbox_edit_file";
|
|
1186
|
+
};
|
|
1187
|
+
export type SandboxEditFileOutputItemOutput = {
|
|
1188
|
+
call_id: string;
|
|
1189
|
+
error?: string;
|
|
1190
|
+
file_path?: string;
|
|
1191
|
+
message?: string;
|
|
1192
|
+
type: "sandbox_edit_file";
|
|
1193
|
+
};
|
|
1194
|
+
export type SandboxGlobOutputItemInput = {
|
|
1195
|
+
call_id: string;
|
|
1196
|
+
count?: number;
|
|
1197
|
+
error?: string;
|
|
1198
|
+
files?: string[];
|
|
1199
|
+
truncated?: boolean;
|
|
1200
|
+
type: "sandbox_glob";
|
|
1201
|
+
};
|
|
1202
|
+
export type SandboxGlobOutputItemOutput = {
|
|
1203
|
+
call_id: string;
|
|
1204
|
+
count?: number;
|
|
1205
|
+
error?: string;
|
|
1206
|
+
files?: string[];
|
|
1207
|
+
truncated?: boolean;
|
|
1208
|
+
type: "sandbox_glob";
|
|
1209
|
+
};
|
|
1210
|
+
export type SandboxGrepOutputItemInput = {
|
|
1211
|
+
call_id: string;
|
|
1212
|
+
count?: number;
|
|
1213
|
+
error?: string;
|
|
1214
|
+
files?: string[];
|
|
1215
|
+
truncated?: boolean;
|
|
1216
|
+
type: "sandbox_grep";
|
|
1217
|
+
};
|
|
1218
|
+
export type SandboxGrepOutputItemOutput = {
|
|
1219
|
+
call_id: string;
|
|
1220
|
+
count?: number;
|
|
1221
|
+
error?: string;
|
|
1222
|
+
files?: string[];
|
|
1223
|
+
truncated?: boolean;
|
|
1224
|
+
type: "sandbox_grep";
|
|
1225
|
+
};
|
|
1226
|
+
export type SandboxReadFileOutputItemInput = {
|
|
1227
|
+
call_id: string;
|
|
1228
|
+
content?: string;
|
|
1229
|
+
error?: string;
|
|
1230
|
+
file_path: string;
|
|
1231
|
+
start_line?: number;
|
|
1232
|
+
total_lines?: number;
|
|
1233
|
+
type: "sandbox_read_file";
|
|
1234
|
+
};
|
|
1235
|
+
export type SandboxReadFileOutputItemOutput = {
|
|
1236
|
+
call_id: string;
|
|
1237
|
+
content?: string;
|
|
1238
|
+
error?: string;
|
|
1239
|
+
file_path: string;
|
|
1240
|
+
start_line?: number;
|
|
1241
|
+
total_lines?: number;
|
|
1242
|
+
type: "sandbox_read_file";
|
|
1243
|
+
};
|
|
1244
|
+
export type SandboxResultInput = {
|
|
1245
|
+
duration_ms: number;
|
|
1246
|
+
exit_code: number;
|
|
1247
|
+
status: "in_progress" | "completed" | "failed" | "timed_out";
|
|
1248
|
+
stderr: string;
|
|
1249
|
+
stdout: string;
|
|
1250
|
+
};
|
|
1251
|
+
export type SandboxResultOutput = {
|
|
1252
|
+
duration_ms: number;
|
|
1253
|
+
exit_code: number;
|
|
1254
|
+
status: "in_progress" | "completed" | "failed" | "timed_out";
|
|
1255
|
+
stderr: string;
|
|
1256
|
+
stdout: string;
|
|
1257
|
+
};
|
|
1258
|
+
export type SandboxResultsOutputItemInput = {
|
|
1259
|
+
call_id: string;
|
|
1260
|
+
code: string;
|
|
1261
|
+
container_id?: string;
|
|
1262
|
+
language: "python" | "bash";
|
|
1263
|
+
results: SandboxResultInput[];
|
|
1264
|
+
status: "in_progress" | "completed" | "failed" | "timed_out";
|
|
1265
|
+
type: "sandbox_results";
|
|
1266
|
+
};
|
|
1267
|
+
export type SandboxResultsOutputItemOutput = {
|
|
1268
|
+
call_id: string;
|
|
1269
|
+
code: string;
|
|
1270
|
+
container_id?: string;
|
|
1271
|
+
language: "python" | "bash";
|
|
1272
|
+
results: SandboxResultOutput[];
|
|
1273
|
+
status: "in_progress" | "completed" | "failed" | "timed_out";
|
|
1274
|
+
type: "sandbox_results";
|
|
1275
|
+
};
|
|
1276
|
+
export type SandboxToolInput = {
|
|
1277
|
+
type: "sandbox";
|
|
1278
|
+
};
|
|
1279
|
+
export type SandboxToolOutput = {
|
|
1280
|
+
type: "sandbox";
|
|
1281
|
+
};
|
|
1282
|
+
export type SandboxWriteFileOutputItemInput = {
|
|
1283
|
+
call_id: string;
|
|
1284
|
+
error?: string;
|
|
1285
|
+
file_path: string;
|
|
1286
|
+
size_bytes?: number;
|
|
1287
|
+
type: "sandbox_write_file";
|
|
1288
|
+
};
|
|
1289
|
+
export type SandboxWriteFileOutputItemOutput = {
|
|
1290
|
+
call_id: string;
|
|
1291
|
+
error?: string;
|
|
1292
|
+
file_path: string;
|
|
1293
|
+
size_bytes?: number;
|
|
1294
|
+
type: "sandbox_write_file";
|
|
1295
|
+
};
|
|
1296
|
+
export type SearchDomainFilterInput = {
|
|
1297
|
+
search_domain_filter?: string[];
|
|
1298
|
+
};
|
|
1299
|
+
export type SearchDomainFilterOutput = {
|
|
1300
|
+
search_domain_filter?: string[];
|
|
1301
|
+
};
|
|
1302
|
+
export type SearchQueriesEventInput = {
|
|
1303
|
+
queries: string[];
|
|
1304
|
+
sequence_number: number;
|
|
1305
|
+
thought?: string;
|
|
1306
|
+
type: "response.reasoning.search_queries";
|
|
1307
|
+
};
|
|
1308
|
+
export type SearchQueriesEventOutput = {
|
|
1309
|
+
queries: string[];
|
|
1310
|
+
sequence_number: number;
|
|
1311
|
+
thought?: string;
|
|
1312
|
+
type: "response.reasoning.search_queries";
|
|
1313
|
+
};
|
|
1314
|
+
export type SearchRecencyFilterInput = "hour" | "day" | "week" | "month" | "year";
|
|
1315
|
+
export type SearchRecencyFilterOutput = "hour" | "day" | "week" | "month" | "year";
|
|
1316
|
+
export type SearchResultInput = {
|
|
1317
|
+
date?: string;
|
|
1318
|
+
id: number;
|
|
1319
|
+
last_updated?: string;
|
|
1320
|
+
snippet: string;
|
|
1321
|
+
source?: SearchSourceInput;
|
|
1322
|
+
title: string;
|
|
1323
|
+
url: string;
|
|
1324
|
+
};
|
|
1325
|
+
export type SearchResultOutput = {
|
|
1326
|
+
date?: string;
|
|
1327
|
+
id: number;
|
|
1328
|
+
last_updated?: string;
|
|
1329
|
+
snippet: string;
|
|
1330
|
+
source?: SearchSourceOutput;
|
|
1331
|
+
title: string;
|
|
1332
|
+
url: string;
|
|
1333
|
+
};
|
|
1334
|
+
export type SearchResultsEventInput = {
|
|
1335
|
+
results: SearchResultInput[];
|
|
1336
|
+
sequence_number: number;
|
|
1337
|
+
thought?: string;
|
|
1338
|
+
type: "response.reasoning.search_results";
|
|
1339
|
+
usage?: ResponsesUsageInput;
|
|
1340
|
+
};
|
|
1341
|
+
export type SearchResultsEventOutput = {
|
|
1342
|
+
results: SearchResultOutput[];
|
|
1343
|
+
sequence_number: number;
|
|
1344
|
+
thought?: string;
|
|
1345
|
+
type: "response.reasoning.search_results";
|
|
1346
|
+
usage?: ResponsesUsageOutput;
|
|
1347
|
+
};
|
|
1348
|
+
export type SearchResultsOutputItemInput = {
|
|
1349
|
+
queries?: string[];
|
|
1350
|
+
results: SearchResultInput[];
|
|
1351
|
+
type: "search_results";
|
|
1352
|
+
};
|
|
1353
|
+
export type SearchResultsOutputItemOutput = {
|
|
1354
|
+
queries?: string[];
|
|
1355
|
+
results: SearchResultOutput[];
|
|
1356
|
+
type: "search_results";
|
|
1357
|
+
};
|
|
1358
|
+
export type SearchSourceInput = "web";
|
|
1359
|
+
export type SearchSourceOutput = "web";
|
|
1360
|
+
export type ShareFileOutputItemInput = {
|
|
1361
|
+
call_id: string;
|
|
1362
|
+
error?: string;
|
|
1363
|
+
file_id?: string;
|
|
1364
|
+
filename?: string;
|
|
1365
|
+
size_bytes?: number;
|
|
1366
|
+
type: "share_file";
|
|
1367
|
+
url?: string;
|
|
1368
|
+
};
|
|
1369
|
+
export type ShareFileOutputItemOutput = {
|
|
1370
|
+
call_id: string;
|
|
1371
|
+
error?: string;
|
|
1372
|
+
file_id?: string;
|
|
1373
|
+
filename?: string;
|
|
1374
|
+
size_bytes?: number;
|
|
1375
|
+
type: "share_file";
|
|
1376
|
+
url?: string;
|
|
1377
|
+
};
|
|
1378
|
+
export type SkillInput = BuiltinSkillInput | InlineSkillInput;
|
|
1379
|
+
export type SkillOutput = BuiltinSkillOutput | InlineSkillOutput;
|
|
1380
|
+
export type SkillLoadedOutputItemInput = {
|
|
1381
|
+
name: string;
|
|
1382
|
+
type: "skill_loaded";
|
|
1383
|
+
};
|
|
1384
|
+
export type SkillLoadedOutputItemOutput = {
|
|
1385
|
+
name: string;
|
|
1386
|
+
type: "skill_loaded";
|
|
1387
|
+
};
|
|
1388
|
+
export type StatusInput = "completed" | "failed" | "in_progress" | "queued" | "cancelled" | "requires_action";
|
|
1389
|
+
export type StatusOutput = "completed" | "failed" | "in_progress" | "queued" | "cancelled" | "requires_action";
|
|
1390
|
+
export type TextDeltaEventInput = {
|
|
1391
|
+
content_index: number;
|
|
1392
|
+
delta: string;
|
|
1393
|
+
item_id: string;
|
|
1394
|
+
output_index: number;
|
|
1395
|
+
sequence_number: number;
|
|
1396
|
+
type: "response.output_text.delta";
|
|
1397
|
+
};
|
|
1398
|
+
export type TextDeltaEventOutput = {
|
|
1399
|
+
content_index: number;
|
|
1400
|
+
delta: string;
|
|
1401
|
+
item_id: string;
|
|
1402
|
+
output_index: number;
|
|
1403
|
+
sequence_number: number;
|
|
1404
|
+
type: "response.output_text.delta";
|
|
1405
|
+
};
|
|
1406
|
+
export type TextDoneEventInput = {
|
|
1407
|
+
content_index: number;
|
|
1408
|
+
item_id: string;
|
|
1409
|
+
output_index: number;
|
|
1410
|
+
sequence_number: number;
|
|
1411
|
+
text: string;
|
|
1412
|
+
type: "response.output_text.done";
|
|
1413
|
+
};
|
|
1414
|
+
export type TextDoneEventOutput = {
|
|
1415
|
+
content_index: number;
|
|
1416
|
+
item_id: string;
|
|
1417
|
+
output_index: number;
|
|
1418
|
+
sequence_number: number;
|
|
1419
|
+
text: string;
|
|
1420
|
+
type: "response.output_text.done";
|
|
1421
|
+
};
|
|
1422
|
+
export type ToolInput = WebSearchToolInput | FetchUrlToolInput | PeopleSearchToolInput | FunctionToolInput | FinanceSearchToolInput | SandboxToolInput | McpToolInput;
|
|
1423
|
+
export type ToolOutput = WebSearchToolOutput | FetchUrlToolOutput | PeopleSearchToolOutput | FunctionToolOutput | FinanceSearchToolOutput | SandboxToolOutput | McpToolOutput;
|
|
1424
|
+
export type ToolCallInput = {
|
|
1425
|
+
function?: ToolCallFunctionInput | null;
|
|
1426
|
+
id?: string | null;
|
|
1427
|
+
type?: "function" | null;
|
|
1428
|
+
};
|
|
1429
|
+
export type ToolCallOutput = {
|
|
1430
|
+
function?: ToolCallFunctionOutput | null;
|
|
1431
|
+
id?: string | null;
|
|
1432
|
+
type?: "function" | null;
|
|
1433
|
+
};
|
|
1434
|
+
export type ToolCallDetailsInput = {
|
|
1435
|
+
invocation?: number;
|
|
1436
|
+
};
|
|
1437
|
+
export type ToolCallDetailsOutput = {
|
|
1438
|
+
invocation?: number;
|
|
1439
|
+
};
|
|
1440
|
+
export type ToolCallFunctionInput = {
|
|
1441
|
+
arguments?: string | null;
|
|
1442
|
+
name?: string | null;
|
|
1443
|
+
};
|
|
1444
|
+
export type ToolCallFunctionOutput = {
|
|
1445
|
+
arguments?: string | null;
|
|
1446
|
+
name?: string | null;
|
|
1447
|
+
};
|
|
1448
|
+
export type ToolSpecInput = {
|
|
1449
|
+
function: FunctionSpecInput;
|
|
1450
|
+
type: "function";
|
|
1451
|
+
};
|
|
1452
|
+
export type ToolSpecOutput = {
|
|
1453
|
+
function: FunctionSpecOutput;
|
|
1454
|
+
type: "function";
|
|
1455
|
+
};
|
|
1456
|
+
export type ToolUserLocationInput = {
|
|
1457
|
+
city?: string;
|
|
1458
|
+
country?: string;
|
|
1459
|
+
latitude?: number;
|
|
1460
|
+
longitude?: number;
|
|
1461
|
+
region?: string;
|
|
1462
|
+
};
|
|
1463
|
+
export type ToolUserLocationOutput = {
|
|
1464
|
+
city?: string;
|
|
1465
|
+
country?: string;
|
|
1466
|
+
latitude?: number;
|
|
1467
|
+
longitude?: number;
|
|
1468
|
+
region?: string;
|
|
1469
|
+
};
|
|
1470
|
+
export type UnknownOutputItemInput = {
|
|
1471
|
+
item_name: string;
|
|
1472
|
+
payload: {} & Record<string, unknown>;
|
|
1473
|
+
type: "unknown";
|
|
1474
|
+
};
|
|
1475
|
+
export type UnknownOutputItemOutput = {
|
|
1476
|
+
item_name: string;
|
|
1477
|
+
payload: {} & Record<string, unknown>;
|
|
1478
|
+
type: "unknown";
|
|
1479
|
+
};
|
|
1480
|
+
export type URLInput = {
|
|
1481
|
+
url: string;
|
|
1482
|
+
};
|
|
1483
|
+
export type URLOutput = {
|
|
1484
|
+
url: string;
|
|
1485
|
+
};
|
|
1486
|
+
export type UrlContentInput = {
|
|
1487
|
+
snippet: string;
|
|
1488
|
+
title: string;
|
|
1489
|
+
url: string;
|
|
1490
|
+
};
|
|
1491
|
+
export type UrlContentOutput = {
|
|
1492
|
+
snippet: string;
|
|
1493
|
+
title: string;
|
|
1494
|
+
url: string;
|
|
1495
|
+
};
|
|
1496
|
+
export type UsageInfoInput = {
|
|
1497
|
+
citation_tokens?: number | null;
|
|
1498
|
+
completion_tokens: number;
|
|
1499
|
+
cost: CostInput;
|
|
1500
|
+
num_search_queries?: number | null;
|
|
1501
|
+
prompt_tokens: number;
|
|
1502
|
+
reasoning_tokens?: number | null;
|
|
1503
|
+
search_context_size?: string | null;
|
|
1504
|
+
total_tokens: number;
|
|
1505
|
+
};
|
|
1506
|
+
export type UsageInfoOutput = {
|
|
1507
|
+
citation_tokens?: number | null;
|
|
1508
|
+
completion_tokens: number;
|
|
1509
|
+
cost: CostOutput;
|
|
1510
|
+
num_search_queries?: number | null;
|
|
1511
|
+
prompt_tokens: number;
|
|
1512
|
+
reasoning_tokens?: number | null;
|
|
1513
|
+
search_context_size?: string | null;
|
|
1514
|
+
total_tokens: number;
|
|
1515
|
+
};
|
|
1516
|
+
export type UserLocationInput = {
|
|
1517
|
+
city?: string | null;
|
|
1518
|
+
country?: string | null;
|
|
1519
|
+
latitude?: number | null;
|
|
1520
|
+
longitude?: number | null;
|
|
1521
|
+
region?: string | null;
|
|
1522
|
+
};
|
|
1523
|
+
export type UserLocationOutput = {
|
|
1524
|
+
city?: string | null;
|
|
1525
|
+
country?: string | null;
|
|
1526
|
+
latitude?: number | null;
|
|
1527
|
+
longitude?: number | null;
|
|
1528
|
+
region?: string | null;
|
|
1529
|
+
};
|
|
1530
|
+
export type ValidationErrorInput = {
|
|
1531
|
+
loc: (string | number)[];
|
|
1532
|
+
msg: string;
|
|
1533
|
+
type: string;
|
|
1534
|
+
};
|
|
1535
|
+
export type ValidationErrorOutput = {
|
|
1536
|
+
loc: (string | number)[];
|
|
1537
|
+
msg: string;
|
|
1538
|
+
type: string;
|
|
1539
|
+
};
|
|
1540
|
+
export type VideoURLInput = {
|
|
1541
|
+
frame_interval?: string | number;
|
|
1542
|
+
url: string;
|
|
1543
|
+
};
|
|
1544
|
+
export type VideoURLOutput = {
|
|
1545
|
+
frame_interval?: string | number;
|
|
1546
|
+
url: string;
|
|
1547
|
+
};
|
|
1548
|
+
export type WebSearchFiltersInput = SearchDomainFilterInput & DateFiltersInput;
|
|
1549
|
+
export type WebSearchFiltersOutput = SearchDomainFilterOutput & DateFiltersOutput;
|
|
1550
|
+
export type WebSearchOptionsInput = {
|
|
1551
|
+
image_results_enhanced_relevance?: boolean;
|
|
1552
|
+
search_context_size?: "low" | "medium" | "high";
|
|
1553
|
+
search_type?: ("fast" | "pro" | "auto") | null;
|
|
1554
|
+
user_location?: UserLocationInput | null;
|
|
1555
|
+
};
|
|
1556
|
+
export type WebSearchOptionsOutput = {
|
|
1557
|
+
image_results_enhanced_relevance?: boolean;
|
|
1558
|
+
search_context_size?: "low" | "medium" | "high";
|
|
1559
|
+
search_type?: ("fast" | "pro" | "auto") | null;
|
|
1560
|
+
user_location?: UserLocationOutput | null;
|
|
1561
|
+
};
|
|
1562
|
+
export type WebSearchStepDetailsInput = {
|
|
1563
|
+
search_keywords: string[];
|
|
1564
|
+
search_results: ApiPublicSearchResultInput[];
|
|
1565
|
+
};
|
|
1566
|
+
export type WebSearchStepDetailsOutput = {
|
|
1567
|
+
search_keywords: string[];
|
|
1568
|
+
search_results: ApiPublicSearchResultOutput[];
|
|
1569
|
+
};
|
|
1570
|
+
export type WebSearchToolInput = {
|
|
1571
|
+
filters?: WebSearchFiltersInput;
|
|
1572
|
+
max_tokens?: number;
|
|
1573
|
+
max_tokens_per_page?: number;
|
|
1574
|
+
search_context_size?: "low" | "medium" | "high";
|
|
1575
|
+
type: "web_search";
|
|
1576
|
+
user_location?: ToolUserLocationInput;
|
|
1577
|
+
};
|
|
1578
|
+
export type WebSearchToolOutput = {
|
|
1579
|
+
filters?: WebSearchFiltersOutput;
|
|
1580
|
+
max_tokens?: number;
|
|
1581
|
+
max_tokens_per_page?: number;
|
|
1582
|
+
search_context_size?: "low" | "medium" | "high";
|
|
1583
|
+
type: "web_search";
|
|
1584
|
+
user_location?: ToolUserLocationOutput;
|
|
1585
|
+
};
|
|
1586
|
+
export class AsyncChatCompletionsResource {
|
|
1587
|
+
private readonly _client: SdkTransport;
|
|
1588
|
+
constructor(client: SdkTransport) {
|
|
1589
|
+
this._client = client;
|
|
1590
|
+
}
|
|
1591
|
+
create(body: AsyncApiChatCompletionsRequestInput, options?: RequestOptions): APIPromise<AsyncApiChatCompletionsResponseOutput> {
|
|
1592
|
+
return this._client.post<AsyncApiChatCompletionsResponseOutput>("/async/chat/completions", {
|
|
1593
|
+
...options,
|
|
1594
|
+
body: body
|
|
1595
|
+
});
|
|
1596
|
+
}
|
|
1597
|
+
get(apiRequest: string, params?: {
|
|
1598
|
+
local_mode?: boolean;
|
|
1599
|
+
"x-client-env"?: string;
|
|
1600
|
+
"x-client-name"?: string;
|
|
1601
|
+
"x-created-at-epoch-seconds"?: string;
|
|
1602
|
+
"x-request-time"?: string;
|
|
1603
|
+
"x-usage-tier"?: string;
|
|
1604
|
+
"x-user-id"?: string;
|
|
1605
|
+
}, options?: RequestOptions): APIPromise<AsyncApiChatCompletionsResponseOutput> {
|
|
1606
|
+
return this._client.get<AsyncApiChatCompletionsResponseOutput>(`/async/chat/completions/${encodeURIComponent(String(apiRequest))}`, {
|
|
1607
|
+
...options,
|
|
1608
|
+
query: {
|
|
1609
|
+
local_mode: params?.local_mode,
|
|
1610
|
+
...options?.query
|
|
1611
|
+
},
|
|
1612
|
+
headers: {
|
|
1613
|
+
"x-client-env": params?.["x-client-env"],
|
|
1614
|
+
"x-client-name": params?.["x-client-name"],
|
|
1615
|
+
"x-created-at-epoch-seconds": params?.["x-created-at-epoch-seconds"],
|
|
1616
|
+
"x-request-time": params?.["x-request-time"],
|
|
1617
|
+
"x-usage-tier": params?.["x-usage-tier"],
|
|
1618
|
+
"x-user-id": params?.["x-user-id"],
|
|
1619
|
+
...normalizeHeaders(options?.headers)
|
|
1620
|
+
}
|
|
1621
|
+
});
|
|
1622
|
+
}
|
|
1623
|
+
list(options?: RequestOptions): APIPromise<ListAsyncApiChatCompletionsResponseOutput> {
|
|
1624
|
+
return this._client.get<ListAsyncApiChatCompletionsResponseOutput>("/async/chat/completions", {
|
|
1625
|
+
...options
|
|
1626
|
+
});
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
export class AsyncChatResource {
|
|
1630
|
+
readonly completions: AsyncChatCompletionsResource;
|
|
1631
|
+
constructor(client: SdkTransport) {
|
|
1632
|
+
this.completions = new AsyncChatCompletionsResource(client);
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
export class BrowserSessionsResource {
|
|
1636
|
+
private readonly _client: SdkTransport;
|
|
1637
|
+
constructor(client: SdkTransport) {
|
|
1638
|
+
this._client = client;
|
|
1639
|
+
}
|
|
1640
|
+
create(body?: CreateBrowserSessionRequestInput, options?: RequestOptions): APIPromise<BrowserSessionResponseOutput> {
|
|
1641
|
+
return this._client.post<BrowserSessionResponseOutput>("/v1/browser/sessions", {
|
|
1642
|
+
...options,
|
|
1643
|
+
body: body
|
|
1644
|
+
});
|
|
1645
|
+
}
|
|
1646
|
+
delete(sessionID: string, options?: RequestOptions): APIPromise<void> {
|
|
1647
|
+
return this._client.delete<void>(`/v1/browser/sessions/${encodeURIComponent(String(sessionID))}`, {
|
|
1648
|
+
...options,
|
|
1649
|
+
headers: {
|
|
1650
|
+
"Accept": "*/*",
|
|
1651
|
+
...normalizeHeaders(options?.headers)
|
|
1652
|
+
}
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
export class ChatCompletionsResource {
|
|
1657
|
+
private readonly _client: SdkTransport;
|
|
1658
|
+
constructor(client: SdkTransport) {
|
|
1659
|
+
this._client = client;
|
|
1660
|
+
}
|
|
1661
|
+
create(body: Omit<ApiChatCompletionsRequestInput, "stream"> & {
|
|
1662
|
+
stream?: false;
|
|
1663
|
+
}, options?: RequestOptions): APIPromise<CompletionResponseOutput>;
|
|
1664
|
+
create(body: Omit<ApiChatCompletionsRequestInput, "stream"> & {
|
|
1665
|
+
stream: true;
|
|
1666
|
+
}, options?: RequestOptions): APIPromise<Stream<CompletionResponseOutput>>;
|
|
1667
|
+
create(body: ApiChatCompletionsRequestInput, options?: RequestOptions): APIPromise<CompletionResponseOutput | Stream<CompletionResponseOutput>>;
|
|
1668
|
+
create(body: ApiChatCompletionsRequestInput, options?: RequestOptions): APIPromise<CompletionResponseOutput | Stream<CompletionResponseOutput>> {
|
|
1669
|
+
return this._client.post<CompletionResponseOutput | Stream<CompletionResponseOutput>>("/chat/completions", {
|
|
1670
|
+
...options,
|
|
1671
|
+
body: body,
|
|
1672
|
+
stream: body?.stream ?? false
|
|
1673
|
+
});
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
export class ResponsesFilesResource {
|
|
1677
|
+
private readonly _client: SdkTransport;
|
|
1678
|
+
constructor(client: SdkTransport) {
|
|
1679
|
+
this._client = client;
|
|
1680
|
+
}
|
|
1681
|
+
content(fileID: string, params: {
|
|
1682
|
+
response_id: string;
|
|
1683
|
+
}, options?: RequestOptions): APIPromise<Response> {
|
|
1684
|
+
return this._client.get<Response>(`/v1/responses/${encodeURIComponent(String(params.response_id))}/files/${encodeURIComponent(String(fileID))}/content`, {
|
|
1685
|
+
...options,
|
|
1686
|
+
headers: {
|
|
1687
|
+
"Accept": "application/octet-stream",
|
|
1688
|
+
...normalizeHeaders(options?.headers)
|
|
1689
|
+
},
|
|
1690
|
+
__binaryResponse: true
|
|
1691
|
+
});
|
|
1692
|
+
}
|
|
1693
|
+
list(responseID: string, options?: RequestOptions): APIPromise<ResponseFileListOutput> {
|
|
1694
|
+
return this._client.get<ResponseFileListOutput>(`/v1/responses/${encodeURIComponent(String(responseID))}/files`, {
|
|
1695
|
+
...options
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
export class AsyncResource {
|
|
1700
|
+
readonly chat: AsyncChatResource;
|
|
1701
|
+
constructor(client: SdkTransport) {
|
|
1702
|
+
this.chat = new AsyncChatResource(client);
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
export class BrowserResource {
|
|
1706
|
+
readonly sessions: BrowserSessionsResource;
|
|
1707
|
+
constructor(client: SdkTransport) {
|
|
1708
|
+
this.sessions = new BrowserSessionsResource(client);
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
export class ChatResource {
|
|
1712
|
+
readonly completions: ChatCompletionsResource;
|
|
1713
|
+
constructor(client: SdkTransport) {
|
|
1714
|
+
this.completions = new ChatCompletionsResource(client);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
export class ContextualizedEmbeddingsResource {
|
|
1718
|
+
private readonly _client: SdkTransport;
|
|
1719
|
+
constructor(client: SdkTransport) {
|
|
1720
|
+
this._client = client;
|
|
1721
|
+
}
|
|
1722
|
+
create(body: ContextualizedEmbeddingsRequestInput, options?: RequestOptions): APIPromise<ContextualizedEmbeddingsResponseOutput> {
|
|
1723
|
+
return this._client.post<ContextualizedEmbeddingsResponseOutput>("/v1/contextualizedembeddings", {
|
|
1724
|
+
...options,
|
|
1725
|
+
body: body
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
export class EmbeddingsResource {
|
|
1730
|
+
private readonly _client: SdkTransport;
|
|
1731
|
+
constructor(client: SdkTransport) {
|
|
1732
|
+
this._client = client;
|
|
1733
|
+
}
|
|
1734
|
+
create(body: EmbeddingsRequestInput, options?: RequestOptions): APIPromise<EmbeddingsResponseOutput> {
|
|
1735
|
+
return this._client.post<EmbeddingsResponseOutput>("/v1/embeddings", {
|
|
1736
|
+
...options,
|
|
1737
|
+
body: body
|
|
1738
|
+
});
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
export class ResponsesResource {
|
|
1742
|
+
private readonly _client: SdkTransport;
|
|
1743
|
+
readonly files: ResponsesFilesResource;
|
|
1744
|
+
constructor(client: SdkTransport) {
|
|
1745
|
+
this._client = client;
|
|
1746
|
+
this.files = new ResponsesFilesResource(client);
|
|
1747
|
+
}
|
|
1748
|
+
cancel(responseID: string, options?: RequestOptions): APIPromise<{
|
|
1749
|
+
response_id: string;
|
|
1750
|
+
status: "cancelling";
|
|
1751
|
+
}> {
|
|
1752
|
+
return this._client.post<{
|
|
1753
|
+
response_id: string;
|
|
1754
|
+
status: "cancelling";
|
|
1755
|
+
}>(`/v1/responses/${encodeURIComponent(String(responseID))}/cancel`, {
|
|
1756
|
+
...options
|
|
1757
|
+
});
|
|
1758
|
+
}
|
|
1759
|
+
create(body: Omit<ResponsesRequestInput, "stream"> & {
|
|
1760
|
+
stream?: false;
|
|
1761
|
+
}, options?: RequestOptions): APIPromise<ResponsesResponseOutput>;
|
|
1762
|
+
create(body: Omit<ResponsesRequestInput, "stream"> & {
|
|
1763
|
+
stream: true;
|
|
1764
|
+
}, options?: RequestOptions): APIPromise<Stream<ResponseStreamEventOutput>>;
|
|
1765
|
+
create(body: ResponsesRequestInput, options?: RequestOptions): APIPromise<ResponsesResponseOutput | Stream<ResponseStreamEventOutput>>;
|
|
1766
|
+
create(body: ResponsesRequestInput, options?: RequestOptions): APIPromise<ResponsesResponseOutput | Stream<ResponseStreamEventOutput>> {
|
|
1767
|
+
const promise = this._client.post<ResponsesResponseOutput | Stream<ResponseStreamEventOutput>>("/v1/responses", {
|
|
1768
|
+
...options,
|
|
1769
|
+
body: body,
|
|
1770
|
+
stream: body?.stream ?? false
|
|
1771
|
+
});
|
|
1772
|
+
if (!body?.stream) {
|
|
1773
|
+
return promise._thenUnwrap(response => {
|
|
1774
|
+
if ("object" in response && response.object === "response") {
|
|
1775
|
+
addOutputText(response as ResponsesResponseOutput);
|
|
1776
|
+
}
|
|
1777
|
+
return response;
|
|
1778
|
+
});
|
|
1779
|
+
}
|
|
1780
|
+
return promise;
|
|
1781
|
+
}
|
|
1782
|
+
retrieve(responseID: string, options?: RequestOptions): APIPromise<ResponsesResponseOutput> {
|
|
1783
|
+
return this._client.get<ResponsesResponseOutput>(`/v1/responses/${encodeURIComponent(String(responseID))}`, {
|
|
1784
|
+
...options
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
export class SearchResource {
|
|
1789
|
+
private readonly _client: SdkTransport;
|
|
1790
|
+
constructor(client: SdkTransport) {
|
|
1791
|
+
this._client = client;
|
|
1792
|
+
}
|
|
1793
|
+
create(body: ApiSearchRequestInput, options?: RequestOptions): APIPromise<ApiSearchResponseOutput> {
|
|
1794
|
+
return this._client.post<ApiSearchResponseOutput>("/search", {
|
|
1795
|
+
...options,
|
|
1796
|
+
body: body
|
|
1797
|
+
});
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
export class PerplexitySdk {
|
|
1801
|
+
readonly async: AsyncResource;
|
|
1802
|
+
readonly browser: BrowserResource;
|
|
1803
|
+
readonly chat: ChatResource;
|
|
1804
|
+
readonly contextualizedEmbeddings: ContextualizedEmbeddingsResource;
|
|
1805
|
+
readonly embeddings: EmbeddingsResource;
|
|
1806
|
+
readonly responses: ResponsesResource;
|
|
1807
|
+
readonly search: SearchResource;
|
|
1808
|
+
constructor(client: SdkTransport) {
|
|
1809
|
+
this.async = new AsyncResource(client);
|
|
1810
|
+
this.browser = new BrowserResource(client);
|
|
1811
|
+
this.chat = new ChatResource(client);
|
|
1812
|
+
this.contextualizedEmbeddings = new ContextualizedEmbeddingsResource(client);
|
|
1813
|
+
this.embeddings = new EmbeddingsResource(client);
|
|
1814
|
+
this.responses = new ResponsesResource(client);
|
|
1815
|
+
this.search = new SearchResource(client);
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
export class Async extends AsyncResource {
|
|
1819
|
+
}
|
|
1820
|
+
export class Browser extends BrowserResource {
|
|
1821
|
+
}
|
|
1822
|
+
export class Chat extends ChatResource {
|
|
1823
|
+
}
|
|
1824
|
+
export class ContextualizedEmbeddings extends ContextualizedEmbeddingsResource {
|
|
1825
|
+
}
|
|
1826
|
+
export class Embeddings extends EmbeddingsResource {
|
|
1827
|
+
}
|
|
1828
|
+
export class Responses extends ResponsesResource {
|
|
1829
|
+
}
|
|
1830
|
+
export class Search extends SearchResource {
|
|
1831
|
+
}
|
|
1832
|
+
export type Annotation = AnnotationOutput;
|
|
1833
|
+
export type APIPublicSearchResult = ApiPublicSearchResultOutput;
|
|
1834
|
+
export type BrowserSessionResponse = BrowserSessionResponseOutput;
|
|
1835
|
+
export type ChatMessageInput = ChatMessageInputInput;
|
|
1836
|
+
export type ChatMessageOutput = ChatMessageOutputOutput;
|
|
1837
|
+
export type Choice = ChoiceOutput;
|
|
1838
|
+
export type ContentPart = ContentPartOutput;
|
|
1839
|
+
export type ContextualizedEmbeddingCreateParams = ContextualizedEmbeddingsRequestInput;
|
|
1840
|
+
export type ContextualizedEmbeddingCreateResponse = ContextualizedEmbeddingsResponseOutput;
|
|
1841
|
+
export type ContextualizedEmbeddingObject = ContextualizedEmbeddingObjectOutput;
|
|
1842
|
+
export type EmbeddingCreateParams = EmbeddingsRequestInput;
|
|
1843
|
+
export type EmbeddingCreateResponse = EmbeddingsResponseOutput;
|
|
1844
|
+
export type EmbeddingObject = EmbeddingObjectOutput;
|
|
1845
|
+
export type EmbeddingsUsage = EmbeddingsUsageOutput;
|
|
1846
|
+
export type ErrorInfo = ErrorInfoOutput;
|
|
1847
|
+
export type FunctionCallOutputItem = FunctionCallOutputItemOutput;
|
|
1848
|
+
export type FunctionTool = FunctionToolInput;
|
|
1849
|
+
export type InputItem = InputItemInput;
|
|
1850
|
+
export type JsonSchemaFormat = JSONSchemaFormatInput;
|
|
1851
|
+
export type OutputItem = OutputItemOutput;
|
|
1852
|
+
export type ResponseCancelResponse = Awaited<ReturnType<ResponsesResource["cancel"]>>;
|
|
1853
|
+
export type ResponseCreateParams = ResponsesRequestInput;
|
|
1854
|
+
export type ResponseCreateResponse = ResponsesResponseOutput;
|
|
1855
|
+
export type ResponseFile = ResponseFileOutput;
|
|
1856
|
+
export type ResponseFileList = ResponseFileListOutput;
|
|
1857
|
+
export type ResponseFormat = ResponseFormatInput;
|
|
1858
|
+
export type ResponseRetrieveResponse = ResponsesResponseOutput;
|
|
1859
|
+
export type ResponsesCreateParams = ResponsesRequestInput;
|
|
1860
|
+
export type ResponseStreamChunk = ResponseStreamEventOutput;
|
|
1861
|
+
export type ResponsesUsage = ResponsesUsageOutput;
|
|
1862
|
+
export type SearchCreateParams = ApiSearchRequestInput;
|
|
1863
|
+
export type SearchCreateResponse = ApiSearchResponseOutput;
|
|
1864
|
+
export type SearchResult = SearchResultOutput;
|
|
1865
|
+
export type StreamChunk = CompletionResponseOutput;
|
|
1866
|
+
export type UsageInfo = UsageInfoOutput;
|
|
1867
|
+
export type UserLocation = UserLocationInput;
|
|
1868
|
+
export type WebSearchOptions = WebSearchOptionsInput;
|
|
1869
|
+
export namespace Async {
|
|
1870
|
+
export class Chat extends AsyncChatResource {
|
|
1871
|
+
}
|
|
1872
|
+
export namespace Chat {
|
|
1873
|
+
export class Completions extends AsyncChatCompletionsResource {
|
|
1874
|
+
}
|
|
1875
|
+
export type CompletionCreateParams = AsyncApiChatCompletionsRequestInput;
|
|
1876
|
+
export type CompletionCreateResponse = AsyncApiChatCompletionsResponseOutput;
|
|
1877
|
+
export type CompletionGetParams = NonNullable<Parameters<AsyncChatCompletionsResource["get"]>[1]>;
|
|
1878
|
+
export type CompletionGetResponse = AsyncApiChatCompletionsResponseOutput;
|
|
1879
|
+
export type CompletionListResponse = ListAsyncApiChatCompletionsResponseOutput;
|
|
1880
|
+
export namespace Completions {
|
|
1881
|
+
export type CompletionCreateParams = AsyncApiChatCompletionsRequestInput;
|
|
1882
|
+
export type CompletionCreateResponse = AsyncApiChatCompletionsResponseOutput;
|
|
1883
|
+
export type CompletionGetParams = NonNullable<Parameters<AsyncChatCompletionsResource["get"]>[1]>;
|
|
1884
|
+
export type CompletionGetResponse = AsyncApiChatCompletionsResponseOutput;
|
|
1885
|
+
export type CompletionListResponse = ListAsyncApiChatCompletionsResponseOutput;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
export namespace Browser {
|
|
1890
|
+
export class Sessions extends BrowserSessionsResource {
|
|
1891
|
+
}
|
|
1892
|
+
export type SessionCreateParams = CreateBrowserSessionRequestInput;
|
|
1893
|
+
export namespace Sessions {
|
|
1894
|
+
export type SessionCreateParams = CreateBrowserSessionRequestInput;
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
export namespace Chat {
|
|
1898
|
+
export class Completions extends ChatCompletionsResource {
|
|
1899
|
+
}
|
|
1900
|
+
export type CompletionCreateParams = ApiChatCompletionsRequestInput;
|
|
1901
|
+
export type CompletionCreateParamsNonStreaming = Omit<ApiChatCompletionsRequestInput, "stream"> & {
|
|
1902
|
+
stream?: false | null;
|
|
1903
|
+
};
|
|
1904
|
+
export type CompletionCreateParamsStreaming = Omit<ApiChatCompletionsRequestInput, "stream"> & {
|
|
1905
|
+
stream: true;
|
|
1906
|
+
};
|
|
1907
|
+
export type StreamChunk = CompletionResponseOutput;
|
|
1908
|
+
export namespace Completions {
|
|
1909
|
+
export type CompletionCreateParams = ApiChatCompletionsRequestInput;
|
|
1910
|
+
export type CompletionCreateParamsNonStreaming = Omit<ApiChatCompletionsRequestInput, "stream"> & {
|
|
1911
|
+
stream?: false | null;
|
|
1912
|
+
};
|
|
1913
|
+
export type CompletionCreateParamsStreaming = Omit<ApiChatCompletionsRequestInput, "stream"> & {
|
|
1914
|
+
stream: true;
|
|
1915
|
+
};
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
export namespace ContextualizedEmbeddings {
|
|
1919
|
+
export type ContextualizedEmbeddingCreateParams = ContextualizedEmbeddingsRequestInput;
|
|
1920
|
+
export type ContextualizedEmbeddingCreateResponse = ContextualizedEmbeddingsResponseOutput;
|
|
1921
|
+
}
|
|
1922
|
+
export namespace Embeddings {
|
|
1923
|
+
export type EmbeddingCreateParams = EmbeddingsRequestInput;
|
|
1924
|
+
export type EmbeddingCreateResponse = EmbeddingsResponseOutput;
|
|
1925
|
+
}
|
|
1926
|
+
export namespace Responses {
|
|
1927
|
+
export class Files extends ResponsesFilesResource {
|
|
1928
|
+
}
|
|
1929
|
+
export type Annotation = AnnotationOutput;
|
|
1930
|
+
export type ContentPart = ContentPartOutput;
|
|
1931
|
+
export type ErrorInfo = ErrorInfoOutput;
|
|
1932
|
+
export type FileContentParams = NonNullable<Parameters<ResponsesFilesResource["content"]>[1]>;
|
|
1933
|
+
export type FunctionCallOutputItem = FunctionCallOutputItemOutput;
|
|
1934
|
+
export type FunctionTool = FunctionToolInput;
|
|
1935
|
+
export type InputItem = InputItemInput;
|
|
1936
|
+
export type OutputItem = OutputItemOutput;
|
|
1937
|
+
export type ResponseCancelResponse = Awaited<ReturnType<ResponsesResource["cancel"]>>;
|
|
1938
|
+
export type ResponseCreateParams = ResponsesRequestInput;
|
|
1939
|
+
export type ResponseCreateParamsNonStreaming = Omit<ResponsesRequestInput, "stream"> & {
|
|
1940
|
+
stream?: false;
|
|
1941
|
+
};
|
|
1942
|
+
export type ResponseCreateParamsStreaming = Omit<ResponsesRequestInput, "stream"> & {
|
|
1943
|
+
stream: true;
|
|
1944
|
+
};
|
|
1945
|
+
export type ResponseCreateResponse = ResponsesResponseOutput;
|
|
1946
|
+
export type ResponseFile = ResponseFileOutput;
|
|
1947
|
+
export type ResponseFileList = ResponseFileListOutput;
|
|
1948
|
+
export type ResponseRetrieveResponse = ResponsesResponseOutput;
|
|
1949
|
+
export type ResponsesCreateParams = ResponsesRequestInput;
|
|
1950
|
+
export type ResponseStreamChunk = ResponseStreamEventOutput;
|
|
1951
|
+
export type ResponsesUsage = ResponsesUsageOutput;
|
|
1952
|
+
export namespace Files {
|
|
1953
|
+
export type FileContentParams = NonNullable<Parameters<ResponsesFilesResource["content"]>[1]>;
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
export namespace Search {
|
|
1957
|
+
export type SearchCreateParams = ApiSearchRequestInput;
|
|
1958
|
+
export type SearchCreateResponse = ApiSearchResponseOutput;
|
|
1959
|
+
}
|