scorecard-ai 0.6.1 → 1.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -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 +204 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +204 -0
- package/client.d.ts.map +1 -0
- package/client.js +493 -0
- package/client.js.map +1 -0
- package/client.mjs +466 -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 +33 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +28 -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/index.d.mts +5 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +5 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +26 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +6 -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/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/testcases.d.mts +141 -0
- package/resources/testcases.d.mts.map +1 -0
- package/resources/testcases.d.ts +141 -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 +194 -0
- package/resources/testsets.d.mts.map +1 -0
- package/resources/testsets.d.ts +194 -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 +794 -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 +37 -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/index.ts +29 -0
- package/src/resources/projects.ts +48 -0
- package/src/resources/shared.ts +12 -0
- package/src/resources/testcases.ts +201 -0
- package/src/resources/testsets.ts +254 -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
package/src/client.ts
ADDED
|
@@ -0,0 +1,794 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import type { RequestInit, RequestInfo, BodyInit } from './internal/builtin-types';
|
|
4
|
+
import type { HTTPMethod, PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from './internal/types';
|
|
5
|
+
import { uuid4 } from './internal/utils/uuid';
|
|
6
|
+
import { validatePositiveInteger, isAbsoluteURL, safeJSON } from './internal/utils/values';
|
|
7
|
+
import { sleep } from './internal/utils/sleep';
|
|
8
|
+
import { type Logger, type LogLevel, parseLogLevel } from './internal/utils/log';
|
|
9
|
+
export type { Logger, LogLevel } from './internal/utils/log';
|
|
10
|
+
import { castToError, isAbortError } from './internal/errors';
|
|
11
|
+
import type { APIResponseProps } from './internal/parse';
|
|
12
|
+
import { getPlatformHeaders } from './internal/detect-platform';
|
|
13
|
+
import * as Shims from './internal/shims';
|
|
14
|
+
import * as Opts from './internal/request-options';
|
|
15
|
+
import { VERSION } from './version';
|
|
16
|
+
import * as Errors from './core/error';
|
|
17
|
+
import * as Pagination from './core/pagination';
|
|
18
|
+
import { AbstractPage, type PaginatedResponseParams, PaginatedResponseResponse } from './core/pagination';
|
|
19
|
+
import * as Uploads from './core/uploads';
|
|
20
|
+
import * as API from './resources/index';
|
|
21
|
+
import { APIPromise } from './core/api-promise';
|
|
22
|
+
import { type Fetch } from './internal/builtin-types';
|
|
23
|
+
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
24
|
+
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
25
|
+
import {
|
|
26
|
+
ProjectListParams,
|
|
27
|
+
ProjectListResponse,
|
|
28
|
+
ProjectListResponsesPaginatedResponse,
|
|
29
|
+
Projects,
|
|
30
|
+
} from './resources/projects';
|
|
31
|
+
import {
|
|
32
|
+
Testcase,
|
|
33
|
+
TestcaseCreateParams,
|
|
34
|
+
TestcaseCreateResponse,
|
|
35
|
+
TestcaseDeleteParams,
|
|
36
|
+
TestcaseDeleteResponse,
|
|
37
|
+
TestcaseListParams,
|
|
38
|
+
TestcaseUpdateParams,
|
|
39
|
+
Testcases,
|
|
40
|
+
TestcasesPaginatedResponse,
|
|
41
|
+
} from './resources/testcases';
|
|
42
|
+
import {
|
|
43
|
+
Testset,
|
|
44
|
+
TestsetCreateParams,
|
|
45
|
+
TestsetDeleteResponse,
|
|
46
|
+
TestsetListParams,
|
|
47
|
+
TestsetUpdateParams,
|
|
48
|
+
Testsets,
|
|
49
|
+
TestsetsPaginatedResponse,
|
|
50
|
+
} from './resources/testsets';
|
|
51
|
+
import { readEnv } from './internal/utils/env';
|
|
52
|
+
import { formatRequestDetails, loggerFor } from './internal/utils/log';
|
|
53
|
+
import { isEmptyObj } from './internal/utils/values';
|
|
54
|
+
|
|
55
|
+
const environments = {
|
|
56
|
+
production: 'https://api2.scorecard.io/api/v2',
|
|
57
|
+
staging: 'https://staging.api2.scorecard.io/api/v2',
|
|
58
|
+
local: 'http://localhost:3000/api/v2',
|
|
59
|
+
};
|
|
60
|
+
type Environment = keyof typeof environments;
|
|
61
|
+
|
|
62
|
+
export interface ClientOptions {
|
|
63
|
+
/**
|
|
64
|
+
* Defaults to process.env['SCORECARD_API_KEY'].
|
|
65
|
+
*/
|
|
66
|
+
bearerToken?: string | undefined;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Specifies the environment to use for the API.
|
|
70
|
+
*
|
|
71
|
+
* Each environment maps to a different base URL:
|
|
72
|
+
* - `production` corresponds to `https://api2.scorecard.io/api/v2`
|
|
73
|
+
* - `staging` corresponds to `https://staging.api2.scorecard.io/api/v2`
|
|
74
|
+
* - `local` corresponds to `http://localhost:3000/api/v2`
|
|
75
|
+
*/
|
|
76
|
+
environment?: Environment | undefined;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
80
|
+
*
|
|
81
|
+
* Defaults to process.env['SCORECARD_BASE_URL'].
|
|
82
|
+
*/
|
|
83
|
+
baseURL?: string | null | undefined;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
87
|
+
* from the server before timing out a single request.
|
|
88
|
+
*
|
|
89
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
90
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
91
|
+
*/
|
|
92
|
+
timeout?: number | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
95
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
96
|
+
*/
|
|
97
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Specify a custom `fetch` function implementation.
|
|
101
|
+
*
|
|
102
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
103
|
+
*/
|
|
104
|
+
fetch?: Fetch | undefined;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
108
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
109
|
+
*
|
|
110
|
+
* @default 2
|
|
111
|
+
*/
|
|
112
|
+
maxRetries?: number | undefined;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Default headers to include with every request to the API.
|
|
116
|
+
*
|
|
117
|
+
* These can be removed in individual requests by explicitly setting the
|
|
118
|
+
* header to `null` in request options.
|
|
119
|
+
*/
|
|
120
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Default query parameters to include with every request to the API.
|
|
124
|
+
*
|
|
125
|
+
* These can be removed in individual requests by explicitly setting the
|
|
126
|
+
* param to `undefined` in request options.
|
|
127
|
+
*/
|
|
128
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Set the log level.
|
|
132
|
+
*
|
|
133
|
+
* Defaults to process.env['SCORECARD_LOG'] or 'warn' if it isn't set.
|
|
134
|
+
*/
|
|
135
|
+
logLevel?: LogLevel | undefined;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Set the logger.
|
|
139
|
+
*
|
|
140
|
+
* Defaults to globalThis.console.
|
|
141
|
+
*/
|
|
142
|
+
logger?: Logger | undefined;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* API Client for interfacing with the Scorecard API.
|
|
147
|
+
*/
|
|
148
|
+
export class Scorecard {
|
|
149
|
+
bearerToken: string;
|
|
150
|
+
|
|
151
|
+
baseURL: string;
|
|
152
|
+
maxRetries: number;
|
|
153
|
+
timeout: number;
|
|
154
|
+
logger: Logger | undefined;
|
|
155
|
+
logLevel: LogLevel | undefined;
|
|
156
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
157
|
+
|
|
158
|
+
private fetch: Fetch;
|
|
159
|
+
#encoder: Opts.RequestEncoder;
|
|
160
|
+
protected idempotencyHeader?: string;
|
|
161
|
+
private _options: ClientOptions;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* API Client for interfacing with the Scorecard API.
|
|
165
|
+
*
|
|
166
|
+
* @param {string | undefined} [opts.bearerToken=process.env['SCORECARD_API_KEY'] ?? undefined]
|
|
167
|
+
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
168
|
+
* @param {string} [opts.baseURL=process.env['SCORECARD_BASE_URL'] ?? https://api2.scorecard.io/api/v2] - Override the default base URL for the API.
|
|
169
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
170
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
171
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
172
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
173
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
174
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
175
|
+
*/
|
|
176
|
+
constructor({
|
|
177
|
+
baseURL = readEnv('SCORECARD_BASE_URL'),
|
|
178
|
+
bearerToken = readEnv('SCORECARD_API_KEY'),
|
|
179
|
+
...opts
|
|
180
|
+
}: ClientOptions = {}) {
|
|
181
|
+
if (bearerToken === undefined) {
|
|
182
|
+
throw new Errors.ScorecardError(
|
|
183
|
+
"The SCORECARD_API_KEY environment variable is missing or empty; either provide it, or instantiate the Scorecard client with an bearerToken option, like new Scorecard({ bearerToken: 'My Bearer Token' }).",
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const options: ClientOptions = {
|
|
188
|
+
bearerToken,
|
|
189
|
+
...opts,
|
|
190
|
+
baseURL,
|
|
191
|
+
environment: opts.environment ?? 'production',
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
if (baseURL && opts.environment) {
|
|
195
|
+
throw new Errors.ScorecardError(
|
|
196
|
+
'Ambiguous URL; The `baseURL` option (or SCORECARD_BASE_URL env var) and the `environment` option are given. If you want to use the environment you must pass baseURL: null',
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
this.baseURL = options.baseURL || environments[options.environment || 'production'];
|
|
201
|
+
this.timeout = options.timeout ?? Scorecard.DEFAULT_TIMEOUT /* 1 minute */;
|
|
202
|
+
this.logger = options.logger ?? console;
|
|
203
|
+
const defaultLogLevel = 'warn';
|
|
204
|
+
// Set default logLevel early so that we can log a warning in parseLogLevel.
|
|
205
|
+
this.logLevel = defaultLogLevel;
|
|
206
|
+
this.logLevel =
|
|
207
|
+
parseLogLevel(options.logLevel, 'ClientOptions.logLevel', this) ??
|
|
208
|
+
parseLogLevel(readEnv('SCORECARD_LOG'), "process.env['SCORECARD_LOG']", this) ??
|
|
209
|
+
defaultLogLevel;
|
|
210
|
+
this.fetchOptions = options.fetchOptions;
|
|
211
|
+
this.maxRetries = options.maxRetries ?? 2;
|
|
212
|
+
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
213
|
+
this.#encoder = Opts.FallbackEncoder;
|
|
214
|
+
|
|
215
|
+
this._options = options;
|
|
216
|
+
|
|
217
|
+
this.bearerToken = bearerToken;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined {
|
|
221
|
+
return this._options.defaultQuery;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
protected validateHeaders({ values, nulls }: NullableHeaders) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
protected authHeaders(opts: FinalRequestOptions): NullableHeaders | undefined {
|
|
229
|
+
return buildHeaders([{ Authorization: `Bearer ${this.bearerToken}` }]);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
234
|
+
*/
|
|
235
|
+
protected stringifyQuery(query: Record<string, unknown>): string {
|
|
236
|
+
return Object.entries(query)
|
|
237
|
+
.filter(([_, value]) => typeof value !== 'undefined')
|
|
238
|
+
.map(([key, value]) => {
|
|
239
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
240
|
+
return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
|
|
241
|
+
}
|
|
242
|
+
if (value === null) {
|
|
243
|
+
return `${encodeURIComponent(key)}=`;
|
|
244
|
+
}
|
|
245
|
+
throw new Errors.ScorecardError(
|
|
246
|
+
`Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`,
|
|
247
|
+
);
|
|
248
|
+
})
|
|
249
|
+
.join('&');
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
private getUserAgent(): string {
|
|
253
|
+
return `${this.constructor.name}/JS ${VERSION}`;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
protected defaultIdempotencyKey(): string {
|
|
257
|
+
return `stainless-node-retry-${uuid4()}`;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
protected makeStatusError(
|
|
261
|
+
status: number,
|
|
262
|
+
error: Object,
|
|
263
|
+
message: string | undefined,
|
|
264
|
+
headers: Headers,
|
|
265
|
+
): Errors.APIError {
|
|
266
|
+
return Errors.APIError.generate(status, error, message, headers);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
buildURL(path: string, query: Record<string, unknown> | null | undefined): string {
|
|
270
|
+
const url =
|
|
271
|
+
isAbsoluteURL(path) ?
|
|
272
|
+
new URL(path)
|
|
273
|
+
: new URL(this.baseURL + (this.baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
|
|
274
|
+
|
|
275
|
+
const defaultQuery = this.defaultQuery();
|
|
276
|
+
if (!isEmptyObj(defaultQuery)) {
|
|
277
|
+
query = { ...defaultQuery, ...query };
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if (typeof query === 'object' && query && !Array.isArray(query)) {
|
|
281
|
+
url.search = this.stringifyQuery(query as Record<string, unknown>);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
return url.toString();
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
289
|
+
*/
|
|
290
|
+
protected async prepareOptions(options: FinalRequestOptions): Promise<void> {}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
294
|
+
*
|
|
295
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
296
|
+
* the request properties, e.g. `method` or `url`.
|
|
297
|
+
*/
|
|
298
|
+
protected async prepareRequest(
|
|
299
|
+
request: RequestInit,
|
|
300
|
+
{ url, options }: { url: string; options: FinalRequestOptions },
|
|
301
|
+
): Promise<void> {}
|
|
302
|
+
|
|
303
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
304
|
+
return this.methodRequest('get', path, opts);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
308
|
+
return this.methodRequest('post', path, opts);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
312
|
+
return this.methodRequest('patch', path, opts);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
316
|
+
return this.methodRequest('put', path, opts);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
320
|
+
return this.methodRequest('delete', path, opts);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
private methodRequest<Rsp>(
|
|
324
|
+
method: HTTPMethod,
|
|
325
|
+
path: string,
|
|
326
|
+
opts?: PromiseOrValue<RequestOptions>,
|
|
327
|
+
): APIPromise<Rsp> {
|
|
328
|
+
return this.request(
|
|
329
|
+
Promise.resolve(opts).then((opts) => {
|
|
330
|
+
return { method, path, ...opts };
|
|
331
|
+
}),
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
request<Rsp>(
|
|
336
|
+
options: PromiseOrValue<FinalRequestOptions>,
|
|
337
|
+
remainingRetries: number | null = null,
|
|
338
|
+
): APIPromise<Rsp> {
|
|
339
|
+
return new APIPromise(this, this.makeRequest(options, remainingRetries, undefined));
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
private async makeRequest(
|
|
343
|
+
optionsInput: PromiseOrValue<FinalRequestOptions>,
|
|
344
|
+
retriesRemaining: number | null,
|
|
345
|
+
retryOfRequestLogID: string | undefined,
|
|
346
|
+
): Promise<APIResponseProps> {
|
|
347
|
+
const options = await optionsInput;
|
|
348
|
+
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
349
|
+
if (retriesRemaining == null) {
|
|
350
|
+
retriesRemaining = maxRetries;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
await this.prepareOptions(options);
|
|
354
|
+
|
|
355
|
+
const { req, url, timeout } = this.buildRequest(options, { retryCount: maxRetries - retriesRemaining });
|
|
356
|
+
|
|
357
|
+
await this.prepareRequest(req, { url, options });
|
|
358
|
+
|
|
359
|
+
/** Not an API request ID, just for correlating local log entries. */
|
|
360
|
+
const requestLogID = 'log_' + ((Math.random() * (1 << 24)) | 0).toString(16).padStart(6, '0');
|
|
361
|
+
const retryLogStr = retryOfRequestLogID === undefined ? '' : `, retryOf: ${retryOfRequestLogID}`;
|
|
362
|
+
const startTime = Date.now();
|
|
363
|
+
|
|
364
|
+
loggerFor(this).debug(
|
|
365
|
+
`[${requestLogID}] sending request`,
|
|
366
|
+
formatRequestDetails({
|
|
367
|
+
retryOfRequestLogID,
|
|
368
|
+
method: options.method,
|
|
369
|
+
url,
|
|
370
|
+
options,
|
|
371
|
+
headers: req.headers,
|
|
372
|
+
}),
|
|
373
|
+
);
|
|
374
|
+
|
|
375
|
+
if (options.signal?.aborted) {
|
|
376
|
+
throw new Errors.APIUserAbortError();
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
const controller = new AbortController();
|
|
380
|
+
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
|
|
381
|
+
const headersTime = Date.now();
|
|
382
|
+
|
|
383
|
+
if (response instanceof Error) {
|
|
384
|
+
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
385
|
+
if (options.signal?.aborted) {
|
|
386
|
+
throw new Errors.APIUserAbortError();
|
|
387
|
+
}
|
|
388
|
+
// detect native connection timeout errors
|
|
389
|
+
// deno throws "TypeError: error sending request for url (https://example/): client error (Connect): tcp connect error: Operation timed out (os error 60): Operation timed out (os error 60)"
|
|
390
|
+
// undici throws "TypeError: fetch failed" with cause "ConnectTimeoutError: Connect Timeout Error (attempted address: example:443, timeout: 1ms)"
|
|
391
|
+
// others do not provide enough information to distinguish timeouts from other connection errors
|
|
392
|
+
const isTimeout =
|
|
393
|
+
isAbortError(response) ||
|
|
394
|
+
/timed? ?out/i.test(String(response) + ('cause' in response ? String(response.cause) : ''));
|
|
395
|
+
if (retriesRemaining) {
|
|
396
|
+
loggerFor(this).info(
|
|
397
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - ${retryMessage}`,
|
|
398
|
+
);
|
|
399
|
+
loggerFor(this).debug(
|
|
400
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (${retryMessage})`,
|
|
401
|
+
formatRequestDetails({
|
|
402
|
+
retryOfRequestLogID,
|
|
403
|
+
url,
|
|
404
|
+
durationMs: headersTime - startTime,
|
|
405
|
+
message: response.message,
|
|
406
|
+
}),
|
|
407
|
+
);
|
|
408
|
+
return this.retryRequest(options, retriesRemaining, retryOfRequestLogID ?? requestLogID);
|
|
409
|
+
}
|
|
410
|
+
loggerFor(this).info(
|
|
411
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - error; no more retries left`,
|
|
412
|
+
);
|
|
413
|
+
loggerFor(this).debug(
|
|
414
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (error; no more retries left)`,
|
|
415
|
+
formatRequestDetails({
|
|
416
|
+
retryOfRequestLogID,
|
|
417
|
+
url,
|
|
418
|
+
durationMs: headersTime - startTime,
|
|
419
|
+
message: response.message,
|
|
420
|
+
}),
|
|
421
|
+
);
|
|
422
|
+
if (isTimeout) {
|
|
423
|
+
throw new Errors.APIConnectionTimeoutError();
|
|
424
|
+
}
|
|
425
|
+
throw new Errors.APIConnectionError({ cause: response });
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
const responseInfo = `[${requestLogID}${retryLogStr}] ${req.method} ${url} ${
|
|
429
|
+
response.ok ? 'succeeded' : 'failed'
|
|
430
|
+
} with status ${response.status} in ${headersTime - startTime}ms`;
|
|
431
|
+
|
|
432
|
+
if (!response.ok) {
|
|
433
|
+
const shouldRetry = this.shouldRetry(response);
|
|
434
|
+
if (retriesRemaining && shouldRetry) {
|
|
435
|
+
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
436
|
+
|
|
437
|
+
// We don't need the body of this response.
|
|
438
|
+
await Shims.CancelReadableStream(response.body);
|
|
439
|
+
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
440
|
+
loggerFor(this).debug(
|
|
441
|
+
`[${requestLogID}] response error (${retryMessage})`,
|
|
442
|
+
formatRequestDetails({
|
|
443
|
+
retryOfRequestLogID,
|
|
444
|
+
url: response.url,
|
|
445
|
+
status: response.status,
|
|
446
|
+
headers: response.headers,
|
|
447
|
+
durationMs: headersTime - startTime,
|
|
448
|
+
}),
|
|
449
|
+
);
|
|
450
|
+
return this.retryRequest(
|
|
451
|
+
options,
|
|
452
|
+
retriesRemaining,
|
|
453
|
+
retryOfRequestLogID ?? requestLogID,
|
|
454
|
+
response.headers,
|
|
455
|
+
);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
const retryMessage = shouldRetry ? `error; no more retries left` : `error; not retryable`;
|
|
459
|
+
|
|
460
|
+
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
461
|
+
|
|
462
|
+
const errText = await response.text().catch((err: any) => castToError(err).message);
|
|
463
|
+
const errJSON = safeJSON(errText);
|
|
464
|
+
const errMessage = errJSON ? undefined : errText;
|
|
465
|
+
|
|
466
|
+
loggerFor(this).debug(
|
|
467
|
+
`[${requestLogID}] response error (${retryMessage})`,
|
|
468
|
+
formatRequestDetails({
|
|
469
|
+
retryOfRequestLogID,
|
|
470
|
+
url: response.url,
|
|
471
|
+
status: response.status,
|
|
472
|
+
headers: response.headers,
|
|
473
|
+
message: errMessage,
|
|
474
|
+
durationMs: Date.now() - startTime,
|
|
475
|
+
}),
|
|
476
|
+
);
|
|
477
|
+
|
|
478
|
+
const err = this.makeStatusError(response.status, errJSON, errMessage, response.headers);
|
|
479
|
+
throw err;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
loggerFor(this).info(responseInfo);
|
|
483
|
+
loggerFor(this).debug(
|
|
484
|
+
`[${requestLogID}] response start`,
|
|
485
|
+
formatRequestDetails({
|
|
486
|
+
retryOfRequestLogID,
|
|
487
|
+
url: response.url,
|
|
488
|
+
status: response.status,
|
|
489
|
+
headers: response.headers,
|
|
490
|
+
durationMs: headersTime - startTime,
|
|
491
|
+
}),
|
|
492
|
+
);
|
|
493
|
+
|
|
494
|
+
return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(
|
|
498
|
+
path: string,
|
|
499
|
+
Page: new (...args: any[]) => PageClass,
|
|
500
|
+
opts?: RequestOptions,
|
|
501
|
+
): Pagination.PagePromise<PageClass, Item> {
|
|
502
|
+
return this.requestAPIList(Page, { method: 'get', path, ...opts });
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
requestAPIList<
|
|
506
|
+
Item = unknown,
|
|
507
|
+
PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>,
|
|
508
|
+
>(
|
|
509
|
+
Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass,
|
|
510
|
+
options: FinalRequestOptions,
|
|
511
|
+
): Pagination.PagePromise<PageClass, Item> {
|
|
512
|
+
const request = this.makeRequest(options, null, undefined);
|
|
513
|
+
return new Pagination.PagePromise<PageClass, Item>(this as any as Scorecard, request, Page);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
async fetchWithTimeout(
|
|
517
|
+
url: RequestInfo,
|
|
518
|
+
init: RequestInit | undefined,
|
|
519
|
+
ms: number,
|
|
520
|
+
controller: AbortController,
|
|
521
|
+
): Promise<Response> {
|
|
522
|
+
const { signal, method, ...options } = init || {};
|
|
523
|
+
if (signal) signal.addEventListener('abort', () => controller.abort());
|
|
524
|
+
|
|
525
|
+
const timeout = setTimeout(() => controller.abort(), ms);
|
|
526
|
+
|
|
527
|
+
const isReadableBody =
|
|
528
|
+
((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) ||
|
|
529
|
+
(typeof options.body === 'object' && options.body !== null && Symbol.asyncIterator in options.body);
|
|
530
|
+
|
|
531
|
+
const fetchOptions: RequestInit = {
|
|
532
|
+
signal: controller.signal as any,
|
|
533
|
+
...(isReadableBody ? { duplex: 'half' } : {}),
|
|
534
|
+
method: 'GET',
|
|
535
|
+
...options,
|
|
536
|
+
};
|
|
537
|
+
if (method) {
|
|
538
|
+
// Custom methods like 'patch' need to be uppercased
|
|
539
|
+
// See https://github.com/nodejs/undici/issues/2294
|
|
540
|
+
fetchOptions.method = method.toUpperCase();
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
return (
|
|
544
|
+
// use undefined this binding; fetch errors if bound to something else in browser/cloudflare
|
|
545
|
+
this.fetch.call(undefined, url, fetchOptions).finally(() => {
|
|
546
|
+
clearTimeout(timeout);
|
|
547
|
+
})
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
private shouldRetry(response: Response): boolean {
|
|
552
|
+
// Note this is not a standard header.
|
|
553
|
+
const shouldRetryHeader = response.headers.get('x-should-retry');
|
|
554
|
+
|
|
555
|
+
// If the server explicitly says whether or not to retry, obey.
|
|
556
|
+
if (shouldRetryHeader === 'true') return true;
|
|
557
|
+
if (shouldRetryHeader === 'false') return false;
|
|
558
|
+
|
|
559
|
+
// Retry on request timeouts.
|
|
560
|
+
if (response.status === 408) return true;
|
|
561
|
+
|
|
562
|
+
// Retry on lock timeouts.
|
|
563
|
+
if (response.status === 409) return true;
|
|
564
|
+
|
|
565
|
+
// Retry on rate limits.
|
|
566
|
+
if (response.status === 429) return true;
|
|
567
|
+
|
|
568
|
+
// Retry internal errors.
|
|
569
|
+
if (response.status >= 500) return true;
|
|
570
|
+
|
|
571
|
+
return false;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
private async retryRequest(
|
|
575
|
+
options: FinalRequestOptions,
|
|
576
|
+
retriesRemaining: number,
|
|
577
|
+
requestLogID: string,
|
|
578
|
+
responseHeaders?: Headers | undefined,
|
|
579
|
+
): Promise<APIResponseProps> {
|
|
580
|
+
let timeoutMillis: number | undefined;
|
|
581
|
+
|
|
582
|
+
// Note the `retry-after-ms` header may not be standard, but is a good idea and we'd like proactive support for it.
|
|
583
|
+
const retryAfterMillisHeader = responseHeaders?.get('retry-after-ms');
|
|
584
|
+
if (retryAfterMillisHeader) {
|
|
585
|
+
const timeoutMs = parseFloat(retryAfterMillisHeader);
|
|
586
|
+
if (!Number.isNaN(timeoutMs)) {
|
|
587
|
+
timeoutMillis = timeoutMs;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
// About the Retry-After header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
|
|
592
|
+
const retryAfterHeader = responseHeaders?.get('retry-after');
|
|
593
|
+
if (retryAfterHeader && !timeoutMillis) {
|
|
594
|
+
const timeoutSeconds = parseFloat(retryAfterHeader);
|
|
595
|
+
if (!Number.isNaN(timeoutSeconds)) {
|
|
596
|
+
timeoutMillis = timeoutSeconds * 1000;
|
|
597
|
+
} else {
|
|
598
|
+
timeoutMillis = Date.parse(retryAfterHeader) - Date.now();
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
// If the API asks us to wait a certain amount of time (and it's a reasonable amount),
|
|
603
|
+
// just do what it says, but otherwise calculate a default
|
|
604
|
+
if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
|
|
605
|
+
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
606
|
+
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
|
|
607
|
+
}
|
|
608
|
+
await sleep(timeoutMillis);
|
|
609
|
+
|
|
610
|
+
return this.makeRequest(options, retriesRemaining - 1, requestLogID);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
private calculateDefaultRetryTimeoutMillis(retriesRemaining: number, maxRetries: number): number {
|
|
614
|
+
const initialRetryDelay = 0.5;
|
|
615
|
+
const maxRetryDelay = 8.0;
|
|
616
|
+
|
|
617
|
+
const numRetries = maxRetries - retriesRemaining;
|
|
618
|
+
|
|
619
|
+
// Apply exponential backoff, but not more than the max.
|
|
620
|
+
const sleepSeconds = Math.min(initialRetryDelay * Math.pow(2, numRetries), maxRetryDelay);
|
|
621
|
+
|
|
622
|
+
// Apply some jitter, take up to at most 25 percent of the retry time.
|
|
623
|
+
const jitter = 1 - Math.random() * 0.25;
|
|
624
|
+
|
|
625
|
+
return sleepSeconds * jitter * 1000;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
buildRequest(
|
|
629
|
+
options: FinalRequestOptions,
|
|
630
|
+
{ retryCount = 0 }: { retryCount?: number } = {},
|
|
631
|
+
): { req: FinalizedRequestInit; url: string; timeout: number } {
|
|
632
|
+
options = { ...options };
|
|
633
|
+
const { method, path, query } = options;
|
|
634
|
+
|
|
635
|
+
const url = this.buildURL(path!, query as Record<string, unknown>);
|
|
636
|
+
if ('timeout' in options) validatePositiveInteger('timeout', options.timeout);
|
|
637
|
+
options.timeout = options.timeout ?? this.timeout;
|
|
638
|
+
const { bodyHeaders, body } = this.buildBody({ options });
|
|
639
|
+
const reqHeaders = this.buildHeaders({ options, method, bodyHeaders, retryCount });
|
|
640
|
+
|
|
641
|
+
const req: FinalizedRequestInit = {
|
|
642
|
+
method,
|
|
643
|
+
headers: reqHeaders,
|
|
644
|
+
...(options.signal && { signal: options.signal }),
|
|
645
|
+
...((globalThis as any).ReadableStream &&
|
|
646
|
+
body instanceof (globalThis as any).ReadableStream && { duplex: 'half' }),
|
|
647
|
+
...(body && { body }),
|
|
648
|
+
...((this.fetchOptions as any) ?? {}),
|
|
649
|
+
...((options.fetchOptions as any) ?? {}),
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
return { req, url, timeout: options.timeout };
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
private buildHeaders({
|
|
656
|
+
options,
|
|
657
|
+
method,
|
|
658
|
+
bodyHeaders,
|
|
659
|
+
retryCount,
|
|
660
|
+
}: {
|
|
661
|
+
options: FinalRequestOptions;
|
|
662
|
+
method: HTTPMethod;
|
|
663
|
+
bodyHeaders: HeadersLike;
|
|
664
|
+
retryCount: number;
|
|
665
|
+
}): Headers {
|
|
666
|
+
let idempotencyHeaders: HeadersLike = {};
|
|
667
|
+
if (this.idempotencyHeader && method !== 'get') {
|
|
668
|
+
if (!options.idempotencyKey) options.idempotencyKey = this.defaultIdempotencyKey();
|
|
669
|
+
idempotencyHeaders[this.idempotencyHeader] = options.idempotencyKey;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
const headers = buildHeaders([
|
|
673
|
+
idempotencyHeaders,
|
|
674
|
+
{
|
|
675
|
+
Accept: 'application/json',
|
|
676
|
+
'User-Agent': this.getUserAgent(),
|
|
677
|
+
'X-Stainless-Retry-Count': String(retryCount),
|
|
678
|
+
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
|
|
679
|
+
...getPlatformHeaders(),
|
|
680
|
+
},
|
|
681
|
+
this.authHeaders(options),
|
|
682
|
+
this._options.defaultHeaders,
|
|
683
|
+
bodyHeaders,
|
|
684
|
+
options.headers,
|
|
685
|
+
]);
|
|
686
|
+
|
|
687
|
+
this.validateHeaders(headers);
|
|
688
|
+
|
|
689
|
+
return headers.values;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): {
|
|
693
|
+
bodyHeaders: HeadersLike;
|
|
694
|
+
body: BodyInit | undefined;
|
|
695
|
+
} {
|
|
696
|
+
if (!body) {
|
|
697
|
+
return { bodyHeaders: undefined, body: undefined };
|
|
698
|
+
}
|
|
699
|
+
const headers = buildHeaders([rawHeaders]);
|
|
700
|
+
if (
|
|
701
|
+
// Pass raw type verbatim
|
|
702
|
+
ArrayBuffer.isView(body) ||
|
|
703
|
+
body instanceof ArrayBuffer ||
|
|
704
|
+
body instanceof DataView ||
|
|
705
|
+
(typeof body === 'string' &&
|
|
706
|
+
// Preserve legacy string encoding behavior for now
|
|
707
|
+
headers.values.has('content-type')) ||
|
|
708
|
+
// `Blob` is superset of `File`
|
|
709
|
+
body instanceof Blob ||
|
|
710
|
+
// `FormData` -> `multipart/form-data`
|
|
711
|
+
body instanceof FormData ||
|
|
712
|
+
// `URLSearchParams` -> `application/x-www-form-urlencoded`
|
|
713
|
+
body instanceof URLSearchParams ||
|
|
714
|
+
// Send chunked stream (each chunk has own `length`)
|
|
715
|
+
((globalThis as any).ReadableStream && body instanceof (globalThis as any).ReadableStream)
|
|
716
|
+
) {
|
|
717
|
+
return { bodyHeaders: undefined, body: body as BodyInit };
|
|
718
|
+
} else if (
|
|
719
|
+
typeof body === 'object' &&
|
|
720
|
+
(Symbol.asyncIterator in body ||
|
|
721
|
+
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
|
|
722
|
+
) {
|
|
723
|
+
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
|
|
724
|
+
} else {
|
|
725
|
+
return this.#encoder({ body, headers });
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
static Scorecard = this;
|
|
730
|
+
static DEFAULT_TIMEOUT = 60000; // 1 minute
|
|
731
|
+
|
|
732
|
+
static ScorecardError = Errors.ScorecardError;
|
|
733
|
+
static APIError = Errors.APIError;
|
|
734
|
+
static APIConnectionError = Errors.APIConnectionError;
|
|
735
|
+
static APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
|
|
736
|
+
static APIUserAbortError = Errors.APIUserAbortError;
|
|
737
|
+
static NotFoundError = Errors.NotFoundError;
|
|
738
|
+
static ConflictError = Errors.ConflictError;
|
|
739
|
+
static RateLimitError = Errors.RateLimitError;
|
|
740
|
+
static BadRequestError = Errors.BadRequestError;
|
|
741
|
+
static AuthenticationError = Errors.AuthenticationError;
|
|
742
|
+
static InternalServerError = Errors.InternalServerError;
|
|
743
|
+
static PermissionDeniedError = Errors.PermissionDeniedError;
|
|
744
|
+
static UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
745
|
+
|
|
746
|
+
static toFile = Uploads.toFile;
|
|
747
|
+
|
|
748
|
+
projects: API.Projects = new API.Projects(this);
|
|
749
|
+
testsets: API.Testsets = new API.Testsets(this);
|
|
750
|
+
testcases: API.Testcases = new API.Testcases(this);
|
|
751
|
+
}
|
|
752
|
+
Scorecard.Projects = Projects;
|
|
753
|
+
Scorecard.Testsets = Testsets;
|
|
754
|
+
Scorecard.Testcases = Testcases;
|
|
755
|
+
export declare namespace Scorecard {
|
|
756
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
757
|
+
|
|
758
|
+
export import PaginatedResponse = Pagination.PaginatedResponse;
|
|
759
|
+
export {
|
|
760
|
+
type PaginatedResponseParams as PaginatedResponseParams,
|
|
761
|
+
type PaginatedResponseResponse as PaginatedResponseResponse,
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
export {
|
|
765
|
+
Projects as Projects,
|
|
766
|
+
type ProjectListResponse as ProjectListResponse,
|
|
767
|
+
type ProjectListResponsesPaginatedResponse as ProjectListResponsesPaginatedResponse,
|
|
768
|
+
type ProjectListParams as ProjectListParams,
|
|
769
|
+
};
|
|
770
|
+
|
|
771
|
+
export {
|
|
772
|
+
Testsets as Testsets,
|
|
773
|
+
type Testset as Testset,
|
|
774
|
+
type TestsetDeleteResponse as TestsetDeleteResponse,
|
|
775
|
+
type TestsetsPaginatedResponse as TestsetsPaginatedResponse,
|
|
776
|
+
type TestsetCreateParams as TestsetCreateParams,
|
|
777
|
+
type TestsetUpdateParams as TestsetUpdateParams,
|
|
778
|
+
type TestsetListParams as TestsetListParams,
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
export {
|
|
782
|
+
Testcases as Testcases,
|
|
783
|
+
type Testcase as Testcase,
|
|
784
|
+
type TestcaseCreateResponse as TestcaseCreateResponse,
|
|
785
|
+
type TestcaseDeleteResponse as TestcaseDeleteResponse,
|
|
786
|
+
type TestcasesPaginatedResponse as TestcasesPaginatedResponse,
|
|
787
|
+
type TestcaseCreateParams as TestcaseCreateParams,
|
|
788
|
+
type TestcaseUpdateParams as TestcaseUpdateParams,
|
|
789
|
+
type TestcaseListParams as TestcaseListParams,
|
|
790
|
+
type TestcaseDeleteParams as TestcaseDeleteParams,
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
export type APIError = API.APIError;
|
|
794
|
+
}
|