scorecard-ai 0.1.10
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/Client.d.ts +31 -0
- package/Client.js +32 -0
- package/README.md +99 -0
- package/api/errors/ForbiddenError.d.ts +8 -0
- package/api/errors/ForbiddenError.js +41 -0
- package/api/errors/NotFoundError.d.ts +8 -0
- package/api/errors/NotFoundError.js +41 -0
- package/api/errors/UnauthorizedError.d.ts +8 -0
- package/api/errors/UnauthorizedError.js +41 -0
- package/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/api/errors/UnprocessableEntityError.js +41 -0
- package/api/errors/index.d.ts +4 -0
- package/api/errors/index.js +20 -0
- package/api/index.d.ts +3 -0
- package/api/index.js +19 -0
- package/api/resources/index.d.ts +10 -0
- package/api/resources/index.js +39 -0
- package/api/resources/run/client/Client.d.ts +52 -0
- package/api/resources/run/client/Client.js +327 -0
- package/api/resources/run/client/index.d.ts +1 -0
- package/api/resources/run/client/index.js +17 -0
- package/api/resources/run/client/requests/RunCreateParams.d.ts +9 -0
- package/api/resources/run/client/requests/RunCreateParams.js +5 -0
- package/api/resources/run/client/requests/UpdateStatusParams.d.ts +13 -0
- package/api/resources/run/client/requests/UpdateStatusParams.js +5 -0
- package/api/resources/run/client/requests/index.d.ts +2 -0
- package/api/resources/run/client/requests/index.js +2 -0
- package/api/resources/run/index.d.ts +1 -0
- package/api/resources/run/index.js +17 -0
- package/api/resources/testcase/client/Client.d.ts +44 -0
- package/api/resources/testcase/client/Client.js +312 -0
- package/api/resources/testcase/client/index.d.ts +1 -0
- package/api/resources/testcase/client/index.js +17 -0
- package/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +11 -0
- package/api/resources/testcase/client/requests/TestcaseCreateParams.js +5 -0
- package/api/resources/testcase/client/requests/index.d.ts +1 -0
- package/api/resources/testcase/client/requests/index.js +2 -0
- package/api/resources/testcase/index.d.ts +2 -0
- package/api/resources/testcase/index.js +18 -0
- package/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +5 -0
- package/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +5 -0
- package/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +5 -0
- package/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +5 -0
- package/api/resources/testcase/types/index.d.ts +2 -0
- package/api/resources/testcase/types/index.js +18 -0
- package/api/resources/testrecord/client/Client.d.ts +36 -0
- package/api/resources/testrecord/client/Client.js +230 -0
- package/api/resources/testrecord/client/index.d.ts +1 -0
- package/api/resources/testrecord/client/index.js +17 -0
- package/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +15 -0
- package/api/resources/testrecord/client/requests/TestrecordCreateParams.js +5 -0
- package/api/resources/testrecord/client/requests/index.d.ts +1 -0
- package/api/resources/testrecord/client/requests/index.js +2 -0
- package/api/resources/testrecord/index.d.ts +2 -0
- package/api/resources/testrecord/index.js +18 -0
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +5 -0
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +5 -0
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +5 -0
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +5 -0
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +5 -0
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +5 -0
- package/api/resources/testrecord/types/index.d.ts +3 -0
- package/api/resources/testrecord/types/index.js +19 -0
- package/api/resources/testset/client/Client.d.ts +69 -0
- package/api/resources/testset/client/Client.js +512 -0
- package/api/resources/testset/client/index.d.ts +1 -0
- package/api/resources/testset/client/index.js +17 -0
- package/api/resources/testset/client/requests/TestsetCreateParams.d.ts +10 -0
- package/api/resources/testset/client/requests/TestsetCreateParams.js +5 -0
- package/api/resources/testset/client/requests/TestsetGetTestcasesRequest.d.ts +7 -0
- package/api/resources/testset/client/requests/TestsetGetTestcasesRequest.js +5 -0
- package/api/resources/testset/client/requests/index.d.ts +2 -0
- package/api/resources/testset/client/requests/index.js +2 -0
- package/api/resources/testset/index.d.ts +1 -0
- package/api/resources/testset/index.js +17 -0
- package/api/types/AppCreateRunParams.d.ts +4 -0
- package/api/types/AppCreateRunParams.js +5 -0
- package/api/types/AppTestRecordCreate.d.ts +4 -0
- package/api/types/AppTestRecordCreate.js +5 -0
- package/api/types/AppTestSetCreate.d.ts +4 -0
- package/api/types/AppTestSetCreate.js +5 -0
- package/api/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +4 -0
- package/api/types/BodyStartGithubWorkflowStartGithubWorkflowPost.js +5 -0
- package/api/types/CreateRunParams.d.ts +9 -0
- package/api/types/CreateRunParams.js +5 -0
- package/api/types/CustomSchemaInput.d.ts +11 -0
- package/api/types/CustomSchemaInput.js +5 -0
- package/api/types/CustomSchemaOutput.d.ts +11 -0
- package/api/types/CustomSchemaOutput.js +5 -0
- package/api/types/CustomVariable.d.ts +13 -0
- package/api/types/CustomVariable.js +5 -0
- package/api/types/DataTypeEnum.d.ts +12 -0
- package/api/types/DataTypeEnum.js +11 -0
- package/api/types/ExecutionParams.d.ts +4 -0
- package/api/types/ExecutionParams.js +5 -0
- package/api/types/FileUrl.d.ts +10 -0
- package/api/types/FileUrl.js +5 -0
- package/api/types/HttpValidationError.d.ts +7 -0
- package/api/types/HttpValidationError.js +5 -0
- package/api/types/LibDtoTypesCreateRunParams.d.ts +4 -0
- package/api/types/LibDtoTypesCreateRunParams.js +5 -0
- package/api/types/LibDtoTypesTestRecordCreate.d.ts +4 -0
- package/api/types/LibDtoTypesTestRecordCreate.js +5 -0
- package/api/types/LibDtoTypesTestSetCreate.d.ts +4 -0
- package/api/types/LibDtoTypesTestSetCreate.js +5 -0
- package/api/types/ModelParams.d.ts +4 -0
- package/api/types/ModelParams.js +5 -0
- package/api/types/NotFoundErrorBody.d.ts +8 -0
- package/api/types/NotFoundErrorBody.js +5 -0
- package/api/types/PaginatedTestcaseResponse.d.ts +10 -0
- package/api/types/PaginatedTestcaseResponse.js +5 -0
- package/api/types/RoleEnum.d.ts +13 -0
- package/api/types/RoleEnum.js +12 -0
- package/api/types/RunExternal.d.ts +20 -0
- package/api/types/RunExternal.js +5 -0
- package/api/types/RunStatus.d.ts +12 -0
- package/api/types/RunStatus.js +14 -0
- package/api/types/ScoreExecutionParams.d.ts +4 -0
- package/api/types/ScoreExecutionParams.js +5 -0
- package/api/types/ScoringParams.d.ts +4 -0
- package/api/types/ScoringParams.js +5 -0
- package/api/types/TestCase.d.ts +14 -0
- package/api/types/TestCase.js +5 -0
- package/api/types/TestCaseCreate.d.ts +10 -0
- package/api/types/TestCaseCreate.js +5 -0
- package/api/types/TestCaseCreateInput.d.ts +4 -0
- package/api/types/TestCaseCreateInput.js +5 -0
- package/api/types/TestCaseCustomInputsValue.d.ts +5 -0
- package/api/types/TestCaseCustomInputsValue.js +5 -0
- package/api/types/TestCaseCustomLabelsValue.d.ts +5 -0
- package/api/types/TestCaseCustomLabelsValue.js +5 -0
- package/api/types/TestRecordCreate.d.ts +16 -0
- package/api/types/TestRecordCreate.js +5 -0
- package/api/types/TestSetCreate.d.ts +8 -0
- package/api/types/TestSetCreate.js +5 -0
- package/api/types/Testrecord.d.ts +18 -0
- package/api/types/Testrecord.js +5 -0
- package/api/types/TestrecordCustomInputsValue.d.ts +5 -0
- package/api/types/TestrecordCustomInputsValue.js +5 -0
- package/api/types/TestrecordCustomLabelsValue.d.ts +5 -0
- package/api/types/TestrecordCustomLabelsValue.js +5 -0
- package/api/types/TestrecordCustomOutputsValue.d.ts +5 -0
- package/api/types/TestrecordCustomOutputsValue.js +5 -0
- package/api/types/Testset.d.ts +18 -0
- package/api/types/Testset.js +5 -0
- package/api/types/UnauthenticatedError.d.ts +8 -0
- package/api/types/UnauthenticatedError.js +5 -0
- package/api/types/UnauthorizedErrorBody.d.ts +8 -0
- package/api/types/UnauthorizedErrorBody.js +5 -0
- package/api/types/ValidationError.d.ts +9 -0
- package/api/types/ValidationError.js +5 -0
- package/api/types/ValidationErrorLocItem.d.ts +4 -0
- package/api/types/ValidationErrorLocItem.js +5 -0
- package/api/types/index.d.ts +39 -0
- package/api/types/index.js +55 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +35 -0
- package/core/fetcher/Fetcher.js +150 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +22 -0
- package/core/fetcher/getHeader.d.ts +1 -0
- package/core/fetcher/getHeader.js +12 -0
- package/core/fetcher/index.d.ts +5 -0
- package/core/fetcher/index.js +9 -0
- package/core/index.d.ts +2 -0
- package/core/index.js +31 -0
- package/core/schemas/Schema.d.ts +81 -0
- package/core/schemas/Schema.js +21 -0
- package/core/schemas/builders/date/date.d.ts +2 -0
- package/core/schemas/builders/date/date.js +63 -0
- package/core/schemas/builders/date/index.d.ts +1 -0
- package/core/schemas/builders/date/index.js +5 -0
- package/core/schemas/builders/enum/enum.d.ts +2 -0
- package/core/schemas/builders/enum/enum.js +39 -0
- package/core/schemas/builders/enum/index.d.ts +1 -0
- package/core/schemas/builders/enum/index.js +5 -0
- package/core/schemas/builders/index.d.ts +13 -0
- package/core/schemas/builders/index.js +29 -0
- package/core/schemas/builders/lazy/index.d.ts +3 -0
- package/core/schemas/builders/lazy/index.js +7 -0
- package/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/core/schemas/builders/lazy/lazy.js +36 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/core/schemas/builders/lazy/lazyObject.js +21 -0
- package/core/schemas/builders/list/index.d.ts +1 -0
- package/core/schemas/builders/list/index.js +5 -0
- package/core/schemas/builders/list/list.d.ts +2 -0
- package/core/schemas/builders/list/list.js +68 -0
- package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +2 -0
- package/core/schemas/builders/literals/index.js +7 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/core/schemas/builders/object/index.d.ts +6 -0
- package/core/schemas/builders/object/index.js +11 -0
- package/core/schemas/builders/object/object.d.ts +3 -0
- package/core/schemas/builders/object/object.js +258 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/core/schemas/builders/object/property.d.ts +8 -0
- package/core/schemas/builders/object/property.js +16 -0
- package/core/schemas/builders/object/types.d.ts +26 -0
- package/core/schemas/builders/object/types.js +2 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +63 -0
- package/core/schemas/builders/object-like/index.d.ts +2 -0
- package/core/schemas/builders/object-like/index.js +6 -0
- package/core/schemas/builders/object-like/types.d.ts +7 -0
- package/core/schemas/builders/object-like/types.js +2 -0
- package/core/schemas/builders/primitives/any.d.ts +1 -0
- package/core/schemas/builders/primitives/any.js +6 -0
- package/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/core/schemas/builders/primitives/boolean.js +25 -0
- package/core/schemas/builders/primitives/index.d.ts +5 -0
- package/core/schemas/builders/primitives/index.js +13 -0
- package/core/schemas/builders/primitives/number.d.ts +1 -0
- package/core/schemas/builders/primitives/number.js +25 -0
- package/core/schemas/builders/primitives/string.d.ts +1 -0
- package/core/schemas/builders/primitives/string.js +25 -0
- package/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/core/schemas/builders/primitives/unknown.js +6 -0
- package/core/schemas/builders/record/index.d.ts +2 -0
- package/core/schemas/builders/record/index.js +5 -0
- package/core/schemas/builders/record/record.d.ts +3 -0
- package/core/schemas/builders/record/record.js +106 -0
- package/core/schemas/builders/record/types.d.ts +4 -0
- package/core/schemas/builders/record/types.js +2 -0
- package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -0
- package/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/core/schemas/builders/schema-utils/index.js +11 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/core/schemas/builders/set/index.d.ts +1 -0
- package/core/schemas/builders/set/index.js +5 -0
- package/core/schemas/builders/set/set.d.ts +2 -0
- package/core/schemas/builders/set/set.js +53 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +51 -0
- package/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/core/schemas/builders/union/discriminant.js +10 -0
- package/core/schemas/builders/union/index.d.ts +4 -0
- package/core/schemas/builders/union/index.js +7 -0
- package/core/schemas/builders/union/types.d.ts +13 -0
- package/core/schemas/builders/union/types.js +2 -0
- package/core/schemas/builders/union/union.d.ts +4 -0
- package/core/schemas/builders/union/union.js +141 -0
- package/core/schemas/index.d.ts +2 -0
- package/core/schemas/index.js +17 -0
- package/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/core/schemas/utils/MaybePromise.js +2 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/core/schemas/utils/entries.d.ts +1 -0
- package/core/schemas/utils/entries.js +7 -0
- package/core/schemas/utils/filterObject.d.ts +1 -0
- package/core/schemas/utils/filterObject.js +14 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/core/schemas/utils/isPlainObject.js +18 -0
- package/core/schemas/utils/keys.d.ts +1 -0
- package/core/schemas/utils/keys.js +7 -0
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +37 -0
- package/core/schemas/utils/partition.d.ts +1 -0
- package/core/schemas/utils/partition.js +16 -0
- package/dist/Client.d.ts +31 -0
- package/dist/Client.js +32 -0
- package/dist/api/errors/ForbiddenError.d.ts +8 -0
- package/dist/api/errors/ForbiddenError.js +41 -0
- package/dist/api/errors/NotFoundError.d.ts +8 -0
- package/dist/api/errors/NotFoundError.js +41 -0
- package/dist/api/errors/UnauthorizedError.d.ts +8 -0
- package/dist/api/errors/UnauthorizedError.js +41 -0
- package/dist/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/dist/api/errors/UnprocessableEntityError.js +41 -0
- package/dist/api/errors/index.d.ts +4 -0
- package/dist/api/errors/index.js +20 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/index.d.ts +10 -0
- package/dist/api/resources/index.js +39 -0
- package/dist/api/resources/run/client/Client.d.ts +52 -0
- package/dist/api/resources/run/client/Client.js +327 -0
- package/dist/api/resources/run/client/index.d.ts +1 -0
- package/dist/api/resources/run/client/index.js +17 -0
- package/dist/api/resources/run/client/requests/RunCreateParams.d.ts +9 -0
- package/dist/api/resources/run/client/requests/RunCreateParams.js +5 -0
- package/dist/api/resources/run/client/requests/UpdateStatusParams.d.ts +13 -0
- package/dist/api/resources/run/client/requests/UpdateStatusParams.js +5 -0
- package/dist/api/resources/run/client/requests/index.d.ts +2 -0
- package/dist/api/resources/run/client/requests/index.js +2 -0
- package/dist/api/resources/run/index.d.ts +1 -0
- package/dist/api/resources/run/index.js +17 -0
- package/dist/api/resources/testcase/client/Client.d.ts +44 -0
- package/dist/api/resources/testcase/client/Client.js +312 -0
- package/dist/api/resources/testcase/client/index.d.ts +1 -0
- package/dist/api/resources/testcase/client/index.js +17 -0
- package/dist/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +11 -0
- package/dist/api/resources/testcase/client/requests/TestcaseCreateParams.js +5 -0
- package/dist/api/resources/testcase/client/requests/index.d.ts +1 -0
- package/dist/api/resources/testcase/client/requests/index.js +2 -0
- package/dist/api/resources/testcase/index.d.ts +2 -0
- package/dist/api/resources/testcase/index.js +18 -0
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +5 -0
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +5 -0
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +5 -0
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +5 -0
- package/dist/api/resources/testcase/types/index.d.ts +2 -0
- package/dist/api/resources/testcase/types/index.js +18 -0
- package/dist/api/resources/testrecord/client/Client.d.ts +36 -0
- package/dist/api/resources/testrecord/client/Client.js +230 -0
- package/dist/api/resources/testrecord/client/index.d.ts +1 -0
- package/dist/api/resources/testrecord/client/index.js +17 -0
- package/dist/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +15 -0
- package/dist/api/resources/testrecord/client/requests/TestrecordCreateParams.js +5 -0
- package/dist/api/resources/testrecord/client/requests/index.d.ts +1 -0
- package/dist/api/resources/testrecord/client/requests/index.js +2 -0
- package/dist/api/resources/testrecord/index.d.ts +2 -0
- package/dist/api/resources/testrecord/index.js +18 -0
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +5 -0
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +5 -0
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +5 -0
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +5 -0
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +5 -0
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +5 -0
- package/dist/api/resources/testrecord/types/index.d.ts +3 -0
- package/dist/api/resources/testrecord/types/index.js +19 -0
- package/dist/api/resources/testset/client/Client.d.ts +69 -0
- package/dist/api/resources/testset/client/Client.js +512 -0
- package/dist/api/resources/testset/client/index.d.ts +1 -0
- package/dist/api/resources/testset/client/index.js +17 -0
- package/dist/api/resources/testset/client/requests/TestsetCreateParams.d.ts +10 -0
- package/dist/api/resources/testset/client/requests/TestsetCreateParams.js +5 -0
- package/dist/api/resources/testset/client/requests/TestsetGetTestcasesRequest.d.ts +7 -0
- package/dist/api/resources/testset/client/requests/TestsetGetTestcasesRequest.js +5 -0
- package/dist/api/resources/testset/client/requests/index.d.ts +2 -0
- package/dist/api/resources/testset/client/requests/index.js +2 -0
- package/dist/api/resources/testset/index.d.ts +1 -0
- package/dist/api/resources/testset/index.js +17 -0
- package/dist/api/types/AppCreateRunParams.d.ts +4 -0
- package/dist/api/types/AppCreateRunParams.js +5 -0
- package/dist/api/types/AppTestRecordCreate.d.ts +4 -0
- package/dist/api/types/AppTestRecordCreate.js +5 -0
- package/dist/api/types/AppTestSetCreate.d.ts +4 -0
- package/dist/api/types/AppTestSetCreate.js +5 -0
- package/dist/api/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +4 -0
- package/dist/api/types/BodyStartGithubWorkflowStartGithubWorkflowPost.js +5 -0
- package/dist/api/types/CreateRunParams.d.ts +9 -0
- package/dist/api/types/CreateRunParams.js +5 -0
- package/dist/api/types/CustomSchemaInput.d.ts +11 -0
- package/dist/api/types/CustomSchemaInput.js +5 -0
- package/dist/api/types/CustomSchemaOutput.d.ts +11 -0
- package/dist/api/types/CustomSchemaOutput.js +5 -0
- package/dist/api/types/CustomVariable.d.ts +13 -0
- package/dist/api/types/CustomVariable.js +5 -0
- package/dist/api/types/DataTypeEnum.d.ts +12 -0
- package/dist/api/types/DataTypeEnum.js +11 -0
- package/dist/api/types/ExecutionParams.d.ts +4 -0
- package/dist/api/types/ExecutionParams.js +5 -0
- package/dist/api/types/FileUrl.d.ts +10 -0
- package/dist/api/types/FileUrl.js +5 -0
- package/dist/api/types/HttpValidationError.d.ts +7 -0
- package/dist/api/types/HttpValidationError.js +5 -0
- package/dist/api/types/LibDtoTypesCreateRunParams.d.ts +4 -0
- package/dist/api/types/LibDtoTypesCreateRunParams.js +5 -0
- package/dist/api/types/LibDtoTypesTestRecordCreate.d.ts +4 -0
- package/dist/api/types/LibDtoTypesTestRecordCreate.js +5 -0
- package/dist/api/types/LibDtoTypesTestSetCreate.d.ts +4 -0
- package/dist/api/types/LibDtoTypesTestSetCreate.js +5 -0
- package/dist/api/types/ModelParams.d.ts +4 -0
- package/dist/api/types/ModelParams.js +5 -0
- package/dist/api/types/NotFoundErrorBody.d.ts +8 -0
- package/dist/api/types/NotFoundErrorBody.js +5 -0
- package/dist/api/types/PaginatedTestcaseResponse.d.ts +10 -0
- package/dist/api/types/PaginatedTestcaseResponse.js +5 -0
- package/dist/api/types/RoleEnum.d.ts +13 -0
- package/dist/api/types/RoleEnum.js +12 -0
- package/dist/api/types/RunExternal.d.ts +20 -0
- package/dist/api/types/RunExternal.js +5 -0
- package/dist/api/types/RunStatus.d.ts +12 -0
- package/dist/api/types/RunStatus.js +14 -0
- package/dist/api/types/ScoreExecutionParams.d.ts +4 -0
- package/dist/api/types/ScoreExecutionParams.js +5 -0
- package/dist/api/types/ScoringParams.d.ts +4 -0
- package/dist/api/types/ScoringParams.js +5 -0
- package/dist/api/types/TestCase.d.ts +14 -0
- package/dist/api/types/TestCase.js +5 -0
- package/dist/api/types/TestCaseCreate.d.ts +10 -0
- package/dist/api/types/TestCaseCreate.js +5 -0
- package/dist/api/types/TestCaseCreateInput.d.ts +4 -0
- package/dist/api/types/TestCaseCreateInput.js +5 -0
- package/dist/api/types/TestCaseCustomInputsValue.d.ts +5 -0
- package/dist/api/types/TestCaseCustomInputsValue.js +5 -0
- package/dist/api/types/TestCaseCustomLabelsValue.d.ts +5 -0
- package/dist/api/types/TestCaseCustomLabelsValue.js +5 -0
- package/dist/api/types/TestRecordCreate.d.ts +16 -0
- package/dist/api/types/TestRecordCreate.js +5 -0
- package/dist/api/types/TestSetCreate.d.ts +8 -0
- package/dist/api/types/TestSetCreate.js +5 -0
- package/dist/api/types/Testrecord.d.ts +18 -0
- package/dist/api/types/Testrecord.js +5 -0
- package/dist/api/types/TestrecordCustomInputsValue.d.ts +5 -0
- package/dist/api/types/TestrecordCustomInputsValue.js +5 -0
- package/dist/api/types/TestrecordCustomLabelsValue.d.ts +5 -0
- package/dist/api/types/TestrecordCustomLabelsValue.js +5 -0
- package/dist/api/types/TestrecordCustomOutputsValue.d.ts +5 -0
- package/dist/api/types/TestrecordCustomOutputsValue.js +5 -0
- package/dist/api/types/Testset.d.ts +18 -0
- package/dist/api/types/Testset.js +5 -0
- package/dist/api/types/UnauthenticatedError.d.ts +8 -0
- package/dist/api/types/UnauthenticatedError.js +5 -0
- package/dist/api/types/UnauthorizedErrorBody.d.ts +8 -0
- package/dist/api/types/UnauthorizedErrorBody.js +5 -0
- package/dist/api/types/ValidationError.d.ts +9 -0
- package/dist/api/types/ValidationError.js +5 -0
- package/dist/api/types/ValidationErrorLocItem.d.ts +4 -0
- package/dist/api/types/ValidationErrorLocItem.js +5 -0
- package/dist/api/types/index.d.ts +39 -0
- package/dist/api/types/index.js +55 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +35 -0
- package/dist/core/fetcher/Fetcher.js +150 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +12 -0
- package/dist/core/fetcher/index.d.ts +5 -0
- package/dist/core/fetcher/index.js +9 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +31 -0
- package/dist/core/schemas/Schema.d.ts +81 -0
- package/dist/core/schemas/Schema.js +21 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +63 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
- package/dist/core/schemas/builders/enum/enum.js +39 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +13 -0
- package/dist/core/schemas/builders/index.js +29 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +36 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +21 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +68 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +2 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/dist/core/schemas/builders/object/index.d.ts +6 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +258 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +26 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +63 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +3 -0
- package/dist/core/schemas/builders/record/record.js +106 -0
- package/dist/core/schemas/builders/record/types.d.ts +4 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/dist/core/schemas/builders/set/index.d.ts +1 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +53 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +51 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +10 -0
- package/dist/core/schemas/builders/union/index.d.ts +4 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +141 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +17 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/dist/core/schemas/utils/isPlainObject.js +18 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -0
- package/dist/core/schemas/utils/keys.js +7 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +37 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/ScorecardError.d.ts +12 -0
- package/dist/errors/ScorecardError.js +32 -0
- package/dist/errors/ScorecardTimeoutError.d.ts +6 -0
- package/dist/errors/ScorecardTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +34 -0
- package/dist/serialization/index.d.ts +2 -0
- package/dist/serialization/index.js +18 -0
- package/dist/serialization/resources/index.d.ts +10 -0
- package/dist/serialization/resources/index.js +39 -0
- package/dist/serialization/resources/run/client/index.d.ts +1 -0
- package/dist/serialization/resources/run/client/index.js +17 -0
- package/dist/serialization/resources/run/client/requests/RunCreateParams.d.ts +15 -0
- package/dist/serialization/resources/run/client/requests/RunCreateParams.js +36 -0
- package/dist/serialization/resources/run/client/requests/UpdateStatusParams.d.ts +12 -0
- package/dist/serialization/resources/run/client/requests/UpdateStatusParams.js +42 -0
- package/dist/serialization/resources/run/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/run/client/requests/index.js +7 -0
- package/dist/serialization/resources/run/index.d.ts +1 -0
- package/dist/serialization/resources/run/index.js +17 -0
- package/dist/serialization/resources/testcase/client/index.d.ts +1 -0
- package/dist/serialization/resources/testcase/client/index.js +17 -0
- package/dist/serialization/resources/testcase/client/requests/TestcaseCreateParams.d.ts +16 -0
- package/dist/serialization/resources/testcase/client/requests/TestcaseCreateParams.js +54 -0
- package/dist/serialization/resources/testcase/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/testcase/client/requests/index.js +5 -0
- package/dist/serialization/resources/testcase/index.d.ts +2 -0
- package/dist/serialization/resources/testcase/index.js +18 -0
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +10 -0
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +43 -0
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +10 -0
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +43 -0
- package/dist/serialization/resources/testcase/types/index.d.ts +2 -0
- package/dist/serialization/resources/testcase/types/index.js +18 -0
- package/dist/serialization/resources/testrecord/client/index.d.ts +1 -0
- package/dist/serialization/resources/testrecord/client/index.js +17 -0
- package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +20 -0
- package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +62 -0
- package/dist/serialization/resources/testrecord/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/testrecord/client/requests/index.js +5 -0
- package/dist/serialization/resources/testrecord/index.d.ts +2 -0
- package/dist/serialization/resources/testrecord/index.js +18 -0
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +10 -0
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +43 -0
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +10 -0
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +43 -0
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +10 -0
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +43 -0
- package/dist/serialization/resources/testrecord/types/index.d.ts +3 -0
- package/dist/serialization/resources/testrecord/types/index.js +19 -0
- package/dist/serialization/resources/testset/client/index.d.ts +1 -0
- package/dist/serialization/resources/testset/client/index.js +17 -0
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +15 -0
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.js +45 -0
- package/dist/serialization/resources/testset/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/testset/client/requests/index.js +5 -0
- package/dist/serialization/resources/testset/index.d.ts +1 -0
- package/dist/serialization/resources/testset/index.js +17 -0
- package/dist/serialization/types/AppCreateRunParams.d.ts +10 -0
- package/dist/serialization/types/AppCreateRunParams.js +31 -0
- package/dist/serialization/types/AppTestRecordCreate.d.ts +10 -0
- package/dist/serialization/types/AppTestRecordCreate.js +31 -0
- package/dist/serialization/types/AppTestSetCreate.d.ts +10 -0
- package/dist/serialization/types/AppTestSetCreate.js +31 -0
- package/dist/serialization/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +10 -0
- package/dist/serialization/types/BodyStartGithubWorkflowStartGithubWorkflowPost.js +31 -0
- package/dist/serialization/types/CreateRunParams.d.ts +15 -0
- package/dist/serialization/types/CreateRunParams.js +36 -0
- package/dist/serialization/types/CustomSchemaInput.d.ts +12 -0
- package/dist/serialization/types/CustomSchemaInput.js +44 -0
- package/dist/serialization/types/CustomSchemaOutput.d.ts +12 -0
- package/dist/serialization/types/CustomSchemaOutput.js +44 -0
- package/dist/serialization/types/CustomVariable.d.ts +15 -0
- package/dist/serialization/types/CustomVariable.js +45 -0
- package/dist/serialization/types/DataTypeEnum.d.ts +10 -0
- package/dist/serialization/types/DataTypeEnum.js +31 -0
- package/dist/serialization/types/ExecutionParams.d.ts +10 -0
- package/dist/serialization/types/ExecutionParams.js +31 -0
- package/dist/serialization/types/FileUrl.d.ts +13 -0
- package/dist/serialization/types/FileUrl.js +34 -0
- package/dist/serialization/types/HttpValidationError.d.ts +12 -0
- package/dist/serialization/types/HttpValidationError.js +44 -0
- package/dist/serialization/types/LibDtoTypesCreateRunParams.d.ts +10 -0
- package/dist/serialization/types/LibDtoTypesCreateRunParams.js +31 -0
- package/dist/serialization/types/LibDtoTypesTestRecordCreate.d.ts +10 -0
- package/dist/serialization/types/LibDtoTypesTestRecordCreate.js +31 -0
- package/dist/serialization/types/LibDtoTypesTestSetCreate.d.ts +10 -0
- package/dist/serialization/types/LibDtoTypesTestSetCreate.js +31 -0
- package/dist/serialization/types/ModelParams.d.ts +10 -0
- package/dist/serialization/types/ModelParams.js +31 -0
- package/dist/serialization/types/NotFoundErrorBody.d.ts +14 -0
- package/dist/serialization/types/NotFoundErrorBody.js +35 -0
- package/dist/serialization/types/PaginatedTestcaseResponse.d.ts +15 -0
- package/dist/serialization/types/PaginatedTestcaseResponse.js +45 -0
- package/dist/serialization/types/RoleEnum.d.ts +10 -0
- package/dist/serialization/types/RoleEnum.js +31 -0
- package/dist/serialization/types/RunExternal.d.ts +26 -0
- package/dist/serialization/types/RunExternal.js +47 -0
- package/dist/serialization/types/RunStatus.d.ts +10 -0
- package/dist/serialization/types/RunStatus.js +38 -0
- package/dist/serialization/types/ScoreExecutionParams.d.ts +10 -0
- package/dist/serialization/types/ScoreExecutionParams.js +31 -0
- package/dist/serialization/types/ScoringParams.d.ts +10 -0
- package/dist/serialization/types/ScoringParams.js +31 -0
- package/dist/serialization/types/TestCase.d.ts +19 -0
- package/dist/serialization/types/TestCase.js +53 -0
- package/dist/serialization/types/TestCaseCreate.d.ts +16 -0
- package/dist/serialization/types/TestCaseCreate.js +37 -0
- package/dist/serialization/types/TestCaseCreateInput.d.ts +10 -0
- package/dist/serialization/types/TestCaseCreateInput.js +31 -0
- package/dist/serialization/types/TestCaseCustomInputsValue.d.ts +10 -0
- package/dist/serialization/types/TestCaseCustomInputsValue.js +44 -0
- package/dist/serialization/types/TestCaseCustomLabelsValue.d.ts +10 -0
- package/dist/serialization/types/TestCaseCustomLabelsValue.js +44 -0
- package/dist/serialization/types/TestRecordCreate.d.ts +22 -0
- package/dist/serialization/types/TestRecordCreate.js +43 -0
- package/dist/serialization/types/TestSetCreate.d.ts +14 -0
- package/dist/serialization/types/TestSetCreate.js +35 -0
- package/dist/serialization/types/Testrecord.d.ts +23 -0
- package/dist/serialization/types/Testrecord.js +59 -0
- package/dist/serialization/types/TestrecordCustomInputsValue.d.ts +10 -0
- package/dist/serialization/types/TestrecordCustomInputsValue.js +44 -0
- package/dist/serialization/types/TestrecordCustomLabelsValue.d.ts +10 -0
- package/dist/serialization/types/TestrecordCustomLabelsValue.js +44 -0
- package/dist/serialization/types/TestrecordCustomOutputsValue.d.ts +10 -0
- package/dist/serialization/types/TestrecordCustomOutputsValue.js +44 -0
- package/dist/serialization/types/Testset.d.ts +23 -0
- package/dist/serialization/types/Testset.js +53 -0
- package/dist/serialization/types/UnauthenticatedError.d.ts +14 -0
- package/dist/serialization/types/UnauthenticatedError.js +35 -0
- package/dist/serialization/types/UnauthorizedErrorBody.d.ts +14 -0
- package/dist/serialization/types/UnauthorizedErrorBody.js +35 -0
- package/dist/serialization/types/ValidationError.d.ts +14 -0
- package/dist/serialization/types/ValidationError.js +44 -0
- package/dist/serialization/types/ValidationErrorLocItem.d.ts +10 -0
- package/dist/serialization/types/ValidationErrorLocItem.js +31 -0
- package/dist/serialization/types/index.d.ts +39 -0
- package/dist/serialization/types/index.js +55 -0
- package/dist/wrapper/ScorecardClient.d.ts +32 -0
- package/dist/wrapper/ScorecardClient.js +86 -0
- package/environments.d.ts +7 -0
- package/environments.js +9 -0
- package/errors/ScorecardError.d.ts +12 -0
- package/errors/ScorecardError.js +32 -0
- package/errors/ScorecardTimeoutError.d.ts +6 -0
- package/errors/ScorecardTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +4 -0
- package/index.js +34 -0
- package/package.json +27 -0
- package/serialization/index.d.ts +2 -0
- package/serialization/index.js +18 -0
- package/serialization/resources/index.d.ts +10 -0
- package/serialization/resources/index.js +39 -0
- package/serialization/resources/run/client/index.d.ts +1 -0
- package/serialization/resources/run/client/index.js +17 -0
- package/serialization/resources/run/client/requests/RunCreateParams.d.ts +15 -0
- package/serialization/resources/run/client/requests/RunCreateParams.js +36 -0
- package/serialization/resources/run/client/requests/UpdateStatusParams.d.ts +12 -0
- package/serialization/resources/run/client/requests/UpdateStatusParams.js +42 -0
- package/serialization/resources/run/client/requests/index.d.ts +2 -0
- package/serialization/resources/run/client/requests/index.js +7 -0
- package/serialization/resources/run/index.d.ts +1 -0
- package/serialization/resources/run/index.js +17 -0
- package/serialization/resources/testcase/client/index.d.ts +1 -0
- package/serialization/resources/testcase/client/index.js +17 -0
- package/serialization/resources/testcase/client/requests/TestcaseCreateParams.d.ts +16 -0
- package/serialization/resources/testcase/client/requests/TestcaseCreateParams.js +54 -0
- package/serialization/resources/testcase/client/requests/index.d.ts +1 -0
- package/serialization/resources/testcase/client/requests/index.js +5 -0
- package/serialization/resources/testcase/index.d.ts +2 -0
- package/serialization/resources/testcase/index.js +18 -0
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +10 -0
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +43 -0
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +10 -0
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +43 -0
- package/serialization/resources/testcase/types/index.d.ts +2 -0
- package/serialization/resources/testcase/types/index.js +18 -0
- package/serialization/resources/testrecord/client/index.d.ts +1 -0
- package/serialization/resources/testrecord/client/index.js +17 -0
- package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +20 -0
- package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +62 -0
- package/serialization/resources/testrecord/client/requests/index.d.ts +1 -0
- package/serialization/resources/testrecord/client/requests/index.js +5 -0
- package/serialization/resources/testrecord/index.d.ts +2 -0
- package/serialization/resources/testrecord/index.js +18 -0
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +10 -0
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +43 -0
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +10 -0
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +43 -0
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +10 -0
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +43 -0
- package/serialization/resources/testrecord/types/index.d.ts +3 -0
- package/serialization/resources/testrecord/types/index.js +19 -0
- package/serialization/resources/testset/client/index.d.ts +1 -0
- package/serialization/resources/testset/client/index.js +17 -0
- package/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +15 -0
- package/serialization/resources/testset/client/requests/TestsetCreateParams.js +45 -0
- package/serialization/resources/testset/client/requests/index.d.ts +1 -0
- package/serialization/resources/testset/client/requests/index.js +5 -0
- package/serialization/resources/testset/index.d.ts +1 -0
- package/serialization/resources/testset/index.js +17 -0
- package/serialization/types/AppCreateRunParams.d.ts +10 -0
- package/serialization/types/AppCreateRunParams.js +31 -0
- package/serialization/types/AppTestRecordCreate.d.ts +10 -0
- package/serialization/types/AppTestRecordCreate.js +31 -0
- package/serialization/types/AppTestSetCreate.d.ts +10 -0
- package/serialization/types/AppTestSetCreate.js +31 -0
- package/serialization/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +10 -0
- package/serialization/types/BodyStartGithubWorkflowStartGithubWorkflowPost.js +31 -0
- package/serialization/types/CreateRunParams.d.ts +15 -0
- package/serialization/types/CreateRunParams.js +36 -0
- package/serialization/types/CustomSchemaInput.d.ts +12 -0
- package/serialization/types/CustomSchemaInput.js +44 -0
- package/serialization/types/CustomSchemaOutput.d.ts +12 -0
- package/serialization/types/CustomSchemaOutput.js +44 -0
- package/serialization/types/CustomVariable.d.ts +15 -0
- package/serialization/types/CustomVariable.js +45 -0
- package/serialization/types/DataTypeEnum.d.ts +10 -0
- package/serialization/types/DataTypeEnum.js +31 -0
- package/serialization/types/ExecutionParams.d.ts +10 -0
- package/serialization/types/ExecutionParams.js +31 -0
- package/serialization/types/FileUrl.d.ts +13 -0
- package/serialization/types/FileUrl.js +34 -0
- package/serialization/types/HttpValidationError.d.ts +12 -0
- package/serialization/types/HttpValidationError.js +44 -0
- package/serialization/types/LibDtoTypesCreateRunParams.d.ts +10 -0
- package/serialization/types/LibDtoTypesCreateRunParams.js +31 -0
- package/serialization/types/LibDtoTypesTestRecordCreate.d.ts +10 -0
- package/serialization/types/LibDtoTypesTestRecordCreate.js +31 -0
- package/serialization/types/LibDtoTypesTestSetCreate.d.ts +10 -0
- package/serialization/types/LibDtoTypesTestSetCreate.js +31 -0
- package/serialization/types/ModelParams.d.ts +10 -0
- package/serialization/types/ModelParams.js +31 -0
- package/serialization/types/NotFoundErrorBody.d.ts +14 -0
- package/serialization/types/NotFoundErrorBody.js +35 -0
- package/serialization/types/PaginatedTestcaseResponse.d.ts +15 -0
- package/serialization/types/PaginatedTestcaseResponse.js +45 -0
- package/serialization/types/RoleEnum.d.ts +10 -0
- package/serialization/types/RoleEnum.js +31 -0
- package/serialization/types/RunExternal.d.ts +26 -0
- package/serialization/types/RunExternal.js +47 -0
- package/serialization/types/RunStatus.d.ts +10 -0
- package/serialization/types/RunStatus.js +38 -0
- package/serialization/types/ScoreExecutionParams.d.ts +10 -0
- package/serialization/types/ScoreExecutionParams.js +31 -0
- package/serialization/types/ScoringParams.d.ts +10 -0
- package/serialization/types/ScoringParams.js +31 -0
- package/serialization/types/TestCase.d.ts +19 -0
- package/serialization/types/TestCase.js +53 -0
- package/serialization/types/TestCaseCreate.d.ts +16 -0
- package/serialization/types/TestCaseCreate.js +37 -0
- package/serialization/types/TestCaseCreateInput.d.ts +10 -0
- package/serialization/types/TestCaseCreateInput.js +31 -0
- package/serialization/types/TestCaseCustomInputsValue.d.ts +10 -0
- package/serialization/types/TestCaseCustomInputsValue.js +44 -0
- package/serialization/types/TestCaseCustomLabelsValue.d.ts +10 -0
- package/serialization/types/TestCaseCustomLabelsValue.js +44 -0
- package/serialization/types/TestRecordCreate.d.ts +22 -0
- package/serialization/types/TestRecordCreate.js +43 -0
- package/serialization/types/TestSetCreate.d.ts +14 -0
- package/serialization/types/TestSetCreate.js +35 -0
- package/serialization/types/Testrecord.d.ts +23 -0
- package/serialization/types/Testrecord.js +59 -0
- package/serialization/types/TestrecordCustomInputsValue.d.ts +10 -0
- package/serialization/types/TestrecordCustomInputsValue.js +44 -0
- package/serialization/types/TestrecordCustomLabelsValue.d.ts +10 -0
- package/serialization/types/TestrecordCustomLabelsValue.js +44 -0
- package/serialization/types/TestrecordCustomOutputsValue.d.ts +10 -0
- package/serialization/types/TestrecordCustomOutputsValue.js +44 -0
- package/serialization/types/Testset.d.ts +23 -0
- package/serialization/types/Testset.js +53 -0
- package/serialization/types/UnauthenticatedError.d.ts +14 -0
- package/serialization/types/UnauthenticatedError.js +35 -0
- package/serialization/types/UnauthorizedErrorBody.d.ts +14 -0
- package/serialization/types/UnauthorizedErrorBody.js +35 -0
- package/serialization/types/ValidationError.d.ts +14 -0
- package/serialization/types/ValidationError.js +44 -0
- package/serialization/types/ValidationErrorLocItem.d.ts +10 -0
- package/serialization/types/ValidationErrorLocItem.js +31 -0
- package/serialization/types/index.d.ts +39 -0
- package/serialization/types/index.js +55 -0
- package/wrapper/ScorecardClient.d.ts +32 -0
- package/wrapper/ScorecardClient.js +86 -0
package/Client.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "./environments";
|
|
5
|
+
import * as core from "./core";
|
|
6
|
+
import { Testset } from "./api/resources/testset/client/Client";
|
|
7
|
+
import { Testcase } from "./api/resources/testcase/client/Client";
|
|
8
|
+
import { Testrecord } from "./api/resources/testrecord/client/Client";
|
|
9
|
+
import { Run } from "./api/resources/run/client/Client";
|
|
10
|
+
export declare namespace ScorecardClient {
|
|
11
|
+
interface Options {
|
|
12
|
+
environment?: core.Supplier<environments.ScorecardEnvironment | string>;
|
|
13
|
+
apiKey: core.Supplier<string>;
|
|
14
|
+
}
|
|
15
|
+
interface RequestOptions {
|
|
16
|
+
timeoutInSeconds?: number;
|
|
17
|
+
maxRetries?: number;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export declare class ScorecardClient {
|
|
21
|
+
protected readonly _options: ScorecardClient.Options;
|
|
22
|
+
constructor(_options: ScorecardClient.Options);
|
|
23
|
+
protected _testset: Testset | undefined;
|
|
24
|
+
get testset(): Testset;
|
|
25
|
+
protected _testcase: Testcase | undefined;
|
|
26
|
+
get testcase(): Testcase;
|
|
27
|
+
protected _testrecord: Testrecord | undefined;
|
|
28
|
+
get testrecord(): Testrecord;
|
|
29
|
+
protected _run: Run | undefined;
|
|
30
|
+
get run(): Run;
|
|
31
|
+
}
|
package/Client.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ScorecardClient = void 0;
|
|
7
|
+
const Client_1 = require("./api/resources/testset/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/testcase/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/testrecord/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/run/client/Client");
|
|
11
|
+
class ScorecardClient {
|
|
12
|
+
constructor(_options) {
|
|
13
|
+
this._options = _options;
|
|
14
|
+
}
|
|
15
|
+
get testset() {
|
|
16
|
+
var _a;
|
|
17
|
+
return ((_a = this._testset) !== null && _a !== void 0 ? _a : (this._testset = new Client_1.Testset(this._options)));
|
|
18
|
+
}
|
|
19
|
+
get testcase() {
|
|
20
|
+
var _a;
|
|
21
|
+
return ((_a = this._testcase) !== null && _a !== void 0 ? _a : (this._testcase = new Client_2.Testcase(this._options)));
|
|
22
|
+
}
|
|
23
|
+
get testrecord() {
|
|
24
|
+
var _a;
|
|
25
|
+
return ((_a = this._testrecord) !== null && _a !== void 0 ? _a : (this._testrecord = new Client_3.Testrecord(this._options)));
|
|
26
|
+
}
|
|
27
|
+
get run() {
|
|
28
|
+
var _a;
|
|
29
|
+
return ((_a = this._run) !== null && _a !== void 0 ? _a : (this._run = new Client_4.Run(this._options)));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.ScorecardClient = ScorecardClient;
|
package/README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Scorecard AI Node Library
|
|
2
|
+
|
|
3
|
+
[](https://github.com/fern-api/fern)
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install scorecard-ai
|
|
9
|
+
# or
|
|
10
|
+
yarn add scorecard-ai
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
Instantiate our client and start making calls to the API.
|
|
15
|
+
The SDK uses fetch and is compatible in multiple environments
|
|
16
|
+
such as Node, Vercel, Cloudflare Workers.
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ScorecardClient } from "scorecard";
|
|
20
|
+
|
|
21
|
+
const scorecard = new ScorecardClient(
|
|
22
|
+
api_key="YOUR_API_KEY" // Defaults to SCORECARD_API_KEY
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
const testset = await scorecard.testset.create({
|
|
26
|
+
testsetId=1234,
|
|
27
|
+
userQuery="Your prompt...",
|
|
28
|
+
modelParams: {
|
|
29
|
+
"param": "value"
|
|
30
|
+
}
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
console.log("Created testset", testset)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Running Tests
|
|
37
|
+
The `runTests` method will load your test cases,
|
|
38
|
+
invoke your models with saved prompts,
|
|
39
|
+
and record success and failure. This is
|
|
40
|
+
available on both the sync and async client.
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
import { callModel } from "../app.ts";
|
|
44
|
+
import { ScorecardClient } from "scorecard";
|
|
45
|
+
|
|
46
|
+
const scorecard = new ScorecardClient(
|
|
47
|
+
apiKey="YOUR_API_KEY"
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
client.runTests({
|
|
51
|
+
inputTestsetId: 123,
|
|
52
|
+
scoringConfigId: 456,
|
|
53
|
+
// The model invocation that you would like to test
|
|
54
|
+
model_invocation: () => callModel(prompt),
|
|
55
|
+
})
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Timeouts
|
|
59
|
+
By default, the client is configured to have
|
|
60
|
+
a timeout of 60 seconds. You can customize
|
|
61
|
+
this value by passing in request options.
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
await scorecard.testset.create({
|
|
65
|
+
testsetId=1234,
|
|
66
|
+
...
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
timeoutInSeconds: 30, // override timeout to 30s
|
|
70
|
+
});
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Handling Exceptions
|
|
74
|
+
All exceptions thrown by the SDK will
|
|
75
|
+
sublcass [ScorecardError](./src/errors/ScorecardError.ts).
|
|
76
|
+
|
|
77
|
+
```typescript
|
|
78
|
+
import { Scorecard, ScorecardError } from "scorecard";
|
|
79
|
+
|
|
80
|
+
try {
|
|
81
|
+
await client.testset.get({...});
|
|
82
|
+
} catch(err) {
|
|
83
|
+
if (err instanceof Scorecard.UnprocessableEntityError) {
|
|
84
|
+
// handle unprocessable entity error
|
|
85
|
+
} else if (err instanceof ScorecardError) {
|
|
86
|
+
// handle any sdk related error
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Beta status
|
|
92
|
+
|
|
93
|
+
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package version to a specific version in your pyproject.toml file. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
|
|
94
|
+
|
|
95
|
+
## Contributing
|
|
96
|
+
|
|
97
|
+
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
|
|
98
|
+
|
|
99
|
+
On the other hand, contributions to the README are always very welcome!
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors";
|
|
5
|
+
import * as Scorecard from "..";
|
|
6
|
+
export declare class ForbiddenError extends errors.ScorecardError {
|
|
7
|
+
constructor(body: Scorecard.UnauthorizedErrorBody);
|
|
8
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ForbiddenError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors"));
|
|
31
|
+
class ForbiddenError extends errors.ScorecardError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "ForbiddenError",
|
|
35
|
+
statusCode: 403,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, ForbiddenError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.ForbiddenError = ForbiddenError;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors";
|
|
5
|
+
import * as Scorecard from "..";
|
|
6
|
+
export declare class NotFoundError extends errors.ScorecardError {
|
|
7
|
+
constructor(body: Scorecard.NotFoundErrorBody);
|
|
8
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.NotFoundError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors"));
|
|
31
|
+
class NotFoundError extends errors.ScorecardError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "NotFoundError",
|
|
35
|
+
statusCode: 404,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.NotFoundError = NotFoundError;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors";
|
|
5
|
+
import * as Scorecard from "..";
|
|
6
|
+
export declare class UnauthorizedError extends errors.ScorecardError {
|
|
7
|
+
constructor(body: Scorecard.UnauthenticatedError);
|
|
8
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.UnauthorizedError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors"));
|
|
31
|
+
class UnauthorizedError extends errors.ScorecardError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "UnauthorizedError",
|
|
35
|
+
statusCode: 401,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, UnauthorizedError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.UnauthorizedError = UnauthorizedError;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors";
|
|
5
|
+
import * as Scorecard from "..";
|
|
6
|
+
export declare class UnprocessableEntityError extends errors.ScorecardError {
|
|
7
|
+
constructor(body: Scorecard.HttpValidationError);
|
|
8
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.UnprocessableEntityError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors"));
|
|
31
|
+
class UnprocessableEntityError extends errors.ScorecardError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "UnprocessableEntityError",
|
|
35
|
+
statusCode: 422,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, UnprocessableEntityError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.UnprocessableEntityError = UnprocessableEntityError;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./UnauthorizedError"), exports);
|
|
18
|
+
__exportStar(require("./ForbiddenError"), exports);
|
|
19
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
20
|
+
__exportStar(require("./UnprocessableEntityError"), exports);
|
package/api/index.d.ts
ADDED
package/api/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./errors"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * as testcase from "./testcase";
|
|
2
|
+
export * from "./testcase/types";
|
|
3
|
+
export * as testrecord from "./testrecord";
|
|
4
|
+
export * from "./testrecord/types";
|
|
5
|
+
export * as testset from "./testset";
|
|
6
|
+
export * as run from "./run";
|
|
7
|
+
export * from "./testset/client/requests";
|
|
8
|
+
export * from "./testcase/client/requests";
|
|
9
|
+
export * from "./testrecord/client/requests";
|
|
10
|
+
export * from "./run/client/requests";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.run = exports.testset = exports.testrecord = exports.testcase = void 0;
|
|
30
|
+
exports.testcase = __importStar(require("./testcase"));
|
|
31
|
+
__exportStar(require("./testcase/types"), exports);
|
|
32
|
+
exports.testrecord = __importStar(require("./testrecord"));
|
|
33
|
+
__exportStar(require("./testrecord/types"), exports);
|
|
34
|
+
exports.testset = __importStar(require("./testset"));
|
|
35
|
+
exports.run = __importStar(require("./run"));
|
|
36
|
+
__exportStar(require("./testset/client/requests"), exports);
|
|
37
|
+
__exportStar(require("./testcase/client/requests"), exports);
|
|
38
|
+
__exportStar(require("./testrecord/client/requests"), exports);
|
|
39
|
+
__exportStar(require("./run/client/requests"), exports);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Scorecard from "../../..";
|
|
7
|
+
export declare namespace Run {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ScorecardEnvironment | string>;
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
|
+
}
|
|
12
|
+
interface RequestOptions {
|
|
13
|
+
timeoutInSeconds?: number;
|
|
14
|
+
maxRetries?: number;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export declare class Run {
|
|
18
|
+
protected readonly _options: Run.Options;
|
|
19
|
+
constructor(_options: Run.Options);
|
|
20
|
+
/**
|
|
21
|
+
* Create a new Run
|
|
22
|
+
* @throws {@link Scorecard.UnauthorizedError}
|
|
23
|
+
* @throws {@link Scorecard.ForbiddenError}
|
|
24
|
+
* @throws {@link Scorecard.NotFoundError}
|
|
25
|
+
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
26
|
+
*/
|
|
27
|
+
create(request: Scorecard.RunCreateParams, requestOptions?: Run.RequestOptions): Promise<Scorecard.RunExternal>;
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a Run metadata
|
|
30
|
+
* @throws {@link Scorecard.UnauthorizedError}
|
|
31
|
+
* @throws {@link Scorecard.ForbiddenError}
|
|
32
|
+
* @throws {@link Scorecard.NotFoundError}
|
|
33
|
+
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* await scorecard.run.get(1)
|
|
37
|
+
*/
|
|
38
|
+
get(runId: number, requestOptions?: Run.RequestOptions): Promise<Scorecard.RunExternal>;
|
|
39
|
+
/**
|
|
40
|
+
* Update the status of a run.
|
|
41
|
+
* @throws {@link Scorecard.UnauthorizedError}
|
|
42
|
+
* @throws {@link Scorecard.ForbiddenError}
|
|
43
|
+
* @throws {@link Scorecard.NotFoundError}
|
|
44
|
+
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* await scorecard.run.updateStatus(1, {
|
|
48
|
+
* status: Scorecard.RunStatus.Pending
|
|
49
|
+
* })
|
|
50
|
+
*/
|
|
51
|
+
updateStatus(runId: number, request: Scorecard.UpdateStatusParams, requestOptions?: Run.RequestOptions): Promise<Scorecard.RunExternal>;
|
|
52
|
+
}
|