scorecard-ai 0.2.0 → 0.3.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/Client.d.ts +9 -0
- package/Client.js +15 -0
- package/api/errors/ForbiddenError.d.ts +2 -2
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/NotFoundError.d.ts +2 -2
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +2 -2
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/api/errors/UnprocessableEntityError.js +1 -1
- package/api/resources/index.d.ts +5 -0
- package/api/resources/index.js +6 -1
- package/api/resources/prompt/client/Client.d.ts +151 -0
- package/api/resources/prompt/client/Client.js +699 -0
- package/api/resources/prompt/client/index.d.ts +1 -0
- package/api/resources/prompt/client/index.js +17 -0
- package/api/resources/prompt/client/requests/PromptCreateParams.d.ts +40 -0
- package/api/resources/prompt/client/requests/PromptUpdateParams.d.ts +13 -0
- package/api/resources/prompt/client/requests/index.d.ts +2 -0
- package/api/resources/prompt/client/requests/index.js +2 -0
- package/api/resources/prompt/index.d.ts +2 -0
- package/api/resources/prompt/index.js +18 -0
- package/api/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +4 -0
- package/api/resources/prompt/types/index.d.ts +1 -0
- package/api/resources/prompt/types/index.js +17 -0
- package/api/resources/run/client/Client.d.ts +19 -3
- package/api/resources/run/client/Client.js +30 -25
- package/api/resources/run/client/requests/RunCreateParams.d.ts +3 -2
- package/api/resources/run/client/requests/UpdateStatusParams.d.ts +1 -1
- package/api/resources/run/client/requests/index.d.ts +2 -2
- package/api/resources/runMetric/client/Client.d.ts +38 -0
- package/api/resources/runMetric/client/Client.js +150 -0
- package/api/resources/runMetric/client/index.d.ts +1 -0
- package/api/resources/runMetric/client/index.js +2 -0
- package/api/resources/runMetric/index.d.ts +1 -0
- package/api/resources/runMetric/index.js +17 -0
- package/api/resources/score/client/Client.d.ts +18 -2
- package/api/resources/score/client/Client.js +28 -18
- package/api/resources/score/client/requests/index.d.ts +2 -2
- package/api/resources/testcase/client/Client.d.ts +19 -1
- package/api/resources/testcase/client/Client.js +31 -24
- package/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +1 -1
- package/api/resources/testcase/client/requests/index.d.ts +1 -1
- package/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +1 -1
- package/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +1 -1
- package/api/resources/testrecord/client/Client.d.ts +15 -2
- package/api/resources/testrecord/client/Client.js +25 -18
- package/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +1 -1
- package/api/resources/testrecord/client/requests/index.d.ts +1 -1
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +1 -1
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +1 -1
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +1 -1
- package/api/resources/testset/client/Client.d.ts +26 -2
- package/api/resources/testset/client/Client.js +41 -38
- package/api/resources/testset/client/requests/TestsetCreateParams.d.ts +1 -1
- package/api/resources/testset/client/requests/index.d.ts +2 -2
- package/api/resources/traces/client/Client.d.ts +38 -0
- package/api/resources/traces/client/Client.js +150 -0
- package/api/resources/traces/client/index.d.ts +1 -0
- package/api/resources/traces/client/index.js +2 -0
- package/api/resources/traces/index.d.ts +1 -0
- package/api/resources/traces/index.js +17 -0
- package/api/types/CustomSchema.d.ts +1 -1
- package/api/types/CustomVariable.d.ts +1 -1
- package/api/types/Grade.d.ts +4 -2
- package/api/types/HttpValidationError.d.ts +1 -1
- package/api/types/JsonObject.d.ts +1 -1
- package/api/types/JsonObjectInputValue.d.ts +1 -1
- package/api/types/JsonObjectOutputValue.d.ts +1 -1
- package/api/types/PaginatedTestcaseResponse.d.ts +1 -1
- package/api/types/Prompt.d.ts +18 -0
- package/api/types/{AppCreateRunParams.d.ts → PromptModelParamsValue.d.ts} +1 -1
- package/api/types/RunMetric.d.ts +9 -0
- package/api/types/Span.d.ts +29 -0
- package/api/types/TestCase.d.ts +1 -1
- package/api/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/api/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/api/types/Testrecord.d.ts +1 -1
- package/api/types/TestrecordCustomInputsValue.d.ts +1 -1
- package/api/types/TestrecordCustomLabelsValue.d.ts +1 -1
- package/api/types/TestrecordCustomOutputsValue.d.ts +1 -1
- package/api/types/Testset.d.ts +1 -1
- package/api/types/Trace.d.ts +8 -0
- package/api/types/ValidationError.d.ts +1 -1
- package/api/types/index.d.ts +5 -8
- package/api/types/index.js +5 -8
- package/core/fetcher/Fetcher.d.ts +2 -2
- package/core/fetcher/Fetcher.js +78 -23
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +8 -0
- package/core/runtime/runtime.js +82 -0
- package/core/schemas/builders/object/object.js +11 -15
- package/dist/Client.d.ts +9 -0
- package/dist/Client.js +15 -0
- package/dist/api/errors/ForbiddenError.d.ts +2 -2
- package/dist/api/errors/ForbiddenError.js +1 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -2
- package/dist/api/errors/NotFoundError.js +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -2
- package/dist/api/errors/UnauthorizedError.js +1 -1
- package/dist/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/dist/api/errors/UnprocessableEntityError.js +1 -1
- package/dist/api/resources/index.d.ts +5 -0
- package/dist/api/resources/index.js +6 -1
- package/dist/api/resources/prompt/client/Client.d.ts +151 -0
- package/dist/api/resources/prompt/client/Client.js +699 -0
- package/dist/api/resources/prompt/client/index.d.ts +1 -0
- package/dist/api/resources/prompt/client/index.js +17 -0
- package/dist/api/resources/prompt/client/requests/PromptCreateParams.d.ts +40 -0
- package/dist/api/resources/prompt/client/requests/PromptUpdateParams.d.ts +13 -0
- package/dist/api/resources/prompt/client/requests/index.d.ts +2 -0
- package/dist/api/resources/prompt/client/requests/index.js +2 -0
- package/dist/api/resources/prompt/index.d.ts +2 -0
- package/dist/api/resources/prompt/index.js +18 -0
- package/dist/api/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +4 -0
- package/dist/api/resources/prompt/types/index.d.ts +1 -0
- package/dist/api/resources/prompt/types/index.js +17 -0
- package/dist/api/resources/run/client/Client.d.ts +19 -3
- package/dist/api/resources/run/client/Client.js +30 -25
- package/dist/api/resources/run/client/requests/RunCreateParams.d.ts +3 -2
- package/dist/api/resources/run/client/requests/UpdateStatusParams.d.ts +1 -1
- package/dist/api/resources/run/client/requests/index.d.ts +2 -2
- package/dist/api/resources/runMetric/client/Client.d.ts +38 -0
- package/dist/api/resources/runMetric/client/Client.js +150 -0
- package/dist/api/resources/runMetric/client/index.d.ts +1 -0
- package/dist/api/resources/runMetric/client/index.js +2 -0
- package/dist/api/resources/runMetric/index.d.ts +1 -0
- package/dist/api/resources/runMetric/index.js +17 -0
- package/dist/api/resources/score/client/Client.d.ts +18 -2
- package/dist/api/resources/score/client/Client.js +28 -18
- package/dist/api/resources/score/client/requests/index.d.ts +2 -2
- package/dist/api/resources/testcase/client/Client.d.ts +19 -1
- package/dist/api/resources/testcase/client/Client.js +31 -24
- package/dist/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +1 -1
- package/dist/api/resources/testcase/client/requests/index.d.ts +1 -1
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +1 -1
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +1 -1
- package/dist/api/resources/testrecord/client/Client.d.ts +15 -2
- package/dist/api/resources/testrecord/client/Client.js +25 -18
- package/dist/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +1 -1
- package/dist/api/resources/testrecord/client/requests/index.d.ts +1 -1
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +1 -1
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +1 -1
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +1 -1
- package/dist/api/resources/testset/client/Client.d.ts +26 -2
- package/dist/api/resources/testset/client/Client.js +41 -38
- package/dist/api/resources/testset/client/requests/TestsetCreateParams.d.ts +1 -1
- package/dist/api/resources/testset/client/requests/index.d.ts +2 -2
- package/dist/api/resources/traces/client/Client.d.ts +38 -0
- package/dist/api/resources/traces/client/Client.js +150 -0
- package/dist/api/resources/traces/client/index.d.ts +1 -0
- package/dist/api/resources/traces/client/index.js +2 -0
- package/dist/api/resources/traces/index.d.ts +1 -0
- package/dist/api/resources/traces/index.js +17 -0
- package/dist/api/types/CustomSchema.d.ts +1 -1
- package/dist/api/types/CustomVariable.d.ts +1 -1
- package/dist/api/types/Grade.d.ts +4 -2
- package/dist/api/types/HttpValidationError.d.ts +1 -1
- package/dist/api/types/JsonObject.d.ts +1 -1
- package/dist/api/types/JsonObjectInputValue.d.ts +1 -1
- package/dist/api/types/JsonObjectOutputValue.d.ts +1 -1
- package/dist/api/types/PaginatedTestcaseResponse.d.ts +1 -1
- package/dist/api/types/Prompt.d.ts +18 -0
- package/{api/types/AppTestSetCreate.d.ts → dist/api/types/PromptModelParamsValue.d.ts} +1 -1
- package/dist/api/types/RunMetric.d.ts +9 -0
- package/dist/api/types/Span.d.ts +29 -0
- package/dist/api/types/TestCase.d.ts +1 -1
- package/dist/api/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/dist/api/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/dist/api/types/Testrecord.d.ts +1 -1
- package/dist/api/types/TestrecordCustomInputsValue.d.ts +1 -1
- package/dist/api/types/TestrecordCustomLabelsValue.d.ts +1 -1
- package/dist/api/types/TestrecordCustomOutputsValue.d.ts +1 -1
- package/dist/api/types/Testset.d.ts +1 -1
- package/dist/api/types/Trace.d.ts +8 -0
- package/dist/api/types/ValidationError.d.ts +1 -1
- package/dist/api/types/index.d.ts +5 -8
- package/dist/api/types/index.js +5 -8
- package/dist/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/core/fetcher/Fetcher.js +78 -23
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +8 -0
- package/dist/core/runtime/runtime.js +82 -0
- package/dist/core/schemas/builders/object/object.js +11 -15
- package/dist/serialization/resources/index.d.ts +5 -0
- package/dist/serialization/resources/index.js +6 -1
- package/dist/serialization/resources/prompt/client/getGraph.d.ts +11 -0
- package/dist/serialization/{types/AppCreateRunParams.js → resources/prompt/client/getGraph.js} +4 -3
- package/dist/serialization/resources/prompt/client/getProds.d.ts +11 -0
- package/dist/serialization/{types/AppTestRecordCreate.js → resources/prompt/client/getProds.js} +4 -3
- package/dist/serialization/resources/prompt/client/getRoots.d.ts +11 -0
- package/dist/serialization/{types/AppTestSetCreate.js → resources/prompt/client/getRoots.js} +4 -3
- package/dist/serialization/resources/prompt/client/index.d.ts +4 -0
- package/dist/serialization/resources/prompt/client/index.js +33 -0
- package/dist/serialization/resources/prompt/client/requests/PromptCreateParams.d.ts +18 -0
- package/dist/serialization/resources/prompt/client/requests/PromptCreateParams.js +39 -0
- package/dist/serialization/resources/prompt/client/requests/PromptUpdateParams.d.ts +13 -0
- package/dist/serialization/resources/prompt/client/requests/PromptUpdateParams.js +34 -0
- package/dist/serialization/resources/prompt/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/prompt/client/requests/index.js +7 -0
- package/dist/serialization/resources/prompt/index.d.ts +2 -0
- package/dist/serialization/resources/prompt/index.js +18 -0
- package/dist/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +10 -0
- package/dist/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.js +36 -0
- package/dist/serialization/resources/prompt/types/index.d.ts +1 -0
- package/dist/serialization/resources/prompt/types/index.js +17 -0
- package/dist/serialization/resources/run/client/requests/RunCreateParams.d.ts +3 -2
- package/dist/serialization/resources/run/client/requests/RunCreateParams.js +1 -0
- package/dist/serialization/resources/run/client/requests/UpdateStatusParams.d.ts +4 -3
- package/dist/serialization/resources/run/client/requests/UpdateStatusParams.js +2 -10
- package/dist/serialization/resources/runMetric/client/get.d.ts +11 -0
- package/dist/serialization/resources/runMetric/client/get.js +32 -0
- package/dist/serialization/resources/runMetric/client/index.d.ts +1 -0
- package/dist/serialization/{types/ModelParams.js → resources/runMetric/client/index.js} +2 -6
- package/dist/serialization/resources/runMetric/index.d.ts +1 -0
- package/dist/serialization/resources/runMetric/index.js +17 -0
- package/dist/serialization/resources/score/client/requests/ScoreCreateParams.d.ts +2 -2
- package/dist/serialization/resources/score/client/requests/ScoreUpdateParams.d.ts +2 -2
- package/dist/serialization/resources/testcase/client/requests/TestcaseCreateParams.d.ts +6 -4
- package/dist/serialization/resources/testcase/client/requests/TestcaseCreateParams.js +4 -15
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +4 -3
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +2 -1
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +4 -3
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +2 -1
- package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +12 -7
- package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +10 -24
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +4 -3
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +4 -3
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +4 -3
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +2 -2
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +2 -2
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +4 -3
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.js +2 -10
- package/dist/serialization/resources/traces/client/get.d.ts +10 -0
- package/dist/serialization/resources/traces/client/get.js +40 -0
- package/dist/serialization/resources/traces/client/index.d.ts +1 -0
- package/{serialization/types/ModelParams.js → dist/serialization/resources/traces/client/index.js} +2 -6
- package/dist/serialization/resources/traces/index.d.ts +1 -0
- package/dist/serialization/resources/traces/index.js +17 -0
- package/dist/serialization/types/CreateGithubWorkflowParams.d.ts +2 -2
- package/dist/serialization/types/CreateRunParams.d.ts +2 -2
- package/dist/serialization/types/CustomSchema.d.ts +4 -3
- package/dist/serialization/types/CustomSchema.js +2 -12
- package/dist/serialization/types/CustomVariable.d.ts +6 -4
- package/dist/serialization/types/CustomVariable.js +4 -11
- package/dist/serialization/types/DataTypeEnum.d.ts +2 -2
- package/dist/serialization/types/FileUrl.d.ts +2 -2
- package/dist/serialization/types/Grade.d.ts +7 -4
- package/dist/serialization/types/Grade.js +5 -11
- package/dist/serialization/types/HttpValidationError.d.ts +4 -3
- package/dist/serialization/types/HttpValidationError.js +2 -12
- package/dist/serialization/types/JsonObject.d.ts +2 -2
- package/dist/serialization/types/JsonObjectInputValue.d.ts +2 -2
- package/dist/serialization/types/JsonObjectOutputValue.d.ts +2 -2
- package/dist/serialization/types/NotFoundErrorBody.d.ts +2 -2
- package/dist/serialization/types/PaginatedTestcaseResponse.d.ts +4 -3
- package/dist/serialization/types/PaginatedTestcaseResponse.js +2 -10
- package/dist/serialization/types/Prompt.d.ts +24 -0
- package/dist/serialization/types/Prompt.js +45 -0
- package/dist/serialization/types/PromptModelParamsValue.d.ts +10 -0
- package/dist/serialization/types/PromptModelParamsValue.js +35 -0
- package/dist/serialization/types/RoleEnum.d.ts +2 -2
- package/dist/serialization/types/Run.d.ts +2 -2
- package/dist/serialization/types/RunMetric.d.ts +15 -0
- package/dist/serialization/types/RunMetric.js +36 -0
- package/dist/serialization/types/RunStatus.d.ts +2 -2
- package/dist/serialization/types/ScoreStatus.d.ts +2 -2
- package/dist/serialization/types/Span.d.ts +34 -0
- package/dist/serialization/types/Span.js +64 -0
- package/dist/serialization/types/TestCase.d.ts +6 -4
- package/dist/serialization/types/TestCase.js +4 -15
- package/dist/serialization/types/TestCaseCreate.d.ts +2 -2
- package/dist/serialization/types/TestCaseCustomInputsValue.d.ts +4 -3
- package/dist/serialization/types/TestCaseCustomInputsValue.js +2 -1
- package/dist/serialization/types/TestCaseCustomLabelsValue.d.ts +4 -3
- package/dist/serialization/types/TestCaseCustomLabelsValue.js +2 -1
- package/dist/serialization/types/TestRecordCreate.d.ts +2 -2
- package/dist/serialization/types/TestSetCreate.d.ts +2 -2
- package/dist/serialization/types/Testrecord.d.ts +12 -7
- package/dist/serialization/types/Testrecord.js +10 -24
- package/dist/serialization/types/TestrecordCustomInputsValue.d.ts +4 -3
- package/dist/serialization/types/TestrecordCustomInputsValue.js +2 -1
- package/dist/serialization/types/TestrecordCustomLabelsValue.d.ts +4 -3
- package/dist/serialization/types/TestrecordCustomLabelsValue.js +2 -1
- package/dist/serialization/types/TestrecordCustomOutputsValue.d.ts +4 -3
- package/dist/serialization/types/TestrecordCustomOutputsValue.js +2 -1
- package/dist/serialization/types/TestrecordModelDebugInfoValue.d.ts +2 -2
- package/dist/serialization/types/TestrecordModelParamsValue.d.ts +2 -2
- package/dist/serialization/types/Testset.d.ts +4 -3
- package/dist/serialization/types/Testset.js +2 -10
- package/dist/serialization/types/Trace.d.ts +14 -0
- package/dist/serialization/types/Trace.js +35 -0
- package/dist/serialization/types/UnauthenticatedError.d.ts +2 -2
- package/dist/serialization/types/UnauthorizedErrorBody.d.ts +2 -2
- package/dist/serialization/types/ValidationError.d.ts +4 -3
- package/dist/serialization/types/ValidationError.js +2 -10
- package/dist/serialization/types/ValidationErrorLocItem.d.ts +2 -2
- package/dist/serialization/types/index.d.ts +5 -8
- package/dist/serialization/types/index.js +5 -8
- package/jest.config.js +5 -0
- package/package.json +11 -4
- package/reference.md +2145 -0
- package/serialization/resources/index.d.ts +5 -0
- package/serialization/resources/index.js +6 -1
- package/serialization/resources/prompt/client/getGraph.d.ts +11 -0
- package/{dist/serialization/types/ExecutionParams.js → serialization/resources/prompt/client/getGraph.js} +4 -3
- package/serialization/resources/prompt/client/getProds.d.ts +11 -0
- package/serialization/resources/prompt/client/getProds.js +32 -0
- package/serialization/resources/prompt/client/getRoots.d.ts +11 -0
- package/serialization/resources/prompt/client/getRoots.js +32 -0
- package/serialization/resources/prompt/client/index.d.ts +4 -0
- package/serialization/resources/prompt/client/index.js +33 -0
- package/serialization/resources/prompt/client/requests/PromptCreateParams.d.ts +18 -0
- package/serialization/resources/prompt/client/requests/PromptCreateParams.js +39 -0
- package/serialization/resources/prompt/client/requests/PromptUpdateParams.d.ts +13 -0
- package/serialization/resources/prompt/client/requests/PromptUpdateParams.js +34 -0
- package/serialization/resources/prompt/client/requests/index.d.ts +2 -0
- package/serialization/resources/prompt/client/requests/index.js +7 -0
- package/serialization/resources/prompt/index.d.ts +2 -0
- package/serialization/resources/prompt/index.js +18 -0
- package/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.d.ts +10 -0
- package/serialization/resources/prompt/types/PromptCreateParamsModelParamsValue.js +36 -0
- package/serialization/resources/prompt/types/index.d.ts +1 -0
- package/serialization/resources/prompt/types/index.js +17 -0
- package/serialization/resources/run/client/requests/RunCreateParams.d.ts +3 -2
- package/serialization/resources/run/client/requests/RunCreateParams.js +1 -0
- package/serialization/resources/run/client/requests/UpdateStatusParams.d.ts +4 -3
- package/serialization/resources/run/client/requests/UpdateStatusParams.js +2 -10
- package/serialization/resources/runMetric/client/get.d.ts +11 -0
- package/serialization/resources/runMetric/client/get.js +32 -0
- package/serialization/resources/runMetric/client/index.d.ts +1 -0
- package/{dist/serialization/types/ScoringParams.js → serialization/resources/runMetric/client/index.js} +2 -6
- package/serialization/resources/runMetric/index.d.ts +1 -0
- package/serialization/resources/runMetric/index.js +17 -0
- package/serialization/resources/score/client/requests/ScoreCreateParams.d.ts +2 -2
- package/serialization/resources/score/client/requests/ScoreUpdateParams.d.ts +2 -2
- package/serialization/resources/testcase/client/requests/TestcaseCreateParams.d.ts +6 -4
- package/serialization/resources/testcase/client/requests/TestcaseCreateParams.js +4 -15
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +4 -3
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +2 -1
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +4 -3
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +2 -1
- package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +12 -7
- package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +10 -24
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +4 -3
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +4 -3
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +4 -3
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +2 -2
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +2 -2
- package/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +4 -3
- package/serialization/resources/testset/client/requests/TestsetCreateParams.js +2 -10
- package/serialization/resources/traces/client/get.d.ts +10 -0
- package/serialization/resources/traces/client/get.js +40 -0
- package/serialization/resources/traces/client/index.d.ts +1 -0
- package/serialization/{types/ScoringParams.js → resources/traces/client/index.js} +2 -6
- package/serialization/resources/traces/index.d.ts +1 -0
- package/serialization/resources/traces/index.js +17 -0
- package/serialization/types/CreateGithubWorkflowParams.d.ts +2 -2
- package/serialization/types/CreateRunParams.d.ts +2 -2
- package/serialization/types/CustomSchema.d.ts +4 -3
- package/serialization/types/CustomSchema.js +2 -12
- package/serialization/types/CustomVariable.d.ts +6 -4
- package/serialization/types/CustomVariable.js +4 -11
- package/serialization/types/DataTypeEnum.d.ts +2 -2
- package/serialization/types/FileUrl.d.ts +2 -2
- package/serialization/types/Grade.d.ts +7 -4
- package/serialization/types/Grade.js +5 -11
- package/serialization/types/HttpValidationError.d.ts +4 -3
- package/serialization/types/HttpValidationError.js +2 -12
- package/serialization/types/JsonObject.d.ts +2 -2
- package/serialization/types/JsonObjectInputValue.d.ts +2 -2
- package/serialization/types/JsonObjectOutputValue.d.ts +2 -2
- package/serialization/types/NotFoundErrorBody.d.ts +2 -2
- package/serialization/types/PaginatedTestcaseResponse.d.ts +4 -3
- package/serialization/types/PaginatedTestcaseResponse.js +2 -10
- package/serialization/types/Prompt.d.ts +24 -0
- package/serialization/types/Prompt.js +45 -0
- package/serialization/types/PromptModelParamsValue.d.ts +10 -0
- package/serialization/types/PromptModelParamsValue.js +35 -0
- package/serialization/types/RoleEnum.d.ts +2 -2
- package/serialization/types/Run.d.ts +2 -2
- package/serialization/types/RunMetric.d.ts +15 -0
- package/serialization/types/RunMetric.js +36 -0
- package/serialization/types/RunStatus.d.ts +2 -2
- package/serialization/types/ScoreStatus.d.ts +2 -2
- package/serialization/types/Span.d.ts +34 -0
- package/serialization/types/Span.js +64 -0
- package/serialization/types/TestCase.d.ts +6 -4
- package/serialization/types/TestCase.js +4 -15
- package/serialization/types/TestCaseCreate.d.ts +2 -2
- package/serialization/types/TestCaseCustomInputsValue.d.ts +4 -3
- package/serialization/types/TestCaseCustomInputsValue.js +2 -1
- package/serialization/types/TestCaseCustomLabelsValue.d.ts +4 -3
- package/serialization/types/TestCaseCustomLabelsValue.js +2 -1
- package/serialization/types/TestRecordCreate.d.ts +2 -2
- package/serialization/types/TestSetCreate.d.ts +2 -2
- package/serialization/types/Testrecord.d.ts +12 -7
- package/serialization/types/Testrecord.js +10 -24
- package/serialization/types/TestrecordCustomInputsValue.d.ts +4 -3
- package/serialization/types/TestrecordCustomInputsValue.js +2 -1
- package/serialization/types/TestrecordCustomLabelsValue.d.ts +4 -3
- package/serialization/types/TestrecordCustomLabelsValue.js +2 -1
- package/serialization/types/TestrecordCustomOutputsValue.d.ts +4 -3
- package/serialization/types/TestrecordCustomOutputsValue.js +2 -1
- package/serialization/types/TestrecordModelDebugInfoValue.d.ts +2 -2
- package/serialization/types/TestrecordModelParamsValue.d.ts +2 -2
- package/serialization/types/Testset.d.ts +4 -3
- package/serialization/types/Testset.js +2 -10
- package/serialization/types/Trace.d.ts +14 -0
- package/serialization/types/Trace.js +35 -0
- package/serialization/types/UnauthenticatedError.d.ts +2 -2
- package/serialization/types/UnauthorizedErrorBody.d.ts +2 -2
- package/serialization/types/ValidationError.d.ts +4 -3
- package/serialization/types/ValidationError.js +2 -10
- package/serialization/types/ValidationErrorLocItem.d.ts +2 -2
- package/serialization/types/index.d.ts +5 -8
- package/serialization/types/index.js +5 -8
- package/api/types/AppTestRecordCreate.d.ts +0 -4
- package/api/types/ExecutionParams.d.ts +0 -4
- package/api/types/ModelParams.d.ts +0 -4
- package/api/types/ScoreExecutionParams.d.ts +0 -4
- package/api/types/ScoringParams.d.ts +0 -4
- package/api/types/TestCaseCreateInput.d.ts +0 -4
- package/dist/api/types/AppCreateRunParams.d.ts +0 -4
- package/dist/api/types/AppTestRecordCreate.d.ts +0 -4
- package/dist/api/types/AppTestSetCreate.d.ts +0 -4
- package/dist/api/types/ExecutionParams.d.ts +0 -4
- package/dist/api/types/ModelParams.d.ts +0 -4
- package/dist/api/types/ScoreExecutionParams.d.ts +0 -4
- package/dist/api/types/ScoringParams.d.ts +0 -4
- package/dist/api/types/TestCaseCreateInput.d.ts +0 -4
- package/dist/serialization/types/AppCreateRunParams.d.ts +0 -10
- package/dist/serialization/types/AppTestRecordCreate.d.ts +0 -10
- package/dist/serialization/types/AppTestSetCreate.d.ts +0 -10
- package/dist/serialization/types/ExecutionParams.d.ts +0 -10
- package/dist/serialization/types/ModelParams.d.ts +0 -10
- package/dist/serialization/types/ScoreExecutionParams.d.ts +0 -10
- package/dist/serialization/types/ScoreExecutionParams.js +0 -31
- package/dist/serialization/types/ScoringParams.d.ts +0 -10
- package/dist/serialization/types/TestCaseCreateInput.d.ts +0 -10
- package/dist/serialization/types/TestCaseCreateInput.js +0 -31
- package/serialization/types/AppCreateRunParams.d.ts +0 -10
- package/serialization/types/AppCreateRunParams.js +0 -31
- package/serialization/types/AppTestRecordCreate.d.ts +0 -10
- package/serialization/types/AppTestRecordCreate.js +0 -31
- package/serialization/types/AppTestSetCreate.d.ts +0 -10
- package/serialization/types/AppTestSetCreate.js +0 -31
- package/serialization/types/ExecutionParams.d.ts +0 -10
- package/serialization/types/ExecutionParams.js +0 -31
- package/serialization/types/ModelParams.d.ts +0 -10
- package/serialization/types/ScoreExecutionParams.d.ts +0 -10
- package/serialization/types/ScoreExecutionParams.js +0 -31
- package/serialization/types/ScoringParams.d.ts +0 -10
- package/serialization/types/TestCaseCreateInput.d.ts +0 -10
- package/serialization/types/TestCaseCreateInput.js +0 -31
- /package/api/{types/AppCreateRunParams.js → resources/prompt/client/requests/PromptCreateParams.js} +0 -0
- /package/api/{types/AppTestRecordCreate.js → resources/prompt/client/requests/PromptUpdateParams.js} +0 -0
- /package/api/{types/AppTestSetCreate.js → resources/prompt/types/PromptCreateParamsModelParamsValue.js} +0 -0
- /package/api/types/{ExecutionParams.js → Prompt.js} +0 -0
- /package/api/types/{ModelParams.js → PromptModelParamsValue.js} +0 -0
- /package/api/types/{ScoreExecutionParams.js → RunMetric.js} +0 -0
- /package/api/types/{ScoringParams.js → Span.js} +0 -0
- /package/api/types/{TestCaseCreateInput.js → Trace.js} +0 -0
- /package/dist/api/{types/AppCreateRunParams.js → resources/prompt/client/requests/PromptCreateParams.js} +0 -0
- /package/dist/api/{types/AppTestRecordCreate.js → resources/prompt/client/requests/PromptUpdateParams.js} +0 -0
- /package/dist/api/{types/AppTestSetCreate.js → resources/prompt/types/PromptCreateParamsModelParamsValue.js} +0 -0
- /package/dist/api/types/{ExecutionParams.js → Prompt.js} +0 -0
- /package/dist/api/types/{ModelParams.js → PromptModelParamsValue.js} +0 -0
- /package/dist/api/types/{ScoreExecutionParams.js → RunMetric.js} +0 -0
- /package/dist/api/types/{ScoringParams.js → Span.js} +0 -0
- /package/dist/api/types/{TestCaseCreateInput.js → Trace.js} +0 -0
|
@@ -41,16 +41,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Score = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
|
43
43
|
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const Scorecard = __importStar(require("
|
|
45
|
-
const serializers = __importStar(require("../../../../serialization"));
|
|
44
|
+
const Scorecard = __importStar(require("../../../index"));
|
|
45
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const url_join_1 = __importDefault(require("url-join"));
|
|
47
|
-
const errors = __importStar(require("../../../../errors"));
|
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
48
48
|
class Score {
|
|
49
49
|
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Create a score
|
|
54
|
+
*
|
|
55
|
+
* @param {number} runId
|
|
56
|
+
* @param {number} testrecordId
|
|
57
|
+
* @param {Scorecard.ScoreCreateParams} request
|
|
58
|
+
* @param {Score.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
|
+
*
|
|
54
60
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
55
61
|
* @throws {@link Scorecard.ForbiddenError}
|
|
56
62
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -65,14 +71,9 @@ class Score {
|
|
|
65
71
|
var _a;
|
|
66
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
73
|
const _response = yield core.fetcher({
|
|
68
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/run/${runId}/testrecord/${testrecordId}/score`),
|
|
74
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/run/${encodeURIComponent(runId)}/testrecord/${encodeURIComponent(testrecordId)}/score`),
|
|
69
75
|
method: "POST",
|
|
70
|
-
headers: {
|
|
71
|
-
"X-API-Key": yield core.Supplier.get(this._options.apiKey),
|
|
72
|
-
"X-Fern-Language": "JavaScript",
|
|
73
|
-
"X-Fern-SDK-Name": "scorecard-ai",
|
|
74
|
-
"X-Fern-SDK-Version": "0.2.0",
|
|
75
|
-
},
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "scorecard-ai", "X-Fern-SDK-Version": "0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
76
77
|
contentType: "application/json",
|
|
77
78
|
body: yield serializers.ScoreCreateParams.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
78
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -145,26 +146,28 @@ class Score {
|
|
|
145
146
|
}
|
|
146
147
|
/**
|
|
147
148
|
* Update a score
|
|
149
|
+
*
|
|
150
|
+
* @param {number} runId
|
|
151
|
+
* @param {number} testrecordId
|
|
152
|
+
* @param {number} scoreId
|
|
153
|
+
* @param {Scorecard.ScoreUpdateParams} request
|
|
154
|
+
* @param {Score.RequestOptions} requestOptions - Request-specific configuration.
|
|
155
|
+
*
|
|
148
156
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
149
157
|
* @throws {@link Scorecard.ForbiddenError}
|
|
150
158
|
* @throws {@link Scorecard.NotFoundError}
|
|
151
159
|
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
152
160
|
*
|
|
153
161
|
* @example
|
|
154
|
-
* await scorecard.score.update(1, 1, 1
|
|
162
|
+
* await scorecard.score.update(1, 1, 1)
|
|
155
163
|
*/
|
|
156
164
|
update(runId, testrecordId, scoreId, request = {}, requestOptions) {
|
|
157
165
|
var _a;
|
|
158
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
159
167
|
const _response = yield core.fetcher({
|
|
160
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/run/${runId}/testrecord/${testrecordId}/score/${scoreId}`),
|
|
168
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/run/${encodeURIComponent(runId)}/testrecord/${encodeURIComponent(testrecordId)}/score/${encodeURIComponent(scoreId)}`),
|
|
161
169
|
method: "PATCH",
|
|
162
|
-
headers: {
|
|
163
|
-
"X-API-Key": yield core.Supplier.get(this._options.apiKey),
|
|
164
|
-
"X-Fern-Language": "JavaScript",
|
|
165
|
-
"X-Fern-SDK-Name": "scorecard-ai",
|
|
166
|
-
"X-Fern-SDK-Version": "0.2.0",
|
|
167
|
-
},
|
|
170
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "scorecard-ai", "X-Fern-SDK-Version": "0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
168
171
|
contentType: "application/json",
|
|
169
172
|
body: yield serializers.ScoreUpdateParams.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
170
173
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,5 +238,12 @@ class Score {
|
|
|
235
238
|
}
|
|
236
239
|
});
|
|
237
240
|
}
|
|
241
|
+
_getCustomAuthorizationHeaders() {
|
|
242
|
+
var _a;
|
|
243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
const apiKeyValue = (_a = (yield core.Supplier.get(this._options.apiKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["SCORECARD_API_KEY"];
|
|
245
|
+
return { "X-API-Key": apiKeyValue };
|
|
246
|
+
});
|
|
247
|
+
}
|
|
238
248
|
}
|
|
239
249
|
exports.Score = Score;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ScoreCreateParams } from "./ScoreCreateParams";
|
|
2
|
-
export { ScoreUpdateParams } from "./ScoreUpdateParams";
|
|
1
|
+
export { type ScoreCreateParams } from "./ScoreCreateParams";
|
|
2
|
+
export { type ScoreUpdateParams } from "./ScoreUpdateParams";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import * as Scorecard from "
|
|
6
|
+
import * as Scorecard from "../../../index";
|
|
7
7
|
export declare namespace Testcase {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ScorecardEnvironment | string>;
|
|
@@ -19,6 +19,11 @@ export declare class Testcase {
|
|
|
19
19
|
constructor(_options: Testcase.Options);
|
|
20
20
|
/**
|
|
21
21
|
* Create a new Testcase
|
|
22
|
+
*
|
|
23
|
+
* @param {number} testsetId
|
|
24
|
+
* @param {Scorecard.TestcaseCreateParams} request
|
|
25
|
+
* @param {Testcase.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
22
27
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
23
28
|
* @throws {@link Scorecard.ForbiddenError}
|
|
24
29
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -32,6 +37,11 @@ export declare class Testcase {
|
|
|
32
37
|
create(testsetId: number, request: Scorecard.TestcaseCreateParams, requestOptions?: Testcase.RequestOptions): Promise<Scorecard.TestCase>;
|
|
33
38
|
/**
|
|
34
39
|
* Retrieve Testcase data
|
|
40
|
+
*
|
|
41
|
+
* @param {number} testcaseId
|
|
42
|
+
* @param {number} testsetId
|
|
43
|
+
* @param {Testcase.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
35
45
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
36
46
|
* @throws {@link Scorecard.ForbiddenError}
|
|
37
47
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -43,6 +53,11 @@ export declare class Testcase {
|
|
|
43
53
|
get(testcaseId: number, testsetId: number, requestOptions?: Testcase.RequestOptions): Promise<Scorecard.TestCase>;
|
|
44
54
|
/**
|
|
45
55
|
* Delete a Testcase
|
|
56
|
+
*
|
|
57
|
+
* @param {number} testcaseId
|
|
58
|
+
* @param {number} testsetId
|
|
59
|
+
* @param {Testcase.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
|
+
*
|
|
46
61
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
47
62
|
* @throws {@link Scorecard.ForbiddenError}
|
|
48
63
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -52,4 +67,7 @@ export declare class Testcase {
|
|
|
52
67
|
* await scorecard.testcase.delete(1, 1)
|
|
53
68
|
*/
|
|
54
69
|
delete(testcaseId: number, testsetId: number, requestOptions?: Testcase.RequestOptions): Promise<unknown>;
|
|
70
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
71
|
+
"X-API-Key": string;
|
|
72
|
+
}>;
|
|
55
73
|
}
|
|
@@ -41,16 +41,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Testcase = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
|
43
43
|
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const Scorecard = __importStar(require("
|
|
45
|
-
const serializers = __importStar(require("../../../../serialization"));
|
|
44
|
+
const Scorecard = __importStar(require("../../../index"));
|
|
45
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const url_join_1 = __importDefault(require("url-join"));
|
|
47
|
-
const errors = __importStar(require("../../../../errors"));
|
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
48
48
|
class Testcase {
|
|
49
49
|
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Create a new Testcase
|
|
54
|
+
*
|
|
55
|
+
* @param {number} testsetId
|
|
56
|
+
* @param {Scorecard.TestcaseCreateParams} request
|
|
57
|
+
* @param {Testcase.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
|
+
*
|
|
54
59
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
55
60
|
* @throws {@link Scorecard.ForbiddenError}
|
|
56
61
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -65,14 +70,9 @@ class Testcase {
|
|
|
65
70
|
var _a;
|
|
66
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
72
|
const _response = yield core.fetcher({
|
|
68
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/testset/${testsetId}/testcase`),
|
|
73
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/testset/${encodeURIComponent(testsetId)}/testcase`),
|
|
69
74
|
method: "POST",
|
|
70
|
-
headers: {
|
|
71
|
-
"X-API-Key": yield core.Supplier.get(this._options.apiKey),
|
|
72
|
-
"X-Fern-Language": "JavaScript",
|
|
73
|
-
"X-Fern-SDK-Name": "scorecard-ai",
|
|
74
|
-
"X-Fern-SDK-Version": "0.2.0",
|
|
75
|
-
},
|
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "scorecard-ai", "X-Fern-SDK-Version": "0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
76
76
|
contentType: "application/json",
|
|
77
77
|
body: yield serializers.TestcaseCreateParams.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
78
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -145,6 +145,11 @@ class Testcase {
|
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
147
|
* Retrieve Testcase data
|
|
148
|
+
*
|
|
149
|
+
* @param {number} testcaseId
|
|
150
|
+
* @param {number} testsetId
|
|
151
|
+
* @param {Testcase.RequestOptions} requestOptions - Request-specific configuration.
|
|
152
|
+
*
|
|
148
153
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
149
154
|
* @throws {@link Scorecard.ForbiddenError}
|
|
150
155
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -157,14 +162,9 @@ class Testcase {
|
|
|
157
162
|
var _a;
|
|
158
163
|
return __awaiter(this, void 0, void 0, function* () {
|
|
159
164
|
const _response = yield core.fetcher({
|
|
160
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/testset/${testsetId}/testcase/${testcaseId}`),
|
|
165
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/testset/${encodeURIComponent(testsetId)}/testcase/${encodeURIComponent(testcaseId)}`),
|
|
161
166
|
method: "GET",
|
|
162
|
-
headers: {
|
|
163
|
-
"X-API-Key": yield core.Supplier.get(this._options.apiKey),
|
|
164
|
-
"X-Fern-Language": "JavaScript",
|
|
165
|
-
"X-Fern-SDK-Name": "scorecard-ai",
|
|
166
|
-
"X-Fern-SDK-Version": "0.2.0",
|
|
167
|
-
},
|
|
167
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "scorecard-ai", "X-Fern-SDK-Version": "0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
170
170
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -236,6 +236,11 @@ class Testcase {
|
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
238
|
* Delete a Testcase
|
|
239
|
+
*
|
|
240
|
+
* @param {number} testcaseId
|
|
241
|
+
* @param {number} testsetId
|
|
242
|
+
* @param {Testcase.RequestOptions} requestOptions - Request-specific configuration.
|
|
243
|
+
*
|
|
239
244
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
240
245
|
* @throws {@link Scorecard.ForbiddenError}
|
|
241
246
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -248,14 +253,9 @@ class Testcase {
|
|
|
248
253
|
var _a;
|
|
249
254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
250
255
|
const _response = yield core.fetcher({
|
|
251
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/testset/${testsetId}/testcase/${testcaseId}`),
|
|
256
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/testset/${encodeURIComponent(testsetId)}/testcase/${encodeURIComponent(testcaseId)}`),
|
|
252
257
|
method: "DELETE",
|
|
253
|
-
headers: {
|
|
254
|
-
"X-API-Key": yield core.Supplier.get(this._options.apiKey),
|
|
255
|
-
"X-Fern-Language": "JavaScript",
|
|
256
|
-
"X-Fern-SDK-Name": "scorecard-ai",
|
|
257
|
-
"X-Fern-SDK-Version": "0.2.0",
|
|
258
|
-
},
|
|
258
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "scorecard-ai", "X-Fern-SDK-Version": "0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
259
259
|
contentType: "application/json",
|
|
260
260
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
261
261
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -319,5 +319,12 @@ class Testcase {
|
|
|
319
319
|
}
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
|
+
_getCustomAuthorizationHeaders() {
|
|
323
|
+
var _a;
|
|
324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
+
const apiKeyValue = (_a = (yield core.Supplier.get(this._options.apiKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["SCORECARD_API_KEY"];
|
|
326
|
+
return { "X-API-Key": apiKeyValue };
|
|
327
|
+
});
|
|
328
|
+
}
|
|
322
329
|
}
|
|
323
330
|
exports.Testcase = Testcase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TestcaseCreateParams } from "./TestcaseCreateParams";
|
|
1
|
+
export { type TestcaseCreateParams } from "./TestcaseCreateParams";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Scorecard from "
|
|
4
|
+
import * as Scorecard from "../../../index";
|
|
5
5
|
export declare type TestcaseCreateParamsCustomInputsValue = string | Scorecard.FileUrl | Scorecard.JsonObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Scorecard from "
|
|
4
|
+
import * as Scorecard from "../../../index";
|
|
5
5
|
export declare type TestcaseCreateParamsCustomLabelsValue = string | Scorecard.FileUrl | Scorecard.JsonObject;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import * as Scorecard from "
|
|
6
|
+
import * as Scorecard from "../../../index";
|
|
7
7
|
export declare namespace Testrecord {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ScorecardEnvironment | string>;
|
|
@@ -19,6 +19,11 @@ export declare class Testrecord {
|
|
|
19
19
|
constructor(_options: Testrecord.Options);
|
|
20
20
|
/**
|
|
21
21
|
* Retrieve Testrecord metadata
|
|
22
|
+
*
|
|
23
|
+
* @param {number} testrecordId
|
|
24
|
+
* @param {number} runId
|
|
25
|
+
* @param {Testrecord.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
22
27
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
23
28
|
* @throws {@link Scorecard.ForbiddenError}
|
|
24
29
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -30,13 +35,21 @@ export declare class Testrecord {
|
|
|
30
35
|
get(testrecordId: number, runId: number, requestOptions?: Testrecord.RequestOptions): Promise<Scorecard.Testrecord>;
|
|
31
36
|
/**
|
|
32
37
|
* Create a new Testrecord
|
|
38
|
+
*
|
|
39
|
+
* @param {number} runId
|
|
40
|
+
* @param {Scorecard.TestrecordCreateParams} request
|
|
41
|
+
* @param {Testrecord.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
+
*
|
|
33
43
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
34
44
|
* @throws {@link Scorecard.ForbiddenError}
|
|
35
45
|
* @throws {@link Scorecard.NotFoundError}
|
|
36
46
|
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
37
47
|
*
|
|
38
48
|
* @example
|
|
39
|
-
* await scorecard.testrecord.create(1
|
|
49
|
+
* await scorecard.testrecord.create(1)
|
|
40
50
|
*/
|
|
41
51
|
create(runId: number, request?: Scorecard.TestrecordCreateParams, requestOptions?: Testrecord.RequestOptions): Promise<Scorecard.Testrecord>;
|
|
52
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
53
|
+
"X-API-Key": string;
|
|
54
|
+
}>;
|
|
42
55
|
}
|
|
@@ -41,16 +41,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Testrecord = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
|
43
43
|
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const Scorecard = __importStar(require("
|
|
44
|
+
const Scorecard = __importStar(require("../../../index"));
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
|
-
const serializers = __importStar(require("../../../../serialization"));
|
|
47
|
-
const errors = __importStar(require("../../../../errors"));
|
|
46
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
48
48
|
class Testrecord {
|
|
49
49
|
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Retrieve Testrecord metadata
|
|
54
|
+
*
|
|
55
|
+
* @param {number} testrecordId
|
|
56
|
+
* @param {number} runId
|
|
57
|
+
* @param {Testrecord.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
|
+
*
|
|
54
59
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
55
60
|
* @throws {@link Scorecard.ForbiddenError}
|
|
56
61
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -63,14 +68,9 @@ class Testrecord {
|
|
|
63
68
|
var _a;
|
|
64
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
70
|
const _response = yield core.fetcher({
|
|
66
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/run/${runId}/testrecord/${testrecordId}`),
|
|
71
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/run/${encodeURIComponent(runId)}/testrecord/${encodeURIComponent(testrecordId)}`),
|
|
67
72
|
method: "GET",
|
|
68
|
-
headers: {
|
|
69
|
-
"X-API-Key": yield core.Supplier.get(this._options.apiKey),
|
|
70
|
-
"X-Fern-Language": "JavaScript",
|
|
71
|
-
"X-Fern-SDK-Name": "scorecard-ai",
|
|
72
|
-
"X-Fern-SDK-Version": "0.2.0",
|
|
73
|
-
},
|
|
73
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "scorecard-ai", "X-Fern-SDK-Version": "0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
76
76
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -142,26 +142,26 @@ class Testrecord {
|
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
144
|
* Create a new Testrecord
|
|
145
|
+
*
|
|
146
|
+
* @param {number} runId
|
|
147
|
+
* @param {Scorecard.TestrecordCreateParams} request
|
|
148
|
+
* @param {Testrecord.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
|
+
*
|
|
145
150
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
146
151
|
* @throws {@link Scorecard.ForbiddenError}
|
|
147
152
|
* @throws {@link Scorecard.NotFoundError}
|
|
148
153
|
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
149
154
|
*
|
|
150
155
|
* @example
|
|
151
|
-
* await scorecard.testrecord.create(1
|
|
156
|
+
* await scorecard.testrecord.create(1)
|
|
152
157
|
*/
|
|
153
158
|
create(runId, request = {}, requestOptions) {
|
|
154
159
|
var _a;
|
|
155
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
156
161
|
const _response = yield core.fetcher({
|
|
157
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/run/${runId}/testrecord`),
|
|
162
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/run/${encodeURIComponent(runId)}/testrecord`),
|
|
158
163
|
method: "POST",
|
|
159
|
-
headers: {
|
|
160
|
-
"X-API-Key": yield core.Supplier.get(this._options.apiKey),
|
|
161
|
-
"X-Fern-Language": "JavaScript",
|
|
162
|
-
"X-Fern-SDK-Name": "scorecard-ai",
|
|
163
|
-
"X-Fern-SDK-Version": "0.2.0",
|
|
164
|
-
},
|
|
164
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "scorecard-ai", "X-Fern-SDK-Version": "0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
165
165
|
contentType: "application/json",
|
|
166
166
|
body: yield serializers.TestrecordCreateParams.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
167
167
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -232,5 +232,12 @@ class Testrecord {
|
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
+
_getCustomAuthorizationHeaders() {
|
|
236
|
+
var _a;
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
const apiKeyValue = (_a = (yield core.Supplier.get(this._options.apiKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["SCORECARD_API_KEY"];
|
|
239
|
+
return { "X-API-Key": apiKeyValue };
|
|
240
|
+
});
|
|
241
|
+
}
|
|
235
242
|
}
|
|
236
243
|
exports.Testrecord = Testrecord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TestrecordCreateParams } from "./TestrecordCreateParams";
|
|
1
|
+
export { type TestrecordCreateParams } from "./TestrecordCreateParams";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Scorecard from "
|
|
4
|
+
import * as Scorecard from "../../../index";
|
|
5
5
|
export declare type TestrecordCreateParamsCustomInputsValue = string | Scorecard.FileUrl | Scorecard.JsonObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Scorecard from "
|
|
4
|
+
import * as Scorecard from "../../../index";
|
|
5
5
|
export declare type TestrecordCreateParamsCustomLabelsValue = string | Scorecard.FileUrl | Scorecard.JsonObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Scorecard from "
|
|
4
|
+
import * as Scorecard from "../../../index";
|
|
5
5
|
export declare type TestrecordCreateParamsCustomOutputsValue = string | Scorecard.FileUrl | Scorecard.JsonObject;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import * as Scorecard from "
|
|
6
|
+
import * as Scorecard from "../../../index";
|
|
7
7
|
export declare namespace Testset {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ScorecardEnvironment | string>;
|
|
@@ -19,6 +19,10 @@ export declare class Testset {
|
|
|
19
19
|
constructor(_options: Testset.Options);
|
|
20
20
|
/**
|
|
21
21
|
* Retrieve Testset metadata without Testcase data
|
|
22
|
+
*
|
|
23
|
+
* @param {number} testsetId
|
|
24
|
+
* @param {Testset.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
22
26
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
23
27
|
* @throws {@link Scorecard.ForbiddenError}
|
|
24
28
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -30,6 +34,10 @@ export declare class Testset {
|
|
|
30
34
|
get(testsetId: number, requestOptions?: Testset.RequestOptions): Promise<Scorecard.Testset>;
|
|
31
35
|
/**
|
|
32
36
|
* Delete a Testset
|
|
37
|
+
*
|
|
38
|
+
* @param {number} testsetId
|
|
39
|
+
* @param {Testset.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
+
*
|
|
33
41
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
34
42
|
* @throws {@link Scorecard.ForbiddenError}
|
|
35
43
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -41,6 +49,10 @@ export declare class Testset {
|
|
|
41
49
|
delete(testsetId: number, requestOptions?: Testset.RequestOptions): Promise<Scorecard.Testset>;
|
|
42
50
|
/**
|
|
43
51
|
* Create a new Testset
|
|
52
|
+
*
|
|
53
|
+
* @param {Scorecard.TestsetCreateParams} request
|
|
54
|
+
* @param {Testset.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
44
56
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
45
57
|
* @throws {@link Scorecard.ForbiddenError}
|
|
46
58
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -54,6 +66,10 @@ export declare class Testset {
|
|
|
54
66
|
create(request: Scorecard.TestsetCreateParams, requestOptions?: Testset.RequestOptions): Promise<Scorecard.Testset>;
|
|
55
67
|
/**
|
|
56
68
|
* Read the schema of a Testset
|
|
69
|
+
*
|
|
70
|
+
* @param {number} testsetId
|
|
71
|
+
* @param {Testset.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
|
+
*
|
|
57
73
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
58
74
|
* @throws {@link Scorecard.ForbiddenError}
|
|
59
75
|
* @throws {@link Scorecard.NotFoundError}
|
|
@@ -65,13 +81,21 @@ export declare class Testset {
|
|
|
65
81
|
readSchema(testsetId: number, requestOptions?: Testset.RequestOptions): Promise<Scorecard.CustomSchema>;
|
|
66
82
|
/**
|
|
67
83
|
* Retrieve all Testcases from a Testset
|
|
84
|
+
*
|
|
85
|
+
* @param {number} testsetId
|
|
86
|
+
* @param {Scorecard.TestsetGetTestcasesRequest} request
|
|
87
|
+
* @param {Testset.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
|
+
*
|
|
68
89
|
* @throws {@link Scorecard.UnauthorizedError}
|
|
69
90
|
* @throws {@link Scorecard.ForbiddenError}
|
|
70
91
|
* @throws {@link Scorecard.NotFoundError}
|
|
71
92
|
* @throws {@link Scorecard.UnprocessableEntityError}
|
|
72
93
|
*
|
|
73
94
|
* @example
|
|
74
|
-
* await scorecard.testset.getTestcases(1
|
|
95
|
+
* await scorecard.testset.getTestcases(1)
|
|
75
96
|
*/
|
|
76
97
|
getTestcases(testsetId: number, request?: Scorecard.TestsetGetTestcasesRequest, requestOptions?: Testset.RequestOptions): Promise<Scorecard.PaginatedTestcaseResponse>;
|
|
98
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
99
|
+
"X-API-Key": string;
|
|
100
|
+
}>;
|
|
77
101
|
}
|