openlayer 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/README.md +112 -60
- 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/bin/cli +53 -0
- package/bin/migration-config.json +6 -0
- package/client.d.mts +186 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +186 -0
- package/client.d.ts.map +1 -0
- package/client.js +463 -0
- package/client.js.map +1 -0
- package/client.mjs +459 -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/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 +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +3 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +6 -124
- package/index.d.mts.map +1 -0
- package/index.d.ts +5 -123
- package/index.d.ts.map +1 -1
- package/index.js +12 -140
- package/index.js.map +1 -1
- package/index.mjs +5 -103
- package/index.mjs.map +1 -1
- 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 +1 -0
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +4 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +2 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +15 -17
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +17 -19
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.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 +1 -0
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +14 -13
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- 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 +85 -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/lib/core/cli.d.mts +24 -0
- package/lib/core/cli.d.mts.map +1 -0
- package/lib/core/cli.js +3 -35
- package/lib/core/cli.js.map +1 -1
- package/lib/core/openai-monitor.d.mts +57 -0
- package/lib/core/openai-monitor.d.mts.map +1 -0
- package/lib/core/openai-monitor.d.ts.map +1 -1
- package/lib/core/openai-monitor.js +2 -4
- package/lib/core/openai-monitor.js.map +1 -1
- package/lib/integrations/bedrockAgentTracer.d.mts +3 -0
- package/lib/integrations/bedrockAgentTracer.d.mts.map +1 -0
- package/lib/integrations/bedrockAgentTracer.d.ts.map +1 -1
- package/lib/integrations/bedrockAgentTracer.js +2 -4
- package/lib/integrations/bedrockAgentTracer.js.map +1 -1
- package/lib/integrations/index.d.mts +5 -0
- package/lib/integrations/index.d.mts.map +1 -0
- package/lib/integrations/index.d.ts.map +1 -1
- package/lib/integrations/index.js +5 -18
- package/lib/integrations/index.js.map +1 -1
- package/lib/integrations/langchainCallback.d.mts +89 -0
- package/lib/integrations/langchainCallback.d.mts.map +1 -0
- package/lib/integrations/langchainCallback.d.ts.map +1 -1
- package/lib/integrations/openAiTracer.d.mts +3 -0
- package/lib/integrations/openAiTracer.d.mts.map +1 -0
- package/lib/integrations/openAiTracer.d.ts.map +1 -1
- package/lib/integrations/openAiTracer.js +2 -4
- package/lib/integrations/openAiTracer.js.map +1 -1
- package/lib/integrations/tracedTool.d.mts +66 -0
- package/lib/integrations/tracedTool.d.mts.map +1 -0
- package/lib/integrations/tracedTool.d.ts.map +1 -1
- package/lib/integrations/tracedTool.js +0 -1
- package/lib/integrations/tracedTool.js.map +1 -1
- package/lib/integrations/tracedTool.mjs +0 -1
- package/lib/integrations/tracedTool.mjs.map +1 -1
- package/lib/tracing/steps.d.mts +174 -0
- package/lib/tracing/steps.d.mts.map +1 -0
- package/lib/tracing/tracer.d.mts +94 -0
- package/lib/tracing/tracer.d.mts.map +1 -0
- package/lib/tracing/tracer.d.ts.map +1 -1
- package/lib/tracing/tracer.js +2 -4
- package/lib/tracing/tracer.js.map +1 -1
- package/lib/tracing/traces.d.mts +9 -0
- package/lib/tracing/traces.d.mts.map +1 -0
- package/lib/tracing/traces.d.ts.map +1 -1
- package/package.json +114 -65
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +3 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/commits/commits.d.mts +139 -0
- package/resources/commits/commits.d.mts.map +1 -0
- package/resources/commits/commits.d.ts +4 -3
- package/resources/commits/commits.d.ts.map +1 -1
- package/resources/commits/commits.js +6 -37
- package/resources/commits/commits.js.map +1 -1
- package/resources/commits/commits.mjs +4 -3
- package/resources/commits/commits.mjs.map +1 -1
- package/resources/commits/index.d.mts +3 -0
- package/resources/commits/index.d.mts.map +1 -0
- package/resources/commits/index.d.ts.map +1 -1
- package/resources/commits/test-results.d.mts +214 -0
- package/resources/commits/test-results.d.mts.map +1 -0
- package/resources/commits/test-results.d.ts +4 -4
- package/resources/commits/test-results.d.ts.map +1 -1
- package/resources/commits/test-results.js +7 -7
- package/resources/commits/test-results.js.map +1 -1
- package/resources/commits/test-results.mjs +7 -7
- package/resources/commits/test-results.mjs.map +1 -1
- package/resources/commits.d.mts +2 -0
- package/resources/commits.d.mts.map +1 -0
- package/resources/commits.d.ts.map +1 -1
- package/resources/commits.js +2 -15
- package/resources/commits.js.map +1 -1
- package/resources/index.d.mts +5 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/inference-pipelines/data.d.mts +257 -0
- package/resources/inference-pipelines/data.d.mts.map +1 -0
- package/resources/inference-pipelines/data.d.ts +4 -3
- package/resources/inference-pipelines/data.d.ts.map +1 -1
- package/resources/inference-pipelines/data.js +7 -3
- package/resources/inference-pipelines/data.js.map +1 -1
- package/resources/inference-pipelines/data.mjs +7 -3
- package/resources/inference-pipelines/data.mjs.map +1 -1
- package/resources/inference-pipelines/index.d.mts +5 -0
- package/resources/inference-pipelines/index.d.mts.map +1 -0
- package/resources/inference-pipelines/index.d.ts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.mts +507 -0
- package/resources/inference-pipelines/inference-pipelines.d.mts.map +1 -0
- package/resources/inference-pipelines/inference-pipelines.d.ts +6 -7
- package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.js +36 -51
- package/resources/inference-pipelines/inference-pipelines.js.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.mjs +32 -15
- package/resources/inference-pipelines/inference-pipelines.mjs.map +1 -1
- package/resources/inference-pipelines/rows.d.mts +65 -0
- package/resources/inference-pipelines/rows.d.mts.map +1 -0
- package/resources/inference-pipelines/rows.d.ts +4 -3
- package/resources/inference-pipelines/rows.d.ts.map +1 -1
- package/resources/inference-pipelines/rows.js +4 -3
- package/resources/inference-pipelines/rows.js.map +1 -1
- package/resources/inference-pipelines/rows.mjs +4 -3
- package/resources/inference-pipelines/rows.mjs.map +1 -1
- package/resources/inference-pipelines/test-results.d.mts +218 -0
- package/resources/inference-pipelines/test-results.d.mts.map +1 -0
- package/resources/inference-pipelines/test-results.d.ts +4 -4
- package/resources/inference-pipelines/test-results.d.ts.map +1 -1
- package/resources/inference-pipelines/test-results.js +15 -7
- package/resources/inference-pipelines/test-results.js.map +1 -1
- package/resources/inference-pipelines/test-results.mjs +15 -7
- package/resources/inference-pipelines/test-results.mjs.map +1 -1
- package/resources/inference-pipelines.d.mts +2 -0
- package/resources/inference-pipelines.d.mts.map +1 -0
- package/resources/inference-pipelines.d.ts.map +1 -1
- package/resources/inference-pipelines.js +2 -15
- package/resources/inference-pipelines.js.map +1 -1
- package/resources/projects/commits.d.mts +323 -0
- package/resources/projects/commits.d.mts.map +1 -0
- package/resources/projects/commits.d.ts +5 -5
- package/resources/projects/commits.d.ts.map +1 -1
- package/resources/projects/commits.js +16 -9
- package/resources/projects/commits.js.map +1 -1
- package/resources/projects/commits.mjs +16 -9
- package/resources/projects/commits.mjs.map +1 -1
- package/resources/projects/index.d.mts +5 -0
- package/resources/projects/index.d.mts.map +1 -0
- package/resources/projects/index.d.ts.map +1 -1
- package/resources/projects/inference-pipelines.d.mts +533 -0
- package/resources/projects/inference-pipelines.d.mts.map +1 -0
- package/resources/projects/inference-pipelines.d.ts +5 -5
- package/resources/projects/inference-pipelines.d.ts.map +1 -1
- package/resources/projects/inference-pipelines.js +17 -9
- package/resources/projects/inference-pipelines.js.map +1 -1
- package/resources/projects/inference-pipelines.mjs +17 -9
- package/resources/projects/inference-pipelines.mjs.map +1 -1
- package/resources/projects/projects.d.mts +249 -0
- package/resources/projects/projects.d.mts.map +1 -0
- package/resources/projects/projects.d.ts +5 -5
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js +13 -41
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +9 -5
- package/resources/projects/projects.mjs.map +1 -1
- package/resources/projects/tests.d.mts +501 -0
- package/resources/projects/tests.d.mts.map +1 -0
- package/resources/projects/tests.d.ts +6 -6
- package/resources/projects/tests.d.ts.map +1 -1
- package/resources/projects/tests.js +18 -11
- package/resources/projects/tests.js.map +1 -1
- package/resources/projects/tests.mjs +18 -11
- package/resources/projects/tests.mjs.map +1 -1
- package/resources/projects.d.mts +2 -0
- package/resources/projects.d.mts.map +1 -0
- package/resources/projects.d.ts.map +1 -1
- package/resources/projects.js +2 -15
- package/resources/projects.js.map +1 -1
- package/resources/storage/index.d.mts +3 -0
- package/resources/storage/index.d.mts.map +1 -0
- package/resources/storage/index.d.ts.map +1 -1
- package/resources/storage/presigned-url.d.mts +33 -0
- package/resources/storage/presigned-url.d.mts.map +1 -0
- package/resources/storage/presigned-url.d.ts +4 -3
- package/resources/storage/presigned-url.d.ts.map +1 -1
- package/resources/storage/presigned-url.js +1 -1
- package/resources/storage/presigned-url.js.map +1 -1
- package/resources/storage/presigned-url.mjs +1 -1
- package/resources/storage/presigned-url.mjs.map +1 -1
- package/resources/storage/storage.d.mts +10 -0
- package/resources/storage/storage.d.mts.map +1 -0
- package/resources/storage/storage.d.ts +1 -1
- package/resources/storage/storage.d.ts.map +1 -1
- package/resources/storage/storage.js +3 -35
- package/resources/storage/storage.js.map +1 -1
- package/resources/storage/storage.mjs +1 -1
- package/resources/storage.d.mts +2 -0
- package/resources/storage.d.mts.map +1 -0
- package/resources/storage.d.ts.map +1 -1
- package/resources/storage.js +2 -15
- package/resources/storage.js.map +1 -1
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +756 -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/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -130
- package/src/index.ts +5 -233
- 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/formats.ts +2 -1
- package/src/internal/qs/stringify.ts +17 -20
- package/src/internal/qs/utils.ts +14 -14
- 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/integrations/tracedTool.ts +0 -1
- package/src/resource.ts +2 -11
- package/src/resources/commits/commits.ts +6 -4
- package/src/resources/commits/test-results.ts +9 -17
- package/src/resources/inference-pipelines/data.ts +11 -6
- package/src/resources/inference-pipelines/inference-pipelines.ts +18 -40
- package/src/resources/inference-pipelines/rows.ts +8 -6
- package/src/resources/inference-pipelines/test-results.ts +9 -17
- package/src/resources/projects/commits.ts +13 -21
- package/src/resources/projects/inference-pipelines.ts +13 -21
- package/src/resources/projects/projects.ts +7 -12
- package/src/resources/projects/tests.ts +17 -25
- package/src/resources/storage/presigned-url.ts +4 -6
- package/src/resources/storage/storage.ts +1 -1
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -256
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -167
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -156
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -13
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -98
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -77
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -253
- package/core.d.ts.map +0 -1
- package/core.js +0 -924
- package/core.js.map +0 -1
- package/core.mjs +0 -892
- package/core.mjs.map +0 -1
- package/shims/node.d.ts +0 -26
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -6
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -4
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -6
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -4
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1236
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class TestResults extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List the test results for a project commit (project version).
|
|
7
|
+
*/
|
|
8
|
+
list(projectVersionID: string, query?: TestResultListParams | null | undefined, options?: RequestOptions): APIPromise<TestResultListResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface TestResultListResponse {
|
|
11
|
+
items: Array<TestResultListResponse.Item>;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace TestResultListResponse {
|
|
14
|
+
interface Item {
|
|
15
|
+
/**
|
|
16
|
+
* Project version (commit) id.
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* The creation date.
|
|
21
|
+
*/
|
|
22
|
+
dateCreated: string;
|
|
23
|
+
/**
|
|
24
|
+
* The data end date.
|
|
25
|
+
*/
|
|
26
|
+
dateDataEnds: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* The data start date.
|
|
29
|
+
*/
|
|
30
|
+
dateDataStarts: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* The last updated date.
|
|
33
|
+
*/
|
|
34
|
+
dateUpdated: string;
|
|
35
|
+
/**
|
|
36
|
+
* The inference pipeline id.
|
|
37
|
+
*/
|
|
38
|
+
inferencePipelineId: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* The project version (commit) id.
|
|
41
|
+
*/
|
|
42
|
+
projectVersionId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The status of the test.
|
|
45
|
+
*/
|
|
46
|
+
status: 'running' | 'passing' | 'failing' | 'skipped' | 'error';
|
|
47
|
+
/**
|
|
48
|
+
* The status message.
|
|
49
|
+
*/
|
|
50
|
+
statusMessage: string | null;
|
|
51
|
+
goal?: Item.Goal;
|
|
52
|
+
/**
|
|
53
|
+
* The test id.
|
|
54
|
+
*/
|
|
55
|
+
goalId?: string | null;
|
|
56
|
+
}
|
|
57
|
+
namespace Item {
|
|
58
|
+
interface Goal {
|
|
59
|
+
/**
|
|
60
|
+
* The test id.
|
|
61
|
+
*/
|
|
62
|
+
id: string;
|
|
63
|
+
/**
|
|
64
|
+
* The number of comments on the test.
|
|
65
|
+
*/
|
|
66
|
+
commentCount: number;
|
|
67
|
+
/**
|
|
68
|
+
* The test creator id.
|
|
69
|
+
*/
|
|
70
|
+
creatorId: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* The date the test was archived.
|
|
73
|
+
*/
|
|
74
|
+
dateArchived: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* The creation date.
|
|
77
|
+
*/
|
|
78
|
+
dateCreated: string;
|
|
79
|
+
/**
|
|
80
|
+
* The last updated date.
|
|
81
|
+
*/
|
|
82
|
+
dateUpdated: string;
|
|
83
|
+
/**
|
|
84
|
+
* The test description.
|
|
85
|
+
*/
|
|
86
|
+
description: unknown | null;
|
|
87
|
+
/**
|
|
88
|
+
* The test name.
|
|
89
|
+
*/
|
|
90
|
+
name: string;
|
|
91
|
+
/**
|
|
92
|
+
* The test number.
|
|
93
|
+
*/
|
|
94
|
+
number: number;
|
|
95
|
+
/**
|
|
96
|
+
* The project version (commit) id where the test was created.
|
|
97
|
+
*/
|
|
98
|
+
originProjectVersionId: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* The test subtype.
|
|
101
|
+
*/
|
|
102
|
+
subtype: 'anomalousColumnCount' | 'characterLength' | 'classImbalanceRatio' | 'expectColumnAToBeInColumnB' | 'columnAverage' | 'columnDrift' | 'columnStatistic' | 'columnValuesMatch' | 'conflictingLabelRowCount' | 'containsPii' | 'containsValidUrl' | 'correlatedFeatureCount' | 'customMetricThreshold' | 'duplicateRowCount' | 'emptyFeature' | 'emptyFeatureCount' | 'driftedFeatureCount' | 'featureMissingValues' | 'featureValueValidation' | 'greatExpectations' | 'groupByColumnStatsCheck' | 'illFormedRowCount' | 'isCode' | 'isJson' | 'llmRubricThresholdV2' | 'labelDrift' | 'metricThreshold' | 'newCategoryCount' | 'newLabelCount' | 'nullRowCount' | 'rowCount' | 'ppScoreValueValidation' | 'quasiConstantFeature' | 'quasiConstantFeatureCount' | 'sqlQuery' | 'dtypeValidation' | 'sentenceLength' | 'sizeRatio' | 'specialCharactersRatio' | 'stringValidation' | 'trainValLeakageRowCount';
|
|
103
|
+
/**
|
|
104
|
+
* Whether the test is suggested or user-created.
|
|
105
|
+
*/
|
|
106
|
+
suggested: boolean;
|
|
107
|
+
thresholds: Array<Goal.Threshold>;
|
|
108
|
+
/**
|
|
109
|
+
* The test type.
|
|
110
|
+
*/
|
|
111
|
+
type: 'integrity' | 'consistency' | 'performance';
|
|
112
|
+
/**
|
|
113
|
+
* Whether the test is archived.
|
|
114
|
+
*/
|
|
115
|
+
archived?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* The delay window in seconds. Only applies to tests that use production data.
|
|
118
|
+
*/
|
|
119
|
+
delayWindow?: number | null;
|
|
120
|
+
/**
|
|
121
|
+
* The evaluation window in seconds. Only applies to tests that use production
|
|
122
|
+
* data.
|
|
123
|
+
*/
|
|
124
|
+
evaluationWindow?: number | null;
|
|
125
|
+
/**
|
|
126
|
+
* Whether the test uses an ML model.
|
|
127
|
+
*/
|
|
128
|
+
usesMlModel?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Whether the test uses production data (monitoring mode only).
|
|
131
|
+
*/
|
|
132
|
+
usesProductionData?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Whether the test uses a reference dataset (monitoring mode only).
|
|
135
|
+
*/
|
|
136
|
+
usesReferenceDataset?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Whether the test uses a training dataset.
|
|
139
|
+
*/
|
|
140
|
+
usesTrainingDataset?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Whether the test uses a validation dataset.
|
|
143
|
+
*/
|
|
144
|
+
usesValidationDataset?: boolean;
|
|
145
|
+
}
|
|
146
|
+
namespace Goal {
|
|
147
|
+
interface Threshold {
|
|
148
|
+
/**
|
|
149
|
+
* The insight name to be evaluated.
|
|
150
|
+
*/
|
|
151
|
+
insightName?: 'characterLength' | 'classImbalance' | 'expectColumnAToBeInColumnB' | 'columnAverage' | 'columnDrift' | 'columnValuesMatch' | 'confidenceDistribution' | 'conflictingLabelRowCount' | 'containsPii' | 'containsValidUrl' | 'correlatedFeatures' | 'customMetric' | 'duplicateRowCount' | 'emptyFeatures' | 'featureDrift' | 'featureProfile' | 'greatExpectations' | 'groupByColumnStatsCheck' | 'illFormedRowCount' | 'isCode' | 'isJson' | 'llmRubricV2' | 'labelDrift' | 'metrics' | 'newCategories' | 'newLabels' | 'nullRowCount' | 'ppScore' | 'quasiConstantFeatures' | 'sentenceLength' | 'sizeRatio' | 'specialCharacters' | 'stringValidation' | 'trainValLeakageRowCount';
|
|
152
|
+
/**
|
|
153
|
+
* The insight parameters. Required only for some test subtypes. For example, for
|
|
154
|
+
* tests that require a column name, the insight parameters will be [{'name':
|
|
155
|
+
* 'column_name', 'value': 'Age'}]
|
|
156
|
+
*/
|
|
157
|
+
insightParameters?: Array<Threshold.InsightParameter> | null;
|
|
158
|
+
/**
|
|
159
|
+
* The measurement to be evaluated.
|
|
160
|
+
*/
|
|
161
|
+
measurement?: string;
|
|
162
|
+
/**
|
|
163
|
+
* The operator to be used for the evaluation.
|
|
164
|
+
*/
|
|
165
|
+
operator?: 'is' | '>' | '>=' | '<' | '<=' | '!=';
|
|
166
|
+
/**
|
|
167
|
+
* Whether to use automatic anomaly detection or manual thresholds
|
|
168
|
+
*/
|
|
169
|
+
thresholdMode?: 'automatic' | 'manual';
|
|
170
|
+
/**
|
|
171
|
+
* The value to be compared.
|
|
172
|
+
*/
|
|
173
|
+
value?: number | boolean | string | Array<string>;
|
|
174
|
+
}
|
|
175
|
+
namespace Threshold {
|
|
176
|
+
interface InsightParameter {
|
|
177
|
+
/**
|
|
178
|
+
* The name of the insight filter.
|
|
179
|
+
*/
|
|
180
|
+
name: string;
|
|
181
|
+
value: unknown;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
export interface TestResultListParams {
|
|
188
|
+
/**
|
|
189
|
+
* Filter for archived tests.
|
|
190
|
+
*/
|
|
191
|
+
includeArchived?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* The page to return in a paginated query.
|
|
194
|
+
*/
|
|
195
|
+
page?: number;
|
|
196
|
+
/**
|
|
197
|
+
* Maximum number of items to return per page.
|
|
198
|
+
*/
|
|
199
|
+
perPage?: number;
|
|
200
|
+
/**
|
|
201
|
+
* Filter list of test results by status. Available statuses are `running`,
|
|
202
|
+
* `passing`, `failing`, `skipped`, and `error`.
|
|
203
|
+
*/
|
|
204
|
+
status?: 'running' | 'passing' | 'failing' | 'skipped' | 'error';
|
|
205
|
+
/**
|
|
206
|
+
* Filter objects by test type. Available types are `integrity`, `consistency`,
|
|
207
|
+
* `performance`, `fairness`, and `robustness`.
|
|
208
|
+
*/
|
|
209
|
+
type?: 'integrity' | 'consistency' | 'performance' | 'fairness' | 'robustness';
|
|
210
|
+
}
|
|
211
|
+
export declare namespace TestResults {
|
|
212
|
+
export { type TestResultListResponse as TestResultListResponse, type TestResultListParams as TestResultListParams, };
|
|
213
|
+
}
|
|
214
|
+
//# sourceMappingURL=test-results.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-results.d.mts","sourceRoot":"","sources":["../../src/resources/commits/test-results.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,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KAAK,EAAE,OAAO,CAAC;iBAChB;aACF;SACF;KACF;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAEjE;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,aAAa,GAAG,UAAU,GAAG,YAAY,CAAC;CAChF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
3
4
|
export declare class TestResults extends APIResource {
|
|
4
5
|
/**
|
|
5
6
|
* List the test results for a project commit (project version).
|
|
6
7
|
*/
|
|
7
|
-
list(
|
|
8
|
-
list(projectVersionId: string, options?: Core.RequestOptions): Core.APIPromise<TestResultListResponse>;
|
|
8
|
+
list(projectVersionID: string, query?: TestResultListParams | null | undefined, options?: RequestOptions): APIPromise<TestResultListResponse>;
|
|
9
9
|
}
|
|
10
10
|
export interface TestResultListResponse {
|
|
11
11
|
items: Array<TestResultListResponse.Item>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-results.d.ts","sourceRoot":"","sources":["../../src/resources/commits/test-results.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-results.d.ts","sourceRoot":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AG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;aACnD;YAED,UAAiB,SAAS,CAAC;gBACzB,UAAiB,gBAAgB;oBAC/B;;uBAEG;oBACH,IAAI,EAAE,MAAM,CAAC;oBAEb,KAAK,EAAE,OAAO,CAAC;iBAChB;aACF;SACF;KACF;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAEjE;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,aAAa,GAAG,UAAU,GAAG,YAAY,CAAC;CAChF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.TestResults = void 0;
|
|
5
|
-
const resource_1 = require("../../resource.js");
|
|
6
|
-
const
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
7
|
class TestResults extends resource_1.APIResource {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return this._client.get(`/versions/${
|
|
8
|
+
/**
|
|
9
|
+
* List the test results for a project commit (project version).
|
|
10
|
+
*/
|
|
11
|
+
list(projectVersionID, query = {}, options) {
|
|
12
|
+
return this._client.get((0, path_1.path) `/versions/${projectVersionID}/results`, { query, ...options });
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.TestResults = TestResults;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-results.js","sourceRoot":"","sources":["../../src/resources/commits/test-results.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"test-results.js","sourceRoot":"","sources":["../../src/resources/commits/test-results.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,IAAI,CACF,gBAAwB,EACxB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,gBAAgB,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AAXD,kCAWC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
4
|
export class TestResults extends APIResource {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return this._client.get(`/versions/${
|
|
5
|
+
/**
|
|
6
|
+
* List the test results for a project commit (project version).
|
|
7
|
+
*/
|
|
8
|
+
list(projectVersionID, query = {}, options) {
|
|
9
|
+
return this._client.get(path `/versions/${projectVersionID}/results`, { query, ...options });
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=test-results.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-results.mjs","sourceRoot":"","sources":["../../src/resources/commits/test-results.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"test-results.mjs","sourceRoot":"","sources":["../../src/resources/commits/test-results.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,IAAI,CACF,gBAAwB,EACxB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,gBAAgB,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commits.d.mts","sourceRoot":"","sources":["../src/resources/commits.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commits.d.ts","sourceRoot":"","sources":["../src/resources/commits.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commits.d.ts","sourceRoot":"","sources":["../src/resources/commits.ts"],"names":[],"mappings":""}
|
package/resources/commits.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
-
};
|
|
17
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./commits/index.js"), exports);
|
|
19
6
|
//# sourceMappingURL=commits.js.map
|
package/resources/commits.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commits.js","sourceRoot":"","sources":["../src/resources/commits.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"commits.js","sourceRoot":"","sources":["../src/resources/commits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Commits, type CommitRetrieveResponse } from "./commits/commits.mjs";
|
|
2
|
+
export { InferencePipelines, type InferencePipelineRetrieveResponse, type InferencePipelineUpdateResponse, type InferencePipelineRetrieveParams, type InferencePipelineUpdateParams, } from "./inference-pipelines/inference-pipelines.mjs";
|
|
3
|
+
export { Projects, type ProjectCreateResponse, type ProjectListResponse, type ProjectCreateParams, type ProjectListParams, } from "./projects/projects.mjs";
|
|
4
|
+
export { Storage } from "./storage/storage.mjs";
|
|
5
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE,KAAK,sBAAsB,EAAE;OACxC,EACL,kBAAkB,EAClB,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EAAE,OAAO,EAAE"}
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE,KAAK,sBAAsB,EAAE;OACxC,EACL,kBAAkB,EAClB,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,GACnC;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EAAE,OAAO,EAAE"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Data extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Publish an inference data point to an inference pipeline.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response =
|
|
11
|
+
* await client.inferencePipelines.data.stream(
|
|
12
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
13
|
+
* {
|
|
14
|
+
* config: { outputColumnName: 'output' },
|
|
15
|
+
* rows: [
|
|
16
|
+
* {
|
|
17
|
+
* user_query: 'bar',
|
|
18
|
+
* output: 'bar',
|
|
19
|
+
* tokens: 'bar',
|
|
20
|
+
* cost: 'bar',
|
|
21
|
+
* timestamp: 'bar',
|
|
22
|
+
* },
|
|
23
|
+
* ],
|
|
24
|
+
* },
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
stream(inferencePipelineID: string, body: DataStreamParams, options?: RequestOptions): APIPromise<DataStreamResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface DataStreamResponse {
|
|
31
|
+
success: true;
|
|
32
|
+
}
|
|
33
|
+
export interface DataStreamParams {
|
|
34
|
+
/**
|
|
35
|
+
* Configuration for the data stream. Depends on your **Openlayer project task
|
|
36
|
+
* type**.
|
|
37
|
+
*/
|
|
38
|
+
config: DataStreamParams.LlmData | DataStreamParams.TabularClassificationData | DataStreamParams.TabularRegressionData | DataStreamParams.TextClassificationData;
|
|
39
|
+
/**
|
|
40
|
+
* A list of inference data points with inputs and outputs
|
|
41
|
+
*/
|
|
42
|
+
rows: Array<{
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
46
|
+
export declare namespace DataStreamParams {
|
|
47
|
+
interface LlmData {
|
|
48
|
+
/**
|
|
49
|
+
* Name of the column with the model outputs.
|
|
50
|
+
*/
|
|
51
|
+
outputColumnName: string;
|
|
52
|
+
/**
|
|
53
|
+
* Name of the column with the context retrieved. Applies to RAG use cases.
|
|
54
|
+
* Providing the context enables RAG-specific metrics.
|
|
55
|
+
*/
|
|
56
|
+
contextColumnName?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Name of the column with the cost associated with each row.
|
|
59
|
+
*/
|
|
60
|
+
costColumnName?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Name of the column with the ground truths.
|
|
63
|
+
*/
|
|
64
|
+
groundTruthColumnName?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Name of the column with the inference ids. This is useful if you want to update
|
|
67
|
+
* rows at a later point in time. If not provided, a unique id is generated by
|
|
68
|
+
* Openlayer.
|
|
69
|
+
*/
|
|
70
|
+
inferenceIdColumnName?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Array of input variable names. Each input variable should be a dataset column.
|
|
73
|
+
*/
|
|
74
|
+
inputVariableNames?: Array<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Name of the column with the latencies.
|
|
77
|
+
*/
|
|
78
|
+
latencyColumnName?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Object with metadata.
|
|
81
|
+
*/
|
|
82
|
+
metadata?: unknown;
|
|
83
|
+
/**
|
|
84
|
+
* Name of the column with the total number of tokens.
|
|
85
|
+
*/
|
|
86
|
+
numOfTokenColumnName?: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* Prompt for the LLM.
|
|
89
|
+
*/
|
|
90
|
+
prompt?: Array<LlmData.Prompt>;
|
|
91
|
+
/**
|
|
92
|
+
* Name of the column with the questions. Applies to RAG use cases. Providing the
|
|
93
|
+
* question enables RAG-specific metrics.
|
|
94
|
+
*/
|
|
95
|
+
questionColumnName?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Name of the column with the session id.
|
|
98
|
+
*/
|
|
99
|
+
sessionIdColumnName?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
102
|
+
* If not provided, the upload timestamp is used.
|
|
103
|
+
*/
|
|
104
|
+
timestampColumnName?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Name of the column with the user id.
|
|
107
|
+
*/
|
|
108
|
+
userIdColumnName?: string | null;
|
|
109
|
+
}
|
|
110
|
+
namespace LlmData {
|
|
111
|
+
interface Prompt {
|
|
112
|
+
/**
|
|
113
|
+
* Content of the prompt.
|
|
114
|
+
*/
|
|
115
|
+
content?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Role of the prompt.
|
|
118
|
+
*/
|
|
119
|
+
role?: string;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
interface TabularClassificationData {
|
|
123
|
+
/**
|
|
124
|
+
* List of class names indexed by label integer in the dataset. E.g. ["Retained",
|
|
125
|
+
* "Exited"] when 0, 1 are in your label column.
|
|
126
|
+
*/
|
|
127
|
+
classNames: Array<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Array with the names of all categorical features in the dataset. E.g. ["Age",
|
|
130
|
+
* "Geography"].
|
|
131
|
+
*/
|
|
132
|
+
categoricalFeatureNames?: Array<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Array with all input feature names.
|
|
135
|
+
*/
|
|
136
|
+
featureNames?: Array<string>;
|
|
137
|
+
/**
|
|
138
|
+
* Name of the column with the inference ids. This is useful if you want to update
|
|
139
|
+
* rows at a later point in time. If not provided, a unique id is generated by
|
|
140
|
+
* Openlayer.
|
|
141
|
+
*/
|
|
142
|
+
inferenceIdColumnName?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Name of the column with the labels. The data in this column must be
|
|
145
|
+
* **zero-indexed integers**, matching the list provided in `classNames`.
|
|
146
|
+
*/
|
|
147
|
+
labelColumnName?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Name of the column with the latencies.
|
|
150
|
+
*/
|
|
151
|
+
latencyColumnName?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Object with metadata.
|
|
154
|
+
*/
|
|
155
|
+
metadata?: unknown;
|
|
156
|
+
/**
|
|
157
|
+
* Name of the column with the model's predictions as **zero-indexed integers**.
|
|
158
|
+
*/
|
|
159
|
+
predictionsColumnName?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Name of the column with the model's predictions as **lists of class
|
|
162
|
+
* probabilities**.
|
|
163
|
+
*/
|
|
164
|
+
predictionScoresColumnName?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
167
|
+
* If not provided, the upload timestamp is used.
|
|
168
|
+
*/
|
|
169
|
+
timestampColumnName?: string;
|
|
170
|
+
}
|
|
171
|
+
interface TabularRegressionData {
|
|
172
|
+
/**
|
|
173
|
+
* Array with the names of all categorical features in the dataset. E.g. ["Gender",
|
|
174
|
+
* "Geography"].
|
|
175
|
+
*/
|
|
176
|
+
categoricalFeatureNames?: Array<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Array with all input feature names.
|
|
179
|
+
*/
|
|
180
|
+
featureNames?: Array<string>;
|
|
181
|
+
/**
|
|
182
|
+
* Name of the column with the inference ids. This is useful if you want to update
|
|
183
|
+
* rows at a later point in time. If not provided, a unique id is generated by
|
|
184
|
+
* Openlayer.
|
|
185
|
+
*/
|
|
186
|
+
inferenceIdColumnName?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Name of the column with the latencies.
|
|
189
|
+
*/
|
|
190
|
+
latencyColumnName?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Object with metadata.
|
|
193
|
+
*/
|
|
194
|
+
metadata?: unknown;
|
|
195
|
+
/**
|
|
196
|
+
* Name of the column with the model's predictions.
|
|
197
|
+
*/
|
|
198
|
+
predictionsColumnName?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Name of the column with the targets (ground truth values).
|
|
201
|
+
*/
|
|
202
|
+
targetColumnName?: string;
|
|
203
|
+
/**
|
|
204
|
+
* Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
205
|
+
* If not provided, the upload timestamp is used.
|
|
206
|
+
*/
|
|
207
|
+
timestampColumnName?: string;
|
|
208
|
+
}
|
|
209
|
+
interface TextClassificationData {
|
|
210
|
+
/**
|
|
211
|
+
* List of class names indexed by label integer in the dataset. E.g. ["Retained",
|
|
212
|
+
* "Exited"] when 0, 1 are in your label column.
|
|
213
|
+
*/
|
|
214
|
+
classNames: Array<string>;
|
|
215
|
+
/**
|
|
216
|
+
* Name of the column with the inference ids. This is useful if you want to update
|
|
217
|
+
* rows at a later point in time. If not provided, a unique id is generated by
|
|
218
|
+
* Openlayer.
|
|
219
|
+
*/
|
|
220
|
+
inferenceIdColumnName?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Name of the column with the labels. The data in this column must be
|
|
223
|
+
* **zero-indexed integers**, matching the list provided in `classNames`.
|
|
224
|
+
*/
|
|
225
|
+
labelColumnName?: string;
|
|
226
|
+
/**
|
|
227
|
+
* Name of the column with the latencies.
|
|
228
|
+
*/
|
|
229
|
+
latencyColumnName?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Object with metadata.
|
|
232
|
+
*/
|
|
233
|
+
metadata?: unknown;
|
|
234
|
+
/**
|
|
235
|
+
* Name of the column with the model's predictions as **zero-indexed integers**.
|
|
236
|
+
*/
|
|
237
|
+
predictionsColumnName?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Name of the column with the model's predictions as **lists of class
|
|
240
|
+
* probabilities**.
|
|
241
|
+
*/
|
|
242
|
+
predictionScoresColumnName?: string;
|
|
243
|
+
/**
|
|
244
|
+
* Name of the column with the text data.
|
|
245
|
+
*/
|
|
246
|
+
textColumnName?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
249
|
+
* If not provided, the upload timestamp is used.
|
|
250
|
+
*/
|
|
251
|
+
timestampColumnName?: string;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
export declare namespace Data {
|
|
255
|
+
export { type DataStreamResponse as DataStreamResponse, type DataStreamParams as DataStreamParams };
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=data.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.mts","sourceRoot":"","sources":["../../src/resources/inference-pipelines/data.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CACJ,mBAAmB,EAAE,MAAM,EAC3B,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAMlC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,MAAM,EACF,gB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