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
|
@@ -49,5 +49,5 @@ exports.Testset = core.serialization.object({
|
|
|
49
49
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
50
50
|
isArchived: core.serialization.property("is_archived", core.serialization.boolean().optional()),
|
|
51
51
|
projectId: core.serialization.property("project_id", core.serialization.number().optional()),
|
|
52
|
-
customSchema: core.serialization.property("custom_schema", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).
|
|
52
|
+
customSchema: core.serialization.property("custom_schema", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).CustomSchema; })).optional()),
|
|
53
53
|
});
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
export * from "./CreateRunParams";
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./CustomSchemaOutput";
|
|
2
|
+
export * from "./CustomSchema";
|
|
4
3
|
export * from "./CustomVariable";
|
|
5
4
|
export * from "./DataTypeEnum";
|
|
6
5
|
export * from "./FileUrl";
|
|
6
|
+
export * from "./Grade";
|
|
7
7
|
export * from "./HttpValidationError";
|
|
8
|
+
export * from "./JsonObjectInputValue";
|
|
9
|
+
export * from "./JsonObject";
|
|
10
|
+
export * from "./JsonObjectOutputValue";
|
|
8
11
|
export * from "./NotFoundErrorBody";
|
|
9
12
|
export * from "./PaginatedTestcaseResponse";
|
|
10
13
|
export * from "./RoleEnum";
|
|
11
|
-
export * from "./
|
|
14
|
+
export * from "./Run";
|
|
12
15
|
export * from "./RunStatus";
|
|
16
|
+
export * from "./ScoreStatus";
|
|
13
17
|
export * from "./TestCaseCustomInputsValue";
|
|
14
18
|
export * from "./TestCaseCustomLabelsValue";
|
|
15
19
|
export * from "./TestCase";
|
|
@@ -19,13 +23,15 @@ export * from "./TestSetCreate";
|
|
|
19
23
|
export * from "./TestrecordCustomInputsValue";
|
|
20
24
|
export * from "./TestrecordCustomLabelsValue";
|
|
21
25
|
export * from "./TestrecordCustomOutputsValue";
|
|
26
|
+
export * from "./TestrecordModelParamsValue";
|
|
27
|
+
export * from "./TestrecordModelDebugInfoValue";
|
|
22
28
|
export * from "./Testrecord";
|
|
23
29
|
export * from "./Testset";
|
|
24
30
|
export * from "./UnauthenticatedError";
|
|
25
31
|
export * from "./UnauthorizedErrorBody";
|
|
26
32
|
export * from "./ValidationErrorLocItem";
|
|
27
33
|
export * from "./ValidationError";
|
|
28
|
-
export * from "./
|
|
34
|
+
export * from "./CreateGithubWorkflowParams";
|
|
29
35
|
export * from "./ExecutionParams";
|
|
30
36
|
export * from "./ModelParams";
|
|
31
37
|
export * from "./ScoreExecutionParams";
|
|
@@ -34,6 +40,3 @@ export * from "./TestCaseCreateInput";
|
|
|
34
40
|
export * from "./AppCreateRunParams";
|
|
35
41
|
export * from "./AppTestRecordCreate";
|
|
36
42
|
export * from "./AppTestSetCreate";
|
|
37
|
-
export * from "./LibDtoTypesCreateRunParams";
|
|
38
|
-
export * from "./LibDtoTypesTestRecordCreate";
|
|
39
|
-
export * from "./LibDtoTypesTestSetCreate";
|
|
@@ -15,17 +15,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CreateRunParams"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./CustomSchemaOutput"), exports);
|
|
18
|
+
__exportStar(require("./CustomSchema"), exports);
|
|
20
19
|
__exportStar(require("./CustomVariable"), exports);
|
|
21
20
|
__exportStar(require("./DataTypeEnum"), exports);
|
|
22
21
|
__exportStar(require("./FileUrl"), exports);
|
|
22
|
+
__exportStar(require("./Grade"), exports);
|
|
23
23
|
__exportStar(require("./HttpValidationError"), exports);
|
|
24
|
+
__exportStar(require("./JsonObjectInputValue"), exports);
|
|
25
|
+
__exportStar(require("./JsonObject"), exports);
|
|
26
|
+
__exportStar(require("./JsonObjectOutputValue"), exports);
|
|
24
27
|
__exportStar(require("./NotFoundErrorBody"), exports);
|
|
25
28
|
__exportStar(require("./PaginatedTestcaseResponse"), exports);
|
|
26
29
|
__exportStar(require("./RoleEnum"), exports);
|
|
27
|
-
__exportStar(require("./
|
|
30
|
+
__exportStar(require("./Run"), exports);
|
|
28
31
|
__exportStar(require("./RunStatus"), exports);
|
|
32
|
+
__exportStar(require("./ScoreStatus"), exports);
|
|
29
33
|
__exportStar(require("./TestCaseCustomInputsValue"), exports);
|
|
30
34
|
__exportStar(require("./TestCaseCustomLabelsValue"), exports);
|
|
31
35
|
__exportStar(require("./TestCase"), exports);
|
|
@@ -35,13 +39,15 @@ __exportStar(require("./TestSetCreate"), exports);
|
|
|
35
39
|
__exportStar(require("./TestrecordCustomInputsValue"), exports);
|
|
36
40
|
__exportStar(require("./TestrecordCustomLabelsValue"), exports);
|
|
37
41
|
__exportStar(require("./TestrecordCustomOutputsValue"), exports);
|
|
42
|
+
__exportStar(require("./TestrecordModelParamsValue"), exports);
|
|
43
|
+
__exportStar(require("./TestrecordModelDebugInfoValue"), exports);
|
|
38
44
|
__exportStar(require("./Testrecord"), exports);
|
|
39
45
|
__exportStar(require("./Testset"), exports);
|
|
40
46
|
__exportStar(require("./UnauthenticatedError"), exports);
|
|
41
47
|
__exportStar(require("./UnauthorizedErrorBody"), exports);
|
|
42
48
|
__exportStar(require("./ValidationErrorLocItem"), exports);
|
|
43
49
|
__exportStar(require("./ValidationError"), exports);
|
|
44
|
-
__exportStar(require("./
|
|
50
|
+
__exportStar(require("./CreateGithubWorkflowParams"), exports);
|
|
45
51
|
__exportStar(require("./ExecutionParams"), exports);
|
|
46
52
|
__exportStar(require("./ModelParams"), exports);
|
|
47
53
|
__exportStar(require("./ScoreExecutionParams"), exports);
|
|
@@ -50,6 +56,3 @@ __exportStar(require("./TestCaseCreateInput"), exports);
|
|
|
50
56
|
__exportStar(require("./AppCreateRunParams"), exports);
|
|
51
57
|
__exportStar(require("./AppTestRecordCreate"), exports);
|
|
52
58
|
__exportStar(require("./AppTestSetCreate"), exports);
|
|
53
|
-
__exportStar(require("./LibDtoTypesCreateRunParams"), exports);
|
|
54
|
-
__exportStar(require("./LibDtoTypesTestRecordCreate"), exports);
|
|
55
|
-
__exportStar(require("./LibDtoTypesTestSetCreate"), exports);
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.run = exports.testset = exports.testrecord = exports.testcase = void 0;
|
|
29
|
+
exports.score = exports.run = exports.testset = exports.testrecord = exports.testcase = void 0;
|
|
30
30
|
exports.testcase = __importStar(require("./testcase"));
|
|
31
31
|
__exportStar(require("./testcase/types"), exports);
|
|
32
32
|
exports.testrecord = __importStar(require("./testrecord"));
|
|
@@ -37,3 +37,5 @@ __exportStar(require("./testcase/client/requests"), exports);
|
|
|
37
37
|
__exportStar(require("./testrecord/client/requests"), exports);
|
|
38
38
|
exports.run = __importStar(require("./run"));
|
|
39
39
|
__exportStar(require("./run/client/requests"), exports);
|
|
40
|
+
exports.score = __importStar(require("./score"));
|
|
41
|
+
__exportStar(require("./score/client/requests"), exports);
|
|
@@ -7,9 +7,12 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
export declare const RunCreateParams: core.serialization.Schema<serializers.RunCreateParams.Raw, Scorecard.RunCreateParams>;
|
|
8
8
|
export declare namespace RunCreateParams {
|
|
9
9
|
interface Raw {
|
|
10
|
-
testset_id
|
|
10
|
+
testset_id?: number | null;
|
|
11
11
|
scoring_config_id?: number | null;
|
|
12
12
|
status?: string | null;
|
|
13
13
|
model_params?: Record<string, unknown> | null;
|
|
14
|
+
source?: string | null;
|
|
15
|
+
notes?: string | null;
|
|
16
|
+
prompt_template?: string | null;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
@@ -29,8 +29,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.RunCreateParams = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
31
|
exports.RunCreateParams = core.serialization.object({
|
|
32
|
-
testsetId: core.serialization.property("testset_id", core.serialization.number()),
|
|
32
|
+
testsetId: core.serialization.property("testset_id", core.serialization.number().optional()),
|
|
33
33
|
scoringConfigId: core.serialization.property("scoring_config_id", core.serialization.number().optional()),
|
|
34
34
|
status: core.serialization.string().optional(),
|
|
35
35
|
modelParams: core.serialization.property("model_params", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
36
|
+
source: core.serialization.string().optional(),
|
|
37
|
+
notes: core.serialization.string().optional(),
|
|
38
|
+
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
36
39
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
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 ScoreCreateParams: core.serialization.Schema<serializers.ScoreCreateParams.Raw, Scorecard.ScoreCreateParams>;
|
|
8
|
+
export declare namespace ScoreCreateParams {
|
|
9
|
+
interface Raw {
|
|
10
|
+
metric_id: number;
|
|
11
|
+
int_score?: number | null;
|
|
12
|
+
binary_score?: boolean | null;
|
|
13
|
+
reasoning?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.ScoreCreateParams = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
exports.ScoreCreateParams = core.serialization.object({
|
|
32
|
+
metricId: core.serialization.property("metric_id", core.serialization.number()),
|
|
33
|
+
intScore: core.serialization.property("int_score", core.serialization.number().optional()),
|
|
34
|
+
binaryScore: core.serialization.property("binary_score", core.serialization.boolean().optional()),
|
|
35
|
+
reasoning: core.serialization.string().optional(),
|
|
36
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 ScoreUpdateParams: core.serialization.Schema<serializers.ScoreUpdateParams.Raw, Scorecard.ScoreUpdateParams>;
|
|
8
|
+
export declare namespace ScoreUpdateParams {
|
|
9
|
+
interface Raw {
|
|
10
|
+
int_score?: number | null;
|
|
11
|
+
binary_score?: boolean | null;
|
|
12
|
+
reasoning?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -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.ScoreUpdateParams = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
exports.ScoreUpdateParams = core.serialization.object({
|
|
32
|
+
intScore: core.serialization.property("int_score", core.serialization.number().optional()),
|
|
33
|
+
binaryScore: core.serialization.property("binary_score", core.serialization.boolean().optional()),
|
|
34
|
+
reasoning: core.serialization.string().optional(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScoreUpdateParams = exports.ScoreCreateParams = void 0;
|
|
4
|
+
var ScoreCreateParams_1 = require("./ScoreCreateParams");
|
|
5
|
+
Object.defineProperty(exports, "ScoreCreateParams", { enumerable: true, get: function () { return ScoreCreateParams_1.ScoreCreateParams; } });
|
|
6
|
+
var ScoreUpdateParams_1 = require("./ScoreUpdateParams");
|
|
7
|
+
Object.defineProperty(exports, "ScoreUpdateParams", { enumerable: true, get: function () { return ScoreUpdateParams_1.ScoreUpdateParams; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../../../api";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TestcaseCreateParamsCustomInputsValue: core.serialization.Schema<serializers.TestcaseCreateParamsCustomInputsValue.Raw, Scorecard.TestcaseCreateParamsCustomInputsValue>;
|
|
8
8
|
export declare namespace TestcaseCreateParamsCustomInputsValue {
|
|
9
|
-
type Raw = serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestcaseCreateParamsCustomInputsValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../core"));
|
|
40
40
|
exports.TestcaseCreateParamsCustomInputsValue = core.serialization.undiscriminatedUnion([
|
|
41
|
-
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
42
41
|
core.serialization.string(),
|
|
42
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).JsonObject; })),
|
|
43
44
|
]);
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../../../api";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TestcaseCreateParamsCustomLabelsValue: core.serialization.Schema<serializers.TestcaseCreateParamsCustomLabelsValue.Raw, Scorecard.TestcaseCreateParamsCustomLabelsValue>;
|
|
8
8
|
export declare namespace TestcaseCreateParamsCustomLabelsValue {
|
|
9
|
-
type Raw = serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestcaseCreateParamsCustomLabelsValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../core"));
|
|
40
40
|
exports.TestcaseCreateParamsCustomLabelsValue = core.serialization.undiscriminatedUnion([
|
|
41
|
-
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
42
41
|
core.serialization.string(),
|
|
42
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).JsonObject; })),
|
|
43
44
|
]);
|
|
@@ -7,14 +7,17 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
export declare const TestrecordCreateParams: core.serialization.Schema<serializers.TestrecordCreateParams.Raw, Scorecard.TestrecordCreateParams>;
|
|
8
8
|
export declare namespace TestrecordCreateParams {
|
|
9
9
|
interface Raw {
|
|
10
|
-
testset_id
|
|
11
|
-
testcase_id
|
|
12
|
-
user_query
|
|
10
|
+
testset_id?: number | null;
|
|
11
|
+
testcase_id?: number | null;
|
|
12
|
+
user_query?: string | null;
|
|
13
13
|
context?: string | null;
|
|
14
14
|
response?: string | null;
|
|
15
15
|
ideal?: string | null;
|
|
16
16
|
custom_inputs?: Record<string, serializers.TestrecordCreateParamsCustomInputsValue.Raw | null | undefined> | null;
|
|
17
17
|
custom_outputs?: Record<string, serializers.TestrecordCreateParamsCustomOutputsValue.Raw | null | undefined> | null;
|
|
18
18
|
custom_labels?: Record<string, serializers.TestrecordCreateParamsCustomLabelsValue.Raw | null | undefined> | null;
|
|
19
|
+
prompt?: string | null;
|
|
20
|
+
model_params?: Record<string, serializers.TestrecordCreateParamsModelParamsValue.Raw | null | undefined> | null;
|
|
21
|
+
model_debug_info?: Record<string, serializers.TestrecordCreateParamsModelDebugInfoValue.Raw | null | undefined> | null;
|
|
19
22
|
}
|
|
20
23
|
}
|
|
@@ -38,9 +38,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestrecordCreateParams = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../../core"));
|
|
40
40
|
exports.TestrecordCreateParams = core.serialization.object({
|
|
41
|
-
testsetId: core.serialization.property("testset_id", core.serialization.number()),
|
|
42
|
-
testcaseId: core.serialization.property("testcase_id", core.serialization.number()),
|
|
43
|
-
userQuery: core.serialization.property("user_query", core.serialization.string()),
|
|
41
|
+
testsetId: core.serialization.property("testset_id", core.serialization.number().optional()),
|
|
42
|
+
testcaseId: core.serialization.property("testcase_id", core.serialization.number().optional()),
|
|
43
|
+
userQuery: core.serialization.property("user_query", core.serialization.string().optional()),
|
|
44
44
|
context: core.serialization.string().optional(),
|
|
45
45
|
response: core.serialization.string().optional(),
|
|
46
46
|
ideal: core.serialization.string().optional(),
|
|
@@ -59,4 +59,15 @@ exports.TestrecordCreateParams = core.serialization.object({
|
|
|
59
59
|
.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).TestrecordCreateParamsCustomLabelsValue; }))
|
|
60
60
|
.optional())
|
|
61
61
|
.optional()),
|
|
62
|
+
prompt: core.serialization.string().optional(),
|
|
63
|
+
modelParams: core.serialization.property("model_params", core.serialization
|
|
64
|
+
.record(core.serialization.string(), core.serialization
|
|
65
|
+
.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).TestrecordCreateParamsModelParamsValue; }))
|
|
66
|
+
.optional())
|
|
67
|
+
.optional()),
|
|
68
|
+
modelDebugInfo: core.serialization.property("model_debug_info", core.serialization
|
|
69
|
+
.record(core.serialization.string(), core.serialization
|
|
70
|
+
.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).TestrecordCreateParamsModelDebugInfoValue; }))
|
|
71
|
+
.optional())
|
|
72
|
+
.optional()),
|
|
62
73
|
});
|
package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../../../api";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TestrecordCreateParamsCustomInputsValue: core.serialization.Schema<serializers.TestrecordCreateParamsCustomInputsValue.Raw, Scorecard.TestrecordCreateParamsCustomInputsValue>;
|
|
8
8
|
export declare namespace TestrecordCreateParamsCustomInputsValue {
|
|
9
|
-
type Raw = serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestrecordCreateParamsCustomInputsValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../core"));
|
|
40
40
|
exports.TestrecordCreateParamsCustomInputsValue = core.serialization.undiscriminatedUnion([
|
|
41
|
-
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
42
41
|
core.serialization.string(),
|
|
42
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).JsonObject; })),
|
|
43
44
|
]);
|
package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../../../api";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TestrecordCreateParamsCustomLabelsValue: core.serialization.Schema<serializers.TestrecordCreateParamsCustomLabelsValue.Raw, Scorecard.TestrecordCreateParamsCustomLabelsValue>;
|
|
8
8
|
export declare namespace TestrecordCreateParamsCustomLabelsValue {
|
|
9
|
-
type Raw = serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestrecordCreateParamsCustomLabelsValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../core"));
|
|
40
40
|
exports.TestrecordCreateParamsCustomLabelsValue = core.serialization.undiscriminatedUnion([
|
|
41
|
-
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
42
41
|
core.serialization.string(),
|
|
42
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).JsonObject; })),
|
|
43
44
|
]);
|
package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../../../api";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TestrecordCreateParamsCustomOutputsValue: core.serialization.Schema<serializers.TestrecordCreateParamsCustomOutputsValue.Raw, Scorecard.TestrecordCreateParamsCustomOutputsValue>;
|
|
8
8
|
export declare namespace TestrecordCreateParamsCustomOutputsValue {
|
|
9
|
-
type Raw = serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js
CHANGED
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestrecordCreateParamsCustomOutputsValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../core"));
|
|
40
40
|
exports.TestrecordCreateParamsCustomOutputsValue = core.serialization.undiscriminatedUnion([
|
|
41
|
-
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
42
41
|
core.serialization.string(),
|
|
42
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).JsonObject; })),
|
|
43
44
|
]);
|
package/serialization/resources/testrecord/types/TestrecordCreateParamsModelDebugInfoValue.d.ts
ADDED
|
@@ -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 TestrecordCreateParamsModelDebugInfoValue: core.serialization.Schema<serializers.TestrecordCreateParamsModelDebugInfoValue.Raw, Scorecard.TestrecordCreateParamsModelDebugInfoValue>;
|
|
8
|
+
export declare namespace TestrecordCreateParamsModelDebugInfoValue {
|
|
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.TestrecordCreateParamsModelDebugInfoValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.TestrecordCreateParamsModelDebugInfoValue = core.serialization.undiscriminatedUnion([
|
|
32
|
+
core.serialization.number(),
|
|
33
|
+
core.serialization.number(),
|
|
34
|
+
core.serialization.string(),
|
|
35
|
+
]);
|
|
@@ -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 TestrecordCreateParamsModelParamsValue: core.serialization.Schema<serializers.TestrecordCreateParamsModelParamsValue.Raw, Scorecard.TestrecordCreateParamsModelParamsValue>;
|
|
8
|
+
export declare namespace TestrecordCreateParamsModelParamsValue {
|
|
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.TestrecordCreateParamsModelParamsValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.TestrecordCreateParamsModelParamsValue = core.serialization.undiscriminatedUnion([
|
|
32
|
+
core.serialization.number(),
|
|
33
|
+
core.serialization.number(),
|
|
34
|
+
core.serialization.string(),
|
|
35
|
+
]);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export * from "./TestrecordCreateParamsCustomInputsValue";
|
|
2
2
|
export * from "./TestrecordCreateParamsCustomOutputsValue";
|
|
3
3
|
export * from "./TestrecordCreateParamsCustomLabelsValue";
|
|
4
|
+
export * from "./TestrecordCreateParamsModelParamsValue";
|
|
5
|
+
export * from "./TestrecordCreateParamsModelDebugInfoValue";
|
|
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./TestrecordCreateParamsCustomInputsValue"), exports);
|
|
18
18
|
__exportStar(require("./TestrecordCreateParamsCustomOutputsValue"), exports);
|
|
19
19
|
__exportStar(require("./TestrecordCreateParamsCustomLabelsValue"), exports);
|
|
20
|
+
__exportStar(require("./TestrecordCreateParamsModelParamsValue"), exports);
|
|
21
|
+
__exportStar(require("./TestrecordCreateParamsModelDebugInfoValue"), exports);
|
|
@@ -9,7 +9,7 @@ export declare namespace TestsetCreateParams {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
name: string;
|
|
11
11
|
description?: string | null;
|
|
12
|
-
using_retrieval
|
|
13
|
-
custom_schema?: serializers.
|
|
12
|
+
using_retrieval?: boolean | null;
|
|
13
|
+
custom_schema?: serializers.CustomSchema.Raw | null;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -40,6 +40,6 @@ const core = __importStar(require("../../../../../core"));
|
|
|
40
40
|
exports.TestsetCreateParams = core.serialization.object({
|
|
41
41
|
name: core.serialization.string(),
|
|
42
42
|
description: core.serialization.string().optional(),
|
|
43
|
-
usingRetrieval: core.serialization.property("using_retrieval", core.serialization.boolean()),
|
|
44
|
-
customSchema: core.serialization.property("custom_schema", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).
|
|
43
|
+
usingRetrieval: core.serialization.property("using_retrieval", core.serialization.boolean().optional()),
|
|
44
|
+
customSchema: core.serialization.property("custom_schema", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).CustomSchema; })).optional()),
|
|
45
45
|
});
|