openlayer 0.3.0 → 0.4.1
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.
- checksums.yaml +4 -4
- data/.ignore +2 -0
- data/CHANGELOG.md +36 -0
- data/README.md +280 -39
- data/SECURITY.md +27 -0
- data/lib/openlayer/client.rb +64 -59
- data/lib/openlayer/errors.rb +228 -0
- data/lib/openlayer/file_part.rb +58 -0
- data/lib/openlayer/internal/transport/base_client.rb +567 -0
- data/lib/openlayer/internal/transport/pooled_net_requester.rb +198 -0
- data/lib/openlayer/internal/type/array_of.rb +168 -0
- data/lib/openlayer/internal/type/base_model.rb +531 -0
- data/lib/openlayer/internal/type/base_page.rb +55 -0
- data/lib/openlayer/internal/type/boolean.rb +77 -0
- data/lib/openlayer/internal/type/converter.rb +327 -0
- data/lib/openlayer/internal/type/enum.rb +131 -0
- data/lib/openlayer/internal/type/file_input.rb +111 -0
- data/lib/openlayer/internal/type/hash_of.rb +188 -0
- data/lib/openlayer/internal/type/request_parameters.rb +42 -0
- data/lib/openlayer/internal/type/union.rb +237 -0
- data/lib/openlayer/internal/type/unknown.rb +81 -0
- data/lib/openlayer/internal/util.rb +914 -0
- data/lib/openlayer/internal.rb +20 -0
- data/lib/openlayer/models/commit_retrieve_params.rb +14 -0
- data/lib/openlayer/models/commit_retrieve_response.rb +275 -0
- data/lib/openlayer/models/commits/test_result_list_params.rb +91 -0
- data/lib/openlayer/models/commits/test_result_list_response.rb +566 -0
- data/lib/openlayer/models/inference_pipeline_delete_params.rb +14 -0
- data/lib/openlayer/models/inference_pipeline_retrieve_params.rb +33 -0
- data/lib/openlayer/models/inference_pipeline_retrieve_response.rb +605 -0
- data/lib/openlayer/models/inference_pipeline_update_params.rb +42 -0
- data/lib/openlayer/models/inference_pipeline_update_response.rb +605 -0
- data/lib/openlayer/models/inference_pipelines/data_stream_params.rb +463 -0
- data/lib/openlayer/models/inference_pipelines/data_stream_response.rb +28 -0
- data/lib/openlayer/models/inference_pipelines/row_update_params.rb +90 -0
- data/lib/openlayer/models/inference_pipelines/row_update_response.rb +28 -0
- data/lib/openlayer/models/inference_pipelines/test_result_list_params.rb +83 -0
- data/lib/openlayer/models/inference_pipelines/test_result_list_response.rb +568 -0
- data/lib/openlayer/models/project_create_params.rb +51 -0
- data/lib/openlayer/models/project_create_response.rb +262 -0
- data/lib/openlayer/models/project_list_params.rb +59 -0
- data/lib/openlayer/models/project_list_response.rb +274 -0
- data/lib/openlayer/models/projects/commit_create_params.rb +61 -0
- data/lib/openlayer/models/projects/commit_create_response.rb +277 -0
- data/lib/openlayer/models/projects/commit_list_params.rb +32 -0
- data/lib/openlayer/models/projects/commit_list_response.rb +288 -0
- data/lib/openlayer/models/projects/inference_pipeline_create_params.rb +229 -0
- data/lib/openlayer/models/projects/inference_pipeline_create_response.rb +612 -0
- data/lib/openlayer/models/projects/inference_pipeline_list_params.rb +40 -0
- data/lib/openlayer/models/projects/inference_pipeline_list_response.rb +623 -0
- data/lib/openlayer/models/projects/test_create_params.rb +367 -0
- data/lib/openlayer/models/projects/test_create_response.rb +438 -0
- data/lib/openlayer/models/projects/test_list_params.rb +91 -0
- data/lib/openlayer/models/projects/test_list_response.rb +452 -0
- data/lib/openlayer/models/projects/test_update_params.rb +262 -0
- data/lib/openlayer/models/projects/test_update_response.rb +24 -0
- data/lib/openlayer/models/storage/presigned_url_create_params.rb +24 -0
- data/lib/openlayer/models/storage/presigned_url_create_response.rb +35 -0
- data/lib/openlayer/models.rb +61 -0
- data/lib/openlayer/request_options.rb +77 -0
- data/lib/openlayer/resources/commits/test_results.rb +51 -0
- data/lib/openlayer/resources/commits.rb +38 -0
- data/lib/openlayer/resources/inference_pipelines/data.rb +46 -0
- data/lib/openlayer/resources/inference_pipelines/rows.rb +46 -0
- data/lib/openlayer/resources/inference_pipelines/test_results.rb +49 -0
- data/lib/openlayer/resources/inference_pipelines.rb +101 -0
- data/lib/openlayer/resources/projects/commits.rb +72 -0
- data/lib/openlayer/resources/projects/inference_pipelines.rb +74 -0
- data/lib/openlayer/resources/projects/tests.rb +135 -0
- data/lib/openlayer/resources/projects.rb +80 -0
- data/lib/openlayer/resources/storage/presigned_url.rb +38 -0
- data/lib/openlayer/resources/storage.rb +18 -0
- data/lib/openlayer/version.rb +1 -1
- data/lib/openlayer.rb +96 -12
- data/manifest.yaml +15 -0
- data/rbi/openlayer/client.rbi +58 -0
- data/rbi/openlayer/errors.rbi +205 -0
- data/rbi/openlayer/file_part.rbi +37 -0
- data/rbi/openlayer/internal/transport/base_client.rbi +293 -0
- data/rbi/openlayer/internal/transport/pooled_net_requester.rbi +79 -0
- data/rbi/openlayer/internal/type/array_of.rbi +104 -0
- data/rbi/openlayer/internal/type/base_model.rbi +304 -0
- data/rbi/openlayer/internal/type/base_page.rbi +42 -0
- data/rbi/openlayer/internal/type/boolean.rbi +58 -0
- data/rbi/openlayer/internal/type/converter.rbi +216 -0
- data/rbi/openlayer/internal/type/enum.rbi +82 -0
- data/rbi/openlayer/internal/type/file_input.rbi +59 -0
- data/rbi/openlayer/internal/type/hash_of.rbi +104 -0
- data/rbi/openlayer/internal/type/request_parameters.rbi +29 -0
- data/rbi/openlayer/internal/type/union.rbi +128 -0
- data/rbi/openlayer/internal/type/unknown.rbi +58 -0
- data/rbi/openlayer/internal/util.rbi +487 -0
- data/rbi/openlayer/internal.rbi +18 -0
- data/rbi/openlayer/models/commit_retrieve_params.rbi +27 -0
- data/rbi/openlayer/models/commit_retrieve_response.rbi +393 -0
- data/rbi/openlayer/models/commits/test_result_list_params.rbi +214 -0
- data/rbi/openlayer/models/commits/test_result_list_response.rbi +1256 -0
- data/rbi/openlayer/models/inference_pipeline_delete_params.rbi +30 -0
- data/rbi/openlayer/models/inference_pipeline_retrieve_params.rbi +101 -0
- data/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi +1022 -0
- data/rbi/openlayer/models/inference_pipeline_update_params.rbi +67 -0
- data/rbi/openlayer/models/inference_pipeline_update_response.rbi +1018 -0
- data/rbi/openlayer/models/inference_pipelines/data_stream_params.rbi +750 -0
- data/rbi/openlayer/models/inference_pipelines/data_stream_response.rbi +73 -0
- data/rbi/openlayer/models/inference_pipelines/row_update_params.rbi +153 -0
- data/rbi/openlayer/models/inference_pipelines/row_update_response.rbi +73 -0
- data/rbi/openlayer/models/inference_pipelines/test_result_list_params.rbi +216 -0
- data/rbi/openlayer/models/inference_pipelines/test_result_list_response.rbi +1258 -0
- data/rbi/openlayer/models/project_create_params.rbi +99 -0
- data/rbi/openlayer/models/project_create_response.rbi +401 -0
- data/rbi/openlayer/models/project_list_params.rbi +121 -0
- data/rbi/openlayer/models/project_list_response.rbi +442 -0
- data/rbi/openlayer/models/projects/commit_create_params.rbi +125 -0
- data/rbi/openlayer/models/projects/commit_create_response.rbi +409 -0
- data/rbi/openlayer/models/projects/commit_list_params.rbi +62 -0
- data/rbi/openlayer/models/projects/commit_list_response.rbi +454 -0
- data/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi +560 -0
- data/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi +1027 -0
- data/rbi/openlayer/models/projects/inference_pipeline_list_params.rbi +73 -0
- data/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi +1070 -0
- data/rbi/openlayer/models/projects/test_create_params.rbi +940 -0
- data/rbi/openlayer/models/projects/test_create_response.rbi +1026 -0
- data/rbi/openlayer/models/projects/test_list_params.rbi +165 -0
- data/rbi/openlayer/models/projects/test_list_response.rbi +1067 -0
- data/rbi/openlayer/models/projects/test_update_params.rbi +699 -0
- data/rbi/openlayer/models/projects/test_update_response.rbi +43 -0
- data/rbi/openlayer/models/storage/presigned_url_create_params.rbi +45 -0
- data/rbi/openlayer/models/storage/presigned_url_create_response.rbi +55 -0
- data/rbi/openlayer/models.rbi +26 -0
- data/rbi/openlayer/request_options.rbi +59 -0
- data/rbi/openlayer/resources/commits/test_results.rbi +45 -0
- data/rbi/openlayer/resources/commits.rbi +29 -0
- data/rbi/openlayer/resources/inference_pipelines/data.rbi +41 -0
- data/rbi/openlayer/resources/inference_pipelines/rows.rbi +40 -0
- data/rbi/openlayer/resources/inference_pipelines/test_results.rbi +46 -0
- data/rbi/openlayer/resources/inference_pipelines.rbi +79 -0
- data/rbi/openlayer/resources/projects/commits.rbi +60 -0
- data/rbi/openlayer/resources/projects/inference_pipelines.rbi +69 -0
- data/rbi/openlayer/resources/projects/tests.rbi +123 -0
- data/rbi/openlayer/resources/projects.rbi +64 -0
- data/rbi/openlayer/resources/storage/presigned_url.rbi +28 -0
- data/rbi/openlayer/resources/storage.rbi +15 -0
- data/rbi/openlayer/version.rbi +5 -0
- data/sig/openlayer/client.rbs +32 -0
- data/sig/openlayer/errors.rbs +117 -0
- data/sig/openlayer/file_part.rbs +21 -0
- data/sig/openlayer/internal/transport/base_client.rbs +131 -0
- data/sig/openlayer/internal/transport/pooled_net_requester.rbs +45 -0
- data/sig/openlayer/internal/type/array_of.rbs +48 -0
- data/sig/openlayer/internal/type/base_model.rbs +102 -0
- data/sig/openlayer/internal/type/base_page.rbs +24 -0
- data/sig/openlayer/internal/type/boolean.rbs +26 -0
- data/sig/openlayer/internal/type/converter.rbs +79 -0
- data/sig/openlayer/internal/type/enum.rbs +32 -0
- data/sig/openlayer/internal/type/file_input.rbs +25 -0
- data/sig/openlayer/internal/type/hash_of.rbs +48 -0
- data/sig/openlayer/internal/type/request_parameters.rbs +19 -0
- data/sig/openlayer/internal/type/union.rbs +52 -0
- data/sig/openlayer/internal/type/unknown.rbs +26 -0
- data/sig/openlayer/internal/util.rbs +185 -0
- data/sig/openlayer/internal.rbs +9 -0
- data/sig/openlayer/models/commit_retrieve_params.rbs +15 -0
- data/sig/openlayer/models/commit_retrieve_response.rbs +209 -0
- data/sig/openlayer/models/commits/test_result_list_params.rbs +91 -0
- data/sig/openlayer/models/commits/test_result_list_response.rbs +529 -0
- data/sig/openlayer/models/inference_pipeline_delete_params.rbs +15 -0
- data/sig/openlayer/models/inference_pipeline_retrieve_params.rbs +41 -0
- data/sig/openlayer/models/inference_pipeline_retrieve_response.rbs +493 -0
- data/sig/openlayer/models/inference_pipeline_update_params.rbs +34 -0
- data/sig/openlayer/models/inference_pipeline_update_response.rbs +493 -0
- data/sig/openlayer/models/inference_pipelines/data_stream_params.rbs +386 -0
- data/sig/openlayer/models/inference_pipelines/data_stream_response.rbs +32 -0
- data/sig/openlayer/models/inference_pipelines/row_update_params.rbs +75 -0
- data/sig/openlayer/models/inference_pipelines/row_update_response.rbs +32 -0
- data/sig/openlayer/models/inference_pipelines/test_result_list_params.rbs +84 -0
- data/sig/openlayer/models/inference_pipelines/test_result_list_response.rbs +529 -0
- data/sig/openlayer/models/project_create_params.rbs +53 -0
- data/sig/openlayer/models/project_create_response.rbs +210 -0
- data/sig/openlayer/models/project_list_params.rbs +68 -0
- data/sig/openlayer/models/project_list_response.rbs +225 -0
- data/sig/openlayer/models/projects/commit_create_params.rbs +82 -0
- data/sig/openlayer/models/projects/commit_create_response.rbs +211 -0
- data/sig/openlayer/models/projects/commit_list_params.rbs +34 -0
- data/sig/openlayer/models/projects/commit_list_response.rbs +228 -0
- data/sig/openlayer/models/projects/inference_pipeline_create_params.rbs +308 -0
- data/sig/openlayer/models/projects/inference_pipeline_create_response.rbs +495 -0
- data/sig/openlayer/models/projects/inference_pipeline_list_params.rbs +40 -0
- data/sig/openlayer/models/projects/inference_pipeline_list_response.rbs +512 -0
- data/sig/openlayer/models/projects/test_create_params.rbs +388 -0
- data/sig/openlayer/models/projects/test_create_response.rbs +427 -0
- data/sig/openlayer/models/projects/test_list_params.rbs +85 -0
- data/sig/openlayer/models/projects/test_list_response.rbs +442 -0
- data/sig/openlayer/models/projects/test_update_params.rbs +275 -0
- data/sig/openlayer/models/projects/test_update_response.rbs +25 -0
- data/sig/openlayer/models/storage/presigned_url_create_params.rbs +25 -0
- data/sig/openlayer/models/storage/presigned_url_create_response.rbs +22 -0
- data/sig/openlayer/models.rbs +21 -0
- data/sig/openlayer/request_options.rbs +34 -0
- data/sig/openlayer/resources/commits/test_results.rbs +19 -0
- data/sig/openlayer/resources/commits.rbs +14 -0
- data/sig/openlayer/resources/inference_pipelines/data.rbs +16 -0
- data/sig/openlayer/resources/inference_pipelines/rows.rbs +17 -0
- data/sig/openlayer/resources/inference_pipelines/test_results.rbs +18 -0
- data/sig/openlayer/resources/inference_pipelines.rbs +32 -0
- data/sig/openlayer/resources/projects/commits.rbs +25 -0
- data/sig/openlayer/resources/projects/inference_pipelines.rbs +26 -0
- data/sig/openlayer/resources/projects/tests.rbs +45 -0
- data/sig/openlayer/resources/projects.rbs +28 -0
- data/sig/openlayer/resources/storage/presigned_url.rbs +14 -0
- data/sig/openlayer/resources/storage.rbs +9 -0
- data/sig/openlayer/version.rbs +3 -0
- metadata +223 -91
- data/.env +0 -0
- data/.rspec +0 -3
- data/.rubocop.yml +0 -13
- data/LICENSE +0 -21
- data/Rakefile +0 -12
- data/examples/staging/.DS_Store +0 -0
- data/examples/staging/commit.yaml +0 -2
- data/examples/staging/model/model_config.yaml +0 -12
- data/examples/staging/validation/dataset_config.yaml +0 -12
- data/lib/openlayer/error.rb +0 -5
- data/lib/openlayer/inference_pipeline.rb +0 -36
- data/lib/openlayer/object.rb +0 -28
- data/lib/openlayer/objects/project.rb +0 -185
- data/lib/openlayer/objects/project_version.rb +0 -89
- data/lib/openlayer/services/s3_presigned_client.rb +0 -47
- data/lib/openlayer/services/tar_file_helper.rb +0 -55
- data/openlayer.gemspec +0 -45
- data/sig/openlayer.rbs +0 -4
| @@ -0,0 +1,388 @@ | |
| 1 | 
            +
            module Openlayer
         | 
| 2 | 
            +
              module Models
         | 
| 3 | 
            +
                module Projects
         | 
| 4 | 
            +
                  type test_create_params =
         | 
| 5 | 
            +
                    {
         | 
| 6 | 
            +
                      description: top?,
         | 
| 7 | 
            +
                      name: String,
         | 
| 8 | 
            +
                      subtype: Openlayer::Models::Projects::TestCreateParams::subtype,
         | 
| 9 | 
            +
                      thresholds: ::Array[Openlayer::Projects::TestCreateParams::Threshold],
         | 
| 10 | 
            +
                      type: Openlayer::Models::Projects::TestCreateParams::type_,
         | 
| 11 | 
            +
                      archived: bool,
         | 
| 12 | 
            +
                      delay_window: Float?,
         | 
| 13 | 
            +
                      evaluation_window: Float?,
         | 
| 14 | 
            +
                      uses_ml_model: bool,
         | 
| 15 | 
            +
                      uses_production_data: bool,
         | 
| 16 | 
            +
                      uses_reference_dataset: bool,
         | 
| 17 | 
            +
                      uses_training_dataset: bool,
         | 
| 18 | 
            +
                      uses_validation_dataset: bool
         | 
| 19 | 
            +
                    }
         | 
| 20 | 
            +
                    & Openlayer::Internal::Type::request_parameters
         | 
| 21 | 
            +
             | 
| 22 | 
            +
                  class TestCreateParams < Openlayer::Internal::Type::BaseModel
         | 
| 23 | 
            +
                    extend Openlayer::Internal::Type::RequestParameters::Converter
         | 
| 24 | 
            +
                    include Openlayer::Internal::Type::RequestParameters
         | 
| 25 | 
            +
             | 
| 26 | 
            +
                    attr_accessor description: top?
         | 
| 27 | 
            +
             | 
| 28 | 
            +
                    attr_accessor name: String
         | 
| 29 | 
            +
             | 
| 30 | 
            +
                    attr_accessor subtype: Openlayer::Models::Projects::TestCreateParams::subtype
         | 
| 31 | 
            +
             | 
| 32 | 
            +
                    attr_accessor thresholds: ::Array[Openlayer::Projects::TestCreateParams::Threshold]
         | 
| 33 | 
            +
             | 
| 34 | 
            +
                    attr_accessor type: Openlayer::Models::Projects::TestCreateParams::type_
         | 
| 35 | 
            +
             | 
| 36 | 
            +
                    attr_reader archived: bool?
         | 
| 37 | 
            +
             | 
| 38 | 
            +
                    def archived=: (bool) -> bool
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                    attr_accessor delay_window: Float?
         | 
| 41 | 
            +
             | 
| 42 | 
            +
                    attr_accessor evaluation_window: Float?
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                    attr_reader uses_ml_model: bool?
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                    def uses_ml_model=: (bool) -> bool
         | 
| 47 | 
            +
             | 
| 48 | 
            +
                    attr_reader uses_production_data: bool?
         | 
| 49 | 
            +
             | 
| 50 | 
            +
                    def uses_production_data=: (bool) -> bool
         | 
| 51 | 
            +
             | 
| 52 | 
            +
                    attr_reader uses_reference_dataset: bool?
         | 
| 53 | 
            +
             | 
| 54 | 
            +
                    def uses_reference_dataset=: (bool) -> bool
         | 
| 55 | 
            +
             | 
| 56 | 
            +
                    attr_reader uses_training_dataset: bool?
         | 
| 57 | 
            +
             | 
| 58 | 
            +
                    def uses_training_dataset=: (bool) -> bool
         | 
| 59 | 
            +
             | 
| 60 | 
            +
                    attr_reader uses_validation_dataset: bool?
         | 
| 61 | 
            +
             | 
| 62 | 
            +
                    def uses_validation_dataset=: (bool) -> bool
         | 
| 63 | 
            +
             | 
| 64 | 
            +
                    def initialize: (
         | 
| 65 | 
            +
                      description: top?,
         | 
| 66 | 
            +
                      name: String,
         | 
| 67 | 
            +
                      subtype: Openlayer::Models::Projects::TestCreateParams::subtype,
         | 
| 68 | 
            +
                      thresholds: ::Array[Openlayer::Projects::TestCreateParams::Threshold],
         | 
| 69 | 
            +
                      type: Openlayer::Models::Projects::TestCreateParams::type_,
         | 
| 70 | 
            +
                      ?archived: bool,
         | 
| 71 | 
            +
                      ?delay_window: Float?,
         | 
| 72 | 
            +
                      ?evaluation_window: Float?,
         | 
| 73 | 
            +
                      ?uses_ml_model: bool,
         | 
| 74 | 
            +
                      ?uses_production_data: bool,
         | 
| 75 | 
            +
                      ?uses_reference_dataset: bool,
         | 
| 76 | 
            +
                      ?uses_training_dataset: bool,
         | 
| 77 | 
            +
                      ?uses_validation_dataset: bool,
         | 
| 78 | 
            +
                      ?request_options: Openlayer::request_opts
         | 
| 79 | 
            +
                    ) -> void
         | 
| 80 | 
            +
             | 
| 81 | 
            +
                    def to_hash: -> {
         | 
| 82 | 
            +
                      description: top?,
         | 
| 83 | 
            +
                      name: String,
         | 
| 84 | 
            +
                      subtype: Openlayer::Models::Projects::TestCreateParams::subtype,
         | 
| 85 | 
            +
                      thresholds: ::Array[Openlayer::Projects::TestCreateParams::Threshold],
         | 
| 86 | 
            +
                      type: Openlayer::Models::Projects::TestCreateParams::type_,
         | 
| 87 | 
            +
                      archived: bool,
         | 
| 88 | 
            +
                      delay_window: Float?,
         | 
| 89 | 
            +
                      evaluation_window: Float?,
         | 
| 90 | 
            +
                      uses_ml_model: bool,
         | 
| 91 | 
            +
                      uses_production_data: bool,
         | 
| 92 | 
            +
                      uses_reference_dataset: bool,
         | 
| 93 | 
            +
                      uses_training_dataset: bool,
         | 
| 94 | 
            +
                      uses_validation_dataset: bool,
         | 
| 95 | 
            +
                      request_options: Openlayer::RequestOptions
         | 
| 96 | 
            +
                    }
         | 
| 97 | 
            +
             | 
| 98 | 
            +
                    type subtype =
         | 
| 99 | 
            +
                      :anomalousColumnCount
         | 
| 100 | 
            +
                      | :characterLength
         | 
| 101 | 
            +
                      | :classImbalanceRatio
         | 
| 102 | 
            +
                      | :expectColumnAToBeInColumnB
         | 
| 103 | 
            +
                      | :columnAverage
         | 
| 104 | 
            +
                      | :columnDrift
         | 
| 105 | 
            +
                      | :columnStatistic
         | 
| 106 | 
            +
                      | :columnValuesMatch
         | 
| 107 | 
            +
                      | :conflictingLabelRowCount
         | 
| 108 | 
            +
                      | :containsPii
         | 
| 109 | 
            +
                      | :containsValidUrl
         | 
| 110 | 
            +
                      | :correlatedFeatureCount
         | 
| 111 | 
            +
                      | :customMetricThreshold
         | 
| 112 | 
            +
                      | :duplicateRowCount
         | 
| 113 | 
            +
                      | :emptyFeature
         | 
| 114 | 
            +
                      | :emptyFeatureCount
         | 
| 115 | 
            +
                      | :driftedFeatureCount
         | 
| 116 | 
            +
                      | :featureMissingValues
         | 
| 117 | 
            +
                      | :featureValueValidation
         | 
| 118 | 
            +
                      | :greatExpectations
         | 
| 119 | 
            +
                      | :groupByColumnStatsCheck
         | 
| 120 | 
            +
                      | :illFormedRowCount
         | 
| 121 | 
            +
                      | :isCode
         | 
| 122 | 
            +
                      | :isJson
         | 
| 123 | 
            +
                      | :llmRubricThresholdV2
         | 
| 124 | 
            +
                      | :labelDrift
         | 
| 125 | 
            +
                      | :metricThreshold
         | 
| 126 | 
            +
                      | :newCategoryCount
         | 
| 127 | 
            +
                      | :newLabelCount
         | 
| 128 | 
            +
                      | :nullRowCount
         | 
| 129 | 
            +
                      | :rowCount
         | 
| 130 | 
            +
                      | :ppScoreValueValidation
         | 
| 131 | 
            +
                      | :quasiConstantFeature
         | 
| 132 | 
            +
                      | :quasiConstantFeatureCount
         | 
| 133 | 
            +
                      | :sqlQuery
         | 
| 134 | 
            +
                      | :dtypeValidation
         | 
| 135 | 
            +
                      | :sentenceLength
         | 
| 136 | 
            +
                      | :sizeRatio
         | 
| 137 | 
            +
                      | :specialCharactersRatio
         | 
| 138 | 
            +
                      | :stringValidation
         | 
| 139 | 
            +
                      | :trainValLeakageRowCount
         | 
| 140 | 
            +
             | 
| 141 | 
            +
                    module Subtype
         | 
| 142 | 
            +
                      extend Openlayer::Internal::Type::Enum
         | 
| 143 | 
            +
             | 
| 144 | 
            +
                      ANOMALOUS_COLUMN_COUNT: :anomalousColumnCount
         | 
| 145 | 
            +
                      CHARACTER_LENGTH: :characterLength
         | 
| 146 | 
            +
                      CLASS_IMBALANCE_RATIO: :classImbalanceRatio
         | 
| 147 | 
            +
                      EXPECT_COLUMN_A_TO_BE_IN_COLUMN_B: :expectColumnAToBeInColumnB
         | 
| 148 | 
            +
                      COLUMN_AVERAGE: :columnAverage
         | 
| 149 | 
            +
                      COLUMN_DRIFT: :columnDrift
         | 
| 150 | 
            +
                      COLUMN_STATISTIC: :columnStatistic
         | 
| 151 | 
            +
                      COLUMN_VALUES_MATCH: :columnValuesMatch
         | 
| 152 | 
            +
                      CONFLICTING_LABEL_ROW_COUNT: :conflictingLabelRowCount
         | 
| 153 | 
            +
                      CONTAINS_PII: :containsPii
         | 
| 154 | 
            +
                      CONTAINS_VALID_URL: :containsValidUrl
         | 
| 155 | 
            +
                      CORRELATED_FEATURE_COUNT: :correlatedFeatureCount
         | 
| 156 | 
            +
                      CUSTOM_METRIC_THRESHOLD: :customMetricThreshold
         | 
| 157 | 
            +
                      DUPLICATE_ROW_COUNT: :duplicateRowCount
         | 
| 158 | 
            +
                      EMPTY_FEATURE: :emptyFeature
         | 
| 159 | 
            +
                      EMPTY_FEATURE_COUNT: :emptyFeatureCount
         | 
| 160 | 
            +
                      DRIFTED_FEATURE_COUNT: :driftedFeatureCount
         | 
| 161 | 
            +
                      FEATURE_MISSING_VALUES: :featureMissingValues
         | 
| 162 | 
            +
                      FEATURE_VALUE_VALIDATION: :featureValueValidation
         | 
| 163 | 
            +
                      GREAT_EXPECTATIONS: :greatExpectations
         | 
| 164 | 
            +
                      GROUP_BY_COLUMN_STATS_CHECK: :groupByColumnStatsCheck
         | 
| 165 | 
            +
                      ILL_FORMED_ROW_COUNT: :illFormedRowCount
         | 
| 166 | 
            +
                      IS_CODE: :isCode
         | 
| 167 | 
            +
                      IS_JSON: :isJson
         | 
| 168 | 
            +
                      LLM_RUBRIC_THRESHOLD_V2: :llmRubricThresholdV2
         | 
| 169 | 
            +
                      LABEL_DRIFT: :labelDrift
         | 
| 170 | 
            +
                      METRIC_THRESHOLD: :metricThreshold
         | 
| 171 | 
            +
                      NEW_CATEGORY_COUNT: :newCategoryCount
         | 
| 172 | 
            +
                      NEW_LABEL_COUNT: :newLabelCount
         | 
| 173 | 
            +
                      NULL_ROW_COUNT: :nullRowCount
         | 
| 174 | 
            +
                      ROW_COUNT: :rowCount
         | 
| 175 | 
            +
                      PP_SCORE_VALUE_VALIDATION: :ppScoreValueValidation
         | 
| 176 | 
            +
                      QUASI_CONSTANT_FEATURE: :quasiConstantFeature
         | 
| 177 | 
            +
                      QUASI_CONSTANT_FEATURE_COUNT: :quasiConstantFeatureCount
         | 
| 178 | 
            +
                      SQL_QUERY: :sqlQuery
         | 
| 179 | 
            +
                      DTYPE_VALIDATION: :dtypeValidation
         | 
| 180 | 
            +
                      SENTENCE_LENGTH: :sentenceLength
         | 
| 181 | 
            +
                      SIZE_RATIO: :sizeRatio
         | 
| 182 | 
            +
                      SPECIAL_CHARACTERS_RATIO: :specialCharactersRatio
         | 
| 183 | 
            +
                      STRING_VALIDATION: :stringValidation
         | 
| 184 | 
            +
                      TRAIN_VAL_LEAKAGE_ROW_COUNT: :trainValLeakageRowCount
         | 
| 185 | 
            +
             | 
| 186 | 
            +
                      def self?.values: -> ::Array[Openlayer::Models::Projects::TestCreateParams::subtype]
         | 
| 187 | 
            +
                    end
         | 
| 188 | 
            +
             | 
| 189 | 
            +
                    type threshold =
         | 
| 190 | 
            +
                      {
         | 
| 191 | 
            +
                        insight_name: Openlayer::Models::Projects::TestCreateParams::Threshold::insight_name,
         | 
| 192 | 
            +
                        insight_parameters: ::Array[Openlayer::Projects::TestCreateParams::Threshold::InsightParameter]?,
         | 
| 193 | 
            +
                        measurement: String,
         | 
| 194 | 
            +
                        operator: Openlayer::Models::Projects::TestCreateParams::Threshold::operator,
         | 
| 195 | 
            +
                        threshold_mode: Openlayer::Models::Projects::TestCreateParams::Threshold::threshold_mode,
         | 
| 196 | 
            +
                        value: Openlayer::Models::Projects::TestCreateParams::Threshold::value
         | 
| 197 | 
            +
                      }
         | 
| 198 | 
            +
             | 
| 199 | 
            +
                    class Threshold < Openlayer::Internal::Type::BaseModel
         | 
| 200 | 
            +
                      attr_reader insight_name: Openlayer::Models::Projects::TestCreateParams::Threshold::insight_name?
         | 
| 201 | 
            +
             | 
| 202 | 
            +
                      def insight_name=: (
         | 
| 203 | 
            +
                        Openlayer::Models::Projects::TestCreateParams::Threshold::insight_name
         | 
| 204 | 
            +
                      ) -> Openlayer::Models::Projects::TestCreateParams::Threshold::insight_name
         | 
| 205 | 
            +
             | 
| 206 | 
            +
                      attr_accessor insight_parameters: ::Array[Openlayer::Projects::TestCreateParams::Threshold::InsightParameter]?
         | 
| 207 | 
            +
             | 
| 208 | 
            +
                      attr_reader measurement: String?
         | 
| 209 | 
            +
             | 
| 210 | 
            +
                      def measurement=: (String) -> String
         | 
| 211 | 
            +
             | 
| 212 | 
            +
                      attr_reader operator: Openlayer::Models::Projects::TestCreateParams::Threshold::operator?
         | 
| 213 | 
            +
             | 
| 214 | 
            +
                      def operator=: (
         | 
| 215 | 
            +
                        Openlayer::Models::Projects::TestCreateParams::Threshold::operator
         | 
| 216 | 
            +
                      ) -> Openlayer::Models::Projects::TestCreateParams::Threshold::operator
         | 
| 217 | 
            +
             | 
| 218 | 
            +
                      attr_reader threshold_mode: Openlayer::Models::Projects::TestCreateParams::Threshold::threshold_mode?
         | 
| 219 | 
            +
             | 
| 220 | 
            +
                      def threshold_mode=: (
         | 
| 221 | 
            +
                        Openlayer::Models::Projects::TestCreateParams::Threshold::threshold_mode
         | 
| 222 | 
            +
                      ) -> Openlayer::Models::Projects::TestCreateParams::Threshold::threshold_mode
         | 
| 223 | 
            +
             | 
| 224 | 
            +
                      attr_reader value: Openlayer::Models::Projects::TestCreateParams::Threshold::value?
         | 
| 225 | 
            +
             | 
| 226 | 
            +
                      def value=: (
         | 
| 227 | 
            +
                        Openlayer::Models::Projects::TestCreateParams::Threshold::value
         | 
| 228 | 
            +
                      ) -> Openlayer::Models::Projects::TestCreateParams::Threshold::value
         | 
| 229 | 
            +
             | 
| 230 | 
            +
                      def initialize: (
         | 
| 231 | 
            +
                        ?insight_name: Openlayer::Models::Projects::TestCreateParams::Threshold::insight_name,
         | 
| 232 | 
            +
                        ?insight_parameters: ::Array[Openlayer::Projects::TestCreateParams::Threshold::InsightParameter]?,
         | 
| 233 | 
            +
                        ?measurement: String,
         | 
| 234 | 
            +
                        ?operator: Openlayer::Models::Projects::TestCreateParams::Threshold::operator,
         | 
| 235 | 
            +
                        ?threshold_mode: Openlayer::Models::Projects::TestCreateParams::Threshold::threshold_mode,
         | 
| 236 | 
            +
                        ?value: Openlayer::Models::Projects::TestCreateParams::Threshold::value
         | 
| 237 | 
            +
                      ) -> void
         | 
| 238 | 
            +
             | 
| 239 | 
            +
                      def to_hash: -> {
         | 
| 240 | 
            +
                        insight_name: Openlayer::Models::Projects::TestCreateParams::Threshold::insight_name,
         | 
| 241 | 
            +
                        insight_parameters: ::Array[Openlayer::Projects::TestCreateParams::Threshold::InsightParameter]?,
         | 
| 242 | 
            +
                        measurement: String,
         | 
| 243 | 
            +
                        operator: Openlayer::Models::Projects::TestCreateParams::Threshold::operator,
         | 
| 244 | 
            +
                        threshold_mode: Openlayer::Models::Projects::TestCreateParams::Threshold::threshold_mode,
         | 
| 245 | 
            +
                        value: Openlayer::Models::Projects::TestCreateParams::Threshold::value
         | 
| 246 | 
            +
                      }
         | 
| 247 | 
            +
             | 
| 248 | 
            +
                      type insight_name =
         | 
| 249 | 
            +
                        :characterLength
         | 
| 250 | 
            +
                        | :classImbalance
         | 
| 251 | 
            +
                        | :expectColumnAToBeInColumnB
         | 
| 252 | 
            +
                        | :columnAverage
         | 
| 253 | 
            +
                        | :columnDrift
         | 
| 254 | 
            +
                        | :columnValuesMatch
         | 
| 255 | 
            +
                        | :confidenceDistribution
         | 
| 256 | 
            +
                        | :conflictingLabelRowCount
         | 
| 257 | 
            +
                        | :containsPii
         | 
| 258 | 
            +
                        | :containsValidUrl
         | 
| 259 | 
            +
                        | :correlatedFeatures
         | 
| 260 | 
            +
                        | :customMetric
         | 
| 261 | 
            +
                        | :duplicateRowCount
         | 
| 262 | 
            +
                        | :emptyFeatures
         | 
| 263 | 
            +
                        | :featureDrift
         | 
| 264 | 
            +
                        | :featureProfile
         | 
| 265 | 
            +
                        | :greatExpectations
         | 
| 266 | 
            +
                        | :groupByColumnStatsCheck
         | 
| 267 | 
            +
                        | :illFormedRowCount
         | 
| 268 | 
            +
                        | :isCode
         | 
| 269 | 
            +
                        | :isJson
         | 
| 270 | 
            +
                        | :llmRubricV2
         | 
| 271 | 
            +
                        | :labelDrift
         | 
| 272 | 
            +
                        | :metrics
         | 
| 273 | 
            +
                        | :newCategories
         | 
| 274 | 
            +
                        | :newLabels
         | 
| 275 | 
            +
                        | :nullRowCount
         | 
| 276 | 
            +
                        | :ppScore
         | 
| 277 | 
            +
                        | :quasiConstantFeatures
         | 
| 278 | 
            +
                        | :sentenceLength
         | 
| 279 | 
            +
                        | :sizeRatio
         | 
| 280 | 
            +
                        | :specialCharacters
         | 
| 281 | 
            +
                        | :stringValidation
         | 
| 282 | 
            +
                        | :trainValLeakageRowCount
         | 
| 283 | 
            +
             | 
| 284 | 
            +
                      module InsightName
         | 
| 285 | 
            +
                        extend Openlayer::Internal::Type::Enum
         | 
| 286 | 
            +
             | 
| 287 | 
            +
                        CHARACTER_LENGTH: :characterLength
         | 
| 288 | 
            +
                        CLASS_IMBALANCE: :classImbalance
         | 
| 289 | 
            +
                        EXPECT_COLUMN_A_TO_BE_IN_COLUMN_B: :expectColumnAToBeInColumnB
         | 
| 290 | 
            +
                        COLUMN_AVERAGE: :columnAverage
         | 
| 291 | 
            +
                        COLUMN_DRIFT: :columnDrift
         | 
| 292 | 
            +
                        COLUMN_VALUES_MATCH: :columnValuesMatch
         | 
| 293 | 
            +
                        CONFIDENCE_DISTRIBUTION: :confidenceDistribution
         | 
| 294 | 
            +
                        CONFLICTING_LABEL_ROW_COUNT: :conflictingLabelRowCount
         | 
| 295 | 
            +
                        CONTAINS_PII: :containsPii
         | 
| 296 | 
            +
                        CONTAINS_VALID_URL: :containsValidUrl
         | 
| 297 | 
            +
                        CORRELATED_FEATURES: :correlatedFeatures
         | 
| 298 | 
            +
                        CUSTOM_METRIC: :customMetric
         | 
| 299 | 
            +
                        DUPLICATE_ROW_COUNT: :duplicateRowCount
         | 
| 300 | 
            +
                        EMPTY_FEATURES: :emptyFeatures
         | 
| 301 | 
            +
                        FEATURE_DRIFT: :featureDrift
         | 
| 302 | 
            +
                        FEATURE_PROFILE: :featureProfile
         | 
| 303 | 
            +
                        GREAT_EXPECTATIONS: :greatExpectations
         | 
| 304 | 
            +
                        GROUP_BY_COLUMN_STATS_CHECK: :groupByColumnStatsCheck
         | 
| 305 | 
            +
                        ILL_FORMED_ROW_COUNT: :illFormedRowCount
         | 
| 306 | 
            +
                        IS_CODE: :isCode
         | 
| 307 | 
            +
                        IS_JSON: :isJson
         | 
| 308 | 
            +
                        LLM_RUBRIC_V2: :llmRubricV2
         | 
| 309 | 
            +
                        LABEL_DRIFT: :labelDrift
         | 
| 310 | 
            +
                        METRICS: :metrics
         | 
| 311 | 
            +
                        NEW_CATEGORIES: :newCategories
         | 
| 312 | 
            +
                        NEW_LABELS: :newLabels
         | 
| 313 | 
            +
                        NULL_ROW_COUNT: :nullRowCount
         | 
| 314 | 
            +
                        PP_SCORE: :ppScore
         | 
| 315 | 
            +
                        QUASI_CONSTANT_FEATURES: :quasiConstantFeatures
         | 
| 316 | 
            +
                        SENTENCE_LENGTH: :sentenceLength
         | 
| 317 | 
            +
                        SIZE_RATIO: :sizeRatio
         | 
| 318 | 
            +
                        SPECIAL_CHARACTERS: :specialCharacters
         | 
| 319 | 
            +
                        STRING_VALIDATION: :stringValidation
         | 
| 320 | 
            +
                        TRAIN_VAL_LEAKAGE_ROW_COUNT: :trainValLeakageRowCount
         | 
| 321 | 
            +
             | 
| 322 | 
            +
                        def self?.values: -> ::Array[Openlayer::Models::Projects::TestCreateParams::Threshold::insight_name]
         | 
| 323 | 
            +
                      end
         | 
| 324 | 
            +
             | 
| 325 | 
            +
                      type insight_parameter = { name: String, value: top }
         | 
| 326 | 
            +
             | 
| 327 | 
            +
                      class InsightParameter < Openlayer::Internal::Type::BaseModel
         | 
| 328 | 
            +
                        attr_accessor name: String
         | 
| 329 | 
            +
             | 
| 330 | 
            +
                        attr_accessor value: top
         | 
| 331 | 
            +
             | 
| 332 | 
            +
                        def initialize: (name: String, value: top) -> void
         | 
| 333 | 
            +
             | 
| 334 | 
            +
                        def to_hash: -> { name: String, value: top }
         | 
| 335 | 
            +
                      end
         | 
| 336 | 
            +
             | 
| 337 | 
            +
                      type operator = :is | :> | :>= | :< | :<= | :!=
         | 
| 338 | 
            +
             | 
| 339 | 
            +
                      module Operator
         | 
| 340 | 
            +
                        extend Openlayer::Internal::Type::Enum
         | 
| 341 | 
            +
             | 
| 342 | 
            +
                        IS: :is
         | 
| 343 | 
            +
                        GREATER: :>
         | 
| 344 | 
            +
                        GREATER_OR_EQUALS: :>=
         | 
| 345 | 
            +
                        LESS: :<
         | 
| 346 | 
            +
                        LESS_OR_EQUALS: :<=
         | 
| 347 | 
            +
                        NOT_EQUALS: :!=
         | 
| 348 | 
            +
             | 
| 349 | 
            +
                        def self?.values: -> ::Array[Openlayer::Models::Projects::TestCreateParams::Threshold::operator]
         | 
| 350 | 
            +
                      end
         | 
| 351 | 
            +
             | 
| 352 | 
            +
                      type threshold_mode = :automatic | :manual
         | 
| 353 | 
            +
             | 
| 354 | 
            +
                      module ThresholdMode
         | 
| 355 | 
            +
                        extend Openlayer::Internal::Type::Enum
         | 
| 356 | 
            +
             | 
| 357 | 
            +
                        AUTOMATIC: :automatic
         | 
| 358 | 
            +
                        MANUAL: :manual
         | 
| 359 | 
            +
             | 
| 360 | 
            +
                        def self?.values: -> ::Array[Openlayer::Models::Projects::TestCreateParams::Threshold::threshold_mode]
         | 
| 361 | 
            +
                      end
         | 
| 362 | 
            +
             | 
| 363 | 
            +
                      type value = Float | bool | String | ::Array[String]
         | 
| 364 | 
            +
             | 
| 365 | 
            +
                      module Value
         | 
| 366 | 
            +
                        extend Openlayer::Internal::Type::Union
         | 
| 367 | 
            +
             | 
| 368 | 
            +
                        def self?.variants: -> ::Array[Openlayer::Models::Projects::TestCreateParams::Threshold::value]
         | 
| 369 | 
            +
             | 
| 370 | 
            +
                        StringArray: Openlayer::Internal::Type::Converter
         | 
| 371 | 
            +
                      end
         | 
| 372 | 
            +
                    end
         | 
| 373 | 
            +
             | 
| 374 | 
            +
                    type type_ = :integrity | :consistency | :performance
         | 
| 375 | 
            +
             | 
| 376 | 
            +
                    module Type
         | 
| 377 | 
            +
                      extend Openlayer::Internal::Type::Enum
         | 
| 378 | 
            +
             | 
| 379 | 
            +
                      INTEGRITY: :integrity
         | 
| 380 | 
            +
                      CONSISTENCY: :consistency
         | 
| 381 | 
            +
                      PERFORMANCE: :performance
         | 
| 382 | 
            +
             | 
| 383 | 
            +
                      def self?.values: -> ::Array[Openlayer::Models::Projects::TestCreateParams::type_]
         | 
| 384 | 
            +
                    end
         | 
| 385 | 
            +
                  end
         | 
| 386 | 
            +
                end
         | 
| 387 | 
            +
              end
         | 
| 388 | 
            +
            end
         |