@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,224 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as JobsAPI from './jobs';
|
|
5
|
+
import {
|
|
6
|
+
ExtractJob,
|
|
7
|
+
JobCreateParams,
|
|
8
|
+
JobFileParams,
|
|
9
|
+
JobGetResultParams,
|
|
10
|
+
JobGetResultResponse,
|
|
11
|
+
JobListParams,
|
|
12
|
+
JobListResponse,
|
|
13
|
+
Jobs,
|
|
14
|
+
WebhookConfiguration,
|
|
15
|
+
} from './jobs';
|
|
16
|
+
import * as RunsAPI from './runs';
|
|
17
|
+
import {
|
|
18
|
+
ExtractConfig,
|
|
19
|
+
ExtractRun,
|
|
20
|
+
ExtractRunsPaginatedExtractRuns,
|
|
21
|
+
RunDeleteParams,
|
|
22
|
+
RunDeleteResponse,
|
|
23
|
+
RunGetByJobParams,
|
|
24
|
+
RunGetParams,
|
|
25
|
+
RunListParams,
|
|
26
|
+
Runs,
|
|
27
|
+
} from './runs';
|
|
28
|
+
import * as ExtractionAgentsAPI from './extraction-agents/extraction-agents';
|
|
29
|
+
import {
|
|
30
|
+
ExtractAgent,
|
|
31
|
+
ExtractionAgentCreateParams,
|
|
32
|
+
ExtractionAgentDeleteResponse,
|
|
33
|
+
ExtractionAgentListParams,
|
|
34
|
+
ExtractionAgentListResponse,
|
|
35
|
+
ExtractionAgentUpdateParams,
|
|
36
|
+
ExtractionAgents,
|
|
37
|
+
} from './extraction-agents/extraction-agents';
|
|
38
|
+
import { APIPromise } from '../../core/api-promise';
|
|
39
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
40
|
+
import { PollingOptions } from '../../core/polling';
|
|
41
|
+
|
|
42
|
+
export class Extraction extends APIResource {
|
|
43
|
+
jobs: JobsAPI.Jobs = new JobsAPI.Jobs(this._client);
|
|
44
|
+
runs: RunsAPI.Runs = new RunsAPI.Runs(this._client);
|
|
45
|
+
extractionAgents: ExtractionAgentsAPI.ExtractionAgents = new ExtractionAgentsAPI.ExtractionAgents(
|
|
46
|
+
this._client,
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Stateless extraction endpoint that uses a default extraction agent in the user's
|
|
51
|
+
* default project. Requires data_schema, config, and either file_id, text, or
|
|
52
|
+
* base64 encoded file data.
|
|
53
|
+
*/
|
|
54
|
+
run(params: ExtractionRunParams, options?: RequestOptions): APIPromise<JobsAPI.ExtractJob> {
|
|
55
|
+
const { organization_id, project_id, ...body } = params;
|
|
56
|
+
return this._client.post('/api/v1/extraction/run', {
|
|
57
|
+
query: { organization_id, project_id },
|
|
58
|
+
body,
|
|
59
|
+
...options,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Run a stateless extraction and wait for it to complete, returning the result.
|
|
65
|
+
*
|
|
66
|
+
* This is a convenience method that combines run(), waitForCompletion(),
|
|
67
|
+
* and getResult() into a single call for the most common end-to-end workflow.
|
|
68
|
+
*
|
|
69
|
+
* This endpoint uses a default extraction agent in the user's default project.
|
|
70
|
+
*
|
|
71
|
+
* @param params - Extraction parameters
|
|
72
|
+
* @param options - Polling configuration and request options
|
|
73
|
+
* @returns The extraction result (JobGetResultResponse)
|
|
74
|
+
* @throws {PollingTimeoutError} If the job doesn't complete within the timeout period
|
|
75
|
+
* @throws {PollingError} If the job fails or is cancelled
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```typescript
|
|
79
|
+
* import { LlamaCloud } from 'llama-cloud';
|
|
80
|
+
*
|
|
81
|
+
* const client = new LlamaCloud({ apiKey: '...' });
|
|
82
|
+
*
|
|
83
|
+
* // One-shot: run stateless extraction, wait for completion, and get result
|
|
84
|
+
* const result = await client.extraction.extract({
|
|
85
|
+
* config: {
|
|
86
|
+
* chunk_mode: 'PAGE',
|
|
87
|
+
* cite_sources: true,
|
|
88
|
+
* extraction_target: 'PER_DOC',
|
|
89
|
+
* extraction_mode: 'BALANCED'
|
|
90
|
+
* },
|
|
91
|
+
* data_schema: { model_names: { type: 'array', items: { type: 'string' } } },
|
|
92
|
+
* file_id: 'file_id'
|
|
93
|
+
* }, { verbose: true });
|
|
94
|
+
*
|
|
95
|
+
* // Result is ready to use immediately
|
|
96
|
+
* console.log(result.data);
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
async extract(
|
|
100
|
+
params: ExtractionRunParams,
|
|
101
|
+
options?: PollingOptions & RequestOptions,
|
|
102
|
+
): Promise<JobsAPI.JobGetResultResponse> {
|
|
103
|
+
const { pollingInterval, maxInterval, timeout, backoff, verbose, ...requestOptions } = options || {};
|
|
104
|
+
|
|
105
|
+
// Run the extraction job
|
|
106
|
+
const job = await this.run(params, requestOptions);
|
|
107
|
+
|
|
108
|
+
// Wait for completion
|
|
109
|
+
await this.jobs.waitForCompletion(job.id, {
|
|
110
|
+
pollingInterval,
|
|
111
|
+
maxInterval,
|
|
112
|
+
timeout: timeout || 2000.0,
|
|
113
|
+
backoff,
|
|
114
|
+
verbose,
|
|
115
|
+
...requestOptions,
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
// Get and return the result
|
|
119
|
+
return await this.jobs.getResult(job.id, {}, requestOptions);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface ExtractionRunParams {
|
|
124
|
+
/**
|
|
125
|
+
* Body param: The configuration parameters for the extraction
|
|
126
|
+
*/
|
|
127
|
+
config: RunsAPI.ExtractConfig;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Body param: The schema of the data to extract
|
|
131
|
+
*/
|
|
132
|
+
data_schema:
|
|
133
|
+
| { [key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null }
|
|
134
|
+
| string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Query param
|
|
138
|
+
*/
|
|
139
|
+
organization_id?: string | null;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Query param
|
|
143
|
+
*/
|
|
144
|
+
project_id?: string | null;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Body param: Schema for file data with base64 content and MIME type.
|
|
148
|
+
*/
|
|
149
|
+
file?: ExtractionRunParams.File | null;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Body param: The ID of the file to extract from
|
|
153
|
+
*/
|
|
154
|
+
file_id?: string | null;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Body param: The text content to extract from
|
|
158
|
+
*/
|
|
159
|
+
text?: string | null;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Body param: The outbound webhook configurations
|
|
163
|
+
*/
|
|
164
|
+
webhook_configurations?: Array<JobsAPI.WebhookConfiguration> | null;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export namespace ExtractionRunParams {
|
|
168
|
+
/**
|
|
169
|
+
* Schema for file data with base64 content and MIME type.
|
|
170
|
+
*/
|
|
171
|
+
export interface File {
|
|
172
|
+
/**
|
|
173
|
+
* The file content as base64-encoded string
|
|
174
|
+
*/
|
|
175
|
+
data: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The MIME type of the file (e.g., 'application/pdf', 'text/plain')
|
|
179
|
+
*/
|
|
180
|
+
mime_type: string;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
Extraction.Jobs = Jobs;
|
|
185
|
+
Extraction.Runs = Runs;
|
|
186
|
+
Extraction.ExtractionAgents = ExtractionAgents;
|
|
187
|
+
|
|
188
|
+
export declare namespace Extraction {
|
|
189
|
+
export { type ExtractionRunParams as ExtractionRunParams };
|
|
190
|
+
|
|
191
|
+
export {
|
|
192
|
+
Jobs as Jobs,
|
|
193
|
+
type ExtractJob as ExtractJob,
|
|
194
|
+
type WebhookConfiguration as WebhookConfiguration,
|
|
195
|
+
type JobListResponse as JobListResponse,
|
|
196
|
+
type JobGetResultResponse as JobGetResultResponse,
|
|
197
|
+
type JobCreateParams as JobCreateParams,
|
|
198
|
+
type JobListParams as JobListParams,
|
|
199
|
+
type JobFileParams as JobFileParams,
|
|
200
|
+
type JobGetResultParams as JobGetResultParams,
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export {
|
|
204
|
+
Runs as Runs,
|
|
205
|
+
type ExtractConfig as ExtractConfig,
|
|
206
|
+
type ExtractRun as ExtractRun,
|
|
207
|
+
type RunDeleteResponse as RunDeleteResponse,
|
|
208
|
+
type ExtractRunsPaginatedExtractRuns as ExtractRunsPaginatedExtractRuns,
|
|
209
|
+
type RunListParams as RunListParams,
|
|
210
|
+
type RunDeleteParams as RunDeleteParams,
|
|
211
|
+
type RunGetParams as RunGetParams,
|
|
212
|
+
type RunGetByJobParams as RunGetByJobParams,
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export {
|
|
216
|
+
ExtractionAgents as ExtractionAgents,
|
|
217
|
+
type ExtractAgent as ExtractAgent,
|
|
218
|
+
type ExtractionAgentListResponse as ExtractionAgentListResponse,
|
|
219
|
+
type ExtractionAgentDeleteResponse as ExtractionAgentDeleteResponse,
|
|
220
|
+
type ExtractionAgentCreateParams as ExtractionAgentCreateParams,
|
|
221
|
+
type ExtractionAgentUpdateParams as ExtractionAgentUpdateParams,
|
|
222
|
+
type ExtractionAgentListParams as ExtractionAgentListParams,
|
|
223
|
+
};
|
|
224
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Extraction, type ExtractionRunParams } from './extraction';
|
|
4
|
+
export {
|
|
5
|
+
ExtractionAgents,
|
|
6
|
+
type ExtractAgent,
|
|
7
|
+
type ExtractionAgentListResponse,
|
|
8
|
+
type ExtractionAgentDeleteResponse,
|
|
9
|
+
type ExtractionAgentCreateParams,
|
|
10
|
+
type ExtractionAgentUpdateParams,
|
|
11
|
+
type ExtractionAgentListParams,
|
|
12
|
+
} from './extraction-agents/index';
|
|
13
|
+
export {
|
|
14
|
+
Jobs,
|
|
15
|
+
type ExtractJob,
|
|
16
|
+
type WebhookConfiguration,
|
|
17
|
+
type JobListResponse,
|
|
18
|
+
type JobGetResultResponse,
|
|
19
|
+
type JobCreateParams,
|
|
20
|
+
type JobListParams,
|
|
21
|
+
type JobFileParams,
|
|
22
|
+
type JobGetResultParams,
|
|
23
|
+
} from './jobs';
|
|
24
|
+
export {
|
|
25
|
+
Runs,
|
|
26
|
+
type ExtractConfig,
|
|
27
|
+
type ExtractRun,
|
|
28
|
+
type RunDeleteResponse,
|
|
29
|
+
type RunListParams,
|
|
30
|
+
type RunDeleteParams,
|
|
31
|
+
type RunGetParams,
|
|
32
|
+
type RunGetByJobParams,
|
|
33
|
+
type ExtractRunsPaginatedExtractRuns,
|
|
34
|
+
} from './runs';
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as FilesAPI from '../files';
|
|
5
|
+
import * as RunsAPI from './runs';
|
|
6
|
+
import * as ExtractionAgentsAPI from './extraction-agents/extraction-agents';
|
|
7
|
+
import { APIPromise } from '../../core/api-promise';
|
|
8
|
+
import { type Uploadable } from '../../core/uploads';
|
|
9
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
10
|
+
import { multipartFormRequestOptions } from '../../internal/uploads';
|
|
11
|
+
import { path } from '../../internal/utils/path';
|
|
12
|
+
import { pollUntilComplete, PollingOptions } from '../../core/polling';
|
|
13
|
+
|
|
14
|
+
export class Jobs extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* Run Job
|
|
17
|
+
*/
|
|
18
|
+
create(params: JobCreateParams, options?: RequestOptions): APIPromise<ExtractJob> {
|
|
19
|
+
const { from_ui, ...body } = params;
|
|
20
|
+
return this._client.post('/api/v1/extraction/jobs', { query: { from_ui }, body, ...options });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* List Jobs
|
|
25
|
+
*/
|
|
26
|
+
list(query: JobListParams, options?: RequestOptions): APIPromise<JobListResponse> {
|
|
27
|
+
return this._client.get('/api/v1/extraction/jobs', { query, ...options });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Run Job On File
|
|
32
|
+
*/
|
|
33
|
+
file(params: JobFileParams, options?: RequestOptions): APIPromise<ExtractJob> {
|
|
34
|
+
const { from_ui, ...body } = params;
|
|
35
|
+
return this._client.post(
|
|
36
|
+
'/api/v1/extraction/jobs/file',
|
|
37
|
+
multipartFormRequestOptions({ query: { from_ui }, body, ...options }, this._client),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Get Job
|
|
43
|
+
*/
|
|
44
|
+
get(jobID: string, options?: RequestOptions): APIPromise<ExtractJob> {
|
|
45
|
+
return this._client.get(path`/api/v1/extraction/jobs/${jobID}`, options);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Get Job Result
|
|
50
|
+
*/
|
|
51
|
+
getResult(
|
|
52
|
+
jobID: string,
|
|
53
|
+
query: JobGetResultParams | null | undefined = {},
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): APIPromise<JobGetResultResponse> {
|
|
56
|
+
return this._client.get(path`/api/v1/extraction/jobs/${jobID}/result`, { query, ...options });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Wait for an extraction job to complete by polling until it reaches a terminal state.
|
|
61
|
+
*
|
|
62
|
+
* This method polls the job status at regular intervals until the job completes
|
|
63
|
+
* successfully or fails. It uses configurable backoff strategies to optimize
|
|
64
|
+
* polling behavior.
|
|
65
|
+
*
|
|
66
|
+
* @param jobID - The ID of the extraction job to wait for
|
|
67
|
+
* @param options - Polling configuration options
|
|
68
|
+
* @returns The completed ExtractJob
|
|
69
|
+
* @throws {PollingTimeoutError} If the job doesn't complete within the timeout period
|
|
70
|
+
* @throws {PollingError} If the job fails or is cancelled
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```typescript
|
|
74
|
+
* import { LlamaCloud } from 'llama-cloud';
|
|
75
|
+
*
|
|
76
|
+
* const client = new LlamaCloud({ apiKey: '...' });
|
|
77
|
+
*
|
|
78
|
+
* // Create an extraction job
|
|
79
|
+
* const job = await client.extraction.jobs.create({
|
|
80
|
+
* extraction_agent_id: 'agent_id',
|
|
81
|
+
* file_id: 'file_id'
|
|
82
|
+
* });
|
|
83
|
+
*
|
|
84
|
+
* // Wait for it to complete
|
|
85
|
+
* const completedJob = await client.extraction.jobs.waitForCompletion(
|
|
86
|
+
* job.id,
|
|
87
|
+
* { verbose: true }
|
|
88
|
+
* );
|
|
89
|
+
*
|
|
90
|
+
* // Get the result
|
|
91
|
+
* const result = await client.extraction.jobs.getResult(job.id);
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
async waitForCompletion(jobID: string, options?: PollingOptions & RequestOptions): Promise<ExtractJob> {
|
|
95
|
+
const { pollingInterval, maxInterval, timeout, backoff, verbose, ...requestOptions } = options || {};
|
|
96
|
+
|
|
97
|
+
const getStatus = async (): Promise<ExtractJob> => {
|
|
98
|
+
return await this.get(jobID, requestOptions);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const isComplete = (job: ExtractJob): boolean => {
|
|
102
|
+
return job.status === 'SUCCESS' || job.status === 'PARTIAL_SUCCESS';
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const isError = (job: ExtractJob): boolean => {
|
|
106
|
+
return job.status === 'ERROR' || job.status === 'CANCELLED';
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const getErrorMessage = (job: ExtractJob): string => {
|
|
110
|
+
const errorParts = [`Job ${jobID} failed with status: ${job.status}`];
|
|
111
|
+
if (job.error) {
|
|
112
|
+
errorParts.push(`Error: ${job.error}`);
|
|
113
|
+
}
|
|
114
|
+
return errorParts.join(' | ');
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
return await pollUntilComplete(getStatus, isComplete, isError, getErrorMessage, {
|
|
118
|
+
pollingInterval,
|
|
119
|
+
maxInterval,
|
|
120
|
+
timeout,
|
|
121
|
+
backoff,
|
|
122
|
+
verbose,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Create an extraction job and wait for it to complete, returning the result.
|
|
128
|
+
*
|
|
129
|
+
* This is a convenience method that combines create(), waitForCompletion(),
|
|
130
|
+
* and getResult() into a single call for the most common end-to-end workflow.
|
|
131
|
+
*
|
|
132
|
+
* @param params - Job creation parameters
|
|
133
|
+
* @param options - Polling configuration and request options
|
|
134
|
+
* @returns The extraction result (JobGetResultResponse)
|
|
135
|
+
* @throws {PollingTimeoutError} If the job doesn't complete within the timeout period
|
|
136
|
+
* @throws {PollingError} If the job fails or is cancelled
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```typescript
|
|
140
|
+
* import { LlamaCloud } from 'llama-cloud';
|
|
141
|
+
*
|
|
142
|
+
* const client = new LlamaCloud({ apiKey: '...' });
|
|
143
|
+
*
|
|
144
|
+
* // One-shot: create job, wait for completion, and get result
|
|
145
|
+
* const result = await client.extraction.jobs.createAndWait({
|
|
146
|
+
* extraction_agent_id: 'agent_id',
|
|
147
|
+
* file_id: 'file_id'
|
|
148
|
+
* }, { verbose: true });
|
|
149
|
+
*
|
|
150
|
+
* // Result is ready to use immediately
|
|
151
|
+
* console.log(result.data);
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
async createAndWait(
|
|
155
|
+
params: JobCreateParams,
|
|
156
|
+
options?: PollingOptions & RequestOptions,
|
|
157
|
+
): Promise<JobGetResultResponse> {
|
|
158
|
+
const { pollingInterval, maxInterval, timeout, backoff, verbose, ...requestOptions } = options || {};
|
|
159
|
+
|
|
160
|
+
// Create the job
|
|
161
|
+
const job = await this.create(params, requestOptions);
|
|
162
|
+
|
|
163
|
+
// Wait for completion
|
|
164
|
+
await this.waitForCompletion(job.id, {
|
|
165
|
+
pollingInterval,
|
|
166
|
+
maxInterval,
|
|
167
|
+
timeout: timeout || 2000.0,
|
|
168
|
+
backoff,
|
|
169
|
+
verbose,
|
|
170
|
+
...requestOptions,
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
// Get and return the result
|
|
174
|
+
return await this.getResult(job.id, {}, requestOptions);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Create an extraction job and wait for it to complete, returning the result.
|
|
179
|
+
*
|
|
180
|
+
* This is an alias for createAndWait() that provides a more concise API.
|
|
181
|
+
*
|
|
182
|
+
* @param params - Job creation parameters
|
|
183
|
+
* @param options - Polling configuration and request options
|
|
184
|
+
* @returns The extraction result (JobGetResultResponse)
|
|
185
|
+
* @throws {PollingTimeoutError} If the job doesn't complete within the timeout period
|
|
186
|
+
* @throws {PollingError} If the job fails or is cancelled
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```typescript
|
|
190
|
+
* import { LlamaCloud } from 'llama-cloud';
|
|
191
|
+
*
|
|
192
|
+
* const client = new LlamaCloud({ apiKey: '...' });
|
|
193
|
+
*
|
|
194
|
+
* // One-shot: create job, wait for completion, and get result
|
|
195
|
+
* const result = await client.extraction.jobs.extract({
|
|
196
|
+
* extraction_agent_id: 'agent_id',
|
|
197
|
+
* file_id: 'file_id'
|
|
198
|
+
* }, { verbose: true });
|
|
199
|
+
*
|
|
200
|
+
* // Result is ready to use immediately
|
|
201
|
+
* console.log(result.data);
|
|
202
|
+
* ```
|
|
203
|
+
*/
|
|
204
|
+
async extract(
|
|
205
|
+
params: JobCreateParams,
|
|
206
|
+
options?: PollingOptions & RequestOptions,
|
|
207
|
+
): Promise<JobGetResultResponse> {
|
|
208
|
+
return await this.createAndWait(params, options);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Schema for an extraction job.
|
|
214
|
+
*/
|
|
215
|
+
export interface ExtractJob {
|
|
216
|
+
/**
|
|
217
|
+
* The id of the extraction job
|
|
218
|
+
*/
|
|
219
|
+
id: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The agent that the job was run on.
|
|
223
|
+
*/
|
|
224
|
+
extraction_agent: ExtractionAgentsAPI.ExtractAgent;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* The status of the extraction job
|
|
228
|
+
*/
|
|
229
|
+
status: 'PENDING' | 'SUCCESS' | 'ERROR' | 'PARTIAL_SUCCESS' | 'CANCELLED';
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* The error that occurred during extraction
|
|
233
|
+
*/
|
|
234
|
+
error?: string | null;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @deprecated Schema for a file.
|
|
238
|
+
*/
|
|
239
|
+
file?: FilesAPI.File | null;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The id of the file that the extract was extracted from
|
|
243
|
+
*/
|
|
244
|
+
file_id?: string | null;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Allows the user to configure webhook options for notifications and callbacks.
|
|
249
|
+
*/
|
|
250
|
+
export interface WebhookConfiguration {
|
|
251
|
+
/**
|
|
252
|
+
* List of event names to subscribe to
|
|
253
|
+
*/
|
|
254
|
+
webhook_events?: Array<
|
|
255
|
+
| 'extract.pending'
|
|
256
|
+
| 'extract.success'
|
|
257
|
+
| 'extract.error'
|
|
258
|
+
| 'extract.partial_success'
|
|
259
|
+
| 'extract.cancelled'
|
|
260
|
+
| 'parse.pending'
|
|
261
|
+
| 'parse.success'
|
|
262
|
+
| 'parse.error'
|
|
263
|
+
| 'parse.partial_success'
|
|
264
|
+
| 'parse.cancelled'
|
|
265
|
+
| 'unmapped_event'
|
|
266
|
+
> | null;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Custom HTTP headers to include with webhook requests.
|
|
270
|
+
*/
|
|
271
|
+
webhook_headers?: { [key: string]: string } | null;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* The output format to use for the webhook. Defaults to string if none supplied.
|
|
275
|
+
* Currently supported values: string, json
|
|
276
|
+
*/
|
|
277
|
+
webhook_output_format?: string | null;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* The URL to send webhook notifications to.
|
|
281
|
+
*/
|
|
282
|
+
webhook_url?: string | null;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export type JobListResponse = Array<ExtractJob>;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Schema for an extraction resultset.
|
|
289
|
+
*/
|
|
290
|
+
export interface JobGetResultResponse {
|
|
291
|
+
/**
|
|
292
|
+
* The data extracted from the file
|
|
293
|
+
*/
|
|
294
|
+
data:
|
|
295
|
+
| { [key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null }
|
|
296
|
+
| Array<{ [key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null }>
|
|
297
|
+
| null;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* The id of the extraction agent
|
|
301
|
+
*/
|
|
302
|
+
extraction_agent_id: string;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* The metadata extracted from the file
|
|
306
|
+
*/
|
|
307
|
+
extraction_metadata: {
|
|
308
|
+
[key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null;
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* The id of the extraction run
|
|
313
|
+
*/
|
|
314
|
+
run_id: string;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export interface JobCreateParams {
|
|
318
|
+
/**
|
|
319
|
+
* Body param: The id of the extraction agent
|
|
320
|
+
*/
|
|
321
|
+
extraction_agent_id: string;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Body param: The id of the file
|
|
325
|
+
*/
|
|
326
|
+
file_id: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Query param
|
|
330
|
+
*/
|
|
331
|
+
from_ui?: boolean;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Body param: Configuration parameters for the extraction agent.
|
|
335
|
+
*/
|
|
336
|
+
config_override?: RunsAPI.ExtractConfig | null;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Body param: The data schema to override the extraction agent's data schema with
|
|
340
|
+
*/
|
|
341
|
+
data_schema_override?:
|
|
342
|
+
| { [key: string]: { [key: string]: unknown } | Array<unknown> | string | number | boolean | null }
|
|
343
|
+
| string
|
|
344
|
+
| null;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Body param: The priority for the request. This field may be ignored or
|
|
348
|
+
* overwritten depending on the organization tier.
|
|
349
|
+
*/
|
|
350
|
+
priority?: 'low' | 'medium' | 'high' | 'critical' | null;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Body param: The outbound webhook configurations
|
|
354
|
+
*/
|
|
355
|
+
webhook_configurations?: Array<WebhookConfiguration> | null;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export interface JobListParams {
|
|
359
|
+
extraction_agent_id: string;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export interface JobFileParams {
|
|
363
|
+
/**
|
|
364
|
+
* Body param: The id of the extraction agent
|
|
365
|
+
*/
|
|
366
|
+
extraction_agent_id: string;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Body param: The file to run the job on
|
|
370
|
+
*/
|
|
371
|
+
file: Uploadable;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Query param
|
|
375
|
+
*/
|
|
376
|
+
from_ui?: boolean;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Body param: The config to override the extraction agent's config with as a JSON
|
|
380
|
+
* string
|
|
381
|
+
*/
|
|
382
|
+
config_override?: string | null;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Body param: The data schema to override the extraction agent's data schema with
|
|
386
|
+
* as a JSON string
|
|
387
|
+
*/
|
|
388
|
+
data_schema_override?: string | null;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export interface JobGetResultParams {
|
|
392
|
+
organization_id?: string | null;
|
|
393
|
+
|
|
394
|
+
project_id?: string | null;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export declare namespace Jobs {
|
|
398
|
+
export {
|
|
399
|
+
type ExtractJob as ExtractJob,
|
|
400
|
+
type WebhookConfiguration as WebhookConfiguration,
|
|
401
|
+
type JobListResponse as JobListResponse,
|
|
402
|
+
type JobGetResultResponse as JobGetResultResponse,
|
|
403
|
+
type JobCreateParams as JobCreateParams,
|
|
404
|
+
type JobListParams as JobListParams,
|
|
405
|
+
type JobFileParams as JobFileParams,
|
|
406
|
+
type JobGetResultParams as JobGetResultParams,
|
|
407
|
+
};
|
|
408
|
+
}
|