openlayer 0.4.1 → 0.5.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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/openlayer/internal/transport/base_client.rb +7 -1
  5. data/lib/openlayer/internal/transport/pooled_net_requester.rb +36 -26
  6. data/lib/openlayer/internal/util.rb +3 -2
  7. data/lib/openlayer/models/inference_pipeline_retrieve_response.rb +507 -1
  8. data/lib/openlayer/models/inference_pipeline_update_response.rb +507 -1
  9. data/lib/openlayer/models/projects/inference_pipeline_create_params.rb +609 -1
  10. data/lib/openlayer/models/projects/inference_pipeline_create_response.rb +507 -1
  11. data/lib/openlayer/models/projects/inference_pipeline_list_response.rb +507 -1
  12. data/lib/openlayer/models/projects/test_create_params.rb +49 -1
  13. data/lib/openlayer/models/projects/test_create_response.rb +49 -1
  14. data/lib/openlayer/models/projects/test_list_response.rb +49 -1
  15. data/lib/openlayer/resources/projects/inference_pipelines.rb +3 -1
  16. data/lib/openlayer/resources/projects/tests.rb +9 -1
  17. data/lib/openlayer/version.rb +1 -1
  18. data/lib/openlayer.rb +2 -0
  19. data/manifest.yaml +2 -0
  20. data/rbi/openlayer/internal/transport/base_client.rbi +5 -0
  21. data/rbi/openlayer/internal/transport/pooled_net_requester.rbi +6 -2
  22. data/rbi/openlayer/internal/type/base_model.rbi +8 -4
  23. data/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi +948 -0
  24. data/rbi/openlayer/models/inference_pipeline_update_response.rbi +948 -0
  25. data/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi +1095 -0
  26. data/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi +952 -0
  27. data/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi +952 -0
  28. data/rbi/openlayer/models/projects/test_create_params.rbi +40 -0
  29. data/rbi/openlayer/models/projects/test_create_response.rbi +40 -0
  30. data/rbi/openlayer/models/projects/test_list_response.rbi +40 -0
  31. data/rbi/openlayer/resources/projects/inference_pipelines.rbi +12 -0
  32. data/rbi/openlayer/resources/projects/tests.rbi +16 -0
  33. data/sig/openlayer/internal/transport/base_client.rbs +2 -0
  34. data/sig/openlayer/internal/transport/pooled_net_requester.rbs +4 -1
  35. data/sig/openlayer/models/inference_pipeline_retrieve_response.rbs +473 -0
  36. data/sig/openlayer/models/inference_pipeline_update_response.rbs +473 -0
  37. data/sig/openlayer/models/projects/inference_pipeline_create_params.rbs +493 -0
  38. data/sig/openlayer/models/projects/inference_pipeline_create_response.rbs +473 -0
  39. data/sig/openlayer/models/projects/inference_pipeline_list_response.rbs +473 -0
  40. data/sig/openlayer/models/projects/test_create_params.rbs +20 -0
  41. data/sig/openlayer/models/projects/test_create_response.rbs +20 -0
  42. data/sig/openlayer/models/projects/test_list_response.rbs +20 -0
  43. data/sig/openlayer/resources/projects/inference_pipelines.rbs +1 -0
  44. data/sig/openlayer/resources/projects/tests.rbs +4 -0
  45. metadata +2 -2
@@ -45,6 +45,11 @@ module Openlayer
45
45
  sig { params(archived: T::Boolean).void }
46
46
  attr_writer :archived
47
47
 
48
+ # Whether to apply the test to all pipelines (data sources) or to a specific set
49
+ # of pipelines. Only applies to tests that use production data.
50
+ sig { returns(T.nilable(T::Boolean)) }
51
+ attr_accessor :default_to_all_pipelines
52
+
48
53
  # The delay window in seconds. Only applies to tests that use production data.
49
54
  sig { returns(T.nilable(Float)) }
50
55
  attr_accessor :delay_window
@@ -54,6 +59,21 @@ module Openlayer
54
59
  sig { returns(T.nilable(Float)) }
55
60
  attr_accessor :evaluation_window
56
61
 
62
+ # Array of pipelines (data sources) to which the test should not be applied. Only
63
+ # applies to tests that use production data.
64
+ sig { returns(T.nilable(T::Array[String])) }
65
+ attr_accessor :exclude_pipelines
66
+
67
+ # Whether to include historical data in the test result. Only applies to tests
68
+ # that use production data.
69
+ sig { returns(T.nilable(T::Boolean)) }
70
+ attr_accessor :include_historical_data
71
+
72
+ # Array of pipelines (data sources) to which the test should be applied. Only
73
+ # applies to tests that use production data.
74
+ sig { returns(T.nilable(T::Array[String])) }
75
+ attr_accessor :include_pipelines
76
+
57
77
  # Whether the test uses an ML model.
58
78
  sig { returns(T.nilable(T::Boolean)) }
59
79
  attr_reader :uses_ml_model
@@ -100,8 +120,12 @@ module Openlayer
100
120
  ],
101
121
  type: Openlayer::Projects::TestCreateParams::Type::OrSymbol,
102
122
  archived: T::Boolean,
123
+ default_to_all_pipelines: T.nilable(T::Boolean),
103
124
  delay_window: T.nilable(Float),
104
125
  evaluation_window: T.nilable(Float),
126
+ exclude_pipelines: T.nilable(T::Array[String]),
127
+ include_historical_data: T.nilable(T::Boolean),
128
+ include_pipelines: T.nilable(T::Array[String]),
105
129
  uses_ml_model: T::Boolean,
106
130
  uses_production_data: T::Boolean,
107
131
  uses_reference_dataset: T::Boolean,
@@ -122,11 +146,23 @@ module Openlayer
122
146
  type:,
123
147
  # Whether the test is archived.
124
148
  archived: nil,
149
+ # Whether to apply the test to all pipelines (data sources) or to a specific set
150
+ # of pipelines. Only applies to tests that use production data.
151
+ default_to_all_pipelines: nil,
125
152
  # The delay window in seconds. Only applies to tests that use production data.
126
153
  delay_window: nil,
127
154
  # The evaluation window in seconds. Only applies to tests that use production
128
155
  # data.
129
156
  evaluation_window: nil,
157
+ # Array of pipelines (data sources) to which the test should not be applied. Only
158
+ # applies to tests that use production data.
159
+ exclude_pipelines: nil,
160
+ # Whether to include historical data in the test result. Only applies to tests
161
+ # that use production data.
162
+ include_historical_data: nil,
163
+ # Array of pipelines (data sources) to which the test should be applied. Only
164
+ # applies to tests that use production data.
165
+ include_pipelines: nil,
130
166
  # Whether the test uses an ML model.
131
167
  uses_ml_model: nil,
132
168
  # Whether the test uses production data (monitoring mode only).
@@ -151,8 +187,12 @@ module Openlayer
151
187
  T::Array[Openlayer::Projects::TestCreateParams::Threshold],
152
188
  type: Openlayer::Projects::TestCreateParams::Type::OrSymbol,
153
189
  archived: T::Boolean,
190
+ default_to_all_pipelines: T.nilable(T::Boolean),
154
191
  delay_window: T.nilable(Float),
155
192
  evaluation_window: T.nilable(Float),
193
+ exclude_pipelines: T.nilable(T::Array[String]),
194
+ include_historical_data: T.nilable(T::Boolean),
195
+ include_pipelines: T.nilable(T::Array[String]),
156
196
  uses_ml_model: T::Boolean,
157
197
  uses_production_data: T::Boolean,
158
198
  uses_reference_dataset: T::Boolean,
@@ -50,6 +50,11 @@ module Openlayer
50
50
  sig { params(archived: T::Boolean).void }
51
51
  attr_writer :archived
52
52
 
53
+ # Whether to apply the test to all pipelines (data sources) or to a specific set
54
+ # of pipelines. Only applies to tests that use production data.
55
+ sig { returns(T.nilable(T::Boolean)) }
56
+ attr_accessor :default_to_all_pipelines
57
+
53
58
  # The delay window in seconds. Only applies to tests that use production data.
54
59
  sig { returns(T.nilable(Float)) }
55
60
  attr_accessor :delay_window
@@ -59,6 +64,21 @@ module Openlayer
59
64
  sig { returns(T.nilable(Float)) }
60
65
  attr_accessor :evaluation_window
61
66
 
67
+ # Array of pipelines (data sources) to which the test should not be applied. Only
68
+ # applies to tests that use production data.
69
+ sig { returns(T.nilable(T::Array[String])) }
70
+ attr_accessor :exclude_pipelines
71
+
72
+ # Whether to include historical data in the test result. Only applies to tests
73
+ # that use production data.
74
+ sig { returns(T.nilable(T::Boolean)) }
75
+ attr_accessor :include_historical_data
76
+
77
+ # Array of pipelines (data sources) to which the test should be applied. Only
78
+ # applies to tests that use production data.
79
+ sig { returns(T.nilable(T::Array[String])) }
80
+ attr_accessor :include_pipelines
81
+
62
82
  # Whether the test uses an ML model.
63
83
  sig { returns(T.nilable(T::Boolean)) }
64
84
  attr_reader :uses_ml_model
@@ -152,8 +172,12 @@ module Openlayer
152
172
  type:
153
173
  Openlayer::Models::Projects::TestCreateResponse::Type::OrSymbol,
154
174
  archived: T::Boolean,
175
+ default_to_all_pipelines: T.nilable(T::Boolean),
155
176
  delay_window: T.nilable(Float),
156
177
  evaluation_window: T.nilable(Float),
178
+ exclude_pipelines: T.nilable(T::Array[String]),
179
+ include_historical_data: T.nilable(T::Boolean),
180
+ include_pipelines: T.nilable(T::Array[String]),
157
181
  uses_ml_model: T::Boolean,
158
182
  uses_production_data: T::Boolean,
159
183
  uses_reference_dataset: T::Boolean,
@@ -191,11 +215,23 @@ module Openlayer
191
215
  type:,
192
216
  # Whether the test is archived.
193
217
  archived: nil,
218
+ # Whether to apply the test to all pipelines (data sources) or to a specific set
219
+ # of pipelines. Only applies to tests that use production data.
220
+ default_to_all_pipelines: nil,
194
221
  # The delay window in seconds. Only applies to tests that use production data.
195
222
  delay_window: nil,
196
223
  # The evaluation window in seconds. Only applies to tests that use production
197
224
  # data.
198
225
  evaluation_window: nil,
226
+ # Array of pipelines (data sources) to which the test should not be applied. Only
227
+ # applies to tests that use production data.
228
+ exclude_pipelines: nil,
229
+ # Whether to include historical data in the test result. Only applies to tests
230
+ # that use production data.
231
+ include_historical_data: nil,
232
+ # Array of pipelines (data sources) to which the test should be applied. Only
233
+ # applies to tests that use production data.
234
+ include_pipelines: nil,
199
235
  # Whether the test uses an ML model.
200
236
  uses_ml_model: nil,
201
237
  # Whether the test uses production data (monitoring mode only).
@@ -232,8 +268,12 @@ module Openlayer
232
268
  type:
233
269
  Openlayer::Models::Projects::TestCreateResponse::Type::TaggedSymbol,
234
270
  archived: T::Boolean,
271
+ default_to_all_pipelines: T.nilable(T::Boolean),
235
272
  delay_window: T.nilable(Float),
236
273
  evaluation_window: T.nilable(Float),
274
+ exclude_pipelines: T.nilable(T::Array[String]),
275
+ include_historical_data: T.nilable(T::Boolean),
276
+ include_pipelines: T.nilable(T::Array[String]),
237
277
  uses_ml_model: T::Boolean,
238
278
  uses_production_data: T::Boolean,
239
279
  uses_reference_dataset: T::Boolean,
@@ -88,6 +88,11 @@ module Openlayer
88
88
  sig { params(archived: T::Boolean).void }
89
89
  attr_writer :archived
90
90
 
91
+ # Whether to apply the test to all pipelines (data sources) or to a specific set
92
+ # of pipelines. Only applies to tests that use production data.
93
+ sig { returns(T.nilable(T::Boolean)) }
94
+ attr_accessor :default_to_all_pipelines
95
+
91
96
  # The delay window in seconds. Only applies to tests that use production data.
92
97
  sig { returns(T.nilable(Float)) }
93
98
  attr_accessor :delay_window
@@ -97,6 +102,21 @@ module Openlayer
97
102
  sig { returns(T.nilable(Float)) }
98
103
  attr_accessor :evaluation_window
99
104
 
105
+ # Array of pipelines (data sources) to which the test should not be applied. Only
106
+ # applies to tests that use production data.
107
+ sig { returns(T.nilable(T::Array[String])) }
108
+ attr_accessor :exclude_pipelines
109
+
110
+ # Whether to include historical data in the test result. Only applies to tests
111
+ # that use production data.
112
+ sig { returns(T.nilable(T::Boolean)) }
113
+ attr_accessor :include_historical_data
114
+
115
+ # Array of pipelines (data sources) to which the test should be applied. Only
116
+ # applies to tests that use production data.
117
+ sig { returns(T.nilable(T::Array[String])) }
118
+ attr_accessor :include_pipelines
119
+
100
120
  # Whether the test uses an ML model.
101
121
  sig { returns(T.nilable(T::Boolean)) }
102
122
  attr_reader :uses_ml_model
@@ -190,8 +210,12 @@ module Openlayer
190
210
  type:
191
211
  Openlayer::Models::Projects::TestListResponse::Item::Type::OrSymbol,
192
212
  archived: T::Boolean,
213
+ default_to_all_pipelines: T.nilable(T::Boolean),
193
214
  delay_window: T.nilable(Float),
194
215
  evaluation_window: T.nilable(Float),
216
+ exclude_pipelines: T.nilable(T::Array[String]),
217
+ include_historical_data: T.nilable(T::Boolean),
218
+ include_pipelines: T.nilable(T::Array[String]),
195
219
  uses_ml_model: T::Boolean,
196
220
  uses_production_data: T::Boolean,
197
221
  uses_reference_dataset: T::Boolean,
@@ -229,11 +253,23 @@ module Openlayer
229
253
  type:,
230
254
  # Whether the test is archived.
231
255
  archived: nil,
256
+ # Whether to apply the test to all pipelines (data sources) or to a specific set
257
+ # of pipelines. Only applies to tests that use production data.
258
+ default_to_all_pipelines: nil,
232
259
  # The delay window in seconds. Only applies to tests that use production data.
233
260
  delay_window: nil,
234
261
  # The evaluation window in seconds. Only applies to tests that use production
235
262
  # data.
236
263
  evaluation_window: nil,
264
+ # Array of pipelines (data sources) to which the test should not be applied. Only
265
+ # applies to tests that use production data.
266
+ exclude_pipelines: nil,
267
+ # Whether to include historical data in the test result. Only applies to tests
268
+ # that use production data.
269
+ include_historical_data: nil,
270
+ # Array of pipelines (data sources) to which the test should be applied. Only
271
+ # applies to tests that use production data.
272
+ include_pipelines: nil,
237
273
  # Whether the test uses an ML model.
238
274
  uses_ml_model: nil,
239
275
  # Whether the test uses production data (monitoring mode only).
@@ -270,8 +306,12 @@ module Openlayer
270
306
  type:
271
307
  Openlayer::Models::Projects::TestListResponse::Item::Type::TaggedSymbol,
272
308
  archived: T::Boolean,
309
+ default_to_all_pipelines: T.nilable(T::Boolean),
273
310
  delay_window: T.nilable(Float),
274
311
  evaluation_window: T.nilable(Float),
312
+ exclude_pipelines: T.nilable(T::Array[String]),
313
+ include_historical_data: T.nilable(T::Boolean),
314
+ include_pipelines: T.nilable(T::Array[String]),
275
315
  uses_ml_model: T::Boolean,
276
316
  uses_production_data: T::Boolean,
277
317
  uses_reference_dataset: T::Boolean,
@@ -10,6 +10,17 @@ module Openlayer
10
10
  project_id: String,
11
11
  description: T.nilable(String),
12
12
  name: String,
13
+ data_backend:
14
+ T.nilable(
15
+ T.any(
16
+ Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0::OrHash,
17
+ Openlayer::Projects::InferencePipelineCreateParams::DataBackend::BackendType::OrHash,
18
+ Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2::OrHash,
19
+ Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3::OrHash,
20
+ Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4::OrHash,
21
+ Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5::OrHash
22
+ )
23
+ ),
13
24
  project:
14
25
  T.nilable(
15
26
  Openlayer::Projects::InferencePipelineCreateParams::Project::OrHash
@@ -30,6 +41,7 @@ module Openlayer
30
41
  description:,
31
42
  # The inference pipeline name.
32
43
  name:,
44
+ data_backend: nil,
33
45
  project: nil,
34
46
  workspace: nil,
35
47
  request_options: {}
@@ -17,8 +17,12 @@ module Openlayer
17
17
  ],
18
18
  type: Openlayer::Projects::TestCreateParams::Type::OrSymbol,
19
19
  archived: T::Boolean,
20
+ default_to_all_pipelines: T.nilable(T::Boolean),
20
21
  delay_window: T.nilable(Float),
21
22
  evaluation_window: T.nilable(Float),
23
+ exclude_pipelines: T.nilable(T::Array[String]),
24
+ include_historical_data: T.nilable(T::Boolean),
25
+ include_pipelines: T.nilable(T::Array[String]),
22
26
  uses_ml_model: T::Boolean,
23
27
  uses_production_data: T::Boolean,
24
28
  uses_reference_dataset: T::Boolean,
@@ -41,11 +45,23 @@ module Openlayer
41
45
  type:,
42
46
  # Whether the test is archived.
43
47
  archived: nil,
48
+ # Whether to apply the test to all pipelines (data sources) or to a specific set
49
+ # of pipelines. Only applies to tests that use production data.
50
+ default_to_all_pipelines: nil,
44
51
  # The delay window in seconds. Only applies to tests that use production data.
45
52
  delay_window: nil,
46
53
  # The evaluation window in seconds. Only applies to tests that use production
47
54
  # data.
48
55
  evaluation_window: nil,
56
+ # Array of pipelines (data sources) to which the test should not be applied. Only
57
+ # applies to tests that use production data.
58
+ exclude_pipelines: nil,
59
+ # Whether to include historical data in the test result. Only applies to tests
60
+ # that use production data.
61
+ include_historical_data: nil,
62
+ # Array of pipelines (data sources) to which the test should be applied. Only
63
+ # applies to tests that use production data.
64
+ include_pipelines: nil,
49
65
  # Whether the test uses an ML model.
50
66
  uses_ml_model: nil,
51
67
  # Whether the test uses production data (monitoring mode only).
@@ -87,6 +87,8 @@ module Openlayer
87
87
 
88
88
  private def auth_headers: -> ::Hash[String, String]
89
89
 
90
+ private def user_agent: -> String
91
+
90
92
  private def generate_idempotency_key: -> String
91
93
 
92
94
  private def build_request: (
@@ -17,7 +17,10 @@ module Openlayer
17
17
 
18
18
  DEFAULT_MAX_CONNECTIONS: Integer
19
19
 
20
- def self.connect: (URI::Generic url) -> top
20
+ def self.connect: (
21
+ cert_store: OpenSSL::X509::Store,
22
+ url: URI::Generic
23
+ ) -> top
21
24
 
22
25
  def self.calibrate_socket_timeout: (top conn, Float deadline) -> void
23
26