scorecard-ai 0.1.10 → 0.2.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 +3 -0
- package/Client.js +5 -0
- package/LICENSE +201 -0
- package/README.md +1 -0
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/run/client/Client.d.ts +14 -3
- package/api/resources/run/client/Client.js +18 -7
- package/api/resources/run/client/requests/RunCreateParams.d.ts +16 -1
- package/api/resources/score/client/Client.d.ts +44 -0
- package/api/resources/score/client/Client.js +239 -0
- package/api/resources/score/client/index.d.ts +1 -0
- package/api/resources/score/client/index.js +17 -0
- package/api/resources/score/client/requests/ScoreCreateParams.d.ts +15 -0
- package/api/resources/score/client/requests/ScoreUpdateParams.d.ts +12 -0
- package/api/resources/score/client/requests/index.d.ts +2 -0
- package/api/resources/score/client/requests/index.js +2 -0
- package/api/resources/score/index.d.ts +1 -0
- package/api/resources/score/index.js +17 -0
- package/api/resources/testcase/client/Client.d.ts +11 -0
- package/api/resources/testcase/client/Client.js +14 -3
- package/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +6 -0
- 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 +7 -1
- package/api/resources/testrecord/client/Client.js +9 -3
- package/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +10 -3
- 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/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +4 -0
- package/api/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +4 -0
- package/api/resources/testrecord/types/index.d.ts +2 -0
- package/api/resources/testrecord/types/index.js +2 -0
- package/api/resources/testset/client/Client.d.ts +12 -4
- package/api/resources/testset/client/Client.js +23 -15
- package/api/resources/testset/client/requests/TestsetCreateParams.d.ts +8 -2
- package/api/resources/testset/client/requests/TestsetGetTestcasesRequest.d.ts +6 -2
- package/api/types/{LibDtoTypesCreateRunParams.d.ts → CreateGithubWorkflowParams.d.ts} +1 -1
- package/api/types/CreateRunParams.d.ts +1 -6
- package/{dist/api/types/CustomSchemaInput.d.ts → api/types/CustomSchema.d.ts} +1 -1
- package/api/types/Grade.d.ts +18 -0
- package/api/types/JsonObject.d.ts +8 -0
- package/api/types/JsonObjectInputValue.d.ts +8 -0
- package/api/types/JsonObjectOutputValue.d.ts +8 -0
- package/{dist/api/types/RunExternal.d.ts → api/types/Run.d.ts} +1 -1
- package/api/types/RunStatus.d.ts +2 -1
- package/api/types/RunStatus.js +1 -0
- package/api/types/ScoreStatus.d.ts +9 -0
- package/api/types/ScoreStatus.js +11 -0
- package/api/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/api/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/api/types/TestRecordCreate.d.ts +1 -13
- package/api/types/TestSetCreate.d.ts +1 -5
- package/api/types/Testrecord.d.ts +8 -3
- 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/TestrecordModelDebugInfoValue.d.ts +4 -0
- package/api/types/TestrecordModelParamsValue.d.ts +4 -0
- package/api/types/Testset.d.ts +1 -1
- package/api/types/index.d.ts +10 -7
- package/api/types/index.js +10 -7
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/run/client/Client.d.ts +14 -3
- package/dist/api/resources/run/client/Client.js +18 -7
- package/dist/api/resources/run/client/requests/RunCreateParams.d.ts +16 -1
- package/dist/api/resources/score/client/Client.d.ts +44 -0
- package/dist/api/resources/score/client/Client.js +239 -0
- package/dist/api/resources/score/client/index.d.ts +1 -0
- package/dist/api/resources/score/client/index.js +17 -0
- package/dist/api/resources/score/client/requests/ScoreCreateParams.d.ts +15 -0
- package/dist/api/resources/score/client/requests/ScoreUpdateParams.d.ts +12 -0
- package/dist/api/resources/score/client/requests/ScoreUpdateParams.js +5 -0
- package/dist/api/resources/score/client/requests/index.d.ts +2 -0
- package/dist/api/resources/score/client/requests/index.js +2 -0
- package/dist/api/resources/score/index.d.ts +1 -0
- package/dist/api/resources/score/index.js +17 -0
- package/dist/api/resources/testcase/client/Client.d.ts +11 -0
- package/dist/api/resources/testcase/client/Client.js +14 -3
- package/dist/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +6 -0
- 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 +7 -1
- package/dist/api/resources/testrecord/client/Client.js +9 -3
- package/dist/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +10 -3
- 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/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +4 -0
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.js +5 -0
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +4 -0
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.js +5 -0
- package/dist/api/resources/testrecord/types/index.d.ts +2 -0
- package/dist/api/resources/testrecord/types/index.js +2 -0
- package/dist/api/resources/testset/client/Client.d.ts +12 -4
- package/dist/api/resources/testset/client/Client.js +23 -15
- package/dist/api/resources/testset/client/requests/TestsetCreateParams.d.ts +8 -2
- package/dist/api/resources/testset/client/requests/TestsetGetTestcasesRequest.d.ts +6 -2
- package/dist/api/types/{LibDtoTypesTestSetCreate.d.ts → CreateGithubWorkflowParams.d.ts} +1 -1
- package/dist/api/types/CreateGithubWorkflowParams.js +5 -0
- package/dist/api/types/CreateRunParams.d.ts +1 -6
- package/{api/types/CustomSchemaInput.d.ts → dist/api/types/CustomSchema.d.ts} +1 -1
- package/dist/api/types/CustomSchema.js +5 -0
- package/dist/api/types/Grade.d.ts +18 -0
- package/dist/api/types/Grade.js +5 -0
- package/dist/api/types/JsonObject.d.ts +8 -0
- package/dist/api/types/JsonObject.js +5 -0
- package/dist/api/types/JsonObjectInputValue.d.ts +8 -0
- package/dist/api/types/JsonObjectInputValue.js +5 -0
- package/dist/api/types/JsonObjectOutputValue.d.ts +8 -0
- package/dist/api/types/JsonObjectOutputValue.js +5 -0
- package/{api/types/RunExternal.d.ts → dist/api/types/Run.d.ts} +1 -1
- package/dist/api/types/Run.js +5 -0
- package/dist/api/types/RunStatus.d.ts +2 -1
- package/dist/api/types/RunStatus.js +1 -0
- package/dist/api/types/ScoreStatus.d.ts +9 -0
- package/dist/api/types/ScoreStatus.js +11 -0
- package/dist/api/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/dist/api/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/dist/api/types/TestRecordCreate.d.ts +1 -13
- package/dist/api/types/TestSetCreate.d.ts +1 -5
- package/dist/api/types/Testrecord.d.ts +8 -3
- 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/TestrecordModelDebugInfoValue.d.ts +4 -0
- package/dist/api/types/TestrecordModelDebugInfoValue.js +5 -0
- package/dist/api/types/TestrecordModelParamsValue.d.ts +4 -0
- package/dist/api/types/TestrecordModelParamsValue.js +5 -0
- package/dist/api/types/Testset.d.ts +1 -1
- package/dist/api/types/index.d.ts +10 -7
- package/dist/api/types/index.js +10 -7
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/run/client/requests/RunCreateParams.d.ts +4 -1
- package/dist/serialization/resources/run/client/requests/RunCreateParams.js +4 -1
- package/dist/serialization/resources/score/client/index.d.ts +1 -0
- package/dist/serialization/resources/score/client/index.js +17 -0
- package/dist/serialization/resources/score/client/requests/ScoreCreateParams.d.ts +15 -0
- package/dist/serialization/resources/score/client/requests/ScoreCreateParams.js +36 -0
- package/dist/serialization/resources/score/client/requests/ScoreUpdateParams.d.ts +14 -0
- package/dist/serialization/resources/score/client/requests/ScoreUpdateParams.js +35 -0
- package/dist/serialization/resources/score/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/score/client/requests/index.js +7 -0
- package/dist/serialization/resources/score/index.d.ts +1 -0
- package/dist/serialization/resources/score/index.js +17 -0
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +1 -1
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +2 -1
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +1 -1
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +2 -1
- package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +6 -3
- package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +14 -3
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +1 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +1 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +1 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +10 -0
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.js +35 -0
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +10 -0
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.js +35 -0
- package/dist/serialization/resources/testrecord/types/index.d.ts +2 -0
- package/dist/serialization/resources/testrecord/types/index.js +2 -0
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +2 -2
- package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.js +2 -2
- package/dist/serialization/types/CreateGithubWorkflowParams.d.ts +10 -0
- package/{serialization/types/LibDtoTypesCreateRunParams.js → dist/serialization/types/CreateGithubWorkflowParams.js} +2 -2
- package/dist/serialization/types/CreateRunParams.d.ts +2 -7
- package/dist/serialization/types/CreateRunParams.js +1 -6
- package/{serialization/types/CustomSchemaInput.d.ts → dist/serialization/types/CustomSchema.d.ts} +2 -2
- package/{serialization/types/CustomSchemaInput.js → dist/serialization/types/CustomSchema.js} +2 -2
- package/dist/serialization/types/Grade.d.ts +23 -0
- package/dist/serialization/types/Grade.js +53 -0
- package/dist/serialization/types/JsonObject.d.ts +12 -0
- package/dist/serialization/types/{CustomSchemaOutput.js → JsonObject.js} +3 -5
- package/dist/serialization/types/JsonObjectInputValue.d.ts +10 -0
- package/dist/serialization/types/JsonObjectInputValue.js +47 -0
- package/dist/serialization/types/JsonObjectOutputValue.d.ts +10 -0
- package/dist/serialization/types/JsonObjectOutputValue.js +47 -0
- package/{serialization/types/RunExternal.d.ts → dist/serialization/types/Run.d.ts} +2 -2
- package/{serialization/types/RunExternal.js → dist/serialization/types/Run.js} +2 -2
- package/dist/serialization/types/RunStatus.d.ts +1 -1
- package/dist/serialization/types/RunStatus.js +1 -0
- package/dist/serialization/types/ScoreStatus.d.ts +10 -0
- package/dist/serialization/types/{LibDtoTypesTestSetCreate.js → ScoreStatus.js} +2 -2
- package/dist/serialization/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/dist/serialization/types/TestCaseCustomInputsValue.js +1 -1
- package/dist/serialization/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/dist/serialization/types/TestCaseCustomLabelsValue.js +1 -1
- package/dist/serialization/types/TestRecordCreate.d.ts +2 -14
- package/dist/serialization/types/TestRecordCreate.js +1 -13
- package/dist/serialization/types/TestSetCreate.d.ts +2 -6
- package/dist/serialization/types/TestSetCreate.js +1 -5
- package/dist/serialization/types/Testrecord.d.ts +8 -3
- package/dist/serialization/types/Testrecord.js +12 -3
- package/dist/serialization/types/TestrecordCustomInputsValue.d.ts +1 -1
- package/dist/serialization/types/TestrecordCustomInputsValue.js +1 -1
- package/dist/serialization/types/TestrecordCustomLabelsValue.d.ts +1 -1
- package/dist/serialization/types/TestrecordCustomLabelsValue.js +1 -1
- package/dist/serialization/types/TestrecordCustomOutputsValue.d.ts +1 -1
- package/dist/serialization/types/TestrecordCustomOutputsValue.js +1 -1
- package/dist/serialization/types/TestrecordModelDebugInfoValue.d.ts +10 -0
- package/dist/serialization/types/TestrecordModelDebugInfoValue.js +35 -0
- package/dist/serialization/types/TestrecordModelParamsValue.d.ts +10 -0
- package/dist/serialization/types/{BodyStartGithubWorkflowStartGithubWorkflowPost.js → TestrecordModelParamsValue.js} +6 -2
- package/dist/serialization/types/Testset.d.ts +1 -1
- package/dist/serialization/types/Testset.js +1 -1
- package/dist/serialization/types/index.d.ts +10 -7
- package/dist/serialization/types/index.js +10 -7
- package/package.json +1 -1
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/run/client/requests/RunCreateParams.d.ts +4 -1
- package/serialization/resources/run/client/requests/RunCreateParams.js +4 -1
- package/serialization/resources/score/client/index.d.ts +1 -0
- package/serialization/resources/score/client/index.js +17 -0
- package/serialization/resources/score/client/requests/ScoreCreateParams.d.ts +15 -0
- package/serialization/resources/score/client/requests/ScoreCreateParams.js +36 -0
- package/serialization/resources/score/client/requests/ScoreUpdateParams.d.ts +14 -0
- package/serialization/resources/score/client/requests/ScoreUpdateParams.js +35 -0
- package/serialization/resources/score/client/requests/index.d.ts +2 -0
- package/serialization/resources/score/client/requests/index.js +7 -0
- package/serialization/resources/score/index.d.ts +1 -0
- package/serialization/resources/score/index.js +17 -0
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +1 -1
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +2 -1
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +1 -1
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +2 -1
- package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +6 -3
- package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +14 -3
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +1 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +1 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +1 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts +10 -0
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.js +35 -0
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.d.ts +10 -0
- package/serialization/resources/testrecord/types/TestrecordCreateParamsModelParamsValue.js +35 -0
- package/serialization/resources/testrecord/types/index.d.ts +2 -0
- package/serialization/resources/testrecord/types/index.js +2 -0
- package/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +2 -2
- package/serialization/resources/testset/client/requests/TestsetCreateParams.js +2 -2
- package/serialization/types/CreateGithubWorkflowParams.d.ts +10 -0
- package/{dist/serialization/types/LibDtoTypesCreateRunParams.js → serialization/types/CreateGithubWorkflowParams.js} +2 -2
- package/serialization/types/CreateRunParams.d.ts +2 -7
- package/serialization/types/CreateRunParams.js +1 -6
- package/{dist/serialization/types/CustomSchemaInput.d.ts → serialization/types/CustomSchema.d.ts} +2 -2
- package/{dist/serialization/types/CustomSchemaInput.js → serialization/types/CustomSchema.js} +2 -2
- package/serialization/types/Grade.d.ts +23 -0
- package/serialization/types/Grade.js +53 -0
- package/serialization/types/JsonObject.d.ts +12 -0
- package/serialization/types/{CustomSchemaOutput.js → JsonObject.js} +3 -5
- package/serialization/types/JsonObjectInputValue.d.ts +10 -0
- package/serialization/types/JsonObjectInputValue.js +47 -0
- package/serialization/types/JsonObjectOutputValue.d.ts +10 -0
- package/serialization/types/JsonObjectOutputValue.js +47 -0
- package/{dist/serialization/types/RunExternal.d.ts → serialization/types/Run.d.ts} +2 -2
- package/{dist/serialization/types/RunExternal.js → serialization/types/Run.js} +2 -2
- package/serialization/types/RunStatus.d.ts +1 -1
- package/serialization/types/RunStatus.js +1 -0
- package/serialization/types/ScoreStatus.d.ts +10 -0
- package/serialization/types/{LibDtoTypesTestSetCreate.js → ScoreStatus.js} +2 -2
- package/serialization/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/serialization/types/TestCaseCustomInputsValue.js +1 -1
- package/serialization/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/serialization/types/TestCaseCustomLabelsValue.js +1 -1
- package/serialization/types/TestRecordCreate.d.ts +2 -14
- package/serialization/types/TestRecordCreate.js +1 -13
- package/serialization/types/TestSetCreate.d.ts +2 -6
- package/serialization/types/TestSetCreate.js +1 -5
- package/serialization/types/Testrecord.d.ts +8 -3
- package/serialization/types/Testrecord.js +12 -3
- package/serialization/types/TestrecordCustomInputsValue.d.ts +1 -1
- package/serialization/types/TestrecordCustomInputsValue.js +1 -1
- package/serialization/types/TestrecordCustomLabelsValue.d.ts +1 -1
- package/serialization/types/TestrecordCustomLabelsValue.js +1 -1
- package/serialization/types/TestrecordCustomOutputsValue.d.ts +1 -1
- package/serialization/types/TestrecordCustomOutputsValue.js +1 -1
- package/serialization/types/TestrecordModelDebugInfoValue.d.ts +10 -0
- package/serialization/types/TestrecordModelDebugInfoValue.js +35 -0
- package/serialization/types/TestrecordModelParamsValue.d.ts +10 -0
- package/{dist/serialization/types/LibDtoTypesTestRecordCreate.js → serialization/types/TestrecordModelParamsValue.js} +6 -2
- package/serialization/types/Testset.d.ts +1 -1
- package/serialization/types/Testset.js +1 -1
- package/serialization/types/index.d.ts +10 -7
- package/serialization/types/index.js +10 -7
- package/api/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +0 -4
- package/api/types/CustomSchemaOutput.d.ts +0 -11
- package/api/types/LibDtoTypesTestRecordCreate.d.ts +0 -4
- package/api/types/LibDtoTypesTestSetCreate.d.ts +0 -4
- package/dist/api/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +0 -4
- package/dist/api/types/CustomSchemaOutput.d.ts +0 -11
- package/dist/api/types/LibDtoTypesCreateRunParams.d.ts +0 -4
- package/dist/api/types/LibDtoTypesTestRecordCreate.d.ts +0 -4
- package/dist/serialization/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +0 -10
- package/dist/serialization/types/CustomSchemaOutput.d.ts +0 -12
- package/dist/serialization/types/LibDtoTypesCreateRunParams.d.ts +0 -10
- package/dist/serialization/types/LibDtoTypesTestRecordCreate.d.ts +0 -10
- package/dist/serialization/types/LibDtoTypesTestSetCreate.d.ts +0 -10
- package/serialization/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +0 -10
- package/serialization/types/BodyStartGithubWorkflowStartGithubWorkflowPost.js +0 -31
- package/serialization/types/CustomSchemaOutput.d.ts +0 -12
- package/serialization/types/LibDtoTypesCreateRunParams.d.ts +0 -10
- package/serialization/types/LibDtoTypesTestRecordCreate.d.ts +0 -10
- package/serialization/types/LibDtoTypesTestRecordCreate.js +0 -31
- package/serialization/types/LibDtoTypesTestSetCreate.d.ts +0 -10
- /package/api/{types/BodyStartGithubWorkflowStartGithubWorkflowPost.js → resources/score/client/requests/ScoreCreateParams.js} +0 -0
- /package/api/{types/CustomSchemaInput.js → resources/score/client/requests/ScoreUpdateParams.js} +0 -0
- /package/api/{types/CustomSchemaOutput.js → resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.js} +0 -0
- /package/api/{types/LibDtoTypesCreateRunParams.js → resources/testrecord/types/TestrecordCreateParamsModelParamsValue.js} +0 -0
- /package/api/types/{LibDtoTypesTestRecordCreate.js → CreateGithubWorkflowParams.js} +0 -0
- /package/api/types/{LibDtoTypesTestSetCreate.js → CustomSchema.js} +0 -0
- /package/api/types/{RunExternal.js → Grade.js} +0 -0
- /package/{dist/api/types/BodyStartGithubWorkflowStartGithubWorkflowPost.js → api/types/JsonObject.js} +0 -0
- /package/{dist/api/types/CustomSchemaInput.js → api/types/JsonObjectInputValue.js} +0 -0
- /package/{dist/api/types/CustomSchemaOutput.js → api/types/JsonObjectOutputValue.js} +0 -0
- /package/{dist/api/types/LibDtoTypesCreateRunParams.js → api/types/Run.js} +0 -0
- /package/{dist/api/types/LibDtoTypesTestRecordCreate.js → api/types/TestrecordModelDebugInfoValue.js} +0 -0
- /package/{dist/api/types/LibDtoTypesTestSetCreate.js → api/types/TestrecordModelParamsValue.js} +0 -0
- /package/dist/api/{types/RunExternal.js → resources/score/client/requests/ScoreCreateParams.js} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const CreateGithubWorkflowParams: core.serialization.Schema<serializers.CreateGithubWorkflowParams.Raw, Scorecard.CreateGithubWorkflowParams>;
|
|
8
|
+
export declare namespace CreateGithubWorkflowParams {
|
|
9
|
+
type Raw = unknown;
|
|
10
|
+
}
|
|
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.CreateGithubWorkflowParams = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.CreateGithubWorkflowParams = core.serialization.unknown();
|
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Scorecard from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const CreateRunParams: core.serialization.
|
|
7
|
+
export declare const CreateRunParams: core.serialization.Schema<serializers.CreateRunParams.Raw, Scorecard.CreateRunParams>;
|
|
8
8
|
export declare namespace CreateRunParams {
|
|
9
|
-
|
|
10
|
-
testset_id: number;
|
|
11
|
-
scoring_config_id: number;
|
|
12
|
-
status?: string | null;
|
|
13
|
-
model_params?: Record<string, unknown> | null;
|
|
14
|
-
}
|
|
9
|
+
type Raw = unknown;
|
|
15
10
|
}
|
|
@@ -28,9 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CreateRunParams = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.CreateRunParams = core.serialization.
|
|
32
|
-
testsetId: core.serialization.property("testset_id", core.serialization.number()),
|
|
33
|
-
scoringConfigId: core.serialization.property("scoring_config_id", core.serialization.number()),
|
|
34
|
-
status: core.serialization.string().optional(),
|
|
35
|
-
modelParams: core.serialization.property("model_params", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
36
|
-
});
|
|
31
|
+
exports.CreateRunParams = core.serialization.unknown();
|
package/{dist/serialization/types/CustomSchemaInput.d.ts → serialization/types/CustomSchema.d.ts}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Scorecard from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const CustomSchema: core.serialization.ObjectSchema<serializers.CustomSchema.Raw, Scorecard.CustomSchema>;
|
|
8
|
+
export declare namespace CustomSchema {
|
|
9
9
|
interface Raw {
|
|
10
10
|
variables?: serializers.CustomVariable.Raw[] | null;
|
|
11
11
|
}
|
package/{dist/serialization/types/CustomSchemaInput.js → serialization/types/CustomSchema.js}
RENAMED
|
@@ -35,9 +35,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
38
|
+
exports.CustomSchema = void 0;
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
|
-
exports.
|
|
40
|
+
exports.CustomSchema = core.serialization.object({
|
|
41
41
|
variables: core.serialization
|
|
42
42
|
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).CustomVariable; })))
|
|
43
43
|
.optional(),
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const Grade: core.serialization.ObjectSchema<serializers.Grade.Raw, Scorecard.Grade>;
|
|
8
|
+
export declare namespace Grade {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id?: number | null;
|
|
11
|
+
run_id?: number | null;
|
|
12
|
+
testcase_id?: number | null;
|
|
13
|
+
testrecord_id?: number | null;
|
|
14
|
+
metric_id?: number | null;
|
|
15
|
+
user_id?: string | null;
|
|
16
|
+
binary_score?: boolean | null;
|
|
17
|
+
int_score?: number | null;
|
|
18
|
+
reasoning?: string | null;
|
|
19
|
+
human_eval?: boolean | null;
|
|
20
|
+
status?: serializers.ScoreStatus.Raw | null;
|
|
21
|
+
error_message?: string | null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.Grade = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.Grade = core.serialization.object({
|
|
41
|
+
id: core.serialization.number().optional(),
|
|
42
|
+
runId: core.serialization.property("run_id", core.serialization.number().optional()),
|
|
43
|
+
testcaseId: core.serialization.property("testcase_id", core.serialization.number().optional()),
|
|
44
|
+
testrecordId: core.serialization.property("testrecord_id", core.serialization.number().optional()),
|
|
45
|
+
metricId: core.serialization.property("metric_id", core.serialization.number().optional()),
|
|
46
|
+
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
47
|
+
binaryScore: core.serialization.property("binary_score", core.serialization.boolean().optional()),
|
|
48
|
+
intScore: core.serialization.property("int_score", core.serialization.number().optional()),
|
|
49
|
+
reasoning: core.serialization.string().optional(),
|
|
50
|
+
humanEval: core.serialization.property("human_eval", core.serialization.boolean().optional()),
|
|
51
|
+
status: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ScoreStatus; })).optional(),
|
|
52
|
+
errorMessage: core.serialization.property("error_message", core.serialization.string().optional()),
|
|
53
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const JsonObject: core.serialization.ObjectSchema<serializers.JsonObject.Raw, Scorecard.JsonObject>;
|
|
8
|
+
export declare namespace JsonObject {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: serializers.JsonObjectOutputValue.Raw | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -35,10 +35,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
38
|
+
exports.JsonObject = void 0;
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
|
-
exports.
|
|
41
|
-
|
|
42
|
-
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).CustomVariable; })))
|
|
43
|
-
.optional(),
|
|
40
|
+
exports.JsonObject = core.serialization.object({
|
|
41
|
+
value: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObjectOutputValue; })).optional(),
|
|
44
42
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const JsonObjectInputValue: core.serialization.Schema<serializers.JsonObjectInputValue.Raw, Scorecard.JsonObjectInputValue>;
|
|
8
|
+
export declare namespace JsonObjectInputValue {
|
|
9
|
+
type Raw = Record<string, serializers.JsonObject.Raw> | serializers.JsonObject.Raw[] | string | number | number | boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.JsonObjectInputValue = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.JsonObjectInputValue = core.serialization.undiscriminatedUnion([
|
|
41
|
+
core.serialization.record(core.serialization.string(), core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; }))),
|
|
42
|
+
core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; }))),
|
|
43
|
+
core.serialization.string(),
|
|
44
|
+
core.serialization.number(),
|
|
45
|
+
core.serialization.number(),
|
|
46
|
+
core.serialization.boolean(),
|
|
47
|
+
]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const JsonObjectOutputValue: core.serialization.Schema<serializers.JsonObjectOutputValue.Raw, Scorecard.JsonObjectOutputValue>;
|
|
8
|
+
export declare namespace JsonObjectOutputValue {
|
|
9
|
+
type Raw = Record<string, serializers.JsonObject.Raw> | serializers.JsonObject.Raw[] | string | number | number | boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.JsonObjectOutputValue = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.JsonObjectOutputValue = core.serialization.undiscriminatedUnion([
|
|
41
|
+
core.serialization.record(core.serialization.string(), core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; }))),
|
|
42
|
+
core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; }))),
|
|
43
|
+
core.serialization.string(),
|
|
44
|
+
core.serialization.number(),
|
|
45
|
+
core.serialization.number(),
|
|
46
|
+
core.serialization.boolean(),
|
|
47
|
+
]);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Scorecard from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const Run: core.serialization.ObjectSchema<serializers.Run.Raw, Scorecard.Run>;
|
|
8
|
+
export declare namespace Run {
|
|
9
9
|
interface Raw {
|
|
10
10
|
id?: number | null;
|
|
11
11
|
created_at?: string | null;
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.Run = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.Run = core.serialization.object({
|
|
32
32
|
id: core.serialization.number().optional(),
|
|
33
33
|
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
34
34
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const RunStatus: core.serialization.Schema<serializers.RunStatus.Raw, Scorecard.RunStatus>;
|
|
8
8
|
export declare namespace RunStatus {
|
|
9
|
-
type Raw = "pending" | "awaiting_execution" | "running_execution" | "awaiting_scoring" | "running_scoring" | "completed";
|
|
9
|
+
type Raw = "pending" | "awaiting_execution" | "running_execution" | "awaiting_scoring" | "running_scoring" | "awaiting_human_scoring" | "completed";
|
|
10
10
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ScoreStatus: core.serialization.Schema<serializers.ScoreStatus.Raw, Scorecard.ScoreStatus>;
|
|
8
|
+
export declare namespace ScoreStatus {
|
|
9
|
+
type Raw = "pending" | "error" | "completed";
|
|
10
|
+
}
|
|
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ScoreStatus = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.ScoreStatus = core.serialization.enum_(["pending", "error", "completed"]);
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TestCaseCustomInputsValue: core.serialization.Schema<serializers.TestCaseCustomInputsValue.Raw, Scorecard.TestCaseCustomInputsValue>;
|
|
8
8
|
export declare namespace TestCaseCustomInputsValue {
|
|
9
|
-
type Raw = string | serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.TestCaseCustomInputsValue = core.serialization.undiscriminatedUnion([
|
|
41
41
|
core.serialization.string(),
|
|
42
42
|
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FileUrl; })),
|
|
43
|
-
core.serialization.
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; })),
|
|
44
44
|
]);
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TestCaseCustomLabelsValue: core.serialization.Schema<serializers.TestCaseCustomLabelsValue.Raw, Scorecard.TestCaseCustomLabelsValue>;
|
|
8
8
|
export declare namespace TestCaseCustomLabelsValue {
|
|
9
|
-
type Raw = string | serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.TestCaseCustomLabelsValue = core.serialization.undiscriminatedUnion([
|
|
41
41
|
core.serialization.string(),
|
|
42
42
|
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FileUrl; })),
|
|
43
|
-
core.serialization.
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; })),
|
|
44
44
|
]);
|
|
@@ -4,19 +4,7 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Scorecard from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const TestRecordCreate: core.serialization.
|
|
7
|
+
export declare const TestRecordCreate: core.serialization.Schema<serializers.TestRecordCreate.Raw, Scorecard.TestRecordCreate>;
|
|
8
8
|
export declare namespace TestRecordCreate {
|
|
9
|
-
|
|
10
|
-
run_id: number;
|
|
11
|
-
testcase_id: number;
|
|
12
|
-
model_response: string;
|
|
13
|
-
user_query?: string | null;
|
|
14
|
-
context?: string | null;
|
|
15
|
-
prompt?: string | null;
|
|
16
|
-
ideal?: string | null;
|
|
17
|
-
debug_output?: string | null;
|
|
18
|
-
model_params?: Record<string, unknown> | null;
|
|
19
|
-
testset_id?: number | null;
|
|
20
|
-
status?: string | null;
|
|
21
|
-
}
|
|
9
|
+
type Raw = unknown;
|
|
22
10
|
}
|
|
@@ -28,16 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.TestRecordCreate = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.TestRecordCreate = core.serialization.
|
|
32
|
-
runId: core.serialization.property("run_id", core.serialization.number()),
|
|
33
|
-
testcaseId: core.serialization.property("testcase_id", core.serialization.number()),
|
|
34
|
-
modelResponse: core.serialization.property("model_response", core.serialization.string()),
|
|
35
|
-
userQuery: core.serialization.property("user_query", core.serialization.string().optional()),
|
|
36
|
-
context: core.serialization.string().optional(),
|
|
37
|
-
prompt: core.serialization.string().optional(),
|
|
38
|
-
ideal: core.serialization.string().optional(),
|
|
39
|
-
debugOutput: core.serialization.property("debug_output", core.serialization.string().optional()),
|
|
40
|
-
modelParams: core.serialization.property("model_params", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
41
|
-
testsetId: core.serialization.property("testset_id", core.serialization.number().optional()),
|
|
42
|
-
status: core.serialization.string().optional(),
|
|
43
|
-
});
|
|
31
|
+
exports.TestRecordCreate = core.serialization.unknown();
|
|
@@ -4,11 +4,7 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Scorecard from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const TestSetCreate: core.serialization.
|
|
7
|
+
export declare const TestSetCreate: core.serialization.Schema<serializers.TestSetCreate.Raw, Scorecard.TestSetCreate>;
|
|
8
8
|
export declare namespace TestSetCreate {
|
|
9
|
-
|
|
10
|
-
name: string;
|
|
11
|
-
description?: string | null;
|
|
12
|
-
using_retrieval: boolean;
|
|
13
|
-
}
|
|
9
|
+
type Raw = unknown;
|
|
14
10
|
}
|
|
@@ -28,8 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.TestSetCreate = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.TestSetCreate = core.serialization.
|
|
32
|
-
name: core.serialization.string(),
|
|
33
|
-
description: core.serialization.string().optional(),
|
|
34
|
-
usingRetrieval: core.serialization.property("using_retrieval", core.serialization.boolean()),
|
|
35
|
-
});
|
|
31
|
+
exports.TestSetCreate = core.serialization.unknown();
|
|
@@ -9,9 +9,10 @@ export declare namespace Testrecord {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
id?: number | null;
|
|
11
11
|
created_at?: string | null;
|
|
12
|
-
run_id
|
|
13
|
-
testset_id
|
|
14
|
-
|
|
12
|
+
run_id?: number | null;
|
|
13
|
+
testset_id?: number | null;
|
|
14
|
+
testcase_id?: number | null;
|
|
15
|
+
user_query?: string | null;
|
|
15
16
|
context?: string | null;
|
|
16
17
|
model_response?: string | null;
|
|
17
18
|
ideal?: string | null;
|
|
@@ -19,5 +20,9 @@ export declare namespace Testrecord {
|
|
|
19
20
|
custom_inputs?: Record<string, serializers.TestrecordCustomInputsValue.Raw | null | undefined> | null;
|
|
20
21
|
custom_labels?: Record<string, serializers.TestrecordCustomLabelsValue.Raw | null | undefined> | null;
|
|
21
22
|
custom_outputs?: Record<string, serializers.TestrecordCustomOutputsValue.Raw | null | undefined> | null;
|
|
23
|
+
status?: string | null;
|
|
24
|
+
prompt?: string | null;
|
|
25
|
+
model_params?: Record<string, serializers.TestrecordModelParamsValue.Raw | null | undefined> | null;
|
|
26
|
+
model_debug_info?: Record<string, serializers.TestrecordModelDebugInfoValue.Raw | null | undefined> | null;
|
|
22
27
|
}
|
|
23
28
|
}
|
|
@@ -40,9 +40,10 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.Testrecord = core.serialization.object({
|
|
41
41
|
id: core.serialization.number().optional(),
|
|
42
42
|
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
43
|
-
runId: core.serialization.property("run_id", core.serialization.number()),
|
|
44
|
-
testsetId: core.serialization.property("testset_id", core.serialization.number()),
|
|
45
|
-
|
|
43
|
+
runId: core.serialization.property("run_id", core.serialization.number().optional()),
|
|
44
|
+
testsetId: core.serialization.property("testset_id", core.serialization.number().optional()),
|
|
45
|
+
testcaseId: core.serialization.property("testcase_id", core.serialization.number().optional()),
|
|
46
|
+
userQuery: core.serialization.property("user_query", core.serialization.string().optional()),
|
|
46
47
|
context: core.serialization.string().optional(),
|
|
47
48
|
modelResponse: core.serialization.property("model_response", core.serialization.string().optional()),
|
|
48
49
|
ideal: core.serialization.string().optional(),
|
|
@@ -56,4 +57,12 @@ exports.Testrecord = core.serialization.object({
|
|
|
56
57
|
customOutputs: core.serialization.property("custom_outputs", core.serialization
|
|
57
58
|
.record(core.serialization.string(), core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestrecordCustomOutputsValue; })).optional())
|
|
58
59
|
.optional()),
|
|
60
|
+
status: core.serialization.string().optional(),
|
|
61
|
+
prompt: core.serialization.string().optional(),
|
|
62
|
+
modelParams: core.serialization.property("model_params", core.serialization
|
|
63
|
+
.record(core.serialization.string(), core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestrecordModelParamsValue; })).optional())
|
|
64
|
+
.optional()),
|
|
65
|
+
modelDebugInfo: core.serialization.property("model_debug_info", core.serialization
|
|
66
|
+
.record(core.serialization.string(), core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).TestrecordModelDebugInfoValue; })).optional())
|
|
67
|
+
.optional()),
|
|
59
68
|
});
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TestrecordCustomInputsValue: core.serialization.Schema<serializers.TestrecordCustomInputsValue.Raw, Scorecard.TestrecordCustomInputsValue>;
|
|
8
8
|
export declare namespace TestrecordCustomInputsValue {
|
|
9
|
-
type Raw = string | serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.TestrecordCustomInputsValue = core.serialization.undiscriminatedUnion([
|
|
41
41
|
core.serialization.string(),
|
|
42
42
|
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FileUrl; })),
|
|
43
|
-
core.serialization.
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; })),
|
|
44
44
|
]);
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TestrecordCustomLabelsValue: core.serialization.Schema<serializers.TestrecordCustomLabelsValue.Raw, Scorecard.TestrecordCustomLabelsValue>;
|
|
8
8
|
export declare namespace TestrecordCustomLabelsValue {
|
|
9
|
-
type Raw = string | serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.TestrecordCustomLabelsValue = core.serialization.undiscriminatedUnion([
|
|
41
41
|
core.serialization.string(),
|
|
42
42
|
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FileUrl; })),
|
|
43
|
-
core.serialization.
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; })),
|
|
44
44
|
]);
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TestrecordCustomOutputsValue: core.serialization.Schema<serializers.TestrecordCustomOutputsValue.Raw, Scorecard.TestrecordCustomOutputsValue>;
|
|
8
8
|
export declare namespace TestrecordCustomOutputsValue {
|
|
9
|
-
type Raw = string | serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.TestrecordCustomOutputsValue = core.serialization.undiscriminatedUnion([
|
|
41
41
|
core.serialization.string(),
|
|
42
42
|
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FileUrl; })),
|
|
43
|
-
core.serialization.
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; })),
|
|
44
44
|
]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TestrecordModelDebugInfoValue: core.serialization.Schema<serializers.TestrecordModelDebugInfoValue.Raw, Scorecard.TestrecordModelDebugInfoValue>;
|
|
8
|
+
export declare namespace TestrecordModelDebugInfoValue {
|
|
9
|
+
type Raw = number | number | string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.TestrecordModelDebugInfoValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.TestrecordModelDebugInfoValue = core.serialization.undiscriminatedUnion([
|
|
32
|
+
core.serialization.number(),
|
|
33
|
+
core.serialization.number(),
|
|
34
|
+
core.serialization.string(),
|
|
35
|
+
]);
|