scorecard-ai 0.6.1 → 1.0.0-alpha.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 +53 -0
- package/LICENSE +3 -3
- package/README.md +358 -80
- 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 +19 -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 +216 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +216 -0
- package/client.d.ts.map +1 -0
- package/client.js +505 -0
- package/client.js.map +1 -0
- package/client.mjs +478 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +47 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +47 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +84 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +80 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +47 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +47 -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 +60 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +60 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +119 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +113 -0
- package/core/pagination.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 +19 -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 -4
- package/index.d.ts.map +1 -0
- package/index.js +30 -32
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +75 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +75 -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 +21 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +21 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +77 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +72 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +13 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +13 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +36 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +33 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +33 -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 +28 -0
- package/internal/shim-types.d.ts +28 -0
- package/internal/shims/crypto.d.mts +13 -0
- package/internal/shims/crypto.d.mts.map +1 -0
- package/internal/shims/crypto.d.ts +13 -0
- package/internal/shims/crypto.d.ts.map +1 -0
- package/internal/shims/crypto.js +13 -0
- package/internal/shims/crypto.js.map +1 -0
- package/internal/shims/crypto.mjs +9 -0
- package/internal/shims/crypto.mjs.map +1 -0
- package/internal/shims/file.d.mts +23 -0
- package/internal/shims/file.d.mts.map +1 -0
- package/internal/shims/file.d.ts +23 -0
- package/internal/shims/file.d.ts.map +1 -0
- package/internal/shims/file.js +16 -0
- package/internal/shims/file.js.map +1 -0
- package/internal/shims/file.mjs +12 -0
- package/internal/shims/file.mjs.map +1 -0
- package/internal/shims/getBuiltinModule.d.mts +11 -0
- package/internal/shims/getBuiltinModule.d.mts.map +1 -0
- package/internal/shims/getBuiltinModule.d.ts +11 -0
- package/internal/shims/getBuiltinModule.d.ts.map +1 -0
- package/internal/shims/getBuiltinModule.js +71 -0
- package/internal/shims/getBuiltinModule.js.map +1 -0
- package/internal/shims/getBuiltinModule.mjs +67 -0
- package/internal/shims/getBuiltinModule.mjs.map +1 -0
- package/internal/shims/nullGetBuiltinModule.d.mts +2 -0
- package/internal/shims/nullGetBuiltinModule.d.mts.map +1 -0
- package/internal/shims/nullGetBuiltinModule.d.ts +2 -0
- package/internal/shims/nullGetBuiltinModule.d.ts.map +1 -0
- package/internal/shims/nullGetBuiltinModule.js +5 -0
- package/internal/shims/nullGetBuiltinModule.js.map +1 -0
- package/internal/shims/nullGetBuiltinModule.mjs +2 -0
- package/internal/shims/nullGetBuiltinModule.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 +93 -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 +46 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +46 -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 +87 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/types.d.mts +68 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +68 -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 +44 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +44 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +131 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +122 -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 +37 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +32 -0
- package/internal/utils/base64.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 +38 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +38 -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 +58 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +53 -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 +20 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +16 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +16 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +16 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +109 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +92 -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 +24 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +154 -97
- 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 +19 -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 +19 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/execution-records.d.mts +62 -0
- package/resources/execution-records.d.mts.map +1 -0
- package/resources/execution-records.d.ts +62 -0
- package/resources/execution-records.d.ts.map +1 -0
- package/resources/execution-records.js +16 -0
- package/resources/execution-records.js.map +1 -0
- package/resources/execution-records.mjs +12 -0
- package/resources/execution-records.mjs.map +1 -0
- package/resources/index.d.mts +9 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +9 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +34 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +10 -0
- package/resources/index.mjs.map +1 -0
- package/resources/projects.d.mts +30 -0
- package/resources/projects.d.mts.map +1 -0
- package/resources/projects.d.ts +30 -0
- package/resources/projects.d.ts.map +1 -0
- package/resources/projects.js +20 -0
- package/resources/projects.js.map +1 -0
- package/resources/projects.mjs +16 -0
- package/resources/projects.mjs.map +1 -0
- package/resources/runs.d.mts +48 -0
- package/resources/runs.d.mts.map +1 -0
- package/resources/runs.d.ts +48 -0
- package/resources/runs.d.ts.map +1 -0
- package/resources/runs.js +16 -0
- package/resources/runs.js.map +1 -0
- package/resources/runs.mjs +12 -0
- package/resources/runs.mjs.map +1 -0
- package/resources/shared.d.mts +9 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +9 -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/system-configs.d.mts +122 -0
- package/resources/system-configs.d.mts.map +1 -0
- package/resources/system-configs.d.ts +122 -0
- package/resources/system-configs.d.ts.map +1 -0
- package/resources/system-configs.js +50 -0
- package/resources/system-configs.js.map +1 -0
- package/resources/system-configs.mjs +46 -0
- package/resources/system-configs.mjs.map +1 -0
- package/resources/systems.d.mts +152 -0
- package/resources/systems.d.mts.map +1 -0
- package/resources/systems.d.ts +152 -0
- package/resources/systems.d.ts.map +1 -0
- package/resources/systems.js +70 -0
- package/resources/systems.js.map +1 -0
- package/resources/systems.mjs +66 -0
- package/resources/systems.mjs.map +1 -0
- package/resources/testcases.d.mts +125 -0
- package/resources/testcases.d.mts.map +1 -0
- package/resources/testcases.d.ts +125 -0
- package/resources/testcases.d.ts.map +1 -0
- package/resources/testcases.js +44 -0
- package/resources/testcases.js.map +1 -0
- package/resources/testcases.mjs +40 -0
- package/resources/testcases.mjs.map +1 -0
- package/resources/testsets.d.mts +197 -0
- package/resources/testsets.d.mts.map +1 -0
- package/resources/testsets.d.ts +197 -0
- package/resources/testsets.d.ts.map +1 -0
- package/resources/testsets.js +56 -0
- package/resources/testsets.js.map +1 -0
- package/resources/testsets.mjs +52 -0
- package/resources/testsets.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 +18 -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 +852 -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 +175 -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 +96 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +37 -0
- package/src/internal/shim-types.d.ts +28 -0
- package/src/internal/shims/crypto.ts +18 -0
- package/src/internal/shims/file.ts +32 -0
- package/src/internal/shims/getBuiltinModule.ts +66 -0
- package/src/internal/shims/nullGetBuiltinModule.ts +1 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +152 -0
- package/src/internal/types.ts +92 -0
- package/src/internal/uploads.ts +175 -0
- package/src/internal/utils/base64.ts +39 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +65 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +19 -0
- package/src/internal/utils/values.ts +102 -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/execution-records.ts +85 -0
- package/src/resources/index.ts +52 -0
- package/src/resources/projects.ts +48 -0
- package/src/resources/runs.ts +61 -0
- package/src/resources/shared.ts +12 -0
- package/src/resources/system-configs.ts +170 -0
- package/src/resources/systems.ts +206 -0
- package/src/resources/testcases.ts +178 -0
- package/src/resources/testsets.ts +257 -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 +19 -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
- package/Client.d.ts +0 -51
- package/Client.js +0 -57
- package/api/errors/ForbiddenError.d.ts +0 -8
- package/api/errors/ForbiddenError.js +0 -41
- package/api/errors/NotFoundError.d.ts +0 -8
- package/api/errors/NotFoundError.js +0 -41
- package/api/errors/UnauthorizedError.d.ts +0 -8
- package/api/errors/UnauthorizedError.js +0 -41
- package/api/errors/UnprocessableEntityError.d.ts +0 -8
- package/api/errors/UnprocessableEntityError.js +0 -41
- package/api/errors/index.d.ts +0 -4
- package/api/errors/index.js +0 -20
- package/api/index.d.ts +0 -3
- package/api/index.js +0 -19
- package/api/resources/index.d.ts +0 -19
- package/api/resources/index.js +0 -48
- package/api/resources/prompt/client/Client.d.ts +0 -157
- package/api/resources/prompt/client/Client.js +0 -666
- package/api/resources/prompt/client/index.d.ts +0 -1
- package/api/resources/prompt/client/index.js +0 -17
- package/api/resources/prompt/client/requests/PromptCreateParams.d.ts +0 -46
- package/api/resources/prompt/client/requests/PromptCreateParams.js +0 -5
- package/api/resources/prompt/client/requests/PromptGetByNameRequest.d.ts +0 -19
- package/api/resources/prompt/client/requests/PromptGetByNameRequest.js +0 -5
- package/api/resources/prompt/client/requests/PromptListPromptsRequest.d.ts +0 -21
- package/api/resources/prompt/client/requests/PromptListPromptsRequest.js +0 -5
- package/api/resources/prompt/client/requests/PromptUpdateParams.d.ts +0 -12
- package/api/resources/prompt/client/requests/PromptUpdateParams.js +0 -5
- package/api/resources/prompt/client/requests/index.d.ts +0 -4
- package/api/resources/prompt/client/requests/index.js +0 -2
- package/api/resources/prompt/index.d.ts +0 -2
- package/api/resources/prompt/index.js +0 -18
- package/api/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +0 -4
- package/api/resources/prompt/types/PromptCreateParamsModelParamsValue.js +0 -5
- package/api/resources/prompt/types/index.d.ts +0 -1
- package/api/resources/prompt/types/index.js +0 -17
- package/api/resources/run/client/Client.d.ts +0 -74
- package/api/resources/run/client/Client.js +0 -339
- package/api/resources/run/client/index.d.ts +0 -1
- package/api/resources/run/client/index.js +0 -17
- package/api/resources/run/client/requests/RunCreateParams.d.ts +0 -18
- package/api/resources/run/client/requests/RunCreateParams.js +0 -5
- package/api/resources/run/client/requests/UpdateStatusParams.d.ts +0 -11
- package/api/resources/run/client/requests/UpdateStatusParams.js +0 -5
- package/api/resources/run/client/requests/index.d.ts +0 -2
- package/api/resources/run/client/requests/index.js +0 -2
- package/api/resources/run/index.d.ts +0 -1
- package/api/resources/run/index.js +0 -17
- package/api/resources/runMetric/client/Client.d.ts +0 -43
- package/api/resources/runMetric/client/Client.js +0 -152
- package/api/resources/runMetric/client/index.d.ts +0 -1
- package/api/resources/runMetric/client/index.js +0 -2
- package/api/resources/runMetric/index.d.ts +0 -1
- package/api/resources/runMetric/index.js +0 -17
- package/api/resources/score/client/Client.d.ts +0 -65
- package/api/resources/score/client/Client.js +0 -253
- package/api/resources/score/client/index.d.ts +0 -1
- package/api/resources/score/client/index.js +0 -17
- package/api/resources/score/client/requests/ScoreCreateParams.d.ts +0 -19
- package/api/resources/score/client/requests/ScoreCreateParams.js +0 -5
- package/api/resources/score/client/requests/ScoreUpdateParams.d.ts +0 -15
- package/api/resources/score/client/requests/ScoreUpdateParams.js +0 -5
- package/api/resources/score/client/requests/index.d.ts +0 -2
- package/api/resources/score/client/requests/index.js +0 -2
- package/api/resources/score/index.d.ts +0 -1
- package/api/resources/score/index.js +0 -17
- package/api/resources/scoringConfig/client/Client.d.ts +0 -78
- package/api/resources/scoringConfig/client/Client.js +0 -336
- package/api/resources/scoringConfig/client/index.d.ts +0 -1
- package/api/resources/scoringConfig/client/index.js +0 -17
- package/api/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +0 -18
- package/api/resources/scoringConfig/client/requests/ScoringConfigCreateParams.js +0 -5
- package/api/resources/scoringConfig/client/requests/index.d.ts +0 -1
- package/api/resources/scoringConfig/client/requests/index.js +0 -2
- package/api/resources/scoringConfig/index.d.ts +0 -1
- package/api/resources/scoringConfig/index.js +0 -17
- package/api/resources/testcase/client/Client.d.ts +0 -125
- package/api/resources/testcase/client/Client.js +0 -623
- package/api/resources/testcase/client/index.d.ts +0 -1
- package/api/resources/testcase/client/index.js +0 -17
- package/api/resources/testcase/client/requests/TestcaseBatchCopyParams.d.ts +0 -11
- package/api/resources/testcase/client/requests/TestcaseBatchCopyParams.js +0 -5
- package/api/resources/testcase/client/requests/TestcaseBatchDeleteParams.d.ts +0 -11
- package/api/resources/testcase/client/requests/TestcaseBatchDeleteParams.js +0 -5
- package/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +0 -18
- package/api/resources/testcase/client/requests/TestcaseCreateParams.js +0 -5
- package/api/resources/testcase/client/requests/TestcaseUpdateParams.d.ts +0 -18
- package/api/resources/testcase/client/requests/TestcaseUpdateParams.js +0 -5
- package/api/resources/testcase/client/requests/index.d.ts +0 -4
- package/api/resources/testcase/client/requests/index.js +0 -2
- package/api/resources/testcase/index.d.ts +0 -2
- package/api/resources/testcase/index.js +0 -18
- package/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +0 -5
- package/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +0 -5
- package/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +0 -5
- package/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +0 -5
- package/api/resources/testcase/types/TestcaseUpdateParamsCustomInputsValue.d.ts +0 -5
- package/api/resources/testcase/types/TestcaseUpdateParamsCustomInputsValue.js +0 -5
- package/api/resources/testcase/types/TestcaseUpdateParamsCustomLabelsValue.d.ts +0 -5
- package/api/resources/testcase/types/TestcaseUpdateParamsCustomLabelsValue.js +0 -5
- package/api/resources/testcase/types/index.d.ts +0 -4
- package/api/resources/testcase/types/index.js +0 -20
- package/api/resources/testrecord/client/Client.d.ts +0 -60
- package/api/resources/testrecord/client/Client.js +0 -247
- package/api/resources/testrecord/client/index.d.ts +0 -1
- package/api/resources/testrecord/client/index.js +0 -17
- package/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +0 -31
- package/api/resources/testrecord/client/requests/TestrecordCreateParams.js +0 -5
- package/api/resources/testrecord/client/requests/index.d.ts +0 -1
- package/api/resources/testrecord/client/requests/index.js +0 -2
- package/api/resources/testrecord/index.d.ts +0 -2
- package/api/resources/testrecord/index.js +0 -18
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +0 -5
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +0 -5
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +0 -5
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +0 -5
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +0 -5
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +0 -5
- package/api/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +0 -4
- package/api/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.js +0 -5
- package/api/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +0 -4
- package/api/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.js +0 -5
- package/api/resources/testrecord/types/index.d.ts +0 -5
- package/api/resources/testrecord/types/index.js +0 -21
- package/api/resources/testset/client/Client.d.ts +0 -122
- package/api/resources/testset/client/Client.js +0 -636
- package/api/resources/testset/client/index.d.ts +0 -1
- package/api/resources/testset/client/index.js +0 -17
- package/api/resources/testset/client/requests/TestsetCreateParams.d.ts +0 -26
- package/api/resources/testset/client/requests/TestsetCreateParams.js +0 -5
- package/api/resources/testset/client/requests/TestsetGetRequest.d.ts +0 -11
- package/api/resources/testset/client/requests/TestsetGetRequest.js +0 -5
- package/api/resources/testset/client/requests/TestsetGetTestcasesRequest.d.ts +0 -17
- package/api/resources/testset/client/requests/TestsetGetTestcasesRequest.js +0 -5
- package/api/resources/testset/client/requests/TestsetUpdateParams.d.ts +0 -16
- package/api/resources/testset/client/requests/TestsetUpdateParams.js +0 -5
- package/api/resources/testset/client/requests/index.d.ts +0 -4
- package/api/resources/testset/client/requests/index.js +0 -2
- package/api/resources/testset/index.d.ts +0 -1
- package/api/resources/testset/index.js +0 -17
- package/api/resources/tracing/client/Client.d.ts +0 -72
- package/api/resources/tracing/client/Client.js +0 -327
- package/api/resources/tracing/client/index.d.ts +0 -1
- package/api/resources/tracing/client/index.js +0 -2
- package/api/resources/tracing/index.d.ts +0 -1
- package/api/resources/tracing/index.js +0 -17
- package/api/types/CreateGithubWorkflowParams.d.ts +0 -4
- package/api/types/CreateGithubWorkflowParams.js +0 -5
- package/api/types/CreateRunParams.d.ts +0 -4
- package/api/types/CreateRunParams.js +0 -5
- package/api/types/CustomSchema.d.ts +0 -11
- package/api/types/CustomSchema.js +0 -5
- package/api/types/CustomVariable.d.ts +0 -13
- package/api/types/CustomVariable.js +0 -5
- package/api/types/DataTypeEnum.d.ts +0 -12
- package/api/types/DataTypeEnum.js +0 -11
- package/api/types/FileUrl.d.ts +0 -10
- package/api/types/FileUrl.js +0 -5
- package/api/types/Grade.d.ts +0 -33
- package/api/types/Grade.js +0 -5
- package/api/types/HttpValidationError.d.ts +0 -7
- package/api/types/HttpValidationError.js +0 -5
- package/api/types/IngestionMethod.d.ts +0 -8
- package/api/types/IngestionMethod.js +0 -10
- package/api/types/JsonObject.d.ts +0 -8
- package/api/types/JsonObject.js +0 -5
- package/api/types/JsonObjectInputValue.d.ts +0 -8
- package/api/types/JsonObjectInputValue.js +0 -5
- package/api/types/JsonObjectOutputValue.d.ts +0 -8
- package/api/types/JsonObjectOutputValue.js +0 -5
- package/api/types/NotFoundErrorBody.d.ts +0 -8
- package/api/types/NotFoundErrorBody.js +0 -5
- package/api/types/PaginatedTestcaseResponse.d.ts +0 -13
- package/api/types/PaginatedTestcaseResponse.js +0 -5
- package/api/types/Prompt.d.ts +0 -22
- package/api/types/Prompt.js +0 -5
- package/api/types/PromptCursorPage.d.ts +0 -17
- package/api/types/PromptCursorPage.js +0 -5
- package/api/types/PromptModelParamsValue.d.ts +0 -4
- package/api/types/PromptModelParamsValue.js +0 -5
- package/api/types/RoleEnum.d.ts +0 -13
- package/api/types/RoleEnum.js +0 -12
- package/api/types/Run.d.ts +0 -34
- package/api/types/Run.js +0 -5
- package/api/types/RunMetric.d.ts +0 -9
- package/api/types/RunMetric.js +0 -5
- package/api/types/RunStatus.d.ts +0 -13
- package/api/types/RunStatus.js +0 -15
- package/api/types/ScoreStatus.d.ts +0 -9
- package/api/types/ScoreStatus.js +0 -11
- package/api/types/ScoringConfig.d.ts +0 -18
- package/api/types/ScoringConfig.js +0 -5
- package/api/types/Span.d.ts +0 -29
- package/api/types/Span.js +0 -5
- package/api/types/TestCase.d.ts +0 -20
- package/api/types/TestCase.js +0 -5
- package/api/types/TestCaseCustomInputsValue.d.ts +0 -5
- package/api/types/TestCaseCustomInputsValue.js +0 -5
- package/api/types/TestCaseCustomLabelsValue.d.ts +0 -5
- package/api/types/TestCaseCustomLabelsValue.js +0 -5
- package/api/types/TestRecordCreate.d.ts +0 -4
- package/api/types/TestRecordCreate.js +0 -5
- package/api/types/TestSetCreate.d.ts +0 -4
- package/api/types/TestSetCreate.js +0 -5
- package/api/types/TestcaseBatchDeletionResponse.d.ts +0 -9
- package/api/types/TestcaseBatchDeletionResponse.js +0 -5
- package/api/types/TestcaseDeletionResponse.d.ts +0 -9
- package/api/types/TestcaseDeletionResponse.js +0 -5
- package/api/types/Testrecord.d.ts +0 -36
- package/api/types/Testrecord.js +0 -5
- package/api/types/TestrecordCustomInputsValue.d.ts +0 -5
- package/api/types/TestrecordCustomInputsValue.js +0 -5
- package/api/types/TestrecordCustomLabelsValue.d.ts +0 -5
- package/api/types/TestrecordCustomLabelsValue.js +0 -5
- package/api/types/TestrecordCustomOutputsValue.d.ts +0 -5
- package/api/types/TestrecordCustomOutputsValue.js +0 -5
- package/api/types/TestrecordModelDebugInfoValue.d.ts +0 -4
- package/api/types/TestrecordModelDebugInfoValue.js +0 -5
- package/api/types/TestrecordModelParamsValue.d.ts +0 -4
- package/api/types/TestrecordModelParamsValue.js +0 -5
- package/api/types/Testset.d.ts +0 -31
- package/api/types/Testset.js +0 -5
- package/api/types/TestsetCursorPage.d.ts +0 -17
- package/api/types/TestsetCursorPage.js +0 -5
- package/api/types/Trace.d.ts +0 -10
- package/api/types/Trace.js +0 -5
- package/api/types/UnauthenticatedError.d.ts +0 -8
- package/api/types/UnauthenticatedError.js +0 -5
- package/api/types/UnauthorizedErrorBody.d.ts +0 -8
- package/api/types/UnauthorizedErrorBody.js +0 -5
- package/api/types/ValidationError.d.ts +0 -9
- package/api/types/ValidationError.js +0 -5
- package/api/types/ValidationErrorLocItem.d.ts +0 -4
- package/api/types/ValidationErrorLocItem.js +0 -5
- package/api/types/index.d.ts +0 -44
- package/api/types/index.js +0 -60
- package/core/fetcher/APIResponse.d.ts +0 -10
- package/core/fetcher/APIResponse.js +0 -2
- package/core/fetcher/Fetcher.d.ts +0 -39
- package/core/fetcher/Fetcher.js +0 -99
- package/core/fetcher/Supplier.d.ts +0 -4
- package/core/fetcher/Supplier.js +0 -22
- package/core/fetcher/createRequestUrl.d.ts +0 -1
- package/core/fetcher/createRequestUrl.js +0 -13
- package/core/fetcher/getFetchFn.d.ts +0 -4
- package/core/fetcher/getFetchFn.js +0 -59
- package/core/fetcher/getHeader.d.ts +0 -1
- package/core/fetcher/getHeader.js +0 -12
- package/core/fetcher/getRequestBody.d.ts +0 -7
- package/core/fetcher/getRequestBody.js +0 -23
- package/core/fetcher/getResponseBody.d.ts +0 -1
- package/core/fetcher/getResponseBody.js +0 -52
- package/core/fetcher/index.d.ts +0 -5
- package/core/fetcher/index.js +0 -9
- package/core/fetcher/makeRequest.d.ts +0 -1
- package/core/fetcher/makeRequest.js +0 -42
- package/core/fetcher/requestWithRetries.d.ts +0 -1
- package/core/fetcher/requestWithRetries.js +0 -32
- package/core/fetcher/signals.d.ts +0 -12
- package/core/fetcher/signals.js +0 -37
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -245
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -22
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -124
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -227
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -50
- package/core/index.d.ts +0 -3
- package/core/index.js +0 -32
- package/core/runtime/index.d.ts +0 -1
- package/core/runtime/index.js +0 -5
- package/core/runtime/runtime.d.ts +0 -9
- package/core/runtime/runtime.js +0 -93
- package/core/schemas/Schema.d.ts +0 -84
- package/core/schemas/Schema.js +0 -21
- package/core/schemas/builders/date/date.d.ts +0 -2
- package/core/schemas/builders/date/date.js +0 -63
- package/core/schemas/builders/date/index.d.ts +0 -1
- package/core/schemas/builders/date/index.js +0 -5
- package/core/schemas/builders/enum/enum.d.ts +0 -2
- package/core/schemas/builders/enum/enum.js +0 -39
- package/core/schemas/builders/enum/index.d.ts +0 -1
- package/core/schemas/builders/enum/index.js +0 -5
- package/core/schemas/builders/index.d.ts +0 -13
- package/core/schemas/builders/index.js +0 -29
- package/core/schemas/builders/lazy/index.d.ts +0 -3
- package/core/schemas/builders/lazy/index.js +0 -7
- package/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/core/schemas/builders/lazy/lazy.js +0 -25
- package/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/core/schemas/builders/lazy/lazyObject.js +0 -12
- package/core/schemas/builders/list/index.d.ts +0 -1
- package/core/schemas/builders/list/index.js +0 -5
- package/core/schemas/builders/list/list.d.ts +0 -2
- package/core/schemas/builders/list/list.js +0 -55
- package/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/booleanLiteral.js +0 -29
- package/core/schemas/builders/literals/index.d.ts +0 -2
- package/core/schemas/builders/literals/index.js +0 -7
- package/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/stringLiteral.js +0 -29
- package/core/schemas/builders/object/index.d.ts +0 -6
- package/core/schemas/builders/object/index.js +0 -11
- package/core/schemas/builders/object/object.d.ts +0 -3
- package/core/schemas/builders/object/object.js +0 -233
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -8
- package/core/schemas/builders/object/property.d.ts +0 -8
- package/core/schemas/builders/object/property.js +0 -16
- package/core/schemas/builders/object/types.d.ts +0 -26
- package/core/schemas/builders/object/types.js +0 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -54
- package/core/schemas/builders/object-like/index.d.ts +0 -2
- package/core/schemas/builders/object-like/index.js +0 -6
- package/core/schemas/builders/object-like/types.d.ts +0 -7
- package/core/schemas/builders/object-like/types.js +0 -2
- package/core/schemas/builders/primitives/any.d.ts +0 -1
- package/core/schemas/builders/primitives/any.js +0 -6
- package/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/core/schemas/builders/primitives/boolean.js +0 -25
- package/core/schemas/builders/primitives/index.d.ts +0 -5
- package/core/schemas/builders/primitives/index.js +0 -13
- package/core/schemas/builders/primitives/number.d.ts +0 -1
- package/core/schemas/builders/primitives/number.js +0 -25
- package/core/schemas/builders/primitives/string.d.ts +0 -1
- package/core/schemas/builders/primitives/string.js +0 -25
- package/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/core/schemas/builders/primitives/unknown.js +0 -6
- package/core/schemas/builders/record/index.d.ts +0 -2
- package/core/schemas/builders/record/index.js +0 -5
- package/core/schemas/builders/record/record.d.ts +0 -3
- package/core/schemas/builders/record/record.js +0 -95
- package/core/schemas/builders/record/types.d.ts +0 -4
- package/core/schemas/builders/record/types.js +0 -2
- package/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -17
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -82
- package/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/core/schemas/builders/schema-utils/index.js +0 -11
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -10
- package/core/schemas/builders/set/index.d.ts +0 -1
- package/core/schemas/builders/set/index.js +0 -5
- package/core/schemas/builders/set/set.d.ts +0 -2
- package/core/schemas/builders/set/set.js +0 -44
- package/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -40
- package/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/core/schemas/builders/union/discriminant.js +0 -10
- package/core/schemas/builders/union/index.d.ts +0 -4
- package/core/schemas/builders/union/index.js +0 -7
- package/core/schemas/builders/union/types.d.ts +0 -13
- package/core/schemas/builders/union/types.js +0 -2
- package/core/schemas/builders/union/union.d.ts +0 -4
- package/core/schemas/builders/union/union.js +0 -130
- package/core/schemas/index.d.ts +0 -2
- package/core/schemas/index.js +0 -17
- package/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/core/schemas/utils/MaybePromise.js +0 -2
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.js +0 -16
- package/core/schemas/utils/entries.d.ts +0 -1
- package/core/schemas/utils/entries.js +0 -7
- package/core/schemas/utils/filterObject.d.ts +0 -1
- package/core/schemas/utils/filterObject.js +0 -14
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -24
- package/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/core/schemas/utils/isPlainObject.js +0 -18
- package/core/schemas/utils/keys.d.ts +0 -1
- package/core/schemas/utils/keys.js +0 -7
- package/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/core/schemas/utils/maybeSkipValidation.js +0 -28
- package/core/schemas/utils/partition.d.ts +0 -1
- package/core/schemas/utils/partition.js +0 -16
- package/dist/Client.d.ts +0 -51
- package/dist/Client.js +0 -57
- package/dist/api/errors/ForbiddenError.d.ts +0 -8
- package/dist/api/errors/ForbiddenError.js +0 -41
- package/dist/api/errors/NotFoundError.d.ts +0 -8
- package/dist/api/errors/NotFoundError.js +0 -41
- package/dist/api/errors/UnauthorizedError.d.ts +0 -8
- package/dist/api/errors/UnauthorizedError.js +0 -41
- package/dist/api/errors/UnprocessableEntityError.d.ts +0 -8
- package/dist/api/errors/UnprocessableEntityError.js +0 -41
- package/dist/api/errors/index.d.ts +0 -4
- package/dist/api/errors/index.js +0 -20
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -19
- package/dist/api/resources/index.d.ts +0 -19
- package/dist/api/resources/index.js +0 -48
- package/dist/api/resources/prompt/client/Client.d.ts +0 -157
- package/dist/api/resources/prompt/client/Client.js +0 -666
- package/dist/api/resources/prompt/client/index.d.ts +0 -1
- package/dist/api/resources/prompt/client/index.js +0 -17
- package/dist/api/resources/prompt/client/requests/PromptCreateParams.d.ts +0 -46
- package/dist/api/resources/prompt/client/requests/PromptCreateParams.js +0 -5
- package/dist/api/resources/prompt/client/requests/PromptGetByNameRequest.d.ts +0 -19
- package/dist/api/resources/prompt/client/requests/PromptGetByNameRequest.js +0 -5
- package/dist/api/resources/prompt/client/requests/PromptListPromptsRequest.d.ts +0 -21
- package/dist/api/resources/prompt/client/requests/PromptListPromptsRequest.js +0 -5
- package/dist/api/resources/prompt/client/requests/PromptUpdateParams.d.ts +0 -12
- package/dist/api/resources/prompt/client/requests/PromptUpdateParams.js +0 -5
- package/dist/api/resources/prompt/client/requests/index.d.ts +0 -4
- package/dist/api/resources/prompt/client/requests/index.js +0 -2
- package/dist/api/resources/prompt/index.d.ts +0 -2
- package/dist/api/resources/prompt/index.js +0 -18
- package/dist/api/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +0 -4
- package/dist/api/resources/prompt/types/PromptCreateParamsModelParamsValue.js +0 -5
- package/dist/api/resources/prompt/types/index.d.ts +0 -1
- package/dist/api/resources/prompt/types/index.js +0 -17
- package/dist/api/resources/run/client/Client.d.ts +0 -74
- package/dist/api/resources/run/client/Client.js +0 -339
- package/dist/api/resources/run/client/index.d.ts +0 -1
- package/dist/api/resources/run/client/index.js +0 -17
- package/dist/api/resources/run/client/requests/RunCreateParams.d.ts +0 -18
- package/dist/api/resources/run/client/requests/RunCreateParams.js +0 -5
- package/dist/api/resources/run/client/requests/UpdateStatusParams.d.ts +0 -11
- package/dist/api/resources/run/client/requests/UpdateStatusParams.js +0 -5
- package/dist/api/resources/run/client/requests/index.d.ts +0 -2
- package/dist/api/resources/run/client/requests/index.js +0 -2
- package/dist/api/resources/run/index.d.ts +0 -1
- package/dist/api/resources/run/index.js +0 -17
- package/dist/api/resources/runMetric/client/Client.d.ts +0 -43
- package/dist/api/resources/runMetric/client/Client.js +0 -152
- package/dist/api/resources/runMetric/client/index.d.ts +0 -1
- package/dist/api/resources/runMetric/client/index.js +0 -2
- package/dist/api/resources/runMetric/index.d.ts +0 -1
- package/dist/api/resources/runMetric/index.js +0 -17
- package/dist/api/resources/score/client/Client.d.ts +0 -65
- package/dist/api/resources/score/client/Client.js +0 -253
- package/dist/api/resources/score/client/index.d.ts +0 -1
- package/dist/api/resources/score/client/index.js +0 -17
- package/dist/api/resources/score/client/requests/ScoreCreateParams.d.ts +0 -19
- package/dist/api/resources/score/client/requests/ScoreCreateParams.js +0 -5
- package/dist/api/resources/score/client/requests/ScoreUpdateParams.d.ts +0 -15
- package/dist/api/resources/score/client/requests/ScoreUpdateParams.js +0 -5
- package/dist/api/resources/score/client/requests/index.d.ts +0 -2
- package/dist/api/resources/score/client/requests/index.js +0 -2
- package/dist/api/resources/score/index.d.ts +0 -1
- package/dist/api/resources/score/index.js +0 -17
- package/dist/api/resources/scoringConfig/client/Client.d.ts +0 -78
- package/dist/api/resources/scoringConfig/client/Client.js +0 -336
- package/dist/api/resources/scoringConfig/client/index.d.ts +0 -1
- package/dist/api/resources/scoringConfig/client/index.js +0 -17
- package/dist/api/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +0 -18
- package/dist/api/resources/scoringConfig/client/requests/ScoringConfigCreateParams.js +0 -5
- package/dist/api/resources/scoringConfig/client/requests/index.d.ts +0 -1
- package/dist/api/resources/scoringConfig/client/requests/index.js +0 -2
- package/dist/api/resources/scoringConfig/index.d.ts +0 -1
- package/dist/api/resources/scoringConfig/index.js +0 -17
- package/dist/api/resources/testcase/client/Client.d.ts +0 -125
- package/dist/api/resources/testcase/client/Client.js +0 -623
- package/dist/api/resources/testcase/client/index.d.ts +0 -1
- package/dist/api/resources/testcase/client/index.js +0 -17
- package/dist/api/resources/testcase/client/requests/TestcaseBatchCopyParams.d.ts +0 -11
- package/dist/api/resources/testcase/client/requests/TestcaseBatchCopyParams.js +0 -5
- package/dist/api/resources/testcase/client/requests/TestcaseBatchDeleteParams.d.ts +0 -11
- package/dist/api/resources/testcase/client/requests/TestcaseBatchDeleteParams.js +0 -5
- package/dist/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +0 -18
- package/dist/api/resources/testcase/client/requests/TestcaseCreateParams.js +0 -5
- package/dist/api/resources/testcase/client/requests/TestcaseUpdateParams.d.ts +0 -18
- package/dist/api/resources/testcase/client/requests/TestcaseUpdateParams.js +0 -5
- package/dist/api/resources/testcase/client/requests/index.d.ts +0 -4
- package/dist/api/resources/testcase/client/requests/index.js +0 -2
- package/dist/api/resources/testcase/index.d.ts +0 -2
- package/dist/api/resources/testcase/index.js +0 -18
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +0 -5
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +0 -5
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +0 -5
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +0 -5
- package/dist/api/resources/testcase/types/TestcaseUpdateParamsCustomInputsValue.d.ts +0 -5
- package/dist/api/resources/testcase/types/TestcaseUpdateParamsCustomInputsValue.js +0 -5
- package/dist/api/resources/testcase/types/TestcaseUpdateParamsCustomLabelsValue.d.ts +0 -5
- package/dist/api/resources/testcase/types/TestcaseUpdateParamsCustomLabelsValue.js +0 -5
- package/dist/api/resources/testcase/types/index.d.ts +0 -4
- package/dist/api/resources/testcase/types/index.js +0 -20
- package/dist/api/resources/testrecord/client/Client.d.ts +0 -60
- package/dist/api/resources/testrecord/client/Client.js +0 -247
- package/dist/api/resources/testrecord/client/index.d.ts +0 -1
- package/dist/api/resources/testrecord/client/index.js +0 -17
- package/dist/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +0 -31
- package/dist/api/resources/testrecord/client/requests/TestrecordCreateParams.js +0 -5
- package/dist/api/resources/testrecord/client/requests/index.d.ts +0 -1
- package/dist/api/resources/testrecord/client/requests/index.js +0 -2
- package/dist/api/resources/testrecord/index.d.ts +0 -2
- package/dist/api/resources/testrecord/index.js +0 -18
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +0 -5
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +0 -5
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +0 -5
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +0 -5
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +0 -5
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +0 -5
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +0 -4
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.js +0 -5
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +0 -4
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.js +0 -5
- package/dist/api/resources/testrecord/types/index.d.ts +0 -5
- package/dist/api/resources/testrecord/types/index.js +0 -21
- package/dist/api/resources/testset/client/Client.d.ts +0 -122
- package/dist/api/resources/testset/client/Client.js +0 -636
- package/dist/api/resources/testset/client/index.d.ts +0 -1
- package/dist/api/resources/testset/client/index.js +0 -17
- package/dist/api/resources/testset/client/requests/TestsetCreateParams.d.ts +0 -26
- package/dist/api/resources/testset/client/requests/TestsetCreateParams.js +0 -5
- package/dist/api/resources/testset/client/requests/TestsetGetRequest.d.ts +0 -11
- package/dist/api/resources/testset/client/requests/TestsetGetRequest.js +0 -5
- package/dist/api/resources/testset/client/requests/TestsetGetTestcasesRequest.d.ts +0 -17
- package/dist/api/resources/testset/client/requests/TestsetGetTestcasesRequest.js +0 -5
- package/dist/api/resources/testset/client/requests/TestsetUpdateParams.d.ts +0 -16
- package/dist/api/resources/testset/client/requests/TestsetUpdateParams.js +0 -5
- package/dist/api/resources/testset/client/requests/index.d.ts +0 -4
- package/dist/api/resources/testset/client/requests/index.js +0 -2
- package/dist/api/resources/testset/index.d.ts +0 -1
- package/dist/api/resources/testset/index.js +0 -17
- package/dist/api/resources/tracing/client/Client.d.ts +0 -72
- package/dist/api/resources/tracing/client/Client.js +0 -327
- package/dist/api/resources/tracing/client/index.d.ts +0 -1
- package/dist/api/resources/tracing/client/index.js +0 -2
- package/dist/api/resources/tracing/index.d.ts +0 -1
- package/dist/api/resources/tracing/index.js +0 -17
- package/dist/api/types/CreateGithubWorkflowParams.d.ts +0 -4
- package/dist/api/types/CreateGithubWorkflowParams.js +0 -5
- package/dist/api/types/CreateRunParams.d.ts +0 -4
- package/dist/api/types/CreateRunParams.js +0 -5
- package/dist/api/types/CustomSchema.d.ts +0 -11
- package/dist/api/types/CustomSchema.js +0 -5
- package/dist/api/types/CustomVariable.d.ts +0 -13
- package/dist/api/types/CustomVariable.js +0 -5
- package/dist/api/types/DataTypeEnum.d.ts +0 -12
- package/dist/api/types/DataTypeEnum.js +0 -11
- package/dist/api/types/FileUrl.d.ts +0 -10
- package/dist/api/types/FileUrl.js +0 -5
- package/dist/api/types/Grade.d.ts +0 -33
- package/dist/api/types/Grade.js +0 -5
- package/dist/api/types/HttpValidationError.d.ts +0 -7
- package/dist/api/types/HttpValidationError.js +0 -5
- package/dist/api/types/IngestionMethod.d.ts +0 -8
- package/dist/api/types/IngestionMethod.js +0 -10
- package/dist/api/types/JsonObject.d.ts +0 -8
- package/dist/api/types/JsonObject.js +0 -5
- package/dist/api/types/JsonObjectInputValue.d.ts +0 -8
- package/dist/api/types/JsonObjectInputValue.js +0 -5
- package/dist/api/types/JsonObjectOutputValue.d.ts +0 -8
- package/dist/api/types/JsonObjectOutputValue.js +0 -5
- package/dist/api/types/NotFoundErrorBody.d.ts +0 -8
- package/dist/api/types/NotFoundErrorBody.js +0 -5
- package/dist/api/types/PaginatedTestcaseResponse.d.ts +0 -13
- package/dist/api/types/PaginatedTestcaseResponse.js +0 -5
- package/dist/api/types/Prompt.d.ts +0 -22
- package/dist/api/types/Prompt.js +0 -5
- package/dist/api/types/PromptCursorPage.d.ts +0 -17
- package/dist/api/types/PromptCursorPage.js +0 -5
- package/dist/api/types/PromptModelParamsValue.d.ts +0 -4
- package/dist/api/types/PromptModelParamsValue.js +0 -5
- package/dist/api/types/RoleEnum.d.ts +0 -13
- package/dist/api/types/RoleEnum.js +0 -12
- package/dist/api/types/Run.d.ts +0 -34
- package/dist/api/types/Run.js +0 -5
- package/dist/api/types/RunMetric.d.ts +0 -9
- package/dist/api/types/RunMetric.js +0 -5
- package/dist/api/types/RunStatus.d.ts +0 -13
- package/dist/api/types/RunStatus.js +0 -15
- package/dist/api/types/ScoreStatus.d.ts +0 -9
- package/dist/api/types/ScoreStatus.js +0 -11
- package/dist/api/types/ScoringConfig.d.ts +0 -18
- package/dist/api/types/ScoringConfig.js +0 -5
- package/dist/api/types/Span.d.ts +0 -29
- package/dist/api/types/Span.js +0 -5
- package/dist/api/types/TestCase.d.ts +0 -20
- package/dist/api/types/TestCase.js +0 -5
- package/dist/api/types/TestCaseCustomInputsValue.d.ts +0 -5
- package/dist/api/types/TestCaseCustomInputsValue.js +0 -5
- package/dist/api/types/TestCaseCustomLabelsValue.d.ts +0 -5
- package/dist/api/types/TestCaseCustomLabelsValue.js +0 -5
- package/dist/api/types/TestRecordCreate.d.ts +0 -4
- package/dist/api/types/TestRecordCreate.js +0 -5
- package/dist/api/types/TestSetCreate.d.ts +0 -4
- package/dist/api/types/TestSetCreate.js +0 -5
- package/dist/api/types/TestcaseBatchDeletionResponse.d.ts +0 -9
- package/dist/api/types/TestcaseBatchDeletionResponse.js +0 -5
- package/dist/api/types/TestcaseDeletionResponse.d.ts +0 -9
- package/dist/api/types/TestcaseDeletionResponse.js +0 -5
- package/dist/api/types/Testrecord.d.ts +0 -36
- package/dist/api/types/Testrecord.js +0 -5
- package/dist/api/types/TestrecordCustomInputsValue.d.ts +0 -5
- package/dist/api/types/TestrecordCustomInputsValue.js +0 -5
- package/dist/api/types/TestrecordCustomLabelsValue.d.ts +0 -5
- package/dist/api/types/TestrecordCustomLabelsValue.js +0 -5
- package/dist/api/types/TestrecordCustomOutputsValue.d.ts +0 -5
- package/dist/api/types/TestrecordCustomOutputsValue.js +0 -5
- package/dist/api/types/TestrecordModelDebugInfoValue.d.ts +0 -4
- package/dist/api/types/TestrecordModelDebugInfoValue.js +0 -5
- package/dist/api/types/TestrecordModelParamsValue.d.ts +0 -4
- package/dist/api/types/TestrecordModelParamsValue.js +0 -5
- package/dist/api/types/Testset.d.ts +0 -31
- package/dist/api/types/Testset.js +0 -5
- package/dist/api/types/TestsetCursorPage.d.ts +0 -17
- package/dist/api/types/TestsetCursorPage.js +0 -5
- package/dist/api/types/Trace.d.ts +0 -10
- package/dist/api/types/Trace.js +0 -5
- package/dist/api/types/UnauthenticatedError.d.ts +0 -8
- package/dist/api/types/UnauthenticatedError.js +0 -5
- package/dist/api/types/UnauthorizedErrorBody.d.ts +0 -8
- package/dist/api/types/UnauthorizedErrorBody.js +0 -5
- package/dist/api/types/ValidationError.d.ts +0 -9
- package/dist/api/types/ValidationError.js +0 -5
- package/dist/api/types/ValidationErrorLocItem.d.ts +0 -4
- package/dist/api/types/ValidationErrorLocItem.js +0 -5
- package/dist/api/types/index.d.ts +0 -44
- package/dist/api/types/index.js +0 -60
- package/dist/core/fetcher/APIResponse.d.ts +0 -10
- package/dist/core/fetcher/APIResponse.js +0 -2
- package/dist/core/fetcher/Fetcher.d.ts +0 -39
- package/dist/core/fetcher/Fetcher.js +0 -99
- package/dist/core/fetcher/Supplier.d.ts +0 -4
- package/dist/core/fetcher/Supplier.js +0 -22
- package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/core/fetcher/createRequestUrl.js +0 -13
- package/dist/core/fetcher/getFetchFn.d.ts +0 -4
- package/dist/core/fetcher/getFetchFn.js +0 -59
- package/dist/core/fetcher/getHeader.d.ts +0 -1
- package/dist/core/fetcher/getHeader.js +0 -12
- package/dist/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/core/fetcher/getRequestBody.js +0 -23
- package/dist/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/core/fetcher/getResponseBody.js +0 -52
- package/dist/core/fetcher/index.d.ts +0 -5
- package/dist/core/fetcher/index.js +0 -9
- package/dist/core/fetcher/makeRequest.d.ts +0 -1
- package/dist/core/fetcher/makeRequest.js +0 -42
- package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/core/fetcher/requestWithRetries.js +0 -32
- package/dist/core/fetcher/signals.d.ts +0 -12
- package/dist/core/fetcher/signals.js +0 -37
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -245
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -22
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -124
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -227
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -50
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js +0 -32
- package/dist/core/runtime/index.d.ts +0 -1
- package/dist/core/runtime/index.js +0 -5
- package/dist/core/runtime/runtime.d.ts +0 -9
- package/dist/core/runtime/runtime.js +0 -93
- package/dist/core/schemas/Schema.d.ts +0 -84
- package/dist/core/schemas/Schema.js +0 -21
- package/dist/core/schemas/builders/date/date.d.ts +0 -2
- package/dist/core/schemas/builders/date/date.js +0 -63
- package/dist/core/schemas/builders/date/index.d.ts +0 -1
- package/dist/core/schemas/builders/date/index.js +0 -5
- package/dist/core/schemas/builders/enum/enum.d.ts +0 -2
- package/dist/core/schemas/builders/enum/enum.js +0 -39
- package/dist/core/schemas/builders/enum/index.d.ts +0 -1
- package/dist/core/schemas/builders/enum/index.js +0 -5
- package/dist/core/schemas/builders/index.d.ts +0 -13
- package/dist/core/schemas/builders/index.js +0 -29
- package/dist/core/schemas/builders/lazy/index.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/index.js +0 -7
- package/dist/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/dist/core/schemas/builders/lazy/lazy.js +0 -25
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/lazyObject.js +0 -12
- package/dist/core/schemas/builders/list/index.d.ts +0 -1
- package/dist/core/schemas/builders/list/index.js +0 -5
- package/dist/core/schemas/builders/list/list.d.ts +0 -2
- package/dist/core/schemas/builders/list/list.js +0 -55
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -29
- package/dist/core/schemas/builders/literals/index.d.ts +0 -2
- package/dist/core/schemas/builders/literals/index.js +0 -7
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +0 -29
- package/dist/core/schemas/builders/object/index.d.ts +0 -6
- package/dist/core/schemas/builders/object/index.js +0 -11
- package/dist/core/schemas/builders/object/object.d.ts +0 -3
- package/dist/core/schemas/builders/object/object.js +0 -233
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -8
- package/dist/core/schemas/builders/object/property.d.ts +0 -8
- package/dist/core/schemas/builders/object/property.js +0 -16
- package/dist/core/schemas/builders/object/types.d.ts +0 -26
- package/dist/core/schemas/builders/object/types.js +0 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -54
- package/dist/core/schemas/builders/object-like/index.d.ts +0 -2
- package/dist/core/schemas/builders/object-like/index.js +0 -6
- package/dist/core/schemas/builders/object-like/types.d.ts +0 -7
- package/dist/core/schemas/builders/object-like/types.js +0 -2
- package/dist/core/schemas/builders/primitives/any.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/any.js +0 -6
- package/dist/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/boolean.js +0 -25
- package/dist/core/schemas/builders/primitives/index.d.ts +0 -5
- package/dist/core/schemas/builders/primitives/index.js +0 -13
- package/dist/core/schemas/builders/primitives/number.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/number.js +0 -25
- package/dist/core/schemas/builders/primitives/string.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/string.js +0 -25
- package/dist/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/unknown.js +0 -6
- package/dist/core/schemas/builders/record/index.d.ts +0 -2
- package/dist/core/schemas/builders/record/index.js +0 -5
- package/dist/core/schemas/builders/record/record.d.ts +0 -3
- package/dist/core/schemas/builders/record/record.js +0 -95
- package/dist/core/schemas/builders/record/types.d.ts +0 -4
- package/dist/core/schemas/builders/record/types.js +0 -2
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -17
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -82
- package/dist/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/dist/core/schemas/builders/schema-utils/index.js +0 -11
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -10
- package/dist/core/schemas/builders/set/index.d.ts +0 -1
- package/dist/core/schemas/builders/set/index.js +0 -5
- package/dist/core/schemas/builders/set/set.d.ts +0 -2
- package/dist/core/schemas/builders/set/set.js +0 -44
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/dist/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -40
- package/dist/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/dist/core/schemas/builders/union/discriminant.js +0 -10
- package/dist/core/schemas/builders/union/index.d.ts +0 -4
- package/dist/core/schemas/builders/union/index.js +0 -7
- package/dist/core/schemas/builders/union/types.d.ts +0 -13
- package/dist/core/schemas/builders/union/types.js +0 -2
- package/dist/core/schemas/builders/union/union.d.ts +0 -4
- package/dist/core/schemas/builders/union/union.js +0 -130
- package/dist/core/schemas/index.d.ts +0 -2
- package/dist/core/schemas/index.js +0 -17
- package/dist/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/dist/core/schemas/utils/MaybePromise.js +0 -2
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -16
- package/dist/core/schemas/utils/entries.d.ts +0 -1
- package/dist/core/schemas/utils/entries.js +0 -7
- package/dist/core/schemas/utils/filterObject.d.ts +0 -1
- package/dist/core/schemas/utils/filterObject.js +0 -14
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -24
- package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/dist/core/schemas/utils/isPlainObject.js +0 -18
- package/dist/core/schemas/utils/keys.d.ts +0 -1
- package/dist/core/schemas/utils/keys.js +0 -7
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +0 -28
- package/dist/core/schemas/utils/partition.d.ts +0 -1
- package/dist/core/schemas/utils/partition.js +0 -16
- package/dist/environments.d.ts +0 -7
- package/dist/environments.js +0 -9
- package/dist/errors/ScorecardError.d.ts +0 -12
- package/dist/errors/ScorecardError.js +0 -32
- package/dist/errors/ScorecardTimeoutError.d.ts +0 -6
- package/dist/errors/ScorecardTimeoutError.js +0 -13
- package/dist/errors/index.d.ts +0 -2
- package/dist/errors/index.js +0 -7
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -34
- package/dist/serialization/index.d.ts +0 -2
- package/dist/serialization/index.js +0 -18
- package/dist/serialization/resources/index.d.ts +0 -19
- package/dist/serialization/resources/index.js +0 -48
- package/dist/serialization/resources/prompt/client/index.d.ts +0 -1
- package/dist/serialization/resources/prompt/client/index.js +0 -17
- package/dist/serialization/resources/prompt/client/requests/PromptCreateParams.d.ts +0 -20
- package/dist/serialization/resources/prompt/client/requests/PromptCreateParams.js +0 -41
- package/dist/serialization/resources/prompt/client/requests/PromptUpdateParams.d.ts +0 -12
- package/dist/serialization/resources/prompt/client/requests/PromptUpdateParams.js +0 -33
- package/dist/serialization/resources/prompt/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/prompt/client/requests/index.js +0 -7
- package/dist/serialization/resources/prompt/index.d.ts +0 -2
- package/dist/serialization/resources/prompt/index.js +0 -18
- package/dist/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +0 -10
- package/dist/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.js +0 -36
- package/dist/serialization/resources/prompt/types/index.d.ts +0 -1
- package/dist/serialization/resources/prompt/types/index.js +0 -17
- package/dist/serialization/resources/run/client/index.d.ts +0 -1
- package/dist/serialization/resources/run/client/index.js +0 -17
- package/dist/serialization/resources/run/client/requests/RunCreateParams.d.ts +0 -19
- package/dist/serialization/resources/run/client/requests/RunCreateParams.js +0 -40
- package/dist/serialization/resources/run/client/requests/UpdateStatusParams.d.ts +0 -13
- package/dist/serialization/resources/run/client/requests/UpdateStatusParams.js +0 -34
- package/dist/serialization/resources/run/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/run/client/requests/index.js +0 -7
- package/dist/serialization/resources/run/index.d.ts +0 -1
- package/dist/serialization/resources/run/index.js +0 -17
- package/dist/serialization/resources/runMetric/client/get.d.ts +0 -11
- package/dist/serialization/resources/runMetric/client/get.js +0 -32
- package/dist/serialization/resources/runMetric/client/index.d.ts +0 -1
- package/dist/serialization/resources/runMetric/client/index.js +0 -27
- package/dist/serialization/resources/runMetric/index.d.ts +0 -1
- package/dist/serialization/resources/runMetric/index.js +0 -17
- package/dist/serialization/resources/score/client/index.d.ts +0 -1
- package/dist/serialization/resources/score/client/index.js +0 -17
- package/dist/serialization/resources/score/client/requests/ScoreCreateParams.d.ts +0 -15
- package/dist/serialization/resources/score/client/requests/ScoreCreateParams.js +0 -36
- package/dist/serialization/resources/score/client/requests/ScoreUpdateParams.d.ts +0 -14
- package/dist/serialization/resources/score/client/requests/ScoreUpdateParams.js +0 -35
- package/dist/serialization/resources/score/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/score/client/requests/index.js +0 -7
- package/dist/serialization/resources/score/index.d.ts +0 -1
- package/dist/serialization/resources/score/index.js +0 -17
- package/dist/serialization/resources/scoringConfig/client/index.d.ts +0 -1
- package/dist/serialization/resources/scoringConfig/client/index.js +0 -17
- package/dist/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +0 -15
- package/dist/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.js +0 -36
- package/dist/serialization/resources/scoringConfig/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/scoringConfig/client/requests/index.js +0 -5
- package/dist/serialization/resources/scoringConfig/index.d.ts +0 -1
- package/dist/serialization/resources/scoringConfig/index.js +0 -17
- package/dist/serialization/resources/testcase/client/batchCopy.d.ts +0 -11
- package/dist/serialization/resources/testcase/client/batchCopy.js +0 -32
- package/dist/serialization/resources/testcase/client/index.d.ts +0 -2
- package/dist/serialization/resources/testcase/client/index.js +0 -31
- package/dist/serialization/resources/testcase/client/requests/TestcaseBatchCopyParams.d.ts +0 -12
- package/dist/serialization/resources/testcase/client/requests/TestcaseBatchCopyParams.js +0 -33
- package/dist/serialization/resources/testcase/client/requests/TestcaseBatchDeleteParams.d.ts +0 -12
- package/dist/serialization/resources/testcase/client/requests/TestcaseBatchDeleteParams.js +0 -33
- package/dist/serialization/resources/testcase/client/requests/TestcaseCreateParams.d.ts +0 -18
- package/dist/serialization/resources/testcase/client/requests/TestcaseCreateParams.js +0 -43
- package/dist/serialization/resources/testcase/client/requests/TestcaseUpdateParams.d.ts +0 -18
- package/dist/serialization/resources/testcase/client/requests/TestcaseUpdateParams.js +0 -43
- package/dist/serialization/resources/testcase/client/requests/index.d.ts +0 -4
- package/dist/serialization/resources/testcase/client/requests/index.js +0 -11
- package/dist/serialization/resources/testcase/index.d.ts +0 -2
- package/dist/serialization/resources/testcase/index.js +0 -18
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +0 -11
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +0 -40
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +0 -11
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +0 -40
- package/dist/serialization/resources/testcase/types/TestcaseUpdateParamsCustomInputsValue.d.ts +0 -11
- package/dist/serialization/resources/testcase/types/TestcaseUpdateParamsCustomInputsValue.js +0 -40
- package/dist/serialization/resources/testcase/types/TestcaseUpdateParamsCustomLabelsValue.d.ts +0 -11
- package/dist/serialization/resources/testcase/types/TestcaseUpdateParamsCustomLabelsValue.js +0 -40
- package/dist/serialization/resources/testcase/types/index.d.ts +0 -4
- package/dist/serialization/resources/testcase/types/index.js +0 -20
- package/dist/serialization/resources/testrecord/client/index.d.ts +0 -1
- package/dist/serialization/resources/testrecord/client/index.js +0 -17
- package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +0 -29
- package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +0 -60
- package/dist/serialization/resources/testrecord/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/testrecord/client/requests/index.js +0 -5
- package/dist/serialization/resources/testrecord/index.d.ts +0 -2
- package/dist/serialization/resources/testrecord/index.js +0 -18
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +0 -11
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +0 -37
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +0 -11
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +0 -37
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +0 -11
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +0 -37
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +0 -10
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.js +0 -35
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +0 -10
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.js +0 -35
- package/dist/serialization/resources/testrecord/types/index.d.ts +0 -5
- package/dist/serialization/resources/testrecord/types/index.js +0 -21
- package/dist/serialization/resources/testset/client/index.d.ts +0 -1
- package/dist/serialization/resources/testset/client/index.js +0 -17
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +0 -21
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.js +0 -42
- package/dist/serialization/resources/testset/client/requests/TestsetUpdateParams.d.ts +0 -16
- package/dist/serialization/resources/testset/client/requests/TestsetUpdateParams.js +0 -37
- package/dist/serialization/resources/testset/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/testset/client/requests/index.js +0 -7
- package/dist/serialization/resources/testset/index.d.ts +0 -1
- package/dist/serialization/resources/testset/index.js +0 -17
- package/dist/serialization/resources/tracing/client/index.d.ts +0 -1
- package/dist/serialization/resources/tracing/client/index.js +0 -27
- package/dist/serialization/resources/tracing/client/traces.d.ts +0 -11
- package/dist/serialization/resources/tracing/client/traces.js +0 -32
- package/dist/serialization/resources/tracing/index.d.ts +0 -1
- package/dist/serialization/resources/tracing/index.js +0 -17
- package/dist/serialization/types/CreateGithubWorkflowParams.d.ts +0 -10
- package/dist/serialization/types/CreateGithubWorkflowParams.js +0 -31
- package/dist/serialization/types/CreateRunParams.d.ts +0 -10
- package/dist/serialization/types/CreateRunParams.js +0 -31
- package/dist/serialization/types/CustomSchema.d.ts +0 -13
- package/dist/serialization/types/CustomSchema.js +0 -34
- package/dist/serialization/types/CustomVariable.d.ts +0 -17
- package/dist/serialization/types/CustomVariable.js +0 -38
- package/dist/serialization/types/DataTypeEnum.d.ts +0 -10
- package/dist/serialization/types/DataTypeEnum.js +0 -31
- package/dist/serialization/types/FileUrl.d.ts +0 -13
- package/dist/serialization/types/FileUrl.js +0 -34
- package/dist/serialization/types/Grade.d.ts +0 -26
- package/dist/serialization/types/Grade.js +0 -47
- package/dist/serialization/types/HttpValidationError.d.ts +0 -13
- package/dist/serialization/types/HttpValidationError.js +0 -34
- package/dist/serialization/types/IngestionMethod.d.ts +0 -10
- package/dist/serialization/types/IngestionMethod.js +0 -31
- package/dist/serialization/types/JsonObject.d.ts +0 -12
- package/dist/serialization/types/JsonObject.js +0 -34
- package/dist/serialization/types/JsonObjectInputValue.d.ts +0 -10
- package/dist/serialization/types/JsonObjectInputValue.js +0 -39
- package/dist/serialization/types/JsonObjectOutputValue.d.ts +0 -10
- package/dist/serialization/types/JsonObjectOutputValue.js +0 -39
- package/dist/serialization/types/NotFoundErrorBody.d.ts +0 -14
- package/dist/serialization/types/NotFoundErrorBody.js +0 -35
- package/dist/serialization/types/PaginatedTestcaseResponse.d.ts +0 -16
- package/dist/serialization/types/PaginatedTestcaseResponse.js +0 -37
- package/dist/serialization/types/Prompt.d.ts +0 -25
- package/dist/serialization/types/Prompt.js +0 -46
- package/dist/serialization/types/PromptCursorPage.d.ts +0 -18
- package/dist/serialization/types/PromptCursorPage.js +0 -39
- package/dist/serialization/types/PromptModelParamsValue.d.ts +0 -10
- package/dist/serialization/types/PromptModelParamsValue.js +0 -35
- package/dist/serialization/types/RoleEnum.d.ts +0 -10
- package/dist/serialization/types/RoleEnum.js +0 -31
- package/dist/serialization/types/Run.d.ts +0 -26
- package/dist/serialization/types/Run.js +0 -47
- package/dist/serialization/types/RunMetric.d.ts +0 -15
- package/dist/serialization/types/RunMetric.js +0 -36
- package/dist/serialization/types/RunStatus.d.ts +0 -10
- package/dist/serialization/types/RunStatus.js +0 -39
- package/dist/serialization/types/ScoreStatus.d.ts +0 -10
- package/dist/serialization/types/ScoreStatus.js +0 -31
- package/dist/serialization/types/ScoringConfig.d.ts +0 -21
- package/dist/serialization/types/ScoringConfig.js +0 -42
- package/dist/serialization/types/Span.d.ts +0 -34
- package/dist/serialization/types/Span.js +0 -56
- package/dist/serialization/types/TestCase.d.ts +0 -21
- package/dist/serialization/types/TestCase.js +0 -42
- package/dist/serialization/types/TestCaseCustomInputsValue.d.ts +0 -11
- package/dist/serialization/types/TestCaseCustomInputsValue.js +0 -40
- package/dist/serialization/types/TestCaseCustomLabelsValue.d.ts +0 -11
- package/dist/serialization/types/TestCaseCustomLabelsValue.js +0 -40
- package/dist/serialization/types/TestRecordCreate.d.ts +0 -10
- package/dist/serialization/types/TestRecordCreate.js +0 -31
- package/dist/serialization/types/TestSetCreate.d.ts +0 -10
- package/dist/serialization/types/TestSetCreate.js +0 -31
- package/dist/serialization/types/TestcaseBatchDeletionResponse.d.ts +0 -13
- package/dist/serialization/types/TestcaseBatchDeletionResponse.js +0 -34
- package/dist/serialization/types/TestcaseDeletionResponse.d.ts +0 -13
- package/dist/serialization/types/TestcaseDeletionResponse.js +0 -34
- package/dist/serialization/types/Testrecord.d.ts +0 -33
- package/dist/serialization/types/Testrecord.js +0 -54
- package/dist/serialization/types/TestrecordCustomInputsValue.d.ts +0 -11
- package/dist/serialization/types/TestrecordCustomInputsValue.js +0 -37
- package/dist/serialization/types/TestrecordCustomLabelsValue.d.ts +0 -11
- package/dist/serialization/types/TestrecordCustomLabelsValue.js +0 -37
- package/dist/serialization/types/TestrecordCustomOutputsValue.d.ts +0 -11
- package/dist/serialization/types/TestrecordCustomOutputsValue.js +0 -37
- package/dist/serialization/types/TestrecordModelDebugInfoValue.d.ts +0 -10
- package/dist/serialization/types/TestrecordModelDebugInfoValue.js +0 -35
- package/dist/serialization/types/TestrecordModelParamsValue.d.ts +0 -10
- package/dist/serialization/types/TestrecordModelParamsValue.js +0 -35
- package/dist/serialization/types/Testset.d.ts +0 -25
- package/dist/serialization/types/Testset.js +0 -46
- package/dist/serialization/types/TestsetCursorPage.d.ts +0 -18
- package/dist/serialization/types/TestsetCursorPage.js +0 -39
- package/dist/serialization/types/Trace.d.ts +0 -15
- package/dist/serialization/types/Trace.js +0 -37
- package/dist/serialization/types/UnauthenticatedError.d.ts +0 -14
- package/dist/serialization/types/UnauthenticatedError.js +0 -35
- package/dist/serialization/types/UnauthorizedErrorBody.d.ts +0 -14
- package/dist/serialization/types/UnauthorizedErrorBody.js +0 -35
- package/dist/serialization/types/ValidationError.d.ts +0 -15
- package/dist/serialization/types/ValidationError.js +0 -36
- package/dist/serialization/types/ValidationErrorLocItem.d.ts +0 -10
- package/dist/serialization/types/ValidationErrorLocItem.js +0 -31
- package/dist/serialization/types/index.d.ts +0 -44
- package/dist/serialization/types/index.js +0 -60
- package/dist/telemetry.d.ts +0 -1
- package/dist/telemetry.js +0 -83
- package/dist/wrapper/ScorecardClient.d.ts +0 -28
- package/dist/wrapper/ScorecardClient.js +0 -85
- package/environments.d.ts +0 -7
- package/environments.js +0 -9
- package/errors/ScorecardError.d.ts +0 -12
- package/errors/ScorecardError.js +0 -32
- package/errors/ScorecardTimeoutError.d.ts +0 -6
- package/errors/ScorecardTimeoutError.js +0 -13
- package/errors/index.d.ts +0 -2
- package/errors/index.js +0 -7
- package/jest.config.js +0 -5
- package/reference.md +0 -2211
- package/serialization/index.d.ts +0 -2
- package/serialization/index.js +0 -18
- package/serialization/resources/index.d.ts +0 -19
- package/serialization/resources/index.js +0 -48
- package/serialization/resources/prompt/client/index.d.ts +0 -1
- package/serialization/resources/prompt/client/index.js +0 -17
- package/serialization/resources/prompt/client/requests/PromptCreateParams.d.ts +0 -20
- package/serialization/resources/prompt/client/requests/PromptCreateParams.js +0 -41
- package/serialization/resources/prompt/client/requests/PromptUpdateParams.d.ts +0 -12
- package/serialization/resources/prompt/client/requests/PromptUpdateParams.js +0 -33
- package/serialization/resources/prompt/client/requests/index.d.ts +0 -2
- package/serialization/resources/prompt/client/requests/index.js +0 -7
- package/serialization/resources/prompt/index.d.ts +0 -2
- package/serialization/resources/prompt/index.js +0 -18
- package/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +0 -10
- package/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.js +0 -36
- package/serialization/resources/prompt/types/index.d.ts +0 -1
- package/serialization/resources/prompt/types/index.js +0 -17
- package/serialization/resources/run/client/index.d.ts +0 -1
- package/serialization/resources/run/client/index.js +0 -17
- package/serialization/resources/run/client/requests/RunCreateParams.d.ts +0 -19
- package/serialization/resources/run/client/requests/RunCreateParams.js +0 -40
- package/serialization/resources/run/client/requests/UpdateStatusParams.d.ts +0 -13
- package/serialization/resources/run/client/requests/UpdateStatusParams.js +0 -34
- package/serialization/resources/run/client/requests/index.d.ts +0 -2
- package/serialization/resources/run/client/requests/index.js +0 -7
- package/serialization/resources/run/index.d.ts +0 -1
- package/serialization/resources/run/index.js +0 -17
- package/serialization/resources/runMetric/client/get.d.ts +0 -11
- package/serialization/resources/runMetric/client/get.js +0 -32
- package/serialization/resources/runMetric/client/index.d.ts +0 -1
- package/serialization/resources/runMetric/client/index.js +0 -27
- package/serialization/resources/runMetric/index.d.ts +0 -1
- package/serialization/resources/runMetric/index.js +0 -17
- package/serialization/resources/score/client/index.d.ts +0 -1
- package/serialization/resources/score/client/index.js +0 -17
- package/serialization/resources/score/client/requests/ScoreCreateParams.d.ts +0 -15
- package/serialization/resources/score/client/requests/ScoreCreateParams.js +0 -36
- package/serialization/resources/score/client/requests/ScoreUpdateParams.d.ts +0 -14
- package/serialization/resources/score/client/requests/ScoreUpdateParams.js +0 -35
- package/serialization/resources/score/client/requests/index.d.ts +0 -2
- package/serialization/resources/score/client/requests/index.js +0 -7
- package/serialization/resources/score/index.d.ts +0 -1
- package/serialization/resources/score/index.js +0 -17
- package/serialization/resources/scoringConfig/client/index.d.ts +0 -1
- package/serialization/resources/scoringConfig/client/index.js +0 -17
- package/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +0 -15
- package/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.js +0 -36
- package/serialization/resources/scoringConfig/client/requests/index.d.ts +0 -1
- package/serialization/resources/scoringConfig/client/requests/index.js +0 -5
- package/serialization/resources/scoringConfig/index.d.ts +0 -1
- package/serialization/resources/scoringConfig/index.js +0 -17
- package/serialization/resources/testcase/client/batchCopy.d.ts +0 -11
- package/serialization/resources/testcase/client/batchCopy.js +0 -32
- package/serialization/resources/testcase/client/index.d.ts +0 -2
- package/serialization/resources/testcase/client/index.js +0 -31
- package/serialization/resources/testcase/client/requests/TestcaseBatchCopyParams.d.ts +0 -12
- package/serialization/resources/testcase/client/requests/TestcaseBatchCopyParams.js +0 -33
- package/serialization/resources/testcase/client/requests/TestcaseBatchDeleteParams.d.ts +0 -12
- package/serialization/resources/testcase/client/requests/TestcaseBatchDeleteParams.js +0 -33
- package/serialization/resources/testcase/client/requests/TestcaseCreateParams.d.ts +0 -18
- package/serialization/resources/testcase/client/requests/TestcaseCreateParams.js +0 -43
- package/serialization/resources/testcase/client/requests/TestcaseUpdateParams.d.ts +0 -18
- package/serialization/resources/testcase/client/requests/TestcaseUpdateParams.js +0 -43
- package/serialization/resources/testcase/client/requests/index.d.ts +0 -4
- package/serialization/resources/testcase/client/requests/index.js +0 -11
- package/serialization/resources/testcase/index.d.ts +0 -2
- package/serialization/resources/testcase/index.js +0 -18
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +0 -11
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +0 -40
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +0 -11
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +0 -40
- package/serialization/resources/testcase/types/TestcaseUpdateParamsCustomInputsValue.d.ts +0 -11
- package/serialization/resources/testcase/types/TestcaseUpdateParamsCustomInputsValue.js +0 -40
- package/serialization/resources/testcase/types/TestcaseUpdateParamsCustomLabelsValue.d.ts +0 -11
- package/serialization/resources/testcase/types/TestcaseUpdateParamsCustomLabelsValue.js +0 -40
- package/serialization/resources/testcase/types/index.d.ts +0 -4
- package/serialization/resources/testcase/types/index.js +0 -20
- package/serialization/resources/testrecord/client/index.d.ts +0 -1
- package/serialization/resources/testrecord/client/index.js +0 -17
- package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +0 -29
- package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +0 -60
- package/serialization/resources/testrecord/client/requests/index.d.ts +0 -1
- package/serialization/resources/testrecord/client/requests/index.js +0 -5
- package/serialization/resources/testrecord/index.d.ts +0 -2
- package/serialization/resources/testrecord/index.js +0 -18
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +0 -11
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +0 -37
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +0 -11
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +0 -37
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +0 -11
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +0 -37
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +0 -10
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.js +0 -35
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +0 -10
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.js +0 -35
- package/serialization/resources/testrecord/types/index.d.ts +0 -5
- package/serialization/resources/testrecord/types/index.js +0 -21
- package/serialization/resources/testset/client/index.d.ts +0 -1
- package/serialization/resources/testset/client/index.js +0 -17
- package/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +0 -21
- package/serialization/resources/testset/client/requests/TestsetCreateParams.js +0 -42
- package/serialization/resources/testset/client/requests/TestsetUpdateParams.d.ts +0 -16
- package/serialization/resources/testset/client/requests/TestsetUpdateParams.js +0 -37
- package/serialization/resources/testset/client/requests/index.d.ts +0 -2
- package/serialization/resources/testset/client/requests/index.js +0 -7
- package/serialization/resources/testset/index.d.ts +0 -1
- package/serialization/resources/testset/index.js +0 -17
- package/serialization/resources/tracing/client/index.d.ts +0 -1
- package/serialization/resources/tracing/client/index.js +0 -27
- package/serialization/resources/tracing/client/traces.d.ts +0 -11
- package/serialization/resources/tracing/client/traces.js +0 -32
- package/serialization/resources/tracing/index.d.ts +0 -1
- package/serialization/resources/tracing/index.js +0 -17
- package/serialization/types/CreateGithubWorkflowParams.d.ts +0 -10
- package/serialization/types/CreateGithubWorkflowParams.js +0 -31
- package/serialization/types/CreateRunParams.d.ts +0 -10
- package/serialization/types/CreateRunParams.js +0 -31
- package/serialization/types/CustomSchema.d.ts +0 -13
- package/serialization/types/CustomSchema.js +0 -34
- package/serialization/types/CustomVariable.d.ts +0 -17
- package/serialization/types/CustomVariable.js +0 -38
- package/serialization/types/DataTypeEnum.d.ts +0 -10
- package/serialization/types/DataTypeEnum.js +0 -31
- package/serialization/types/FileUrl.d.ts +0 -13
- package/serialization/types/FileUrl.js +0 -34
- package/serialization/types/Grade.d.ts +0 -26
- package/serialization/types/Grade.js +0 -47
- package/serialization/types/HttpValidationError.d.ts +0 -13
- package/serialization/types/HttpValidationError.js +0 -34
- package/serialization/types/IngestionMethod.d.ts +0 -10
- package/serialization/types/IngestionMethod.js +0 -31
- package/serialization/types/JsonObject.d.ts +0 -12
- package/serialization/types/JsonObject.js +0 -34
- package/serialization/types/JsonObjectInputValue.d.ts +0 -10
- package/serialization/types/JsonObjectInputValue.js +0 -39
- package/serialization/types/JsonObjectOutputValue.d.ts +0 -10
- package/serialization/types/JsonObjectOutputValue.js +0 -39
- package/serialization/types/NotFoundErrorBody.d.ts +0 -14
- package/serialization/types/NotFoundErrorBody.js +0 -35
- package/serialization/types/PaginatedTestcaseResponse.d.ts +0 -16
- package/serialization/types/PaginatedTestcaseResponse.js +0 -37
- package/serialization/types/Prompt.d.ts +0 -25
- package/serialization/types/Prompt.js +0 -46
- package/serialization/types/PromptCursorPage.d.ts +0 -18
- package/serialization/types/PromptCursorPage.js +0 -39
- package/serialization/types/PromptModelParamsValue.d.ts +0 -10
- package/serialization/types/PromptModelParamsValue.js +0 -35
- package/serialization/types/RoleEnum.d.ts +0 -10
- package/serialization/types/RoleEnum.js +0 -31
- package/serialization/types/Run.d.ts +0 -26
- package/serialization/types/Run.js +0 -47
- package/serialization/types/RunMetric.d.ts +0 -15
- package/serialization/types/RunMetric.js +0 -36
- package/serialization/types/RunStatus.d.ts +0 -10
- package/serialization/types/RunStatus.js +0 -39
- package/serialization/types/ScoreStatus.d.ts +0 -10
- package/serialization/types/ScoreStatus.js +0 -31
- package/serialization/types/ScoringConfig.d.ts +0 -21
- package/serialization/types/ScoringConfig.js +0 -42
- package/serialization/types/Span.d.ts +0 -34
- package/serialization/types/Span.js +0 -56
- package/serialization/types/TestCase.d.ts +0 -21
- package/serialization/types/TestCase.js +0 -42
- package/serialization/types/TestCaseCustomInputsValue.d.ts +0 -11
- package/serialization/types/TestCaseCustomInputsValue.js +0 -40
- package/serialization/types/TestCaseCustomLabelsValue.d.ts +0 -11
- package/serialization/types/TestCaseCustomLabelsValue.js +0 -40
- package/serialization/types/TestRecordCreate.d.ts +0 -10
- package/serialization/types/TestRecordCreate.js +0 -31
- package/serialization/types/TestSetCreate.d.ts +0 -10
- package/serialization/types/TestSetCreate.js +0 -31
- package/serialization/types/TestcaseBatchDeletionResponse.d.ts +0 -13
- package/serialization/types/TestcaseBatchDeletionResponse.js +0 -34
- package/serialization/types/TestcaseDeletionResponse.d.ts +0 -13
- package/serialization/types/TestcaseDeletionResponse.js +0 -34
- package/serialization/types/Testrecord.d.ts +0 -33
- package/serialization/types/Testrecord.js +0 -54
- package/serialization/types/TestrecordCustomInputsValue.d.ts +0 -11
- package/serialization/types/TestrecordCustomInputsValue.js +0 -37
- package/serialization/types/TestrecordCustomLabelsValue.d.ts +0 -11
- package/serialization/types/TestrecordCustomLabelsValue.js +0 -37
- package/serialization/types/TestrecordCustomOutputsValue.d.ts +0 -11
- package/serialization/types/TestrecordCustomOutputsValue.js +0 -37
- package/serialization/types/TestrecordModelDebugInfoValue.d.ts +0 -10
- package/serialization/types/TestrecordModelDebugInfoValue.js +0 -35
- package/serialization/types/TestrecordModelParamsValue.d.ts +0 -10
- package/serialization/types/TestrecordModelParamsValue.js +0 -35
- package/serialization/types/Testset.d.ts +0 -25
- package/serialization/types/Testset.js +0 -46
- package/serialization/types/TestsetCursorPage.d.ts +0 -18
- package/serialization/types/TestsetCursorPage.js +0 -39
- package/serialization/types/Trace.d.ts +0 -15
- package/serialization/types/Trace.js +0 -37
- package/serialization/types/UnauthenticatedError.d.ts +0 -14
- package/serialization/types/UnauthenticatedError.js +0 -35
- package/serialization/types/UnauthorizedErrorBody.d.ts +0 -14
- package/serialization/types/UnauthorizedErrorBody.js +0 -35
- package/serialization/types/ValidationError.d.ts +0 -15
- package/serialization/types/ValidationError.js +0 -36
- package/serialization/types/ValidationErrorLocItem.d.ts +0 -10
- package/serialization/types/ValidationErrorLocItem.js +0 -31
- package/serialization/types/index.d.ts +0 -44
- package/serialization/types/index.js +0 -60
- package/telemetry.d.ts +0 -1
- package/telemetry.js +0 -83
- package/wrapper/ScorecardClient.d.ts +0 -28
- package/wrapper/ScorecardClient.js +0 -85
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { PagePromise, PaginatedResponse, type PaginatedResponseParams } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Systems extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new system definition that specifies the interface contracts for a
|
|
12
|
+
* component you want to evaluate.
|
|
13
|
+
*
|
|
14
|
+
* A system acts as a template that defines three key contracts through JSON
|
|
15
|
+
* Schemas:
|
|
16
|
+
*
|
|
17
|
+
* 1. Input Schema: What data your system accepts (e.g., user queries, context
|
|
18
|
+
* documents)
|
|
19
|
+
* 2. Output Schema: What data your system produces (e.g., responses, confidence
|
|
20
|
+
* scores)
|
|
21
|
+
* 3. Config Schema: What parameters can be adjusted (e.g., model selection,
|
|
22
|
+
* temperature)
|
|
23
|
+
*
|
|
24
|
+
* This separation lets you evaluate any system as a black box, focusing on its
|
|
25
|
+
* interface rather than implementation details.
|
|
26
|
+
*/
|
|
27
|
+
create(projectID: string, body: SystemCreateParams, options?: RequestOptions): APIPromise<System> {
|
|
28
|
+
return this._client.post(path`/projects/${projectID}/systems`, { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Update an existing system definition. Only the fields provided in the request
|
|
33
|
+
* body will be updated. If a field is provided, the new content will replace the
|
|
34
|
+
* existing content. If a field is not provided, the existing content will remain
|
|
35
|
+
* unchanged.
|
|
36
|
+
*
|
|
37
|
+
* When updating schemas:
|
|
38
|
+
*
|
|
39
|
+
* - The system will accept your changes regardless of compatibility with existing
|
|
40
|
+
* configurations
|
|
41
|
+
* - Schema updates won't invalidate existing evaluations or configurations
|
|
42
|
+
* - For significant redesigns, creating a new system definition provides a cleaner
|
|
43
|
+
* separation
|
|
44
|
+
*/
|
|
45
|
+
update(
|
|
46
|
+
systemID: string,
|
|
47
|
+
body: SystemUpdateParams | null | undefined = {},
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): APIPromise<System> {
|
|
50
|
+
return this._client.patch(path`/systems/${systemID}`, { body, ...options });
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Retrieve a paginated list of all systems. Systems are ordered by creation date.
|
|
55
|
+
*/
|
|
56
|
+
list(
|
|
57
|
+
projectID: string,
|
|
58
|
+
query: SystemListParams | null | undefined = {},
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): PagePromise<SystemsPaginatedResponse, System> {
|
|
61
|
+
return this._client.getAPIList(path`/projects/${projectID}/systems`, PaginatedResponse<System>, {
|
|
62
|
+
query,
|
|
63
|
+
...options,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Delete a system definition by ID. This will not delete associated system
|
|
69
|
+
* configurations.
|
|
70
|
+
*/
|
|
71
|
+
delete(systemID: string, options?: RequestOptions): APIPromise<SystemDeleteResponse> {
|
|
72
|
+
return this._client.delete(path`/systems/${systemID}`, options);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Retrieve a specific system by ID.
|
|
77
|
+
*/
|
|
78
|
+
get(systemID: string, options?: RequestOptions): APIPromise<System> {
|
|
79
|
+
return this._client.get(path`/systems/${systemID}`, options);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type SystemsPaginatedResponse = PaginatedResponse<System>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* A System Under Test (SUT) defines the interface to a component or service you
|
|
87
|
+
* want to evaluate.
|
|
88
|
+
*
|
|
89
|
+
* It specifies three contracts through schemas:
|
|
90
|
+
*
|
|
91
|
+
* - inputSchema: The structure of data the system accepts
|
|
92
|
+
* - outputSchema: The structure of data the system produces
|
|
93
|
+
* - configSchema: The parameters that modify system behavior
|
|
94
|
+
*
|
|
95
|
+
* This abstraction lets you evaluate any system as a black box, focusing on its
|
|
96
|
+
* interface rather than implementation details. It's particularly useful for
|
|
97
|
+
* systems with variable outputs or complex internal state.
|
|
98
|
+
*
|
|
99
|
+
* Systems are templates - to run evaluations, pair them with a SystemConfig that
|
|
100
|
+
* provides specific parameter values.
|
|
101
|
+
*/
|
|
102
|
+
export interface System {
|
|
103
|
+
/**
|
|
104
|
+
* The ID of the system
|
|
105
|
+
*/
|
|
106
|
+
id: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The schema of the system's configuration
|
|
110
|
+
*/
|
|
111
|
+
configSchema: Record<string, unknown>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The description of the system
|
|
115
|
+
*/
|
|
116
|
+
description: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The schema of the system's inputs
|
|
120
|
+
*/
|
|
121
|
+
inputSchema: Record<string, unknown>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The name of the system
|
|
125
|
+
*/
|
|
126
|
+
name: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The schema of the system's outputs
|
|
130
|
+
*/
|
|
131
|
+
outputSchema: Record<string, unknown>;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface SystemDeleteResponse {
|
|
135
|
+
/**
|
|
136
|
+
* Whether the deletion was successful
|
|
137
|
+
*/
|
|
138
|
+
success: boolean;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface SystemCreateParams {
|
|
142
|
+
/**
|
|
143
|
+
* The schema of the system's configuration
|
|
144
|
+
*/
|
|
145
|
+
configSchema: Record<string, unknown>;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The description of the system
|
|
149
|
+
*/
|
|
150
|
+
description: string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* The schema of the system's inputs
|
|
154
|
+
*/
|
|
155
|
+
inputSchema: Record<string, unknown>;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* The name of the system
|
|
159
|
+
*/
|
|
160
|
+
name: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The schema of the system's outputs
|
|
164
|
+
*/
|
|
165
|
+
outputSchema: Record<string, unknown>;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface SystemUpdateParams {
|
|
169
|
+
/**
|
|
170
|
+
* The schema of the system's configuration
|
|
171
|
+
*/
|
|
172
|
+
configSchema?: Record<string, unknown>;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The description of the system
|
|
176
|
+
*/
|
|
177
|
+
description?: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The schema of the system's inputs
|
|
181
|
+
*/
|
|
182
|
+
inputSchema?: Record<string, unknown>;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The name of the system
|
|
186
|
+
*/
|
|
187
|
+
name?: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The schema of the system's outputs
|
|
191
|
+
*/
|
|
192
|
+
outputSchema?: Record<string, unknown>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface SystemListParams extends PaginatedResponseParams {}
|
|
196
|
+
|
|
197
|
+
export declare namespace Systems {
|
|
198
|
+
export {
|
|
199
|
+
type System as System,
|
|
200
|
+
type SystemDeleteResponse as SystemDeleteResponse,
|
|
201
|
+
type SystemsPaginatedResponse as SystemsPaginatedResponse,
|
|
202
|
+
type SystemCreateParams as SystemCreateParams,
|
|
203
|
+
type SystemUpdateParams as SystemUpdateParams,
|
|
204
|
+
type SystemListParams as SystemListParams,
|
|
205
|
+
};
|
|
206
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { PagePromise, PaginatedResponse, type PaginatedResponseParams } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Testcases extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create multiple testcases in the specified testset.
|
|
12
|
+
*/
|
|
13
|
+
create(
|
|
14
|
+
testsetID: string,
|
|
15
|
+
body: TestcaseCreateParams,
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromise<TestcaseCreateResponse> {
|
|
18
|
+
return this._client.post(path`/testsets/${testsetID}/testcases`, { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Replace the data of an existing testcase while keeping its ID.
|
|
23
|
+
*/
|
|
24
|
+
update(testcaseID: string, body: TestcaseUpdateParams, options?: RequestOptions): APIPromise<Testcase> {
|
|
25
|
+
return this._client.put(path`/testcases/${testcaseID}`, { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a paginated list of testcases belonging to a testset.
|
|
30
|
+
*/
|
|
31
|
+
list(
|
|
32
|
+
testsetID: string,
|
|
33
|
+
query: TestcaseListParams | null | undefined = {},
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): PagePromise<TestcasesPaginatedResponse, Testcase> {
|
|
36
|
+
return this._client.getAPIList(path`/testsets/${testsetID}/testcases`, PaginatedResponse<Testcase>, {
|
|
37
|
+
query,
|
|
38
|
+
...options,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Delete multiple testcases by their IDs.
|
|
44
|
+
*/
|
|
45
|
+
delete(body: TestcaseDeleteParams, options?: RequestOptions): APIPromise<TestcaseDeleteResponse> {
|
|
46
|
+
return this._client.post('/testcases/bulk-delete', { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Retrieve a specific testcase by ID.
|
|
51
|
+
*/
|
|
52
|
+
get(testcaseID: string, options?: RequestOptions): APIPromise<Testcase> {
|
|
53
|
+
return this._client.get(path`/testcases/${testcaseID}`, options);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type TestcasesPaginatedResponse = PaginatedResponse<Testcase>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* A test case in the Scorecard system. Contains JSON data that is validated
|
|
61
|
+
* against the schema defined by its testset. The `inputs` and `labels` fields are
|
|
62
|
+
* derived from the `data` field based on the testset's `fieldMapping`, and include
|
|
63
|
+
* all mapped fields, including those with validation errors. Testcases are stored
|
|
64
|
+
* regardless of validation results, with any validation errors included in the
|
|
65
|
+
* `validationErrors` field.
|
|
66
|
+
*/
|
|
67
|
+
export interface Testcase {
|
|
68
|
+
/**
|
|
69
|
+
* The ID of the testcase
|
|
70
|
+
*/
|
|
71
|
+
id: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Derived from data based on the testset's fieldMapping. Contains all fields
|
|
75
|
+
* marked as inputs, including those with validation errors.
|
|
76
|
+
*/
|
|
77
|
+
inputs: Record<string, unknown>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The JSON data of the testcase, which is validated against the testset's schema.
|
|
81
|
+
*/
|
|
82
|
+
jsonData: Record<string, unknown>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Derived from data based on the testset's fieldMapping. Contains all fields
|
|
86
|
+
* marked as labels, including those with validation errors.
|
|
87
|
+
*/
|
|
88
|
+
labels: Record<string, unknown>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The ID of the testset this testcase belongs to
|
|
92
|
+
*/
|
|
93
|
+
testsetId: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Validation errors found in the testcase data. If present, the testcase doesn't
|
|
97
|
+
* fully conform to its testset's schema.
|
|
98
|
+
*/
|
|
99
|
+
validationErrors?: Array<Testcase.ValidationError>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export namespace Testcase {
|
|
103
|
+
export interface ValidationError {
|
|
104
|
+
/**
|
|
105
|
+
* Human-readable error description
|
|
106
|
+
*/
|
|
107
|
+
message: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* JSON Pointer to the field with the validation error
|
|
111
|
+
*/
|
|
112
|
+
path: string;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface TestcaseCreateResponse {
|
|
117
|
+
items: Array<Testcase>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface TestcaseDeleteResponse {
|
|
121
|
+
/**
|
|
122
|
+
* Whether the deletion was successful
|
|
123
|
+
*/
|
|
124
|
+
success: boolean;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface TestcaseCreateParams {
|
|
128
|
+
/**
|
|
129
|
+
* Testcases to create (max 100)
|
|
130
|
+
*/
|
|
131
|
+
items: Array<TestcaseCreateParams.Item>;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export namespace TestcaseCreateParams {
|
|
135
|
+
/**
|
|
136
|
+
* A test case in the Scorecard system. Contains JSON data that is validated
|
|
137
|
+
* against the schema defined by its testset. The `inputs` and `labels` fields are
|
|
138
|
+
* derived from the `data` field based on the testset's `fieldMapping`, and include
|
|
139
|
+
* all mapped fields, including those with validation errors. Testcases are stored
|
|
140
|
+
* regardless of validation results, with any validation errors included in the
|
|
141
|
+
* `validationErrors` field.
|
|
142
|
+
*/
|
|
143
|
+
export interface Item {
|
|
144
|
+
/**
|
|
145
|
+
* The JSON data of the testcase, which is validated against the testset's schema.
|
|
146
|
+
*/
|
|
147
|
+
jsonData: Record<string, unknown>;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface TestcaseUpdateParams {
|
|
152
|
+
/**
|
|
153
|
+
* The JSON data of the testcase, which is validated against the testset's schema.
|
|
154
|
+
*/
|
|
155
|
+
jsonData: Record<string, unknown>;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface TestcaseListParams extends PaginatedResponseParams {}
|
|
159
|
+
|
|
160
|
+
export interface TestcaseDeleteParams {
|
|
161
|
+
/**
|
|
162
|
+
* IDs of testcases to delete
|
|
163
|
+
*/
|
|
164
|
+
ids: Array<string>;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export declare namespace Testcases {
|
|
168
|
+
export {
|
|
169
|
+
type Testcase as Testcase,
|
|
170
|
+
type TestcaseCreateResponse as TestcaseCreateResponse,
|
|
171
|
+
type TestcaseDeleteResponse as TestcaseDeleteResponse,
|
|
172
|
+
type TestcasesPaginatedResponse as TestcasesPaginatedResponse,
|
|
173
|
+
type TestcaseCreateParams as TestcaseCreateParams,
|
|
174
|
+
type TestcaseUpdateParams as TestcaseUpdateParams,
|
|
175
|
+
type TestcaseListParams as TestcaseListParams,
|
|
176
|
+
type TestcaseDeleteParams as TestcaseDeleteParams,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { PagePromise, PaginatedResponse, type PaginatedResponseParams } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Testsets extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new testset for a project. The testset will be created in the project
|
|
12
|
+
* specified in the path.
|
|
13
|
+
*/
|
|
14
|
+
create(projectID: string, body: TestsetCreateParams, options?: RequestOptions): APIPromise<Testset> {
|
|
15
|
+
return this._client.post(path`/projects/${projectID}/testsets`, { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Update a testset. Only the fields provided in the request body will be updated.
|
|
20
|
+
* If a field is provided, the new content will replace the existing content. If a
|
|
21
|
+
* field is not provided, the existing content will remain unchanged.
|
|
22
|
+
*
|
|
23
|
+
* When updating the schema:
|
|
24
|
+
*
|
|
25
|
+
* - If field mappings are not provided and existing mappings reference fields that
|
|
26
|
+
* no longer exist, those mappings will be automatically removed
|
|
27
|
+
* - To preserve all existing mappings, ensure all referenced fields remain in the
|
|
28
|
+
* updated schema
|
|
29
|
+
* - For complete control, provide both schema and fieldMapping when updating the
|
|
30
|
+
* schema
|
|
31
|
+
*/
|
|
32
|
+
update(
|
|
33
|
+
testsetID: string,
|
|
34
|
+
body: TestsetUpdateParams | null | undefined = {},
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<Testset> {
|
|
37
|
+
return this._client.patch(path`/testsets/${testsetID}`, { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Retrieve a paginated list of testsets belonging to a project.
|
|
42
|
+
*/
|
|
43
|
+
list(
|
|
44
|
+
projectID: string,
|
|
45
|
+
query: TestsetListParams | null | undefined = {},
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): PagePromise<TestsetsPaginatedResponse, Testset> {
|
|
48
|
+
return this._client.getAPIList(path`/projects/${projectID}/testsets`, PaginatedResponse<Testset>, {
|
|
49
|
+
query,
|
|
50
|
+
...options,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Delete testset
|
|
56
|
+
*/
|
|
57
|
+
delete(testsetID: string, options?: RequestOptions): APIPromise<TestsetDeleteResponse> {
|
|
58
|
+
return this._client.delete(path`/testsets/${testsetID}`, options);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Get testset by ID
|
|
63
|
+
*/
|
|
64
|
+
get(testsetID: string, options?: RequestOptions): APIPromise<Testset> {
|
|
65
|
+
return this._client.get(path`/testsets/${testsetID}`, options);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type TestsetsPaginatedResponse = PaginatedResponse<Testset>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* A collection of test cases that share the same schema. Each testset defines the
|
|
73
|
+
* structure of its test cases through a JSON schema. The `fieldMapping` object
|
|
74
|
+
* maps top-level keys of the testcase schema to their roles (input/label). Fields
|
|
75
|
+
* not mentioned in the `fieldMapping` during creation or update are treated as
|
|
76
|
+
* metadata.
|
|
77
|
+
*
|
|
78
|
+
* ## JSON Schema validation constraints supported:
|
|
79
|
+
*
|
|
80
|
+
* - **Required fields** - Fields listed in the schema's `required` array must be
|
|
81
|
+
* present in testcases
|
|
82
|
+
* - **Type validation** - Values must match the specified type (string, number,
|
|
83
|
+
* boolean, null, integer, object, array)
|
|
84
|
+
* - **Enum validation** - Values must be one of the options specified in the
|
|
85
|
+
* `enum` array
|
|
86
|
+
* - **Object property validation** - Properties of objects must conform to their
|
|
87
|
+
* defined schemas
|
|
88
|
+
* - **Array item validation** - Items in arrays must conform to the `items` schema
|
|
89
|
+
* - **Logical composition** - Values must conform to at least one schema in the
|
|
90
|
+
* `anyOf` array
|
|
91
|
+
*
|
|
92
|
+
* Testcases that fail validation will still be stored, but will include
|
|
93
|
+
* `validationErrors` detailing the issues. Extra fields in the testcase data that
|
|
94
|
+
* are not in the schema will be stored but are ignored during validation.
|
|
95
|
+
*/
|
|
96
|
+
export interface Testset {
|
|
97
|
+
/**
|
|
98
|
+
* The ID of the testset
|
|
99
|
+
*/
|
|
100
|
+
id: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The description of the testset
|
|
104
|
+
*/
|
|
105
|
+
description: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Maps top-level keys of the testcase schema to their roles (input/label).
|
|
109
|
+
* Unmapped fields are treated as metadata.
|
|
110
|
+
*/
|
|
111
|
+
fieldMapping: Testset.FieldMapping;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The JSON schema for each testcase in the testset
|
|
115
|
+
*/
|
|
116
|
+
jsonSchema: Record<string, unknown>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The name of the testset
|
|
120
|
+
*/
|
|
121
|
+
name: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export namespace Testset {
|
|
125
|
+
/**
|
|
126
|
+
* Maps top-level keys of the testcase schema to their roles (input/label).
|
|
127
|
+
* Unmapped fields are treated as metadata.
|
|
128
|
+
*/
|
|
129
|
+
export interface FieldMapping {
|
|
130
|
+
/**
|
|
131
|
+
* Fields that represent inputs to the AI system
|
|
132
|
+
*/
|
|
133
|
+
inputs: Array<string>;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Fields that represent expected outputs/labels
|
|
137
|
+
*/
|
|
138
|
+
labels: Array<string>;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Fields that are not inputs or labels
|
|
142
|
+
*/
|
|
143
|
+
metadata: Array<string>;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface TestsetDeleteResponse {
|
|
148
|
+
/**
|
|
149
|
+
* Whether the deletion was successful
|
|
150
|
+
*/
|
|
151
|
+
success: boolean;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface TestsetCreateParams {
|
|
155
|
+
/**
|
|
156
|
+
* The description of the testset
|
|
157
|
+
*/
|
|
158
|
+
description: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Maps top-level keys of the testcase schema to their roles (input/label).
|
|
162
|
+
* Unmapped fields are treated as metadata.
|
|
163
|
+
*/
|
|
164
|
+
fieldMapping: TestsetCreateParams.FieldMapping;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* The JSON schema for each testcase in the testset
|
|
168
|
+
*/
|
|
169
|
+
jsonSchema: Record<string, unknown>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The name of the testset
|
|
173
|
+
*/
|
|
174
|
+
name: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export namespace TestsetCreateParams {
|
|
178
|
+
/**
|
|
179
|
+
* Maps top-level keys of the testcase schema to their roles (input/label).
|
|
180
|
+
* Unmapped fields are treated as metadata.
|
|
181
|
+
*/
|
|
182
|
+
export interface FieldMapping {
|
|
183
|
+
/**
|
|
184
|
+
* Fields that represent inputs to the AI system
|
|
185
|
+
*/
|
|
186
|
+
inputs: Array<string>;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Fields that represent expected outputs/labels
|
|
190
|
+
*/
|
|
191
|
+
labels: Array<string>;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Fields that are not inputs or labels
|
|
195
|
+
*/
|
|
196
|
+
metadata: Array<string>;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface TestsetUpdateParams {
|
|
201
|
+
/**
|
|
202
|
+
* The description of the testset
|
|
203
|
+
*/
|
|
204
|
+
description?: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Maps top-level keys of the testcase schema to their roles (input/label).
|
|
208
|
+
* Unmapped fields are treated as metadata.
|
|
209
|
+
*/
|
|
210
|
+
fieldMapping?: TestsetUpdateParams.FieldMapping;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The JSON schema for each testcase in the testset
|
|
214
|
+
*/
|
|
215
|
+
jsonSchema?: Record<string, unknown>;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The name of the testset
|
|
219
|
+
*/
|
|
220
|
+
name?: string;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export namespace TestsetUpdateParams {
|
|
224
|
+
/**
|
|
225
|
+
* Maps top-level keys of the testcase schema to their roles (input/label).
|
|
226
|
+
* Unmapped fields are treated as metadata.
|
|
227
|
+
*/
|
|
228
|
+
export interface FieldMapping {
|
|
229
|
+
/**
|
|
230
|
+
* Fields that represent inputs to the AI system
|
|
231
|
+
*/
|
|
232
|
+
inputs: Array<string>;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Fields that represent expected outputs/labels
|
|
236
|
+
*/
|
|
237
|
+
labels: Array<string>;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Fields that are not inputs or labels
|
|
241
|
+
*/
|
|
242
|
+
metadata: Array<string>;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export interface TestsetListParams extends PaginatedResponseParams {}
|
|
247
|
+
|
|
248
|
+
export declare namespace Testsets {
|
|
249
|
+
export {
|
|
250
|
+
type Testset as Testset,
|
|
251
|
+
type TestsetDeleteResponse as TestsetDeleteResponse,
|
|
252
|
+
type TestsetsPaginatedResponse as TestsetsPaginatedResponse,
|
|
253
|
+
type TestsetCreateParams as TestsetCreateParams,
|
|
254
|
+
type TestsetUpdateParams as TestsetUpdateParams,
|
|
255
|
+
type TestsetListParams as TestsetListParams,
|
|
256
|
+
};
|
|
257
|
+
}
|
package/src/resources.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './resources/index';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
// this config is included in the published src directory to prevent TS errors
|
|
3
|
+
// from appearing when users go to source, and VSCode opens the source .ts file
|
|
4
|
+
// via declaration maps
|
|
5
|
+
"include": ["index.ts"],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"target": "ES2015",
|
|
8
|
+
"lib": ["DOM", "DOM.Iterable", "ES2018"],
|
|
9
|
+
"moduleResolution": "node"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/src/uploads.ts
ADDED
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = '1.0.0-alpha.1'; // x-release-please-version
|
package/uploads.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.d.ts
ADDED
package/uploads.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/** @deprecated Import from ./core/uploads instead */
|
|
18
|
+
__exportStar(require("./core/uploads.js"), exports);
|
|
19
|
+
//# sourceMappingURL=uploads.js.map
|
package/uploads.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAqD;AACrD,oDAA+B"}
|