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