@llamaindex/llama-cloud 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +250 -0
- package/LICENSE +7 -0
- package/README.md +448 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +247 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +247 -0
- package/client.d.ts.map +1 -0
- package/client.js +483 -0
- package/client.js.map +1 -0
- package/client.mjs +479 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +259 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +259 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +352 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +337 -0
- package/core/pagination.mjs.map +1 -0
- package/core/polling.d.mts +58 -0
- package/core/polling.d.mts.map +1 -0
- package/core/polling.d.ts +58 -0
- package/core/polling.d.ts.map +1 -0
- package/core/polling.js +88 -0
- package/core/polling.js.map +1 -0
- package/core/polling.mjs +82 -0
- package/core/polling.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +32 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +148 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/beta/agent-data.d.mts +329 -0
- package/resources/beta/agent-data.d.mts.map +1 -0
- package/resources/beta/agent-data.d.ts +329 -0
- package/resources/beta/agent-data.d.ts.map +1 -0
- package/resources/beta/agent-data.js +81 -0
- package/resources/beta/agent-data.js.map +1 -0
- package/resources/beta/agent-data.mjs +77 -0
- package/resources/beta/agent-data.mjs.map +1 -0
- package/resources/beta/batch/batch.d.mts +614 -0
- package/resources/beta/batch/batch.d.mts.map +1 -0
- package/resources/beta/batch/batch.d.ts +614 -0
- package/resources/beta/batch/batch.d.ts.map +1 -0
- package/resources/beta/batch/batch.js +78 -0
- package/resources/beta/batch/batch.js.map +1 -0
- package/resources/beta/batch/batch.mjs +73 -0
- package/resources/beta/batch/batch.mjs.map +1 -0
- package/resources/beta/batch/index.d.mts +3 -0
- package/resources/beta/batch/index.d.mts.map +1 -0
- package/resources/beta/batch/index.d.ts +3 -0
- package/resources/beta/batch/index.d.ts.map +1 -0
- package/resources/beta/batch/index.js +9 -0
- package/resources/beta/batch/index.js.map +1 -0
- package/resources/beta/batch/index.mjs +4 -0
- package/resources/beta/batch/index.mjs.map +1 -0
- package/resources/beta/batch/job-items.d.mts +392 -0
- package/resources/beta/batch/job-items.d.mts.map +1 -0
- package/resources/beta/batch/job-items.d.ts +392 -0
- package/resources/beta/batch/job-items.d.ts.map +1 -0
- package/resources/beta/batch/job-items.js +35 -0
- package/resources/beta/batch/job-items.js.map +1 -0
- package/resources/beta/batch/job-items.mjs +31 -0
- package/resources/beta/batch/job-items.mjs.map +1 -0
- package/resources/beta/batch.d.mts +2 -0
- package/resources/beta/batch.d.mts.map +1 -0
- package/resources/beta/batch.d.ts +2 -0
- package/resources/beta/batch.d.ts.map +1 -0
- package/resources/beta/batch.js +6 -0
- package/resources/beta/batch.js.map +1 -0
- package/resources/beta/batch.mjs +3 -0
- package/resources/beta/batch.mjs.map +1 -0
- package/resources/beta/beta.d.mts +30 -0
- package/resources/beta/beta.d.mts.map +1 -0
- package/resources/beta/beta.d.ts +30 -0
- package/resources/beta/beta.d.ts.map +1 -0
- package/resources/beta/beta.js +35 -0
- package/resources/beta/beta.js.map +1 -0
- package/resources/beta/beta.mjs +30 -0
- package/resources/beta/beta.mjs.map +1 -0
- package/resources/beta/directories/directories.d.mts +241 -0
- package/resources/beta/directories/directories.d.mts.map +1 -0
- package/resources/beta/directories/directories.d.ts +241 -0
- package/resources/beta/directories/directories.d.ts.map +1 -0
- package/resources/beta/directories/directories.js +71 -0
- package/resources/beta/directories/directories.js.map +1 -0
- package/resources/beta/directories/directories.mjs +66 -0
- package/resources/beta/directories/directories.mjs.map +1 -0
- package/resources/beta/directories/files.d.mts +394 -0
- package/resources/beta/directories/files.d.mts.map +1 -0
- package/resources/beta/directories/files.d.ts +394 -0
- package/resources/beta/directories/files.d.ts.map +1 -0
- package/resources/beta/directories/files.js +89 -0
- package/resources/beta/directories/files.js.map +1 -0
- package/resources/beta/directories/files.mjs +85 -0
- package/resources/beta/directories/files.mjs.map +1 -0
- package/resources/beta/directories/index.d.mts +3 -0
- package/resources/beta/directories/index.d.mts.map +1 -0
- package/resources/beta/directories/index.d.ts +3 -0
- package/resources/beta/directories/index.d.ts.map +1 -0
- package/resources/beta/directories/index.js +9 -0
- package/resources/beta/directories/index.js.map +1 -0
- package/resources/beta/directories/index.mjs +4 -0
- package/resources/beta/directories/index.mjs.map +1 -0
- package/resources/beta/directories.d.mts +2 -0
- package/resources/beta/directories.d.mts.map +1 -0
- package/resources/beta/directories.d.ts +2 -0
- package/resources/beta/directories.d.ts.map +1 -0
- package/resources/beta/directories.js +6 -0
- package/resources/beta/directories.js.map +1 -0
- package/resources/beta/directories.mjs +3 -0
- package/resources/beta/directories.mjs.map +1 -0
- package/resources/beta/index.d.mts +8 -0
- package/resources/beta/index.d.mts.map +1 -0
- package/resources/beta/index.d.ts +8 -0
- package/resources/beta/index.d.ts.map +1 -0
- package/resources/beta/index.js +19 -0
- package/resources/beta/index.js.map +1 -0
- package/resources/beta/index.mjs +9 -0
- package/resources/beta/index.mjs.map +1 -0
- package/resources/beta/parse-configurations.d.mts +212 -0
- package/resources/beta/parse-configurations.d.mts.map +1 -0
- package/resources/beta/parse-configurations.d.ts +212 -0
- package/resources/beta/parse-configurations.d.ts.map +1 -0
- package/resources/beta/parse-configurations.js +82 -0
- package/resources/beta/parse-configurations.js.map +1 -0
- package/resources/beta/parse-configurations.mjs +78 -0
- package/resources/beta/parse-configurations.mjs.map +1 -0
- package/resources/beta/sheets.d.mts +319 -0
- package/resources/beta/sheets.d.mts.map +1 -0
- package/resources/beta/sheets.d.ts +319 -0
- package/resources/beta/sheets.d.ts.map +1 -0
- package/resources/beta/sheets.js +177 -0
- package/resources/beta/sheets.js.map +1 -0
- package/resources/beta/sheets.mjs +173 -0
- package/resources/beta/sheets.mjs.map +1 -0
- package/resources/beta/split.d.mts +354 -0
- package/resources/beta/split.d.mts.map +1 -0
- package/resources/beta/split.d.ts +354 -0
- package/resources/beta/split.d.ts.map +1 -0
- package/resources/beta/split.js +173 -0
- package/resources/beta/split.js.map +1 -0
- package/resources/beta/split.mjs +169 -0
- package/resources/beta/split.mjs.map +1 -0
- package/resources/beta.d.mts +2 -0
- package/resources/beta.d.mts.map +1 -0
- package/resources/beta.d.ts +2 -0
- package/resources/beta.d.ts.map +1 -0
- package/resources/beta.js +6 -0
- package/resources/beta.js.map +1 -0
- package/resources/beta.mjs +3 -0
- package/resources/beta.mjs.map +1 -0
- package/resources/classifier/classifier.d.mts +46 -0
- package/resources/classifier/classifier.d.mts.map +1 -0
- package/resources/classifier/classifier.d.ts +46 -0
- package/resources/classifier/classifier.d.ts.map +1 -0
- package/resources/classifier/classifier.js +63 -0
- package/resources/classifier/classifier.js.map +1 -0
- package/resources/classifier/classifier.mjs +58 -0
- package/resources/classifier/classifier.mjs.map +1 -0
- package/resources/classifier/index.d.mts +3 -0
- package/resources/classifier/index.d.mts.map +1 -0
- package/resources/classifier/index.d.ts +3 -0
- package/resources/classifier/index.d.ts.map +1 -0
- package/resources/classifier/index.js +9 -0
- package/resources/classifier/index.js.map +1 -0
- package/resources/classifier/index.mjs +4 -0
- package/resources/classifier/index.mjs.map +1 -0
- package/resources/classifier/jobs.d.mts +265 -0
- package/resources/classifier/jobs.d.mts.map +1 -0
- package/resources/classifier/jobs.d.ts +265 -0
- package/resources/classifier/jobs.d.ts.map +1 -0
- package/resources/classifier/jobs.js +111 -0
- package/resources/classifier/jobs.js.map +1 -0
- package/resources/classifier/jobs.mjs +107 -0
- package/resources/classifier/jobs.mjs.map +1 -0
- package/resources/classifier.d.mts +2 -0
- package/resources/classifier.d.mts.map +1 -0
- package/resources/classifier.d.ts +2 -0
- package/resources/classifier.d.ts.map +1 -0
- package/resources/classifier.js +6 -0
- package/resources/classifier.js.map +1 -0
- package/resources/classifier.mjs +3 -0
- package/resources/classifier.mjs.map +1 -0
- package/resources/data-sinks.d.mts +101 -0
- package/resources/data-sinks.d.mts.map +1 -0
- package/resources/data-sinks.d.ts +101 -0
- package/resources/data-sinks.d.ts.map +1 -0
- package/resources/data-sinks.js +49 -0
- package/resources/data-sinks.js.map +1 -0
- package/resources/data-sinks.mjs +45 -0
- package/resources/data-sinks.mjs.map +1 -0
- package/resources/data-sources.d.mts +137 -0
- package/resources/data-sources.d.mts.map +1 -0
- package/resources/data-sources.d.ts +137 -0
- package/resources/data-sources.d.ts.map +1 -0
- package/resources/data-sources.js +50 -0
- package/resources/data-sources.js.map +1 -0
- package/resources/data-sources.mjs +46 -0
- package/resources/data-sources.mjs.map +1 -0
- package/resources/extraction/extraction-agents/extraction-agents.d.mts +126 -0
- package/resources/extraction/extraction-agents/extraction-agents.d.mts.map +1 -0
- package/resources/extraction/extraction-agents/extraction-agents.d.ts +126 -0
- package/resources/extraction/extraction-agents/extraction-agents.d.ts.map +1 -0
- package/resources/extraction/extraction-agents/extraction-agents.js +56 -0
- package/resources/extraction/extraction-agents/extraction-agents.js.map +1 -0
- package/resources/extraction/extraction-agents/extraction-agents.mjs +51 -0
- package/resources/extraction/extraction-agents/extraction-agents.mjs.map +1 -0
- package/resources/extraction/extraction-agents/index.d.mts +3 -0
- package/resources/extraction/extraction-agents/index.d.mts.map +1 -0
- package/resources/extraction/extraction-agents/index.d.ts +3 -0
- package/resources/extraction/extraction-agents/index.d.ts.map +1 -0
- package/resources/extraction/extraction-agents/index.js +9 -0
- package/resources/extraction/extraction-agents/index.js.map +1 -0
- package/resources/extraction/extraction-agents/index.mjs +4 -0
- package/resources/extraction/extraction-agents/index.mjs.map +1 -0
- package/resources/extraction/extraction-agents/schema.d.mts +75 -0
- package/resources/extraction/extraction-agents/schema.d.mts.map +1 -0
- package/resources/extraction/extraction-agents/schema.d.ts +75 -0
- package/resources/extraction/extraction-agents/schema.d.ts.map +1 -0
- package/resources/extraction/extraction-agents/schema.js +28 -0
- package/resources/extraction/extraction-agents/schema.js.map +1 -0
- package/resources/extraction/extraction-agents/schema.mjs +24 -0
- package/resources/extraction/extraction-agents/schema.mjs.map +1 -0
- package/resources/extraction/extraction-agents.d.mts +2 -0
- package/resources/extraction/extraction-agents.d.mts.map +1 -0
- package/resources/extraction/extraction-agents.d.ts +2 -0
- package/resources/extraction/extraction-agents.d.ts.map +1 -0
- package/resources/extraction/extraction-agents.js +6 -0
- package/resources/extraction/extraction-agents.js.map +1 -0
- package/resources/extraction/extraction-agents.mjs +3 -0
- package/resources/extraction/extraction-agents.mjs.map +1 -0
- package/resources/extraction/extraction.d.mts +118 -0
- package/resources/extraction/extraction.d.mts.map +1 -0
- package/resources/extraction/extraction.d.ts +118 -0
- package/resources/extraction/extraction.d.ts.map +1 -0
- package/resources/extraction/extraction.js +90 -0
- package/resources/extraction/extraction.js.map +1 -0
- package/resources/extraction/extraction.mjs +85 -0
- package/resources/extraction/extraction.mjs.map +1 -0
- package/resources/extraction/index.d.mts +5 -0
- package/resources/extraction/index.d.mts.map +1 -0
- package/resources/extraction/index.d.ts +5 -0
- package/resources/extraction/index.d.ts.map +1 -0
- package/resources/extraction/index.js +13 -0
- package/resources/extraction/index.js.map +1 -0
- package/resources/extraction/index.mjs +6 -0
- package/resources/extraction/index.mjs.map +1 -0
- package/resources/extraction/jobs.d.mts +280 -0
- package/resources/extraction/jobs.d.mts.map +1 -0
- package/resources/extraction/jobs.d.ts +280 -0
- package/resources/extraction/jobs.d.ts.map +1 -0
- package/resources/extraction/jobs.js +179 -0
- package/resources/extraction/jobs.js.map +1 -0
- package/resources/extraction/jobs.mjs +175 -0
- package/resources/extraction/jobs.mjs.map +1 -0
- package/resources/extraction/runs.d.mts +198 -0
- package/resources/extraction/runs.d.mts.map +1 -0
- package/resources/extraction/runs.d.ts +198 -0
- package/resources/extraction/runs.d.ts.map +1 -0
- package/resources/extraction/runs.js +42 -0
- package/resources/extraction/runs.js.map +1 -0
- package/resources/extraction/runs.mjs +38 -0
- package/resources/extraction/runs.mjs.map +1 -0
- package/resources/extraction.d.mts +2 -0
- package/resources/extraction.d.mts.map +1 -0
- package/resources/extraction.d.ts +2 -0
- package/resources/extraction.d.ts.map +1 -0
- package/resources/extraction.js +6 -0
- package/resources/extraction.js.map +1 -0
- package/resources/extraction.mjs +3 -0
- package/resources/extraction.mjs.map +1 -0
- package/resources/files.d.mts +358 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +358 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +61 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +57 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +12 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +12 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +27 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +13 -0
- package/resources/index.mjs.map +1 -0
- package/resources/parsing.d.mts +1427 -0
- package/resources/parsing.d.mts.map +1 -0
- package/resources/parsing.d.ts +1427 -0
- package/resources/parsing.d.ts.map +1 -0
- package/resources/parsing.js +176 -0
- package/resources/parsing.js.map +1 -0
- package/resources/parsing.mjs +172 -0
- package/resources/parsing.mjs.map +1 -0
- package/resources/pipelines/data-sources.d.mts +146 -0
- package/resources/pipelines/data-sources.d.mts.map +1 -0
- package/resources/pipelines/data-sources.d.ts +146 -0
- package/resources/pipelines/data-sources.d.ts.map +1 -0
- package/resources/pipelines/data-sources.js +51 -0
- package/resources/pipelines/data-sources.js.map +1 -0
- package/resources/pipelines/data-sources.mjs +47 -0
- package/resources/pipelines/data-sources.mjs.map +1 -0
- package/resources/pipelines/documents.d.mts +201 -0
- package/resources/pipelines/documents.d.mts.map +1 -0
- package/resources/pipelines/documents.d.ts +201 -0
- package/resources/pipelines/documents.d.ts.map +1 -0
- package/resources/pipelines/documents.js +73 -0
- package/resources/pipelines/documents.js.map +1 -0
- package/resources/pipelines/documents.mjs +69 -0
- package/resources/pipelines/documents.mjs.map +1 -0
- package/resources/pipelines/files.d.mts +217 -0
- package/resources/pipelines/files.d.mts.map +1 -0
- package/resources/pipelines/files.d.ts +217 -0
- package/resources/pipelines/files.d.ts.map +1 -0
- package/resources/pipelines/files.js +62 -0
- package/resources/pipelines/files.js.map +1 -0
- package/resources/pipelines/files.mjs +58 -0
- package/resources/pipelines/files.mjs.map +1 -0
- package/resources/pipelines/images.d.mts +125 -0
- package/resources/pipelines/images.d.mts.map +1 -0
- package/resources/pipelines/images.d.ts +125 -0
- package/resources/pipelines/images.d.ts.map +1 -0
- package/resources/pipelines/images.js +39 -0
- package/resources/pipelines/images.js.map +1 -0
- package/resources/pipelines/images.mjs +35 -0
- package/resources/pipelines/images.mjs.map +1 -0
- package/resources/pipelines/index.d.mts +8 -0
- package/resources/pipelines/index.d.mts.map +1 -0
- package/resources/pipelines/index.d.ts +8 -0
- package/resources/pipelines/index.d.ts.map +1 -0
- package/resources/pipelines/index.js +19 -0
- package/resources/pipelines/index.js.map +1 -0
- package/resources/pipelines/index.mjs +9 -0
- package/resources/pipelines/index.mjs.map +1 -0
- package/resources/pipelines/metadata.d.mts +24 -0
- package/resources/pipelines/metadata.d.mts.map +1 -0
- package/resources/pipelines/metadata.d.ts +24 -0
- package/resources/pipelines/metadata.d.ts.map +1 -0
- package/resources/pipelines/metadata.js +27 -0
- package/resources/pipelines/metadata.js.map +1 -0
- package/resources/pipelines/metadata.mjs +23 -0
- package/resources/pipelines/metadata.mjs.map +1 -0
- package/resources/pipelines/pipelines.d.mts +1504 -0
- package/resources/pipelines/pipelines.d.mts.map +1 -0
- package/resources/pipelines/pipelines.d.ts +1504 -0
- package/resources/pipelines/pipelines.d.ts.map +1 -0
- package/resources/pipelines/pipelines.js +106 -0
- package/resources/pipelines/pipelines.js.map +1 -0
- package/resources/pipelines/pipelines.mjs +101 -0
- package/resources/pipelines/pipelines.mjs.map +1 -0
- package/resources/pipelines/sync.d.mts +16 -0
- package/resources/pipelines/sync.d.mts.map +1 -0
- package/resources/pipelines/sync.d.ts +16 -0
- package/resources/pipelines/sync.d.ts.map +1 -0
- package/resources/pipelines/sync.js +23 -0
- package/resources/pipelines/sync.js.map +1 -0
- package/resources/pipelines/sync.mjs +19 -0
- package/resources/pipelines/sync.mjs.map +1 -0
- package/resources/pipelines.d.mts +2 -0
- package/resources/pipelines.d.mts.map +1 -0
- package/resources/pipelines.d.ts +2 -0
- package/resources/pipelines.d.ts.map +1 -0
- package/resources/pipelines.js +6 -0
- package/resources/pipelines.js.map +1 -0
- package/resources/pipelines.mjs +3 -0
- package/resources/pipelines.mjs.map +1 -0
- package/resources/projects.d.mts +52 -0
- package/resources/projects.d.mts.map +1 -0
- package/resources/projects.d.ts +52 -0
- package/resources/projects.d.ts.map +1 -0
- package/resources/projects.js +22 -0
- package/resources/projects.js.map +1 -0
- package/resources/projects.mjs +18 -0
- package/resources/projects.mjs.map +1 -0
- package/resources/retrievers/index.d.mts +2 -0
- package/resources/retrievers/index.d.mts.map +1 -0
- package/resources/retrievers/index.d.ts +2 -0
- package/resources/retrievers/index.d.ts.map +1 -0
- package/resources/retrievers/index.js +7 -0
- package/resources/retrievers/index.js.map +1 -0
- package/resources/retrievers/index.mjs +3 -0
- package/resources/retrievers/index.mjs.map +1 -0
- package/resources/retrievers/retriever.d.mts +41 -0
- package/resources/retrievers/retriever.d.mts.map +1 -0
- package/resources/retrievers/retriever.d.ts +41 -0
- package/resources/retrievers/retriever.d.ts.map +1 -0
- package/resources/retrievers/retriever.js +21 -0
- package/resources/retrievers/retriever.js.map +1 -0
- package/resources/retrievers/retriever.mjs +17 -0
- package/resources/retrievers/retriever.mjs.map +1 -0
- package/resources/retrievers/retrievers.d.mts +264 -0
- package/resources/retrievers/retrievers.d.mts.map +1 -0
- package/resources/retrievers/retrievers.d.ts +264 -0
- package/resources/retrievers/retrievers.d.ts.map +1 -0
- package/resources/retrievers/retrievers.js +77 -0
- package/resources/retrievers/retrievers.js.map +1 -0
- package/resources/retrievers/retrievers.mjs +72 -0
- package/resources/retrievers/retrievers.mjs.map +1 -0
- package/resources/retrievers.d.mts +2 -0
- package/resources/retrievers.d.mts.map +1 -0
- package/resources/retrievers.d.ts +2 -0
- package/resources/retrievers.d.ts.map +1 -0
- package/resources/retrievers.js +6 -0
- package/resources/retrievers.js.map +1 -0
- package/resources/retrievers.mjs +3 -0
- package/resources/retrievers.mjs.map +1 -0
- package/resources/shared.d.mts +498 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +498 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1089 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +754 -0
- package/src/core/polling.ts +145 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +23 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/beta/agent-data.ts +466 -0
- package/src/resources/beta/batch/batch.ts +893 -0
- package/src/resources/beta/batch/index.ts +22 -0
- package/src/resources/beta/batch/job-items.ts +576 -0
- package/src/resources/beta/batch.ts +3 -0
- package/src/resources/beta/beta.ts +185 -0
- package/src/resources/beta/directories/directories.ts +391 -0
- package/src/resources/beta/directories/files.ts +554 -0
- package/src/resources/beta/directories/index.ts +30 -0
- package/src/resources/beta/directories.ts +3 -0
- package/src/resources/beta/index.ts +79 -0
- package/src/resources/beta/parse-configurations.ts +313 -0
- package/src/resources/beta/sheets.ts +485 -0
- package/src/resources/beta/split.ts +500 -0
- package/src/resources/beta.ts +3 -0
- package/src/resources/classifier/classifier.ts +92 -0
- package/src/resources/classifier/index.ts +15 -0
- package/src/resources/classifier/jobs.ts +386 -0
- package/src/resources/classifier.ts +3 -0
- package/src/resources/data-sinks.ts +174 -0
- package/src/resources/data-sources.ts +256 -0
- package/src/resources/extraction/extraction-agents/extraction-agents.ts +196 -0
- package/src/resources/extraction/extraction-agents/index.ts +18 -0
- package/src/resources/extraction/extraction-agents/schema.ts +100 -0
- package/src/resources/extraction/extraction-agents.ts +3 -0
- package/src/resources/extraction/extraction.ts +224 -0
- package/src/resources/extraction/index.ts +34 -0
- package/src/resources/extraction/jobs.ts +408 -0
- package/src/resources/extraction/runs.ts +315 -0
- package/src/resources/extraction.ts +3 -0
- package/src/resources/files.ts +463 -0
- package/src/resources/index.ts +118 -0
- package/src/resources/parsing.ts +1991 -0
- package/src/resources/pipelines/data-sources.ts +245 -0
- package/src/resources/pipelines/documents.ts +323 -0
- package/src/resources/pipelines/files.ts +306 -0
- package/src/resources/pipelines/images.ts +194 -0
- package/src/resources/pipelines/index.ts +99 -0
- package/src/resources/pipelines/metadata.ts +48 -0
- package/src/resources/pipelines/pipelines.ts +2214 -0
- package/src/resources/pipelines/sync.ts +24 -0
- package/src/resources/pipelines.ts +3 -0
- package/src/resources/projects.ts +84 -0
- package/src/resources/retrievers/index.ts +18 -0
- package/src/resources/retrievers/retriever.ts +62 -0
- package/src/resources/retrievers/retrievers.ts +379 -0
- package/src/resources/retrievers.ts +3 -0
- package/src/resources/shared.ts +635 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,2214 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as PipelinesAPI from './pipelines';
|
|
5
|
+
import * as DataSinksAPI from '../data-sinks';
|
|
6
|
+
import * as ParsingAPI from '../parsing';
|
|
7
|
+
import * as Shared from '../shared';
|
|
8
|
+
import * as JobsAPI from '../extraction/jobs';
|
|
9
|
+
import * as DataSourcesAPI from './data-sources';
|
|
10
|
+
import {
|
|
11
|
+
DataSourceGetDataSourcesResponse,
|
|
12
|
+
DataSourceGetStatusParams,
|
|
13
|
+
DataSourceSyncParams,
|
|
14
|
+
DataSourceUpdateDataSourcesParams,
|
|
15
|
+
DataSourceUpdateDataSourcesResponse,
|
|
16
|
+
DataSourceUpdateParams,
|
|
17
|
+
DataSources,
|
|
18
|
+
PipelineDataSource,
|
|
19
|
+
} from './data-sources';
|
|
20
|
+
import * as DocumentsAPI from './documents';
|
|
21
|
+
import {
|
|
22
|
+
CloudDocument,
|
|
23
|
+
CloudDocumentCreate,
|
|
24
|
+
CloudDocumentsPaginatedCloudDocuments,
|
|
25
|
+
DocumentCreateParams,
|
|
26
|
+
DocumentCreateResponse,
|
|
27
|
+
DocumentDeleteParams,
|
|
28
|
+
DocumentGetChunksParams,
|
|
29
|
+
DocumentGetChunksResponse,
|
|
30
|
+
DocumentGetParams,
|
|
31
|
+
DocumentGetStatusParams,
|
|
32
|
+
DocumentListParams,
|
|
33
|
+
DocumentSyncParams,
|
|
34
|
+
DocumentSyncResponse,
|
|
35
|
+
DocumentUpsertParams,
|
|
36
|
+
DocumentUpsertResponse,
|
|
37
|
+
Documents,
|
|
38
|
+
TextNode,
|
|
39
|
+
} from './documents';
|
|
40
|
+
import * as FilesAPI from './files';
|
|
41
|
+
import {
|
|
42
|
+
FileCreateParams,
|
|
43
|
+
FileCreateResponse,
|
|
44
|
+
FileDeleteParams,
|
|
45
|
+
FileGetStatusCountsParams,
|
|
46
|
+
FileGetStatusCountsResponse,
|
|
47
|
+
FileGetStatusParams,
|
|
48
|
+
FileListParams,
|
|
49
|
+
FileUpdateParams,
|
|
50
|
+
Files,
|
|
51
|
+
PipelineFile,
|
|
52
|
+
PipelineFilesPaginatedPipelineFiles,
|
|
53
|
+
} from './files';
|
|
54
|
+
import * as ImagesAPI from './images';
|
|
55
|
+
import {
|
|
56
|
+
ImageGetPageFigureParams,
|
|
57
|
+
ImageGetPageFigureResponse,
|
|
58
|
+
ImageGetPageScreenshotParams,
|
|
59
|
+
ImageGetPageScreenshotResponse,
|
|
60
|
+
ImageListPageFiguresParams,
|
|
61
|
+
ImageListPageFiguresResponse,
|
|
62
|
+
ImageListPageScreenshotsParams,
|
|
63
|
+
ImageListPageScreenshotsResponse,
|
|
64
|
+
Images,
|
|
65
|
+
} from './images';
|
|
66
|
+
import * as MetadataAPI from './metadata';
|
|
67
|
+
import { Metadata, MetadataCreateParams, MetadataCreateResponse } from './metadata';
|
|
68
|
+
import * as SyncAPI from './sync';
|
|
69
|
+
import { Sync } from './sync';
|
|
70
|
+
import { APIPromise } from '../../core/api-promise';
|
|
71
|
+
import { buildHeaders } from '../../internal/headers';
|
|
72
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
73
|
+
import { path } from '../../internal/utils/path';
|
|
74
|
+
|
|
75
|
+
export class Pipelines extends APIResource {
|
|
76
|
+
sync: SyncAPI.Sync = new SyncAPI.Sync(this._client);
|
|
77
|
+
dataSources: DataSourcesAPI.DataSources = new DataSourcesAPI.DataSources(this._client);
|
|
78
|
+
images: ImagesAPI.Images = new ImagesAPI.Images(this._client);
|
|
79
|
+
files: FilesAPI.Files = new FilesAPI.Files(this._client);
|
|
80
|
+
metadata: MetadataAPI.Metadata = new MetadataAPI.Metadata(this._client);
|
|
81
|
+
documents: DocumentsAPI.Documents = new DocumentsAPI.Documents(this._client);
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Create a new pipeline for a project.
|
|
85
|
+
*/
|
|
86
|
+
create(params: PipelineCreateParams, options?: RequestOptions): APIPromise<Pipeline> {
|
|
87
|
+
const { organization_id, project_id, ...body } = params;
|
|
88
|
+
return this._client.post('/api/v1/pipelines', {
|
|
89
|
+
query: { organization_id, project_id },
|
|
90
|
+
body,
|
|
91
|
+
...options,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Get retrieval results for a managed pipeline and a query
|
|
97
|
+
*/
|
|
98
|
+
retrieve(
|
|
99
|
+
pipelineID: string,
|
|
100
|
+
params: PipelineRetrieveParams,
|
|
101
|
+
options?: RequestOptions,
|
|
102
|
+
): APIPromise<PipelineRetrieveResponse> {
|
|
103
|
+
const { organization_id, project_id, ...body } = params;
|
|
104
|
+
return this._client.post(path`/api/v1/pipelines/${pipelineID}/retrieve`, {
|
|
105
|
+
query: { organization_id, project_id },
|
|
106
|
+
body,
|
|
107
|
+
...options,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Update an existing pipeline for a project.
|
|
113
|
+
*/
|
|
114
|
+
update(pipelineID: string, body: PipelineUpdateParams, options?: RequestOptions): APIPromise<Pipeline> {
|
|
115
|
+
return this._client.put(path`/api/v1/pipelines/${pipelineID}`, { body, ...options });
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Search for pipelines by various parameters.
|
|
120
|
+
*/
|
|
121
|
+
list(
|
|
122
|
+
query: PipelineListParams | null | undefined = {},
|
|
123
|
+
options?: RequestOptions,
|
|
124
|
+
): APIPromise<PipelineListResponse> {
|
|
125
|
+
return this._client.get('/api/v1/pipelines', { query, ...options });
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Delete a pipeline by ID.
|
|
130
|
+
*/
|
|
131
|
+
delete(pipelineID: string, options?: RequestOptions): APIPromise<void> {
|
|
132
|
+
return this._client.delete(path`/api/v1/pipelines/${pipelineID}`, {
|
|
133
|
+
...options,
|
|
134
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Get a pipeline by ID for a given project.
|
|
140
|
+
*/
|
|
141
|
+
get(pipelineID: string, options?: RequestOptions): APIPromise<Pipeline> {
|
|
142
|
+
return this._client.get(path`/api/v1/pipelines/${pipelineID}`, options);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Get the status of a pipeline by ID.
|
|
147
|
+
*/
|
|
148
|
+
getStatus(
|
|
149
|
+
pipelineID: string,
|
|
150
|
+
query: PipelineGetStatusParams | null | undefined = {},
|
|
151
|
+
options?: RequestOptions,
|
|
152
|
+
): APIPromise<ManagedIngestionStatusResponse> {
|
|
153
|
+
return this._client.get(path`/api/v1/pipelines/${pipelineID}/status`, { query, ...options });
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Upsert a pipeline for a project. Updates if a pipeline with the same name and
|
|
158
|
+
* project_id already exists. Otherwise, creates a new pipeline.
|
|
159
|
+
*/
|
|
160
|
+
upsert(params: PipelineUpsertParams, options?: RequestOptions): APIPromise<Pipeline> {
|
|
161
|
+
const { organization_id, project_id, ...body } = params;
|
|
162
|
+
return this._client.put('/api/v1/pipelines', {
|
|
163
|
+
query: { organization_id, project_id },
|
|
164
|
+
body,
|
|
165
|
+
...options,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface AdvancedModeTransformConfig {
|
|
171
|
+
/**
|
|
172
|
+
* Configuration for the chunking.
|
|
173
|
+
*/
|
|
174
|
+
chunking_config?:
|
|
175
|
+
| AdvancedModeTransformConfig.NoneChunkingConfig
|
|
176
|
+
| AdvancedModeTransformConfig.CharacterChunkingConfig
|
|
177
|
+
| AdvancedModeTransformConfig.TokenChunkingConfig
|
|
178
|
+
| AdvancedModeTransformConfig.SentenceChunkingConfig
|
|
179
|
+
| AdvancedModeTransformConfig.SemanticChunkingConfig;
|
|
180
|
+
|
|
181
|
+
mode?: 'advanced';
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Configuration for the segmentation.
|
|
185
|
+
*/
|
|
186
|
+
segmentation_config?:
|
|
187
|
+
| AdvancedModeTransformConfig.NoneSegmentationConfig
|
|
188
|
+
| AdvancedModeTransformConfig.PageSegmentationConfig
|
|
189
|
+
| AdvancedModeTransformConfig.ElementSegmentationConfig;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export namespace AdvancedModeTransformConfig {
|
|
193
|
+
export interface NoneChunkingConfig {
|
|
194
|
+
mode?: 'none';
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface CharacterChunkingConfig {
|
|
198
|
+
chunk_overlap?: number;
|
|
199
|
+
|
|
200
|
+
chunk_size?: number;
|
|
201
|
+
|
|
202
|
+
mode?: 'character';
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface TokenChunkingConfig {
|
|
206
|
+
chunk_overlap?: number;
|
|
207
|
+
|
|
208
|
+
chunk_size?: number;
|
|
209
|
+
|
|
210
|
+
mode?: 'token';
|
|
211
|
+
|
|
212
|
+
separator?: string;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface SentenceChunkingConfig {
|
|
216
|
+
chunk_overlap?: number;
|
|
217
|
+
|
|
218
|
+
chunk_size?: number;
|
|
219
|
+
|
|
220
|
+
mode?: 'sentence';
|
|
221
|
+
|
|
222
|
+
paragraph_separator?: string;
|
|
223
|
+
|
|
224
|
+
separator?: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export interface SemanticChunkingConfig {
|
|
228
|
+
breakpoint_percentile_threshold?: number;
|
|
229
|
+
|
|
230
|
+
buffer_size?: number;
|
|
231
|
+
|
|
232
|
+
mode?: 'semantic';
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface NoneSegmentationConfig {
|
|
236
|
+
mode?: 'none';
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface PageSegmentationConfig {
|
|
240
|
+
mode?: 'page';
|
|
241
|
+
|
|
242
|
+
page_separator?: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface ElementSegmentationConfig {
|
|
246
|
+
mode?: 'element';
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface AutoTransformConfig {
|
|
251
|
+
/**
|
|
252
|
+
* Chunk overlap for the transformation.
|
|
253
|
+
*/
|
|
254
|
+
chunk_overlap?: number;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Chunk size for the transformation.
|
|
258
|
+
*/
|
|
259
|
+
chunk_size?: number;
|
|
260
|
+
|
|
261
|
+
mode?: 'auto';
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export interface AzureOpenAIEmbedding {
|
|
265
|
+
/**
|
|
266
|
+
* Additional kwargs for the OpenAI API.
|
|
267
|
+
*/
|
|
268
|
+
additional_kwargs?: { [key: string]: unknown };
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The base URL for Azure deployment.
|
|
272
|
+
*/
|
|
273
|
+
api_base?: string;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* The OpenAI API key.
|
|
277
|
+
*/
|
|
278
|
+
api_key?: string | null;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* The version for Azure OpenAI API.
|
|
282
|
+
*/
|
|
283
|
+
api_version?: string;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* The Azure deployment to use.
|
|
287
|
+
*/
|
|
288
|
+
azure_deployment?: string | null;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* The Azure endpoint to use.
|
|
292
|
+
*/
|
|
293
|
+
azure_endpoint?: string | null;
|
|
294
|
+
|
|
295
|
+
class_name?: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* The default headers for API requests.
|
|
299
|
+
*/
|
|
300
|
+
default_headers?: { [key: string]: string } | null;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The number of dimensions on the output embedding vectors. Works only with v3
|
|
304
|
+
* embedding models.
|
|
305
|
+
*/
|
|
306
|
+
dimensions?: number | null;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* The batch size for embedding calls.
|
|
310
|
+
*/
|
|
311
|
+
embed_batch_size?: number;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Maximum number of retries.
|
|
315
|
+
*/
|
|
316
|
+
max_retries?: number;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* The name of the OpenAI embedding model.
|
|
320
|
+
*/
|
|
321
|
+
model_name?: string;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* The number of workers to use for async embedding calls.
|
|
325
|
+
*/
|
|
326
|
+
num_workers?: number | null;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Reuse the OpenAI client between requests. When doing anything with large volumes
|
|
330
|
+
* of async API calls, setting this to false can improve stability.
|
|
331
|
+
*/
|
|
332
|
+
reuse_client?: boolean;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Timeout for each request.
|
|
336
|
+
*/
|
|
337
|
+
timeout?: number;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export interface AzureOpenAIEmbeddingConfig {
|
|
341
|
+
/**
|
|
342
|
+
* Configuration for the Azure OpenAI embedding model.
|
|
343
|
+
*/
|
|
344
|
+
component?: AzureOpenAIEmbedding;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Type of the embedding model.
|
|
348
|
+
*/
|
|
349
|
+
type?: 'AZURE_EMBEDDING';
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export interface BedrockEmbedding {
|
|
353
|
+
/**
|
|
354
|
+
* Additional kwargs for the bedrock client.
|
|
355
|
+
*/
|
|
356
|
+
additional_kwargs?: { [key: string]: unknown };
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* AWS Access Key ID to use
|
|
360
|
+
*/
|
|
361
|
+
aws_access_key_id?: string | null;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* AWS Secret Access Key to use
|
|
365
|
+
*/
|
|
366
|
+
aws_secret_access_key?: string | null;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* AWS Session Token to use
|
|
370
|
+
*/
|
|
371
|
+
aws_session_token?: string | null;
|
|
372
|
+
|
|
373
|
+
class_name?: string;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* The batch size for embedding calls.
|
|
377
|
+
*/
|
|
378
|
+
embed_batch_size?: number;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* The maximum number of API retries.
|
|
382
|
+
*/
|
|
383
|
+
max_retries?: number;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* The modelId of the Bedrock model to use.
|
|
387
|
+
*/
|
|
388
|
+
model_name?: string;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* The number of workers to use for async embedding calls.
|
|
392
|
+
*/
|
|
393
|
+
num_workers?: number | null;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* The name of aws profile to use. If not given, then the default profile is used.
|
|
397
|
+
*/
|
|
398
|
+
profile_name?: string | null;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* AWS region name to use. Uses region configured in AWS CLI if not passed
|
|
402
|
+
*/
|
|
403
|
+
region_name?: string | null;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* The timeout for the Bedrock API request in seconds. It will be used for both
|
|
407
|
+
* connect and read timeouts.
|
|
408
|
+
*/
|
|
409
|
+
timeout?: number;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export interface BedrockEmbeddingConfig {
|
|
413
|
+
/**
|
|
414
|
+
* Configuration for the Bedrock embedding model.
|
|
415
|
+
*/
|
|
416
|
+
component?: BedrockEmbedding;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Type of the embedding model.
|
|
420
|
+
*/
|
|
421
|
+
type?: 'BEDROCK_EMBEDDING';
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export interface CohereEmbedding {
|
|
425
|
+
/**
|
|
426
|
+
* The Cohere API key.
|
|
427
|
+
*/
|
|
428
|
+
api_key: string | null;
|
|
429
|
+
|
|
430
|
+
class_name?: string;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* The batch size for embedding calls.
|
|
434
|
+
*/
|
|
435
|
+
embed_batch_size?: number;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Embedding type. If not provided float embedding_type is used when needed.
|
|
439
|
+
*/
|
|
440
|
+
embedding_type?: string;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Model Input type. If not provided, search_document and search_query are used
|
|
444
|
+
* when needed.
|
|
445
|
+
*/
|
|
446
|
+
input_type?: string | null;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* The modelId of the Cohere model to use.
|
|
450
|
+
*/
|
|
451
|
+
model_name?: string;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* The number of workers to use for async embedding calls.
|
|
455
|
+
*/
|
|
456
|
+
num_workers?: number | null;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Truncation type - START/ END/ NONE
|
|
460
|
+
*/
|
|
461
|
+
truncate?: string;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export interface CohereEmbeddingConfig {
|
|
465
|
+
/**
|
|
466
|
+
* Configuration for the Cohere embedding model.
|
|
467
|
+
*/
|
|
468
|
+
component?: CohereEmbedding;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Type of the embedding model.
|
|
472
|
+
*/
|
|
473
|
+
type?: 'COHERE_EMBEDDING';
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Schema for creating a data sink.
|
|
478
|
+
*/
|
|
479
|
+
export interface DataSinkCreate {
|
|
480
|
+
/**
|
|
481
|
+
* Component that implements the data sink
|
|
482
|
+
*/
|
|
483
|
+
component:
|
|
484
|
+
| { [key: string]: unknown }
|
|
485
|
+
| Shared.CloudPineconeVectorStore
|
|
486
|
+
| Shared.CloudPostgresVectorStore
|
|
487
|
+
| Shared.CloudQdrantVectorStore
|
|
488
|
+
| Shared.CloudAzureAISearchVectorStore
|
|
489
|
+
| Shared.CloudMongoDBAtlasVectorSearch
|
|
490
|
+
| Shared.CloudMilvusVectorStore
|
|
491
|
+
| Shared.CloudAstraDBVectorStore;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* The name of the data sink.
|
|
495
|
+
*/
|
|
496
|
+
name: string;
|
|
497
|
+
|
|
498
|
+
sink_type: 'PINECONE' | 'POSTGRES' | 'QDRANT' | 'AZUREAI_SEARCH' | 'MONGODB_ATLAS' | 'MILVUS' | 'ASTRA_DB';
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export interface GeminiEmbedding {
|
|
502
|
+
/**
|
|
503
|
+
* API base to access the model. Defaults to None.
|
|
504
|
+
*/
|
|
505
|
+
api_base?: string | null;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* API key to access the model. Defaults to None.
|
|
509
|
+
*/
|
|
510
|
+
api_key?: string | null;
|
|
511
|
+
|
|
512
|
+
class_name?: string;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The batch size for embedding calls.
|
|
516
|
+
*/
|
|
517
|
+
embed_batch_size?: number;
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* The modelId of the Gemini model to use.
|
|
521
|
+
*/
|
|
522
|
+
model_name?: string;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* The number of workers to use for async embedding calls.
|
|
526
|
+
*/
|
|
527
|
+
num_workers?: number | null;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* The task for embedding model.
|
|
531
|
+
*/
|
|
532
|
+
task_type?: string | null;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Title is only applicable for retrieval_document tasks, and is used to represent
|
|
536
|
+
* a document title. For other tasks, title is invalid.
|
|
537
|
+
*/
|
|
538
|
+
title?: string | null;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Transport to access the model. Defaults to None.
|
|
542
|
+
*/
|
|
543
|
+
transport?: string | null;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
export interface GeminiEmbeddingConfig {
|
|
547
|
+
/**
|
|
548
|
+
* Configuration for the Gemini embedding model.
|
|
549
|
+
*/
|
|
550
|
+
component?: GeminiEmbedding;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Type of the embedding model.
|
|
554
|
+
*/
|
|
555
|
+
type?: 'GEMINI_EMBEDDING';
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export interface HuggingFaceInferenceAPIEmbedding {
|
|
559
|
+
/**
|
|
560
|
+
* Hugging Face token. Will default to the locally saved token. Pass token=False if
|
|
561
|
+
* you don’t want to send your token to the server.
|
|
562
|
+
*/
|
|
563
|
+
token?: string | boolean | null;
|
|
564
|
+
|
|
565
|
+
class_name?: string;
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Additional cookies to send to the server.
|
|
569
|
+
*/
|
|
570
|
+
cookies?: { [key: string]: string } | null;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* The batch size for embedding calls.
|
|
574
|
+
*/
|
|
575
|
+
embed_batch_size?: number;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Additional headers to send to the server. By default only the authorization and
|
|
579
|
+
* user-agent headers are sent. Values in this dictionary will override the default
|
|
580
|
+
* values.
|
|
581
|
+
*/
|
|
582
|
+
headers?: { [key: string]: string } | null;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Hugging Face model name. If None, the task will be used.
|
|
586
|
+
*/
|
|
587
|
+
model_name?: string | null;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* The number of workers to use for async embedding calls.
|
|
591
|
+
*/
|
|
592
|
+
num_workers?: number | null;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Enum of possible pooling choices with pooling behaviors.
|
|
596
|
+
*/
|
|
597
|
+
pooling?: 'cls' | 'mean' | 'last' | null;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Instruction to prepend during query embedding.
|
|
601
|
+
*/
|
|
602
|
+
query_instruction?: string | null;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Optional task to pick Hugging Face's recommended model, used when model_name is
|
|
606
|
+
* left as default of None.
|
|
607
|
+
*/
|
|
608
|
+
task?: string | null;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Instruction to prepend during text embedding.
|
|
612
|
+
*/
|
|
613
|
+
text_instruction?: string | null;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* The maximum number of seconds to wait for a response from the server. Loading a
|
|
617
|
+
* new model in Inference API can take up to several minutes. Defaults to None,
|
|
618
|
+
* meaning it will loop until the server is available.
|
|
619
|
+
*/
|
|
620
|
+
timeout?: number | null;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
export interface HuggingFaceInferenceAPIEmbeddingConfig {
|
|
624
|
+
/**
|
|
625
|
+
* Configuration for the HuggingFace Inference API embedding model.
|
|
626
|
+
*/
|
|
627
|
+
component?: HuggingFaceInferenceAPIEmbedding;
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Type of the embedding model.
|
|
631
|
+
*/
|
|
632
|
+
type?: 'HUGGINGFACE_API_EMBEDDING';
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Settings that can be configured for how to use LlamaParse to parse files within
|
|
637
|
+
* a LlamaCloud pipeline.
|
|
638
|
+
*/
|
|
639
|
+
export interface LlamaParseParameters {
|
|
640
|
+
adaptive_long_table?: boolean | null;
|
|
641
|
+
|
|
642
|
+
aggressive_table_extraction?: boolean | null;
|
|
643
|
+
|
|
644
|
+
annotate_links?: boolean | null;
|
|
645
|
+
|
|
646
|
+
auto_mode?: boolean | null;
|
|
647
|
+
|
|
648
|
+
auto_mode_configuration_json?: string | null;
|
|
649
|
+
|
|
650
|
+
auto_mode_trigger_on_image_in_page?: boolean | null;
|
|
651
|
+
|
|
652
|
+
auto_mode_trigger_on_regexp_in_page?: string | null;
|
|
653
|
+
|
|
654
|
+
auto_mode_trigger_on_table_in_page?: boolean | null;
|
|
655
|
+
|
|
656
|
+
auto_mode_trigger_on_text_in_page?: string | null;
|
|
657
|
+
|
|
658
|
+
azure_openai_api_version?: string | null;
|
|
659
|
+
|
|
660
|
+
azure_openai_deployment_name?: string | null;
|
|
661
|
+
|
|
662
|
+
azure_openai_endpoint?: string | null;
|
|
663
|
+
|
|
664
|
+
azure_openai_key?: string | null;
|
|
665
|
+
|
|
666
|
+
bbox_bottom?: number | null;
|
|
667
|
+
|
|
668
|
+
bbox_left?: number | null;
|
|
669
|
+
|
|
670
|
+
bbox_right?: number | null;
|
|
671
|
+
|
|
672
|
+
bbox_top?: number | null;
|
|
673
|
+
|
|
674
|
+
bounding_box?: string | null;
|
|
675
|
+
|
|
676
|
+
compact_markdown_table?: boolean | null;
|
|
677
|
+
|
|
678
|
+
complemental_formatting_instruction?: string | null;
|
|
679
|
+
|
|
680
|
+
content_guideline_instruction?: string | null;
|
|
681
|
+
|
|
682
|
+
continuous_mode?: boolean | null;
|
|
683
|
+
|
|
684
|
+
disable_image_extraction?: boolean | null;
|
|
685
|
+
|
|
686
|
+
disable_ocr?: boolean | null;
|
|
687
|
+
|
|
688
|
+
disable_reconstruction?: boolean | null;
|
|
689
|
+
|
|
690
|
+
do_not_cache?: boolean | null;
|
|
691
|
+
|
|
692
|
+
do_not_unroll_columns?: boolean | null;
|
|
693
|
+
|
|
694
|
+
extract_charts?: boolean | null;
|
|
695
|
+
|
|
696
|
+
extract_layout?: boolean | null;
|
|
697
|
+
|
|
698
|
+
extract_printed_page_number?: boolean | null;
|
|
699
|
+
|
|
700
|
+
fast_mode?: boolean | null;
|
|
701
|
+
|
|
702
|
+
formatting_instruction?: string | null;
|
|
703
|
+
|
|
704
|
+
gpt4o_api_key?: string | null;
|
|
705
|
+
|
|
706
|
+
gpt4o_mode?: boolean | null;
|
|
707
|
+
|
|
708
|
+
guess_xlsx_sheet_name?: boolean | null;
|
|
709
|
+
|
|
710
|
+
hide_footers?: boolean | null;
|
|
711
|
+
|
|
712
|
+
hide_headers?: boolean | null;
|
|
713
|
+
|
|
714
|
+
high_res_ocr?: boolean | null;
|
|
715
|
+
|
|
716
|
+
html_make_all_elements_visible?: boolean | null;
|
|
717
|
+
|
|
718
|
+
html_remove_fixed_elements?: boolean | null;
|
|
719
|
+
|
|
720
|
+
html_remove_navigation_elements?: boolean | null;
|
|
721
|
+
|
|
722
|
+
http_proxy?: string | null;
|
|
723
|
+
|
|
724
|
+
ignore_document_elements_for_layout_detection?: boolean | null;
|
|
725
|
+
|
|
726
|
+
images_to_save?: Array<'screenshot' | 'embedded' | 'layout'> | null;
|
|
727
|
+
|
|
728
|
+
inline_images_in_markdown?: boolean | null;
|
|
729
|
+
|
|
730
|
+
input_s3_path?: string | null;
|
|
731
|
+
|
|
732
|
+
input_s3_region?: string | null;
|
|
733
|
+
|
|
734
|
+
input_url?: string | null;
|
|
735
|
+
|
|
736
|
+
internal_is_screenshot_job?: boolean | null;
|
|
737
|
+
|
|
738
|
+
invalidate_cache?: boolean | null;
|
|
739
|
+
|
|
740
|
+
is_formatting_instruction?: boolean | null;
|
|
741
|
+
|
|
742
|
+
job_timeout_extra_time_per_page_in_seconds?: number | null;
|
|
743
|
+
|
|
744
|
+
job_timeout_in_seconds?: number | null;
|
|
745
|
+
|
|
746
|
+
keep_page_separator_when_merging_tables?: boolean | null;
|
|
747
|
+
|
|
748
|
+
languages?: Array<ParsingAPI.ParsingLanguages>;
|
|
749
|
+
|
|
750
|
+
layout_aware?: boolean | null;
|
|
751
|
+
|
|
752
|
+
line_level_bounding_box?: boolean | null;
|
|
753
|
+
|
|
754
|
+
markdown_table_multiline_header_separator?: string | null;
|
|
755
|
+
|
|
756
|
+
max_pages?: number | null;
|
|
757
|
+
|
|
758
|
+
max_pages_enforced?: number | null;
|
|
759
|
+
|
|
760
|
+
merge_tables_across_pages_in_markdown?: boolean | null;
|
|
761
|
+
|
|
762
|
+
model?: string | null;
|
|
763
|
+
|
|
764
|
+
outlined_table_extraction?: boolean | null;
|
|
765
|
+
|
|
766
|
+
output_pdf_of_document?: boolean | null;
|
|
767
|
+
|
|
768
|
+
output_s3_path_prefix?: string | null;
|
|
769
|
+
|
|
770
|
+
output_s3_region?: string | null;
|
|
771
|
+
|
|
772
|
+
output_tables_as_HTML?: boolean | null;
|
|
773
|
+
|
|
774
|
+
page_error_tolerance?: number | null;
|
|
775
|
+
|
|
776
|
+
page_footer_prefix?: string | null;
|
|
777
|
+
|
|
778
|
+
page_footer_suffix?: string | null;
|
|
779
|
+
|
|
780
|
+
page_header_prefix?: string | null;
|
|
781
|
+
|
|
782
|
+
page_header_suffix?: string | null;
|
|
783
|
+
|
|
784
|
+
page_prefix?: string | null;
|
|
785
|
+
|
|
786
|
+
page_separator?: string | null;
|
|
787
|
+
|
|
788
|
+
page_suffix?: string | null;
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Enum for representing the mode of parsing to be used.
|
|
792
|
+
*/
|
|
793
|
+
parse_mode?: ParsingAPI.ParsingMode | null;
|
|
794
|
+
|
|
795
|
+
parsing_instruction?: string | null;
|
|
796
|
+
|
|
797
|
+
precise_bounding_box?: boolean | null;
|
|
798
|
+
|
|
799
|
+
premium_mode?: boolean | null;
|
|
800
|
+
|
|
801
|
+
presentation_out_of_bounds_content?: boolean | null;
|
|
802
|
+
|
|
803
|
+
presentation_skip_embedded_data?: boolean | null;
|
|
804
|
+
|
|
805
|
+
preserve_layout_alignment_across_pages?: boolean | null;
|
|
806
|
+
|
|
807
|
+
preserve_very_small_text?: boolean | null;
|
|
808
|
+
|
|
809
|
+
preset?: string | null;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* The priority for the request. This field may be ignored or overwritten depending
|
|
813
|
+
* on the organization tier.
|
|
814
|
+
*/
|
|
815
|
+
priority?: 'low' | 'medium' | 'high' | 'critical' | null;
|
|
816
|
+
|
|
817
|
+
project_id?: string | null;
|
|
818
|
+
|
|
819
|
+
remove_hidden_text?: boolean | null;
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Enum for representing the different available page error handling modes.
|
|
823
|
+
*/
|
|
824
|
+
replace_failed_page_mode?: ParsingAPI.FailPageMode | null;
|
|
825
|
+
|
|
826
|
+
replace_failed_page_with_error_message_prefix?: string | null;
|
|
827
|
+
|
|
828
|
+
replace_failed_page_with_error_message_suffix?: string | null;
|
|
829
|
+
|
|
830
|
+
save_images?: boolean | null;
|
|
831
|
+
|
|
832
|
+
skip_diagonal_text?: boolean | null;
|
|
833
|
+
|
|
834
|
+
specialized_chart_parsing_agentic?: boolean | null;
|
|
835
|
+
|
|
836
|
+
specialized_chart_parsing_efficient?: boolean | null;
|
|
837
|
+
|
|
838
|
+
specialized_chart_parsing_plus?: boolean | null;
|
|
839
|
+
|
|
840
|
+
specialized_image_parsing?: boolean | null;
|
|
841
|
+
|
|
842
|
+
spreadsheet_extract_sub_tables?: boolean | null;
|
|
843
|
+
|
|
844
|
+
spreadsheet_force_formula_computation?: boolean | null;
|
|
845
|
+
|
|
846
|
+
strict_mode_buggy_font?: boolean | null;
|
|
847
|
+
|
|
848
|
+
strict_mode_image_extraction?: boolean | null;
|
|
849
|
+
|
|
850
|
+
strict_mode_image_ocr?: boolean | null;
|
|
851
|
+
|
|
852
|
+
strict_mode_reconstruction?: boolean | null;
|
|
853
|
+
|
|
854
|
+
structured_output?: boolean | null;
|
|
855
|
+
|
|
856
|
+
structured_output_json_schema?: string | null;
|
|
857
|
+
|
|
858
|
+
structured_output_json_schema_name?: string | null;
|
|
859
|
+
|
|
860
|
+
system_prompt?: string | null;
|
|
861
|
+
|
|
862
|
+
system_prompt_append?: string | null;
|
|
863
|
+
|
|
864
|
+
take_screenshot?: boolean | null;
|
|
865
|
+
|
|
866
|
+
target_pages?: string | null;
|
|
867
|
+
|
|
868
|
+
tier?: string | null;
|
|
869
|
+
|
|
870
|
+
use_vendor_multimodal_model?: boolean | null;
|
|
871
|
+
|
|
872
|
+
user_prompt?: string | null;
|
|
873
|
+
|
|
874
|
+
vendor_multimodal_api_key?: string | null;
|
|
875
|
+
|
|
876
|
+
vendor_multimodal_model_name?: string | null;
|
|
877
|
+
|
|
878
|
+
version?: string | null;
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* The outbound webhook configurations
|
|
882
|
+
*/
|
|
883
|
+
webhook_configurations?: Array<JobsAPI.WebhookConfiguration> | null;
|
|
884
|
+
|
|
885
|
+
webhook_url?: string | null;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
export interface LlmParameters {
|
|
889
|
+
class_name?: string;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* The name of the model to use for LLM completions.
|
|
893
|
+
*/
|
|
894
|
+
model_name?:
|
|
895
|
+
| 'GPT_4O'
|
|
896
|
+
| 'GPT_4O_MINI'
|
|
897
|
+
| 'GPT_4_1'
|
|
898
|
+
| 'GPT_4_1_NANO'
|
|
899
|
+
| 'GPT_4_1_MINI'
|
|
900
|
+
| 'AZURE_OPENAI_GPT_4O'
|
|
901
|
+
| 'AZURE_OPENAI_GPT_4O_MINI'
|
|
902
|
+
| 'AZURE_OPENAI_GPT_4_1'
|
|
903
|
+
| 'AZURE_OPENAI_GPT_4_1_MINI'
|
|
904
|
+
| 'AZURE_OPENAI_GPT_4_1_NANO'
|
|
905
|
+
| 'CLAUDE_4_5_SONNET'
|
|
906
|
+
| 'BEDROCK_CLAUDE_3_5_SONNET_V1'
|
|
907
|
+
| 'BEDROCK_CLAUDE_3_5_SONNET_V2'
|
|
908
|
+
| 'VERTEX_AI_CLAUDE_3_5_SONNET_V2';
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* The system prompt to use for the completion.
|
|
912
|
+
*/
|
|
913
|
+
system_prompt?: string | null;
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* The temperature value for the model.
|
|
917
|
+
*/
|
|
918
|
+
temperature?: number | null;
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Whether to use chain of thought reasoning.
|
|
922
|
+
*/
|
|
923
|
+
use_chain_of_thought_reasoning?: boolean | null;
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Whether to show citations in the response.
|
|
927
|
+
*/
|
|
928
|
+
use_citation?: boolean | null;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
export interface ManagedIngestionStatusResponse {
|
|
932
|
+
/**
|
|
933
|
+
* Status of the ingestion.
|
|
934
|
+
*/
|
|
935
|
+
status: 'NOT_STARTED' | 'IN_PROGRESS' | 'SUCCESS' | 'ERROR' | 'PARTIAL_SUCCESS' | 'CANCELLED';
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* Date of the deployment.
|
|
939
|
+
*/
|
|
940
|
+
deployment_date?: string | null;
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* When the status is effective
|
|
944
|
+
*/
|
|
945
|
+
effective_at?: string | null;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* List of errors that occurred during ingestion.
|
|
949
|
+
*/
|
|
950
|
+
error?: Array<ManagedIngestionStatusResponse.Error> | null;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* ID of the latest job.
|
|
954
|
+
*/
|
|
955
|
+
job_id?: string | null;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
export namespace ManagedIngestionStatusResponse {
|
|
959
|
+
export interface Error {
|
|
960
|
+
/**
|
|
961
|
+
* ID of the job that failed.
|
|
962
|
+
*/
|
|
963
|
+
job_id: string;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* List of errors that occurred during ingestion.
|
|
967
|
+
*/
|
|
968
|
+
message: string;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Name of the job that failed.
|
|
972
|
+
*/
|
|
973
|
+
step:
|
|
974
|
+
| 'MANAGED_INGESTION'
|
|
975
|
+
| 'DATA_SOURCE'
|
|
976
|
+
| 'FILE_UPDATER'
|
|
977
|
+
| 'PARSE'
|
|
978
|
+
| 'TRANSFORM'
|
|
979
|
+
| 'INGESTION'
|
|
980
|
+
| 'METADATA_UPDATE';
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* Message role.
|
|
986
|
+
*/
|
|
987
|
+
export type MessageRole =
|
|
988
|
+
| 'system'
|
|
989
|
+
| 'developer'
|
|
990
|
+
| 'user'
|
|
991
|
+
| 'assistant'
|
|
992
|
+
| 'function'
|
|
993
|
+
| 'tool'
|
|
994
|
+
| 'chatbot'
|
|
995
|
+
| 'model';
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Metadata filters for vector stores.
|
|
999
|
+
*/
|
|
1000
|
+
export interface MetadataFilters {
|
|
1001
|
+
filters: Array<MetadataFilters.MetadataFilter | MetadataFilters>;
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* Vector store filter conditions to combine different filters.
|
|
1005
|
+
*/
|
|
1006
|
+
condition?: 'and' | 'or' | 'not' | null;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
export namespace MetadataFilters {
|
|
1010
|
+
/**
|
|
1011
|
+
* Comprehensive metadata filter for vector stores to support more operators.
|
|
1012
|
+
*
|
|
1013
|
+
* Value uses Strict types, as int, float and str are compatible types and were all
|
|
1014
|
+
* converted to string before.
|
|
1015
|
+
*
|
|
1016
|
+
* See: https://docs.pydantic.dev/latest/usage/types/#strict-types
|
|
1017
|
+
*/
|
|
1018
|
+
export interface MetadataFilter {
|
|
1019
|
+
key: string;
|
|
1020
|
+
|
|
1021
|
+
value: number | string | Array<string> | Array<number> | Array<number> | null;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Vector store filter operator.
|
|
1025
|
+
*/
|
|
1026
|
+
operator?:
|
|
1027
|
+
| '=='
|
|
1028
|
+
| '>'
|
|
1029
|
+
| '<'
|
|
1030
|
+
| '!='
|
|
1031
|
+
| '>='
|
|
1032
|
+
| '<='
|
|
1033
|
+
| 'in'
|
|
1034
|
+
| 'nin'
|
|
1035
|
+
| 'any'
|
|
1036
|
+
| 'all'
|
|
1037
|
+
| 'text_match'
|
|
1038
|
+
| 'text_match_insensitive'
|
|
1039
|
+
| 'contains'
|
|
1040
|
+
| 'is_empty';
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
export interface OpenAIEmbedding {
|
|
1045
|
+
/**
|
|
1046
|
+
* Additional kwargs for the OpenAI API.
|
|
1047
|
+
*/
|
|
1048
|
+
additional_kwargs?: { [key: string]: unknown };
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* The base URL for OpenAI API.
|
|
1052
|
+
*/
|
|
1053
|
+
api_base?: string | null;
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* The OpenAI API key.
|
|
1057
|
+
*/
|
|
1058
|
+
api_key?: string | null;
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* The version for OpenAI API.
|
|
1062
|
+
*/
|
|
1063
|
+
api_version?: string | null;
|
|
1064
|
+
|
|
1065
|
+
class_name?: string;
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* The default headers for API requests.
|
|
1069
|
+
*/
|
|
1070
|
+
default_headers?: { [key: string]: string } | null;
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* The number of dimensions on the output embedding vectors. Works only with v3
|
|
1074
|
+
* embedding models.
|
|
1075
|
+
*/
|
|
1076
|
+
dimensions?: number | null;
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* The batch size for embedding calls.
|
|
1080
|
+
*/
|
|
1081
|
+
embed_batch_size?: number;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Maximum number of retries.
|
|
1085
|
+
*/
|
|
1086
|
+
max_retries?: number;
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* The name of the OpenAI embedding model.
|
|
1090
|
+
*/
|
|
1091
|
+
model_name?: string;
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* The number of workers to use for async embedding calls.
|
|
1095
|
+
*/
|
|
1096
|
+
num_workers?: number | null;
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Reuse the OpenAI client between requests. When doing anything with large volumes
|
|
1100
|
+
* of async API calls, setting this to false can improve stability.
|
|
1101
|
+
*/
|
|
1102
|
+
reuse_client?: boolean;
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* Timeout for each request.
|
|
1106
|
+
*/
|
|
1107
|
+
timeout?: number;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
export interface OpenAIEmbeddingConfig {
|
|
1111
|
+
/**
|
|
1112
|
+
* Configuration for the OpenAI embedding model.
|
|
1113
|
+
*/
|
|
1114
|
+
component?: OpenAIEmbedding;
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* Type of the embedding model.
|
|
1118
|
+
*/
|
|
1119
|
+
type?: 'OPENAI_EMBEDDING';
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* Page figure metadata with score
|
|
1124
|
+
*/
|
|
1125
|
+
export interface PageFigureNodeWithScore {
|
|
1126
|
+
node: PageFigureNodeWithScore.Node;
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* The score of the figure node
|
|
1130
|
+
*/
|
|
1131
|
+
score: number;
|
|
1132
|
+
|
|
1133
|
+
class_name?: string;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
export namespace PageFigureNodeWithScore {
|
|
1137
|
+
export interface Node {
|
|
1138
|
+
/**
|
|
1139
|
+
* The confidence of the figure
|
|
1140
|
+
*/
|
|
1141
|
+
confidence: number;
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* The name of the figure
|
|
1145
|
+
*/
|
|
1146
|
+
figure_name: string;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* The size of the figure in bytes
|
|
1150
|
+
*/
|
|
1151
|
+
figure_size: number;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* The ID of the file that the figure was taken from
|
|
1155
|
+
*/
|
|
1156
|
+
file_id: string;
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* The index of the page for which the figure is taken (0-indexed)
|
|
1160
|
+
*/
|
|
1161
|
+
page_index: number;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* Whether the figure is likely to be noise
|
|
1165
|
+
*/
|
|
1166
|
+
is_likely_noise?: boolean;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Metadata for the figure
|
|
1170
|
+
*/
|
|
1171
|
+
metadata?: { [key: string]: unknown } | null;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* Page screenshot metadata with score
|
|
1177
|
+
*/
|
|
1178
|
+
export interface PageScreenshotNodeWithScore {
|
|
1179
|
+
node: PageScreenshotNodeWithScore.Node;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* The score of the screenshot node
|
|
1183
|
+
*/
|
|
1184
|
+
score: number;
|
|
1185
|
+
|
|
1186
|
+
class_name?: string;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
export namespace PageScreenshotNodeWithScore {
|
|
1190
|
+
export interface Node {
|
|
1191
|
+
/**
|
|
1192
|
+
* The ID of the file that the page screenshot was taken from
|
|
1193
|
+
*/
|
|
1194
|
+
file_id: string;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* The size of the image in bytes
|
|
1198
|
+
*/
|
|
1199
|
+
image_size: number;
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* The index of the page for which the screenshot is taken (0-indexed)
|
|
1203
|
+
*/
|
|
1204
|
+
page_index: number;
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* Metadata for the screenshot
|
|
1208
|
+
*/
|
|
1209
|
+
metadata?: { [key: string]: unknown } | null;
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* Schema for a pipeline.
|
|
1215
|
+
*/
|
|
1216
|
+
export interface Pipeline {
|
|
1217
|
+
/**
|
|
1218
|
+
* Unique identifier
|
|
1219
|
+
*/
|
|
1220
|
+
id: string;
|
|
1221
|
+
|
|
1222
|
+
embedding_config:
|
|
1223
|
+
| Pipeline.ManagedOpenAIEmbeddingConfig
|
|
1224
|
+
| AzureOpenAIEmbeddingConfig
|
|
1225
|
+
| CohereEmbeddingConfig
|
|
1226
|
+
| GeminiEmbeddingConfig
|
|
1227
|
+
| HuggingFaceInferenceAPIEmbeddingConfig
|
|
1228
|
+
| OpenAIEmbeddingConfig
|
|
1229
|
+
| VertexAIEmbeddingConfig
|
|
1230
|
+
| BedrockEmbeddingConfig;
|
|
1231
|
+
|
|
1232
|
+
name: string;
|
|
1233
|
+
|
|
1234
|
+
project_id: string;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Hashes for the configuration of a pipeline.
|
|
1238
|
+
*/
|
|
1239
|
+
config_hash?: Pipeline.ConfigHash | null;
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* Creation datetime
|
|
1243
|
+
*/
|
|
1244
|
+
created_at?: string | null;
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* Schema for a data sink.
|
|
1248
|
+
*/
|
|
1249
|
+
data_sink?: DataSinksAPI.DataSink | null;
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* Schema for an embedding model config.
|
|
1253
|
+
*/
|
|
1254
|
+
embedding_model_config?: Pipeline.EmbeddingModelConfig | null;
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* The ID of the EmbeddingModelConfig this pipeline is using.
|
|
1258
|
+
*/
|
|
1259
|
+
embedding_model_config_id?: string | null;
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* Settings that can be configured for how to use LlamaParse to parse files within
|
|
1263
|
+
* a LlamaCloud pipeline.
|
|
1264
|
+
*/
|
|
1265
|
+
llama_parse_parameters?: LlamaParseParameters | null;
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* The ID of the ManagedPipeline this playground pipeline is linked to.
|
|
1269
|
+
*/
|
|
1270
|
+
managed_pipeline_id?: string | null;
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Metadata configuration for the pipeline.
|
|
1274
|
+
*/
|
|
1275
|
+
metadata_config?: PipelineMetadataConfig | null;
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* Type of pipeline. Either PLAYGROUND or MANAGED.
|
|
1279
|
+
*/
|
|
1280
|
+
pipeline_type?: PipelineType;
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Preset retrieval parameters for the pipeline.
|
|
1284
|
+
*/
|
|
1285
|
+
preset_retrieval_parameters?: PresetRetrievalParams;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Configuration for sparse embedding models used in hybrid search.
|
|
1289
|
+
*
|
|
1290
|
+
* This allows users to choose between Splade and BM25 models for sparse retrieval
|
|
1291
|
+
* in managed data sinks.
|
|
1292
|
+
*/
|
|
1293
|
+
sparse_model_config?: SparseModelConfig | null;
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Status of the pipeline.
|
|
1297
|
+
*/
|
|
1298
|
+
status?: 'CREATED' | 'DELETING' | null;
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* Configuration for the transformation.
|
|
1302
|
+
*/
|
|
1303
|
+
transform_config?: AutoTransformConfig | AdvancedModeTransformConfig;
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* Update datetime
|
|
1307
|
+
*/
|
|
1308
|
+
updated_at?: string | null;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
export namespace Pipeline {
|
|
1312
|
+
export interface ManagedOpenAIEmbeddingConfig {
|
|
1313
|
+
/**
|
|
1314
|
+
* Configuration for the Managed OpenAI embedding model.
|
|
1315
|
+
*/
|
|
1316
|
+
component?: ManagedOpenAIEmbeddingConfig.Component;
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* Type of the embedding model.
|
|
1320
|
+
*/
|
|
1321
|
+
type?: 'MANAGED_OPENAI_EMBEDDING';
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
export namespace ManagedOpenAIEmbeddingConfig {
|
|
1325
|
+
/**
|
|
1326
|
+
* Configuration for the Managed OpenAI embedding model.
|
|
1327
|
+
*/
|
|
1328
|
+
export interface Component {
|
|
1329
|
+
class_name?: string;
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* The batch size for embedding calls.
|
|
1333
|
+
*/
|
|
1334
|
+
embed_batch_size?: number;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* The name of the OpenAI embedding model.
|
|
1338
|
+
*/
|
|
1339
|
+
model_name?: 'openai-text-embedding-3-small';
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* The number of workers to use for async embedding calls.
|
|
1343
|
+
*/
|
|
1344
|
+
num_workers?: number | null;
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* Hashes for the configuration of a pipeline.
|
|
1350
|
+
*/
|
|
1351
|
+
export interface ConfigHash {
|
|
1352
|
+
/**
|
|
1353
|
+
* Hash of the embedding config.
|
|
1354
|
+
*/
|
|
1355
|
+
embedding_config_hash?: string | null;
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Hash of the llama parse parameters.
|
|
1359
|
+
*/
|
|
1360
|
+
parsing_config_hash?: string | null;
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Hash of the transform config.
|
|
1364
|
+
*/
|
|
1365
|
+
transform_config_hash?: string | null;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Schema for an embedding model config.
|
|
1370
|
+
*/
|
|
1371
|
+
export interface EmbeddingModelConfig {
|
|
1372
|
+
/**
|
|
1373
|
+
* Unique identifier
|
|
1374
|
+
*/
|
|
1375
|
+
id: string;
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* The embedding configuration for the embedding model config.
|
|
1379
|
+
*/
|
|
1380
|
+
embedding_config:
|
|
1381
|
+
| PipelinesAPI.AzureOpenAIEmbeddingConfig
|
|
1382
|
+
| PipelinesAPI.CohereEmbeddingConfig
|
|
1383
|
+
| PipelinesAPI.GeminiEmbeddingConfig
|
|
1384
|
+
| PipelinesAPI.HuggingFaceInferenceAPIEmbeddingConfig
|
|
1385
|
+
| PipelinesAPI.OpenAIEmbeddingConfig
|
|
1386
|
+
| PipelinesAPI.VertexAIEmbeddingConfig
|
|
1387
|
+
| PipelinesAPI.BedrockEmbeddingConfig;
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* The name of the embedding model config.
|
|
1391
|
+
*/
|
|
1392
|
+
name: string;
|
|
1393
|
+
|
|
1394
|
+
project_id: string;
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* Creation datetime
|
|
1398
|
+
*/
|
|
1399
|
+
created_at?: string | null;
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Update datetime
|
|
1403
|
+
*/
|
|
1404
|
+
updated_at?: string | null;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* Schema for creating a pipeline.
|
|
1410
|
+
*/
|
|
1411
|
+
export interface PipelineCreate {
|
|
1412
|
+
name: string;
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* Schema for creating a data sink.
|
|
1416
|
+
*/
|
|
1417
|
+
data_sink?: DataSinkCreate | null;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* Data sink ID. When provided instead of data_sink, the data sink will be looked
|
|
1421
|
+
* up by ID.
|
|
1422
|
+
*/
|
|
1423
|
+
data_sink_id?: string | null;
|
|
1424
|
+
|
|
1425
|
+
embedding_config?:
|
|
1426
|
+
| AzureOpenAIEmbeddingConfig
|
|
1427
|
+
| CohereEmbeddingConfig
|
|
1428
|
+
| GeminiEmbeddingConfig
|
|
1429
|
+
| HuggingFaceInferenceAPIEmbeddingConfig
|
|
1430
|
+
| OpenAIEmbeddingConfig
|
|
1431
|
+
| VertexAIEmbeddingConfig
|
|
1432
|
+
| BedrockEmbeddingConfig
|
|
1433
|
+
| null;
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* Embedding model config ID. When provided instead of embedding_config, the
|
|
1437
|
+
* embedding model config will be looked up by ID.
|
|
1438
|
+
*/
|
|
1439
|
+
embedding_model_config_id?: string | null;
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* Settings that can be configured for how to use LlamaParse to parse files within
|
|
1443
|
+
* a LlamaCloud pipeline.
|
|
1444
|
+
*/
|
|
1445
|
+
llama_parse_parameters?: LlamaParseParameters;
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* The ID of the ManagedPipeline this playground pipeline is linked to.
|
|
1449
|
+
*/
|
|
1450
|
+
managed_pipeline_id?: string | null;
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* Metadata configuration for the pipeline.
|
|
1454
|
+
*/
|
|
1455
|
+
metadata_config?: PipelineMetadataConfig | null;
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* Type of pipeline. Either PLAYGROUND or MANAGED.
|
|
1459
|
+
*/
|
|
1460
|
+
pipeline_type?: PipelineType;
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Preset retrieval parameters for the pipeline.
|
|
1464
|
+
*/
|
|
1465
|
+
preset_retrieval_parameters?: PresetRetrievalParams;
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* Configuration for sparse embedding models used in hybrid search.
|
|
1469
|
+
*
|
|
1470
|
+
* This allows users to choose between Splade and BM25 models for sparse retrieval
|
|
1471
|
+
* in managed data sinks.
|
|
1472
|
+
*/
|
|
1473
|
+
sparse_model_config?: SparseModelConfig | null;
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Status of the pipeline deployment.
|
|
1477
|
+
*/
|
|
1478
|
+
status?: string | null;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Configuration for the transformation.
|
|
1482
|
+
*/
|
|
1483
|
+
transform_config?: AutoTransformConfig | AdvancedModeTransformConfig | null;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
export interface PipelineMetadataConfig {
|
|
1487
|
+
/**
|
|
1488
|
+
* List of metadata keys to exclude from embeddings
|
|
1489
|
+
*/
|
|
1490
|
+
excluded_embed_metadata_keys?: Array<string>;
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* List of metadata keys to exclude from LLM during retrieval
|
|
1494
|
+
*/
|
|
1495
|
+
excluded_llm_metadata_keys?: Array<string>;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
/**
|
|
1499
|
+
* Enum for representing the type of a pipeline
|
|
1500
|
+
*/
|
|
1501
|
+
export type PipelineType = 'PLAYGROUND' | 'MANAGED';
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Schema for the search params for an retrieval execution that can be preset for a
|
|
1505
|
+
* pipeline.
|
|
1506
|
+
*/
|
|
1507
|
+
export interface PresetRetrievalParams {
|
|
1508
|
+
/**
|
|
1509
|
+
* Alpha value for hybrid retrieval to determine the weights between dense and
|
|
1510
|
+
* sparse retrieval. 0 is sparse retrieval and 1 is dense retrieval.
|
|
1511
|
+
*/
|
|
1512
|
+
alpha?: number | null;
|
|
1513
|
+
|
|
1514
|
+
class_name?: string;
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* Minimum similarity score wrt query for retrieval
|
|
1518
|
+
*/
|
|
1519
|
+
dense_similarity_cutoff?: number | null;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* Number of nodes for dense retrieval.
|
|
1523
|
+
*/
|
|
1524
|
+
dense_similarity_top_k?: number | null;
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* Enable reranking for retrieval
|
|
1528
|
+
*/
|
|
1529
|
+
enable_reranking?: boolean | null;
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Number of files to retrieve (only for retrieval mode files_via_metadata and
|
|
1533
|
+
* files_via_content).
|
|
1534
|
+
*/
|
|
1535
|
+
files_top_k?: number | null;
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Number of reranked nodes for returning.
|
|
1539
|
+
*/
|
|
1540
|
+
rerank_top_n?: number | null;
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* The retrieval mode for the query.
|
|
1544
|
+
*/
|
|
1545
|
+
retrieval_mode?: RetrievalMode;
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* @deprecated Whether to retrieve image nodes.
|
|
1549
|
+
*/
|
|
1550
|
+
retrieve_image_nodes?: boolean;
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
* Whether to retrieve page figure nodes.
|
|
1554
|
+
*/
|
|
1555
|
+
retrieve_page_figure_nodes?: boolean;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* Whether to retrieve page screenshot nodes.
|
|
1559
|
+
*/
|
|
1560
|
+
retrieve_page_screenshot_nodes?: boolean;
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* Metadata filters for vector stores.
|
|
1564
|
+
*/
|
|
1565
|
+
search_filters?: MetadataFilters | null;
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* JSON Schema that will be used to infer search_filters. Omit or leave as null to
|
|
1569
|
+
* skip inference.
|
|
1570
|
+
*/
|
|
1571
|
+
search_filters_inference_schema?: {
|
|
1572
|
+
[key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null;
|
|
1573
|
+
} | null;
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* Number of nodes for sparse retrieval.
|
|
1577
|
+
*/
|
|
1578
|
+
sparse_similarity_top_k?: number | null;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
export type RetrievalMode = 'chunks' | 'files_via_metadata' | 'files_via_content' | 'auto_routed';
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* Configuration for sparse embedding models used in hybrid search.
|
|
1585
|
+
*
|
|
1586
|
+
* This allows users to choose between Splade and BM25 models for sparse retrieval
|
|
1587
|
+
* in managed data sinks.
|
|
1588
|
+
*/
|
|
1589
|
+
export interface SparseModelConfig {
|
|
1590
|
+
class_name?: string;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* The sparse model type to use. 'bm25' uses Qdrant's FastEmbed BM25 model (default
|
|
1594
|
+
* for new pipelines), 'splade' uses HuggingFace Splade model, 'auto' selects based
|
|
1595
|
+
* on deployment mode (BYOC uses term frequency, Cloud uses Splade).
|
|
1596
|
+
*/
|
|
1597
|
+
model_type?: 'splade' | 'bm25' | 'auto';
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
export interface VertexAIEmbeddingConfig {
|
|
1601
|
+
/**
|
|
1602
|
+
* Configuration for the VertexAI embedding model.
|
|
1603
|
+
*/
|
|
1604
|
+
component?: VertexTextEmbedding;
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* Type of the embedding model.
|
|
1608
|
+
*/
|
|
1609
|
+
type?: 'VERTEXAI_EMBEDDING';
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
export interface VertexTextEmbedding {
|
|
1613
|
+
/**
|
|
1614
|
+
* The client email for the VertexAI credentials.
|
|
1615
|
+
*/
|
|
1616
|
+
client_email: string | null;
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* The default location to use when making API calls.
|
|
1620
|
+
*/
|
|
1621
|
+
location: string;
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* The private key for the VertexAI credentials.
|
|
1625
|
+
*/
|
|
1626
|
+
private_key: string | null;
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* The private key ID for the VertexAI credentials.
|
|
1630
|
+
*/
|
|
1631
|
+
private_key_id: string | null;
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* The default GCP project to use when making Vertex API calls.
|
|
1635
|
+
*/
|
|
1636
|
+
project: string;
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* The token URI for the VertexAI credentials.
|
|
1640
|
+
*/
|
|
1641
|
+
token_uri: string | null;
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* Additional kwargs for the Vertex.
|
|
1645
|
+
*/
|
|
1646
|
+
additional_kwargs?: { [key: string]: unknown };
|
|
1647
|
+
|
|
1648
|
+
class_name?: string;
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* The batch size for embedding calls.
|
|
1652
|
+
*/
|
|
1653
|
+
embed_batch_size?: number;
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* The embedding mode to use.
|
|
1657
|
+
*/
|
|
1658
|
+
embed_mode?: 'default' | 'classification' | 'clustering' | 'similarity' | 'retrieval';
|
|
1659
|
+
|
|
1660
|
+
/**
|
|
1661
|
+
* The modelId of the VertexAI model to use.
|
|
1662
|
+
*/
|
|
1663
|
+
model_name?: string;
|
|
1664
|
+
|
|
1665
|
+
/**
|
|
1666
|
+
* The number of workers to use for async embedding calls.
|
|
1667
|
+
*/
|
|
1668
|
+
num_workers?: number | null;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* Schema for the result of an retrieval execution.
|
|
1673
|
+
*/
|
|
1674
|
+
export interface PipelineRetrieveResponse {
|
|
1675
|
+
/**
|
|
1676
|
+
* The ID of the pipeline that the query was retrieved against.
|
|
1677
|
+
*/
|
|
1678
|
+
pipeline_id: string;
|
|
1679
|
+
|
|
1680
|
+
/**
|
|
1681
|
+
* The nodes retrieved by the pipeline for the given query.
|
|
1682
|
+
*/
|
|
1683
|
+
retrieval_nodes: Array<PipelineRetrieveResponse.RetrievalNode>;
|
|
1684
|
+
|
|
1685
|
+
class_name?: string;
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* @deprecated The image nodes retrieved by the pipeline for the given query.
|
|
1689
|
+
* Deprecated - will soon be replaced with 'page_screenshot_nodes'.
|
|
1690
|
+
*/
|
|
1691
|
+
image_nodes?: Array<PageScreenshotNodeWithScore>;
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* Metadata filters for vector stores.
|
|
1695
|
+
*/
|
|
1696
|
+
inferred_search_filters?: MetadataFilters | null;
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* Metadata associated with the retrieval execution
|
|
1700
|
+
*/
|
|
1701
|
+
metadata?: { [key: string]: string };
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* The page figure nodes retrieved by the pipeline for the given query.
|
|
1705
|
+
*/
|
|
1706
|
+
page_figure_nodes?: Array<PageFigureNodeWithScore>;
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* The end-to-end latency for retrieval and reranking.
|
|
1710
|
+
*/
|
|
1711
|
+
retrieval_latency?: { [key: string]: number };
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
export namespace PipelineRetrieveResponse {
|
|
1715
|
+
/**
|
|
1716
|
+
* Same as NodeWithScore but type for node is a TextNode instead of BaseNode.
|
|
1717
|
+
* FastAPI doesn't accept abstract classes like BaseNode.
|
|
1718
|
+
*/
|
|
1719
|
+
export interface RetrievalNode {
|
|
1720
|
+
/**
|
|
1721
|
+
* Provided for backward compatibility.
|
|
1722
|
+
*
|
|
1723
|
+
* Note: we keep the field with the typo "seperator" to maintain backward
|
|
1724
|
+
* compatibility for serialized objects.
|
|
1725
|
+
*/
|
|
1726
|
+
node: DocumentsAPI.TextNode;
|
|
1727
|
+
|
|
1728
|
+
class_name?: string;
|
|
1729
|
+
|
|
1730
|
+
score?: number | null;
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
export type PipelineListResponse = Array<Pipeline>;
|
|
1735
|
+
|
|
1736
|
+
export interface PipelineCreateParams {
|
|
1737
|
+
/**
|
|
1738
|
+
* Body param
|
|
1739
|
+
*/
|
|
1740
|
+
name: string;
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* Query param
|
|
1744
|
+
*/
|
|
1745
|
+
organization_id?: string | null;
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Query param
|
|
1749
|
+
*/
|
|
1750
|
+
project_id?: string | null;
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* Body param: Schema for creating a data sink.
|
|
1754
|
+
*/
|
|
1755
|
+
data_sink?: DataSinkCreate | null;
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* Body param: Data sink ID. When provided instead of data_sink, the data sink will
|
|
1759
|
+
* be looked up by ID.
|
|
1760
|
+
*/
|
|
1761
|
+
data_sink_id?: string | null;
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Body param
|
|
1765
|
+
*/
|
|
1766
|
+
embedding_config?:
|
|
1767
|
+
| AzureOpenAIEmbeddingConfig
|
|
1768
|
+
| CohereEmbeddingConfig
|
|
1769
|
+
| GeminiEmbeddingConfig
|
|
1770
|
+
| HuggingFaceInferenceAPIEmbeddingConfig
|
|
1771
|
+
| OpenAIEmbeddingConfig
|
|
1772
|
+
| VertexAIEmbeddingConfig
|
|
1773
|
+
| BedrockEmbeddingConfig
|
|
1774
|
+
| null;
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* Body param: Embedding model config ID. When provided instead of
|
|
1778
|
+
* embedding_config, the embedding model config will be looked up by ID.
|
|
1779
|
+
*/
|
|
1780
|
+
embedding_model_config_id?: string | null;
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* Body param: Settings that can be configured for how to use LlamaParse to parse
|
|
1784
|
+
* files within a LlamaCloud pipeline.
|
|
1785
|
+
*/
|
|
1786
|
+
llama_parse_parameters?: LlamaParseParameters;
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* Body param: The ID of the ManagedPipeline this playground pipeline is linked to.
|
|
1790
|
+
*/
|
|
1791
|
+
managed_pipeline_id?: string | null;
|
|
1792
|
+
|
|
1793
|
+
/**
|
|
1794
|
+
* Body param: Metadata configuration for the pipeline.
|
|
1795
|
+
*/
|
|
1796
|
+
metadata_config?: PipelineMetadataConfig | null;
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* Body param: Type of pipeline. Either PLAYGROUND or MANAGED.
|
|
1800
|
+
*/
|
|
1801
|
+
pipeline_type?: PipelineType;
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* Body param: Preset retrieval parameters for the pipeline.
|
|
1805
|
+
*/
|
|
1806
|
+
preset_retrieval_parameters?: PresetRetrievalParams;
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* Body param: Configuration for sparse embedding models used in hybrid search.
|
|
1810
|
+
*
|
|
1811
|
+
* This allows users to choose between Splade and BM25 models for sparse retrieval
|
|
1812
|
+
* in managed data sinks.
|
|
1813
|
+
*/
|
|
1814
|
+
sparse_model_config?: SparseModelConfig | null;
|
|
1815
|
+
|
|
1816
|
+
/**
|
|
1817
|
+
* Body param: Status of the pipeline deployment.
|
|
1818
|
+
*/
|
|
1819
|
+
status?: string | null;
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Body param: Configuration for the transformation.
|
|
1823
|
+
*/
|
|
1824
|
+
transform_config?: AutoTransformConfig | AdvancedModeTransformConfig | null;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
export interface PipelineRetrieveParams {
|
|
1828
|
+
/**
|
|
1829
|
+
* Body param: The query to retrieve against.
|
|
1830
|
+
*/
|
|
1831
|
+
query: string;
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* Query param
|
|
1835
|
+
*/
|
|
1836
|
+
organization_id?: string | null;
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Query param
|
|
1840
|
+
*/
|
|
1841
|
+
project_id?: string | null;
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Body param: Alpha value for hybrid retrieval to determine the weights between
|
|
1845
|
+
* dense and sparse retrieval. 0 is sparse retrieval and 1 is dense retrieval.
|
|
1846
|
+
*/
|
|
1847
|
+
alpha?: number | null;
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* Body param
|
|
1851
|
+
*/
|
|
1852
|
+
class_name?: string;
|
|
1853
|
+
|
|
1854
|
+
/**
|
|
1855
|
+
* Body param: Minimum similarity score wrt query for retrieval
|
|
1856
|
+
*/
|
|
1857
|
+
dense_similarity_cutoff?: number | null;
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* Body param: Number of nodes for dense retrieval.
|
|
1861
|
+
*/
|
|
1862
|
+
dense_similarity_top_k?: number | null;
|
|
1863
|
+
|
|
1864
|
+
/**
|
|
1865
|
+
* Body param: Enable reranking for retrieval
|
|
1866
|
+
*/
|
|
1867
|
+
enable_reranking?: boolean | null;
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* Body param: Number of files to retrieve (only for retrieval mode
|
|
1871
|
+
* files_via_metadata and files_via_content).
|
|
1872
|
+
*/
|
|
1873
|
+
files_top_k?: number | null;
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* Body param: Number of reranked nodes for returning.
|
|
1877
|
+
*/
|
|
1878
|
+
rerank_top_n?: number | null;
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* Body param: The retrieval mode for the query.
|
|
1882
|
+
*/
|
|
1883
|
+
retrieval_mode?: RetrievalMode;
|
|
1884
|
+
|
|
1885
|
+
/**
|
|
1886
|
+
* @deprecated Body param: Whether to retrieve image nodes.
|
|
1887
|
+
*/
|
|
1888
|
+
retrieve_image_nodes?: boolean;
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* Body param: Whether to retrieve page figure nodes.
|
|
1892
|
+
*/
|
|
1893
|
+
retrieve_page_figure_nodes?: boolean;
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* Body param: Whether to retrieve page screenshot nodes.
|
|
1897
|
+
*/
|
|
1898
|
+
retrieve_page_screenshot_nodes?: boolean;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* Body param: Metadata filters for vector stores.
|
|
1902
|
+
*/
|
|
1903
|
+
search_filters?: MetadataFilters | null;
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* Body param: JSON Schema that will be used to infer search_filters. Omit or leave
|
|
1907
|
+
* as null to skip inference.
|
|
1908
|
+
*/
|
|
1909
|
+
search_filters_inference_schema?: {
|
|
1910
|
+
[key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null;
|
|
1911
|
+
} | null;
|
|
1912
|
+
|
|
1913
|
+
/**
|
|
1914
|
+
* Body param: Number of nodes for sparse retrieval.
|
|
1915
|
+
*/
|
|
1916
|
+
sparse_similarity_top_k?: number | null;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
export interface PipelineUpdateParams {
|
|
1920
|
+
/**
|
|
1921
|
+
* Schema for creating a data sink.
|
|
1922
|
+
*/
|
|
1923
|
+
data_sink?: DataSinkCreate | null;
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* Data sink ID. When provided instead of data_sink, the data sink will be looked
|
|
1927
|
+
* up by ID.
|
|
1928
|
+
*/
|
|
1929
|
+
data_sink_id?: string | null;
|
|
1930
|
+
|
|
1931
|
+
embedding_config?:
|
|
1932
|
+
| AzureOpenAIEmbeddingConfig
|
|
1933
|
+
| CohereEmbeddingConfig
|
|
1934
|
+
| GeminiEmbeddingConfig
|
|
1935
|
+
| HuggingFaceInferenceAPIEmbeddingConfig
|
|
1936
|
+
| OpenAIEmbeddingConfig
|
|
1937
|
+
| VertexAIEmbeddingConfig
|
|
1938
|
+
| BedrockEmbeddingConfig
|
|
1939
|
+
| null;
|
|
1940
|
+
|
|
1941
|
+
/**
|
|
1942
|
+
* Embedding model config ID. When provided instead of embedding_config, the
|
|
1943
|
+
* embedding model config will be looked up by ID.
|
|
1944
|
+
*/
|
|
1945
|
+
embedding_model_config_id?: string | null;
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* Settings that can be configured for how to use LlamaParse to parse files within
|
|
1949
|
+
* a LlamaCloud pipeline.
|
|
1950
|
+
*/
|
|
1951
|
+
llama_parse_parameters?: LlamaParseParameters | null;
|
|
1952
|
+
|
|
1953
|
+
/**
|
|
1954
|
+
* The ID of the ManagedPipeline this playground pipeline is linked to.
|
|
1955
|
+
*/
|
|
1956
|
+
managed_pipeline_id?: string | null;
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* Metadata configuration for the pipeline.
|
|
1960
|
+
*/
|
|
1961
|
+
metadata_config?: PipelineMetadataConfig | null;
|
|
1962
|
+
|
|
1963
|
+
name?: string | null;
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* Schema for the search params for an retrieval execution that can be preset for a
|
|
1967
|
+
* pipeline.
|
|
1968
|
+
*/
|
|
1969
|
+
preset_retrieval_parameters?: PresetRetrievalParams | null;
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* Configuration for sparse embedding models used in hybrid search.
|
|
1973
|
+
*
|
|
1974
|
+
* This allows users to choose between Splade and BM25 models for sparse retrieval
|
|
1975
|
+
* in managed data sinks.
|
|
1976
|
+
*/
|
|
1977
|
+
sparse_model_config?: SparseModelConfig | null;
|
|
1978
|
+
|
|
1979
|
+
/**
|
|
1980
|
+
* Status of the pipeline deployment.
|
|
1981
|
+
*/
|
|
1982
|
+
status?: string | null;
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* Configuration for the transformation.
|
|
1986
|
+
*/
|
|
1987
|
+
transform_config?: AutoTransformConfig | AdvancedModeTransformConfig | null;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
export interface PipelineListParams {
|
|
1991
|
+
organization_id?: string | null;
|
|
1992
|
+
|
|
1993
|
+
pipeline_name?: string | null;
|
|
1994
|
+
|
|
1995
|
+
/**
|
|
1996
|
+
* Enum for representing the type of a pipeline
|
|
1997
|
+
*/
|
|
1998
|
+
pipeline_type?: PipelineType | null;
|
|
1999
|
+
|
|
2000
|
+
project_id?: string | null;
|
|
2001
|
+
|
|
2002
|
+
project_name?: string | null;
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
export interface PipelineGetStatusParams {
|
|
2006
|
+
full_details?: boolean | null;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
export interface PipelineUpsertParams {
|
|
2010
|
+
/**
|
|
2011
|
+
* Body param
|
|
2012
|
+
*/
|
|
2013
|
+
name: string;
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* Query param
|
|
2017
|
+
*/
|
|
2018
|
+
organization_id?: string | null;
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* Query param
|
|
2022
|
+
*/
|
|
2023
|
+
project_id?: string | null;
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* Body param: Schema for creating a data sink.
|
|
2027
|
+
*/
|
|
2028
|
+
data_sink?: DataSinkCreate | null;
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* Body param: Data sink ID. When provided instead of data_sink, the data sink will
|
|
2032
|
+
* be looked up by ID.
|
|
2033
|
+
*/
|
|
2034
|
+
data_sink_id?: string | null;
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
* Body param
|
|
2038
|
+
*/
|
|
2039
|
+
embedding_config?:
|
|
2040
|
+
| AzureOpenAIEmbeddingConfig
|
|
2041
|
+
| CohereEmbeddingConfig
|
|
2042
|
+
| GeminiEmbeddingConfig
|
|
2043
|
+
| HuggingFaceInferenceAPIEmbeddingConfig
|
|
2044
|
+
| OpenAIEmbeddingConfig
|
|
2045
|
+
| VertexAIEmbeddingConfig
|
|
2046
|
+
| BedrockEmbeddingConfig
|
|
2047
|
+
| null;
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* Body param: Embedding model config ID. When provided instead of
|
|
2051
|
+
* embedding_config, the embedding model config will be looked up by ID.
|
|
2052
|
+
*/
|
|
2053
|
+
embedding_model_config_id?: string | null;
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* Body param: Settings that can be configured for how to use LlamaParse to parse
|
|
2057
|
+
* files within a LlamaCloud pipeline.
|
|
2058
|
+
*/
|
|
2059
|
+
llama_parse_parameters?: LlamaParseParameters;
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* Body param: The ID of the ManagedPipeline this playground pipeline is linked to.
|
|
2063
|
+
*/
|
|
2064
|
+
managed_pipeline_id?: string | null;
|
|
2065
|
+
|
|
2066
|
+
/**
|
|
2067
|
+
* Body param: Metadata configuration for the pipeline.
|
|
2068
|
+
*/
|
|
2069
|
+
metadata_config?: PipelineMetadataConfig | null;
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* Body param: Type of pipeline. Either PLAYGROUND or MANAGED.
|
|
2073
|
+
*/
|
|
2074
|
+
pipeline_type?: PipelineType;
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* Body param: Preset retrieval parameters for the pipeline.
|
|
2078
|
+
*/
|
|
2079
|
+
preset_retrieval_parameters?: PresetRetrievalParams;
|
|
2080
|
+
|
|
2081
|
+
/**
|
|
2082
|
+
* Body param: Configuration for sparse embedding models used in hybrid search.
|
|
2083
|
+
*
|
|
2084
|
+
* This allows users to choose between Splade and BM25 models for sparse retrieval
|
|
2085
|
+
* in managed data sinks.
|
|
2086
|
+
*/
|
|
2087
|
+
sparse_model_config?: SparseModelConfig | null;
|
|
2088
|
+
|
|
2089
|
+
/**
|
|
2090
|
+
* Body param: Status of the pipeline deployment.
|
|
2091
|
+
*/
|
|
2092
|
+
status?: string | null;
|
|
2093
|
+
|
|
2094
|
+
/**
|
|
2095
|
+
* Body param: Configuration for the transformation.
|
|
2096
|
+
*/
|
|
2097
|
+
transform_config?: AutoTransformConfig | AdvancedModeTransformConfig | null;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
Pipelines.Sync = Sync;
|
|
2101
|
+
Pipelines.DataSources = DataSources;
|
|
2102
|
+
Pipelines.Images = Images;
|
|
2103
|
+
Pipelines.Files = Files;
|
|
2104
|
+
Pipelines.Metadata = Metadata;
|
|
2105
|
+
Pipelines.Documents = Documents;
|
|
2106
|
+
|
|
2107
|
+
export declare namespace Pipelines {
|
|
2108
|
+
export {
|
|
2109
|
+
type AdvancedModeTransformConfig as AdvancedModeTransformConfig,
|
|
2110
|
+
type AutoTransformConfig as AutoTransformConfig,
|
|
2111
|
+
type AzureOpenAIEmbedding as AzureOpenAIEmbedding,
|
|
2112
|
+
type AzureOpenAIEmbeddingConfig as AzureOpenAIEmbeddingConfig,
|
|
2113
|
+
type BedrockEmbedding as BedrockEmbedding,
|
|
2114
|
+
type BedrockEmbeddingConfig as BedrockEmbeddingConfig,
|
|
2115
|
+
type CohereEmbedding as CohereEmbedding,
|
|
2116
|
+
type CohereEmbeddingConfig as CohereEmbeddingConfig,
|
|
2117
|
+
type DataSinkCreate as DataSinkCreate,
|
|
2118
|
+
type GeminiEmbedding as GeminiEmbedding,
|
|
2119
|
+
type GeminiEmbeddingConfig as GeminiEmbeddingConfig,
|
|
2120
|
+
type HuggingFaceInferenceAPIEmbedding as HuggingFaceInferenceAPIEmbedding,
|
|
2121
|
+
type HuggingFaceInferenceAPIEmbeddingConfig as HuggingFaceInferenceAPIEmbeddingConfig,
|
|
2122
|
+
type LlamaParseParameters as LlamaParseParameters,
|
|
2123
|
+
type LlmParameters as LlmParameters,
|
|
2124
|
+
type ManagedIngestionStatusResponse as ManagedIngestionStatusResponse,
|
|
2125
|
+
type MessageRole as MessageRole,
|
|
2126
|
+
type MetadataFilters as MetadataFilters,
|
|
2127
|
+
type OpenAIEmbedding as OpenAIEmbedding,
|
|
2128
|
+
type OpenAIEmbeddingConfig as OpenAIEmbeddingConfig,
|
|
2129
|
+
type PageFigureNodeWithScore as PageFigureNodeWithScore,
|
|
2130
|
+
type PageScreenshotNodeWithScore as PageScreenshotNodeWithScore,
|
|
2131
|
+
type Pipeline as Pipeline,
|
|
2132
|
+
type PipelineCreate as PipelineCreate,
|
|
2133
|
+
type PipelineMetadataConfig as PipelineMetadataConfig,
|
|
2134
|
+
type PipelineType as PipelineType,
|
|
2135
|
+
type PresetRetrievalParams as PresetRetrievalParams,
|
|
2136
|
+
type RetrievalMode as RetrievalMode,
|
|
2137
|
+
type SparseModelConfig as SparseModelConfig,
|
|
2138
|
+
type VertexAIEmbeddingConfig as VertexAIEmbeddingConfig,
|
|
2139
|
+
type VertexTextEmbedding as VertexTextEmbedding,
|
|
2140
|
+
type PipelineRetrieveResponse as PipelineRetrieveResponse,
|
|
2141
|
+
type PipelineListResponse as PipelineListResponse,
|
|
2142
|
+
type PipelineCreateParams as PipelineCreateParams,
|
|
2143
|
+
type PipelineRetrieveParams as PipelineRetrieveParams,
|
|
2144
|
+
type PipelineUpdateParams as PipelineUpdateParams,
|
|
2145
|
+
type PipelineListParams as PipelineListParams,
|
|
2146
|
+
type PipelineGetStatusParams as PipelineGetStatusParams,
|
|
2147
|
+
type PipelineUpsertParams as PipelineUpsertParams,
|
|
2148
|
+
};
|
|
2149
|
+
|
|
2150
|
+
export { Sync as Sync };
|
|
2151
|
+
|
|
2152
|
+
export {
|
|
2153
|
+
DataSources as DataSources,
|
|
2154
|
+
type PipelineDataSource as PipelineDataSource,
|
|
2155
|
+
type DataSourceGetDataSourcesResponse as DataSourceGetDataSourcesResponse,
|
|
2156
|
+
type DataSourceUpdateDataSourcesResponse as DataSourceUpdateDataSourcesResponse,
|
|
2157
|
+
type DataSourceUpdateParams as DataSourceUpdateParams,
|
|
2158
|
+
type DataSourceGetStatusParams as DataSourceGetStatusParams,
|
|
2159
|
+
type DataSourceSyncParams as DataSourceSyncParams,
|
|
2160
|
+
type DataSourceUpdateDataSourcesParams as DataSourceUpdateDataSourcesParams,
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2163
|
+
export {
|
|
2164
|
+
Images as Images,
|
|
2165
|
+
type ImageGetPageFigureResponse as ImageGetPageFigureResponse,
|
|
2166
|
+
type ImageGetPageScreenshotResponse as ImageGetPageScreenshotResponse,
|
|
2167
|
+
type ImageListPageFiguresResponse as ImageListPageFiguresResponse,
|
|
2168
|
+
type ImageListPageScreenshotsResponse as ImageListPageScreenshotsResponse,
|
|
2169
|
+
type ImageGetPageFigureParams as ImageGetPageFigureParams,
|
|
2170
|
+
type ImageGetPageScreenshotParams as ImageGetPageScreenshotParams,
|
|
2171
|
+
type ImageListPageFiguresParams as ImageListPageFiguresParams,
|
|
2172
|
+
type ImageListPageScreenshotsParams as ImageListPageScreenshotsParams,
|
|
2173
|
+
};
|
|
2174
|
+
|
|
2175
|
+
export {
|
|
2176
|
+
Files as Files,
|
|
2177
|
+
type PipelineFile as PipelineFile,
|
|
2178
|
+
type FileCreateResponse as FileCreateResponse,
|
|
2179
|
+
type FileGetStatusCountsResponse as FileGetStatusCountsResponse,
|
|
2180
|
+
type PipelineFilesPaginatedPipelineFiles as PipelineFilesPaginatedPipelineFiles,
|
|
2181
|
+
type FileCreateParams as FileCreateParams,
|
|
2182
|
+
type FileUpdateParams as FileUpdateParams,
|
|
2183
|
+
type FileListParams as FileListParams,
|
|
2184
|
+
type FileDeleteParams as FileDeleteParams,
|
|
2185
|
+
type FileGetStatusParams as FileGetStatusParams,
|
|
2186
|
+
type FileGetStatusCountsParams as FileGetStatusCountsParams,
|
|
2187
|
+
};
|
|
2188
|
+
|
|
2189
|
+
export {
|
|
2190
|
+
Metadata as Metadata,
|
|
2191
|
+
type MetadataCreateResponse as MetadataCreateResponse,
|
|
2192
|
+
type MetadataCreateParams as MetadataCreateParams,
|
|
2193
|
+
};
|
|
2194
|
+
|
|
2195
|
+
export {
|
|
2196
|
+
Documents as Documents,
|
|
2197
|
+
type CloudDocument as CloudDocument,
|
|
2198
|
+
type CloudDocumentCreate as CloudDocumentCreate,
|
|
2199
|
+
type TextNode as TextNode,
|
|
2200
|
+
type DocumentCreateResponse as DocumentCreateResponse,
|
|
2201
|
+
type DocumentGetChunksResponse as DocumentGetChunksResponse,
|
|
2202
|
+
type DocumentSyncResponse as DocumentSyncResponse,
|
|
2203
|
+
type DocumentUpsertResponse as DocumentUpsertResponse,
|
|
2204
|
+
type CloudDocumentsPaginatedCloudDocuments as CloudDocumentsPaginatedCloudDocuments,
|
|
2205
|
+
type DocumentCreateParams as DocumentCreateParams,
|
|
2206
|
+
type DocumentListParams as DocumentListParams,
|
|
2207
|
+
type DocumentDeleteParams as DocumentDeleteParams,
|
|
2208
|
+
type DocumentGetParams as DocumentGetParams,
|
|
2209
|
+
type DocumentGetChunksParams as DocumentGetChunksParams,
|
|
2210
|
+
type DocumentGetStatusParams as DocumentGetStatusParams,
|
|
2211
|
+
type DocumentSyncParams as DocumentSyncParams,
|
|
2212
|
+
type DocumentUpsertParams as DocumentUpsertParams,
|
|
2213
|
+
};
|
|
2214
|
+
}
|