retab 0.1.7 → 0.1.9

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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/retab/classifications/file_ref.rb +1 -22
  3. data/lib/retab/experiment_run_results/experiment_result.rb +6 -3
  4. data/lib/retab/experiment_run_results/pending_workflow_experiment_result.rb +1 -1
  5. data/lib/retab/experiment_run_results/queued_workflow_experiment_result.rb +1 -1
  6. data/lib/retab/experiment_run_results/running_workflow_experiment_result.rb +1 -1
  7. data/lib/retab/experiment_runs/pending_workflow_experiment_run.rb +1 -1
  8. data/lib/retab/experiment_runs/queued_workflow_experiment_run.rb +1 -1
  9. data/lib/retab/experiment_runs/running_workflow_experiment_run.rb +1 -1
  10. data/lib/retab/workflow_block_executions/block_exec_file_handle_input.rb +25 -0
  11. data/lib/retab/workflow_block_executions/block_exec_file_ref.rb +28 -0
  12. data/lib/retab/workflow_block_executions/block_exec_json_handle_input.rb +25 -0
  13. data/lib/retab/workflow_block_executions/cancelled_block_execution_lifecycle.rb +25 -0
  14. data/lib/retab/workflow_block_executions/pending_block_execution_lifecycle.rb +20 -0
  15. data/lib/retab/workflow_block_executions/queued_block_execution_lifecycle.rb +20 -0
  16. data/lib/retab/workflow_block_executions/running_block_execution_lifecycle.rb +20 -0
  17. data/lib/retab/workflow_block_executions/stored_block_execution.rb +35 -6
  18. data/lib/retab/workflow_experiments/file_handle_input.rb +1 -19
  19. data/lib/retab/workflow_experiments/json_handle_input.rb +1 -19
  20. data/lib/retab/workflow_runs/pending_run.rb +1 -14
  21. data/lib/retab/workflow_runs/running_run.rb +1 -14
  22. data/lib/retab/workflow_steps/pending_step_lifecycle.rb +1 -1
  23. data/lib/retab/workflow_steps/queued_step_lifecycle.rb +1 -14
  24. data/lib/retab/workflow_steps/running_step_lifecycle.rb +1 -1
  25. data/lib/retab/workflow_test_run_results/pending_workflow_test_run.rb +1 -1
  26. data/lib/retab/workflow_test_run_results/queued_workflow_test_run.rb +1 -1
  27. data/lib/retab/workflow_test_run_results/running_workflow_test_run.rb +1 -1
  28. data/lib/retab/workflow_test_run_results/workflow_test_result.rb +18 -27
  29. data/rbi/retab/block_exec_file_handle_input.rbi +30 -0
  30. data/rbi/retab/{materialized_document.rbi → block_exec_file_ref.rbi} +3 -21
  31. data/rbi/retab/block_exec_json_handle_input.rbi +30 -0
  32. data/rbi/retab/cancelled_block_execution_lifecycle.rbi +30 -0
  33. data/rbi/retab/experiment_result.rbi +8 -2
  34. data/rbi/retab/file_handle_input.rbi +2 -2
  35. data/rbi/retab/pending_block_execution_lifecycle.rbi +24 -0
  36. data/rbi/retab/queued_block_execution_lifecycle.rbi +24 -0
  37. data/rbi/retab/running_block_execution_lifecycle.rbi +24 -0
  38. data/rbi/retab/secret_list_response.rbi +2 -2
  39. data/rbi/retab/stored_block_execution.rbi +52 -10
  40. data/rbi/retab/workflow_table_list_response.rbi +2 -2
  41. data/rbi/retab/workflow_table_schema_response.rbi +2 -2
  42. data/rbi/retab/workflow_test_result.rbi +26 -26
  43. metadata +15 -3
  44. data/lib/retab/workflow_experiments/materialized_document.rb +0 -37
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67452b4ad04cd58f0437012ee63e052194150a619474218838fe392949156eba
4
- data.tar.gz: 51cca52e0f5df37488678232d8a41de500613b1ce709b54c98bf1dc4725a72af
3
+ metadata.gz: 0d50f014e5ec16d2e08abc96e80ba4c0765860ca7f55240dc7ada7eefc712a99
4
+ data.tar.gz: 67f1cb50dd4645965370155d9b5ddf3fa1e3310f2ada638c1a46ac1b02f6c5ef
5
5
  SHA512:
6
- metadata.gz: 329580bdb99646157f8da23afc794d5252fcf925fd21eb988815ef30e61150b900f3a2f63e73eabbc96e5dda2471bd6a2561ed30345bb79ca2d4d7f91ea7580b
7
- data.tar.gz: 9b8a20793769cf85431a7172bb8be1629f72e39c80f8fdaa6fafcccd32666b1bb6ecf159adec60dbcc88b89ffb869b905fe9d972260b21a30c8b5bc976a52bd2
6
+ metadata.gz: d4739b06f5ff47cc2f1042b943a82a8ec376188c83e1b745be1c55deb6bbd687b231abfd1be81010ef8b1fc714bb96c9648a10b6a65e62f491c5e55b2656ea17
7
+ data.tar.gz: b5ac3b608829b0ea8c057d28f79ab03e1b352ca86d85282c192bbc719160e635af2d04573b6cc7e170bf25cfa36d73c30ffdf65750e9e71dfbd2efd292f7eb5d
@@ -3,26 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class FileRef < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- id: :id,
10
- filename: :filename,
11
- mime_type: :mime_type
12
- }.freeze
13
-
14
- attr_accessor(
15
- :id,
16
- :filename,
17
- :mime_type
18
- )
19
-
20
- def initialize(json)
21
- super()
22
- hash = self.class.normalize(json)
23
- @id = hash[:id]
24
- @filename = hash[:filename]
25
- @mime_type = hash[:mime_type]
26
- end
27
- end
6
+ FileRef = BlockExecFileRef
28
7
  end
@@ -7,26 +7,28 @@ module Retab
7
7
 
8
8
  HASH_ATTRS = {
9
9
  id: :id,
10
- run_id: :run_id,
10
+ experiment_run_id: :experiment_run_id,
11
11
  experiment_id: :experiment_id,
12
12
  document_id: :document_id,
13
13
  lifecycle: :lifecycle,
14
14
  timing: :timing,
15
15
  block_type: :block_type,
16
16
  handle_inputs: :handle_inputs,
17
+ handle_outputs: :handle_outputs,
17
18
  artifact: :artifact,
18
19
  attempt: :attempt
19
20
  }.freeze
20
21
 
21
22
  attr_accessor(
22
23
  :id,
23
- :run_id,
24
+ :experiment_run_id,
24
25
  :experiment_id,
25
26
  :document_id,
26
27
  :lifecycle,
27
28
  :timing,
28
29
  :block_type,
29
30
  :handle_inputs,
31
+ :handle_outputs,
30
32
  :artifact,
31
33
  :attempt
32
34
  )
@@ -35,7 +37,7 @@ module Retab
35
37
  super()
36
38
  hash = self.class.normalize(json)
37
39
  @id = hash[:id]
38
- @run_id = hash[:run_id]
40
+ @experiment_run_id = hash[:experiment_run_id]
39
41
  @experiment_id = hash[:experiment_id]
40
42
  @document_id = hash[:document_id]
41
43
  @lifecycle = hash[:lifecycle] ? (
@@ -59,6 +61,7 @@ module Retab
59
61
  @timing = hash[:timing] ? Retab::ExperimentResultTiming.new(hash[:timing]) : nil
60
62
  @block_type = hash[:block_type]
61
63
  @handle_inputs = hash[:handle_inputs] || {}
64
+ @handle_outputs = hash[:handle_outputs] || {}
62
65
  @artifact = hash[:artifact] ? Retab::StepArtifactRef.new(hash[:artifact]) : nil
63
66
  @attempt = hash[:attempt]
64
67
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- PendingWorkflowExperimentResult = PendingRun
6
+ PendingWorkflowExperimentResult = PendingBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- QueuedWorkflowExperimentResult = QueuedStepLifecycle
6
+ QueuedWorkflowExperimentResult = QueuedBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- RunningWorkflowExperimentResult = RunningRun
6
+ RunningWorkflowExperimentResult = RunningBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- PendingWorkflowExperimentRun = PendingRun
6
+ PendingWorkflowExperimentRun = PendingBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- QueuedWorkflowExperimentRun = QueuedStepLifecycle
6
+ QueuedWorkflowExperimentRun = QueuedBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- RunningWorkflowExperimentRun = RunningRun
6
+ RunningWorkflowExperimentRun = RunningBlockExecutionLifecycle
7
7
  end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class BlockExecFileHandleInput < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ document: :document,
10
+ type: :type
11
+ }.freeze
12
+
13
+ attr_accessor(
14
+ :document,
15
+ :type
16
+ )
17
+
18
+ def initialize(json)
19
+ super()
20
+ hash = self.class.normalize(json)
21
+ @document = hash[:document] ? Retab::BlockExecFileRef.new(hash[:document]) : nil
22
+ @type = hash[:type].nil? ? "file" : hash[:type]
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class BlockExecFileRef < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ id: :id,
10
+ filename: :filename,
11
+ mime_type: :mime_type
12
+ }.freeze
13
+
14
+ attr_accessor(
15
+ :id,
16
+ :filename,
17
+ :mime_type
18
+ )
19
+
20
+ def initialize(json)
21
+ super()
22
+ hash = self.class.normalize(json)
23
+ @id = hash[:id]
24
+ @filename = hash[:filename]
25
+ @mime_type = hash[:mime_type]
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class BlockExecJsonHandleInput < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ data: :data,
10
+ type: :type
11
+ }.freeze
12
+
13
+ attr_accessor(
14
+ :data,
15
+ :type
16
+ )
17
+
18
+ def initialize(json)
19
+ super()
20
+ hash = self.class.normalize(json)
21
+ @data = hash[:data]
22
+ @type = hash[:type].nil? ? "json" : hash[:type]
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class CancelledBlockExecutionLifecycle < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ status: :status,
10
+ reason: :reason
11
+ }.freeze
12
+
13
+ attr_accessor(
14
+ :status,
15
+ :reason
16
+ )
17
+
18
+ def initialize(json)
19
+ super()
20
+ hash = self.class.normalize(json)
21
+ @status = hash[:status].nil? ? "cancelled" : hash[:status]
22
+ @reason = hash[:reason]
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class PendingBlockExecutionLifecycle < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ status: :status
10
+ }.freeze
11
+
12
+ attr_accessor :status
13
+
14
+ def initialize(json)
15
+ super()
16
+ hash = self.class.normalize(json)
17
+ @status = hash[:status].nil? ? "pending" : hash[:status]
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class QueuedBlockExecutionLifecycle < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ status: :status
10
+ }.freeze
11
+
12
+ attr_accessor :status
13
+
14
+ def initialize(json)
15
+ super()
16
+ hash = self.class.normalize(json)
17
+ @status = hash[:status].nil? ? "queued" : hash[:status]
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module Retab
6
+ class RunningBlockExecutionLifecycle < Retab::Types::BaseModel
7
+
8
+ HASH_ATTRS = {
9
+ status: :status
10
+ }.freeze
11
+
12
+ attr_accessor :status
13
+
14
+ def initialize(json)
15
+ super()
16
+ hash = self.class.normalize(json)
17
+ @status = hash[:status].nil? ? "running" : hash[:status]
18
+ end
19
+ end
20
+ end
@@ -8,7 +8,8 @@ module Retab
8
8
  HASH_ATTRS = {
9
9
  id: :id,
10
10
  workflow_id: :workflow_id,
11
- run_id: :run_id,
11
+ workflow_version_id: :workflow_version_id,
12
+ source_run_id: :source_run_id,
12
13
  block_id: :block_id,
13
14
  block_type: :block_type,
14
15
  lifecycle: :lifecycle,
@@ -18,15 +19,22 @@ module Retab
18
19
  routing_decisions: :routing_decisions,
19
20
  duration_ms: :duration_ms,
20
21
  created_at: :created_at,
22
+ started_at: :started_at,
23
+ completed_at: :completed_at,
24
+ handle_inputs_fingerprint: :handle_inputs_fingerprint,
25
+ workflow_draft_fingerprint: :workflow_draft_fingerprint,
26
+ block_config_fingerprint: :block_config_fingerprint,
27
+ execution_fingerprint: :execution_fingerprint,
21
28
  block_config: :block_config,
22
- step_id: :step_id,
29
+ source_step_id: :source_step_id,
23
30
  available_iterations: :available_iterations
24
31
  }.freeze
25
32
 
26
33
  attr_accessor(
27
34
  :id,
28
35
  :workflow_id,
29
- :run_id,
36
+ :workflow_version_id,
37
+ :source_run_id,
30
38
  :block_id,
31
39
  :block_type,
32
40
  :lifecycle,
@@ -36,8 +44,14 @@ module Retab
36
44
  :routing_decisions,
37
45
  :duration_ms,
38
46
  :created_at,
47
+ :started_at,
48
+ :completed_at,
49
+ :handle_inputs_fingerprint,
50
+ :workflow_draft_fingerprint,
51
+ :block_config_fingerprint,
52
+ :execution_fingerprint,
39
53
  :block_config,
40
- :step_id,
54
+ :source_step_id,
41
55
  :available_iterations
42
56
  )
43
57
 
@@ -46,15 +60,24 @@ module Retab
46
60
  hash = self.class.normalize(json)
47
61
  @id = hash[:id]
48
62
  @workflow_id = hash[:workflow_id]
49
- @run_id = hash[:run_id]
63
+ @workflow_version_id = hash[:workflow_version_id]
64
+ @source_run_id = hash[:source_run_id]
50
65
  @block_id = hash[:block_id]
51
66
  @block_type = hash[:block_type]
52
67
  @lifecycle = hash[:lifecycle] ? (
53
68
  case hash[:lifecycle][:status]
69
+ when "cancelled"
70
+ Retab::CancelledBlockExecutionLifecycle.new(hash[:lifecycle])
54
71
  when "completed"
55
72
  Retab::CompletedBlockExecutionLifecycle.new(hash[:lifecycle])
56
73
  when "error"
57
74
  Retab::ErrorBlockExecutionLifecycle.new(hash[:lifecycle])
75
+ when "pending"
76
+ Retab::PendingBlockExecutionLifecycle.new(hash[:lifecycle])
77
+ when "queued"
78
+ Retab::QueuedBlockExecutionLifecycle.new(hash[:lifecycle])
79
+ when "running"
80
+ Retab::RunningBlockExecutionLifecycle.new(hash[:lifecycle])
58
81
  when "skipped"
59
82
  Retab::SkippedBlockExecutionLifecycle.new(hash[:lifecycle])
60
83
  else
@@ -67,8 +90,14 @@ module Retab
67
90
  @routing_decisions = (hash[:routing_decisions] || [])
68
91
  @duration_ms = hash[:duration_ms]
69
92
  @created_at = hash[:created_at]
93
+ @started_at = hash[:started_at]
94
+ @completed_at = hash[:completed_at]
95
+ @handle_inputs_fingerprint = hash[:handle_inputs_fingerprint]
96
+ @workflow_draft_fingerprint = hash[:workflow_draft_fingerprint]
97
+ @block_config_fingerprint = hash[:block_config_fingerprint]
98
+ @execution_fingerprint = hash[:execution_fingerprint]
70
99
  @block_config = hash[:block_config] || {}
71
- @step_id = hash[:step_id]
100
+ @source_step_id = hash[:source_step_id]
72
101
  @available_iterations = (hash[:available_iterations] || []).map { |item| item || {} }
73
102
  end
74
103
  end
@@ -3,23 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class FileHandleInput < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- type: :type,
10
- document: :document
11
- }.freeze
12
-
13
- attr_accessor(
14
- :type,
15
- :document
16
- )
17
-
18
- def initialize(json)
19
- super()
20
- hash = self.class.normalize(json)
21
- @type = hash[:type].nil? ? "file" : hash[:type]
22
- @document = hash[:document] ? Retab::MaterializedDocument.new(hash[:document]) : nil
23
- end
24
- end
6
+ FileHandleInput = BlockExecFileHandleInput
25
7
  end
@@ -3,23 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class JsonHandleInput < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- type: :type,
10
- data: :data
11
- }.freeze
12
-
13
- attr_accessor(
14
- :type,
15
- :data
16
- )
17
-
18
- def initialize(json)
19
- super()
20
- hash = self.class.normalize(json)
21
- @type = hash[:type].nil? ? "json" : hash[:type]
22
- @data = hash[:data]
23
- end
24
- end
6
+ JsonHandleInput = BlockExecJsonHandleInput
25
7
  end
@@ -3,18 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class PendingRun < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- status: :status
10
- }.freeze
11
-
12
- attr_accessor :status
13
-
14
- def initialize(json)
15
- super()
16
- hash = self.class.normalize(json)
17
- @status = hash[:status].nil? ? "pending" : hash[:status]
18
- end
19
- end
6
+ PendingRun = PendingBlockExecutionLifecycle
20
7
  end
@@ -3,18 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class RunningRun < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- status: :status
10
- }.freeze
11
-
12
- attr_accessor :status
13
-
14
- def initialize(json)
15
- super()
16
- hash = self.class.normalize(json)
17
- @status = hash[:status].nil? ? "running" : hash[:status]
18
- end
19
- end
6
+ RunningRun = RunningBlockExecutionLifecycle
20
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- PendingStepLifecycle = PendingRun
6
+ PendingStepLifecycle = PendingBlockExecutionLifecycle
7
7
  end
@@ -3,18 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- class QueuedStepLifecycle < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- status: :status
10
- }.freeze
11
-
12
- attr_accessor :status
13
-
14
- def initialize(json)
15
- super()
16
- hash = self.class.normalize(json)
17
- @status = hash[:status].nil? ? "queued" : hash[:status]
18
- end
19
- end
6
+ QueuedStepLifecycle = QueuedBlockExecutionLifecycle
20
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- RunningStepLifecycle = RunningRun
6
+ RunningStepLifecycle = RunningBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- PendingWorkflowTestRun = PendingRun
6
+ PendingWorkflowTestRun = PendingBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- QueuedWorkflowTestRun = QueuedStepLifecycle
6
+ QueuedWorkflowTestRun = QueuedBlockExecutionLifecycle
7
7
  end
@@ -3,5 +3,5 @@
3
3
  # This file is auto-generated by oagen. Do not edit.
4
4
 
5
5
  module Retab
6
- RunningWorkflowTestRun = RunningRun
6
+ RunningWorkflowTestRun = RunningBlockExecutionLifecycle
7
7
  end
@@ -7,46 +7,46 @@ module Retab
7
7
 
8
8
  HASH_ATTRS = {
9
9
  id: :id,
10
- run_id: :run_id,
10
+ workflow_test_run_id: :workflow_test_run_id,
11
11
  test_id: :test_id,
12
12
  lifecycle: :lifecycle,
13
13
  timing: :timing,
14
14
  verdict: :verdict,
15
15
  workflow_id: :workflow_id,
16
- target: :target,
16
+ block_id: :block_id,
17
+ block_type: :block_type,
17
18
  execution_fingerprint: :execution_fingerprint,
18
19
  handle_inputs_fingerprint: :handle_inputs_fingerprint,
19
20
  workflow_draft_fingerprint: :workflow_draft_fingerprint,
20
21
  block_config_fingerprint: :block_config_fingerprint,
21
- source: :source,
22
- outputs: :outputs,
22
+ artifact: :artifact,
23
+ handle_inputs: :handle_inputs,
24
+ handle_outputs: :handle_outputs,
23
25
  routing_decisions: :routing_decisions,
24
26
  warnings: :warnings,
25
- error: :error,
26
- skipped: :skipped,
27
27
  assertion_result: :assertion_result,
28
28
  verdict_summary: :verdict_summary
29
29
  }.freeze
30
30
 
31
31
  attr_accessor(
32
32
  :id,
33
- :run_id,
33
+ :workflow_test_run_id,
34
34
  :test_id,
35
35
  :lifecycle,
36
36
  :timing,
37
37
  :verdict,
38
38
  :workflow_id,
39
- :target,
39
+ :block_id,
40
+ :block_type,
40
41
  :execution_fingerprint,
41
42
  :handle_inputs_fingerprint,
42
43
  :workflow_draft_fingerprint,
43
44
  :block_config_fingerprint,
44
- :source,
45
- :outputs,
45
+ :artifact,
46
+ :handle_inputs,
47
+ :handle_outputs,
46
48
  :routing_decisions,
47
49
  :warnings,
48
- :error,
49
- :skipped,
50
50
  :assertion_result,
51
51
  :verdict_summary
52
52
  )
@@ -55,7 +55,7 @@ module Retab
55
55
  super()
56
56
  hash = self.class.normalize(json)
57
57
  @id = hash[:id]
58
- @run_id = hash[:run_id]
58
+ @workflow_test_run_id = hash[:workflow_test_run_id]
59
59
  @test_id = hash[:test_id]
60
60
  @lifecycle = hash[:lifecycle] ? (
61
61
  case hash[:lifecycle][:status]
@@ -78,26 +78,17 @@ module Retab
78
78
  @timing = hash[:timing] ? Retab::WorkflowTestRunTiming.new(hash[:timing]) : nil
79
79
  @verdict = hash[:verdict]
80
80
  @workflow_id = hash[:workflow_id]
81
- @target = hash[:target] ? Retab::WorkflowTestBlockTarget.new(hash[:target]) : nil
81
+ @block_id = hash[:block_id]
82
+ @block_type = hash[:block_type]
82
83
  @execution_fingerprint = hash[:execution_fingerprint]
83
84
  @handle_inputs_fingerprint = hash[:handle_inputs_fingerprint]
84
85
  @workflow_draft_fingerprint = hash[:workflow_draft_fingerprint]
85
86
  @block_config_fingerprint = hash[:block_config_fingerprint]
86
- @source = hash[:source] ? (
87
- case hash[:source][:type]
88
- when "manual"
89
- Retab::ManualWorkflowTestSource.new(hash[:source])
90
- when "run_step"
91
- Retab::RunStepWorkflowTestSource.new(hash[:source])
92
- else
93
- hash[:source]
94
- end
95
- ) : nil
96
- @outputs = hash[:outputs] || {}
87
+ @artifact = hash[:artifact] ? Retab::StepArtifactRef.new(hash[:artifact]) : nil
88
+ @handle_inputs = hash[:handle_inputs] || {}
89
+ @handle_outputs = hash[:handle_outputs] || {}
97
90
  @routing_decisions = (hash[:routing_decisions] || [])
98
91
  @warnings = (hash[:warnings] || [])
99
- @error = hash[:error] ? Retab::ErrorDetails.new(hash[:error]) : nil
100
- @skipped = hash[:skipped].nil? ? false : hash[:skipped]
101
92
  @assertion_result = hash[:assertion_result] ? Retab::AssertionResult.new(hash[:assertion_result]) : nil
102
93
  @verdict_summary = hash[:verdict_summary] ? Retab::VerdictSummary.new(hash[:verdict_summary]) : nil
103
94
  end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class BlockExecFileHandleInput
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(Retab::BlockExecFileRef) }
13
+ def document; end
14
+
15
+ sig { params(value: Retab::BlockExecFileRef).returns(Retab::BlockExecFileRef) }
16
+ def document=(value); end
17
+
18
+ sig { returns(T.nilable(String)) }
19
+ def type; end
20
+
21
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
22
+ def type=(value); end
23
+
24
+ sig { returns(T::Hash[Symbol, T.untyped]) }
25
+ def to_h; end
26
+
27
+ sig { params(args: T.untyped).returns(String) }
28
+ def to_json(*args); end
29
+ end
30
+ end
@@ -5,15 +5,15 @@
5
5
  # typed: strong
6
6
 
7
7
  module Retab
8
- class MaterializedDocument
8
+ class BlockExecFileRef
9
9
  sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
10
  def initialize(json); end
11
11
 
12
12
  sig { returns(String) }
13
- def original_id; end
13
+ def id; end
14
14
 
15
15
  sig { params(value: String).returns(String) }
16
- def original_id=(value); end
16
+ def id=(value); end
17
17
 
18
18
  sig { returns(String) }
19
19
  def filename; end
@@ -27,24 +27,6 @@ module Retab
27
27
  sig { params(value: String).returns(String) }
28
28
  def mime_type=(value); end
29
29
 
30
- sig { returns(String) }
31
- def gcs_uri; end
32
-
33
- sig { params(value: String).returns(String) }
34
- def gcs_uri=(value); end
35
-
36
- sig { returns(T.nilable(Integer)) }
37
- def size_bytes; end
38
-
39
- sig { params(value: T.nilable(Integer)).returns(T.nilable(Integer)) }
40
- def size_bytes=(value); end
41
-
42
- sig { returns(T.nilable(String)) }
43
- def content_fingerprint; end
44
-
45
- sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
46
- def content_fingerprint=(value); end
47
-
48
30
  sig { returns(T::Hash[Symbol, T.untyped]) }
49
31
  def to_h; end
50
32
 
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class BlockExecJsonHandleInput
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(T.untyped)) }
13
+ def data; end
14
+
15
+ sig { params(value: T.nilable(T.untyped)).returns(T.nilable(T.untyped)) }
16
+ def data=(value); end
17
+
18
+ sig { returns(T.nilable(String)) }
19
+ def type; end
20
+
21
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
22
+ def type=(value); end
23
+
24
+ sig { returns(T::Hash[Symbol, T.untyped]) }
25
+ def to_h; end
26
+
27
+ sig { params(args: T.untyped).returns(String) }
28
+ def to_json(*args); end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class CancelledBlockExecutionLifecycle
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(String)) }
13
+ def status; end
14
+
15
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
16
+ def status=(value); end
17
+
18
+ sig { returns(T.nilable(T.untyped)) }
19
+ def reason; end
20
+
21
+ sig { params(value: T.nilable(T.untyped)).returns(T.nilable(T.untyped)) }
22
+ def reason=(value); end
23
+
24
+ sig { returns(T::Hash[Symbol, T.untyped]) }
25
+ def to_h; end
26
+
27
+ sig { params(args: T.untyped).returns(String) }
28
+ def to_json(*args); end
29
+ end
30
+ end
@@ -16,10 +16,10 @@ module Retab
16
16
  def id=(value); end
17
17
 
18
18
  sig { returns(String) }
19
- def run_id; end
19
+ def experiment_run_id; end
20
20
 
21
21
  sig { params(value: String).returns(String) }
22
- def run_id=(value); end
22
+ def experiment_run_id=(value); end
23
23
 
24
24
  sig { returns(String) }
25
25
  def experiment_id; end
@@ -57,6 +57,12 @@ module Retab
57
57
  sig { params(value: T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])).returns(T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])) }
58
58
  def handle_inputs=(value); end
59
59
 
60
+ sig { returns(T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])) }
61
+ def handle_outputs; end
62
+
63
+ sig { params(value: T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])).returns(T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])) }
64
+ def handle_outputs=(value); end
65
+
60
66
  sig { returns(T.nilable(Retab::StepArtifactRef)) }
61
67
  def artifact; end
62
68
 
@@ -15,10 +15,10 @@ module Retab
15
15
  sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
16
16
  def type=(value); end
17
17
 
18
- sig { returns(Retab::MaterializedDocument) }
18
+ sig { returns(Retab::FileRef) }
19
19
  def document; end
20
20
 
21
- sig { params(value: Retab::MaterializedDocument).returns(Retab::MaterializedDocument) }
21
+ sig { params(value: Retab::FileRef).returns(Retab::FileRef) }
22
22
  def document=(value); end
23
23
 
24
24
  sig { returns(T::Hash[Symbol, T.untyped]) }
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class PendingBlockExecutionLifecycle
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(String)) }
13
+ def status; end
14
+
15
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
16
+ def status=(value); end
17
+
18
+ sig { returns(T::Hash[Symbol, T.untyped]) }
19
+ def to_h; end
20
+
21
+ sig { params(args: T.untyped).returns(String) }
22
+ def to_json(*args); end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class QueuedBlockExecutionLifecycle
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(String)) }
13
+ def status; end
14
+
15
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
16
+ def status=(value); end
17
+
18
+ sig { returns(T::Hash[Symbol, T.untyped]) }
19
+ def to_h; end
20
+
21
+ sig { params(args: T.untyped).returns(String) }
22
+ def to_json(*args); end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ # typed: strong
6
+
7
+ module Retab
8
+ class RunningBlockExecutionLifecycle
9
+ sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
+ def initialize(json); end
11
+
12
+ sig { returns(T.nilable(String)) }
13
+ def status; end
14
+
15
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
16
+ def status=(value); end
17
+
18
+ sig { returns(T::Hash[Symbol, T.untyped]) }
19
+ def to_h; end
20
+
21
+ sig { params(args: T.untyped).returns(String) }
22
+ def to_json(*args); end
23
+ end
24
+ end
@@ -9,10 +9,10 @@ module Retab
9
9
  sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
10
  def initialize(json); end
11
11
 
12
- sig { returns(T::Array[Retab::Secret]) }
12
+ sig { returns(T.nilable(T::Array[Retab::Secret])) }
13
13
  def secrets; end
14
14
 
15
- sig { params(value: T::Array[Retab::Secret]).returns(T::Array[Retab::Secret]) }
15
+ sig { params(value: T.nilable(T::Array[Retab::Secret])).returns(T.nilable(T::Array[Retab::Secret])) }
16
16
  def secrets=(value); end
17
17
 
18
18
  sig { returns(T::Hash[Symbol, T.untyped]) }
@@ -21,11 +21,17 @@ module Retab
21
21
  sig { params(value: String).returns(String) }
22
22
  def workflow_id=(value); end
23
23
 
24
+ sig { returns(T.nilable(String)) }
25
+ def workflow_version_id; end
26
+
27
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
28
+ def workflow_version_id=(value); end
29
+
24
30
  sig { returns(String) }
25
- def run_id; end
31
+ def source_run_id; end
26
32
 
27
33
  sig { params(value: String).returns(String) }
28
- def run_id=(value); end
34
+ def source_run_id=(value); end
29
35
 
30
36
  sig { returns(String) }
31
37
  def block_id; end
@@ -39,16 +45,16 @@ module Retab
39
45
  sig { params(value: String).returns(String) }
40
46
  def block_type=(value); end
41
47
 
42
- sig { returns(T.any(Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)) }
48
+ sig { returns(T.any(Retab::PendingBlockExecutionLifecycle, Retab::QueuedBlockExecutionLifecycle, Retab::RunningBlockExecutionLifecycle, Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::CancelledBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)) }
43
49
  def lifecycle; end
44
50
 
45
- sig { params(value: T.any(Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)).returns(T.any(Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)) }
51
+ sig { params(value: T.any(Retab::PendingBlockExecutionLifecycle, Retab::QueuedBlockExecutionLifecycle, Retab::RunningBlockExecutionLifecycle, Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::CancelledBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)).returns(T.any(Retab::PendingBlockExecutionLifecycle, Retab::QueuedBlockExecutionLifecycle, Retab::RunningBlockExecutionLifecycle, Retab::CompletedBlockExecutionLifecycle, Retab::ErrorBlockExecutionLifecycle, Retab::CancelledBlockExecutionLifecycle, Retab::SkippedBlockExecutionLifecycle)) }
46
52
  def lifecycle=(value); end
47
53
 
48
- sig { returns(T.nilable(T::Hash[String, T.untyped])) }
54
+ sig { returns(T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))) }
49
55
  def handle_inputs; end
50
56
 
51
- sig { params(value: T.nilable(T::Hash[String, T.untyped])).returns(T.nilable(T::Hash[String, T.untyped])) }
57
+ sig { params(value: T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))).returns(T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))) }
52
58
  def handle_inputs=(value); end
53
59
 
54
60
  sig { returns(T.nilable(Retab::StepArtifactRef)) }
@@ -57,10 +63,10 @@ module Retab
57
63
  sig { params(value: T.nilable(Retab::StepArtifactRef)).returns(T.nilable(Retab::StepArtifactRef)) }
58
64
  def artifact=(value); end
59
65
 
60
- sig { returns(T.nilable(T::Hash[String, T.untyped])) }
66
+ sig { returns(T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))) }
61
67
  def handle_outputs; end
62
68
 
63
- sig { params(value: T.nilable(T::Hash[String, T.untyped])).returns(T.nilable(T::Hash[String, T.untyped])) }
69
+ sig { params(value: T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))).returns(T.nilable(T.nilable(T::Hash[String, T.any(Retab::BlockExecJsonHandleInput, Retab::BlockExecFileHandleInput)]))) }
64
70
  def handle_outputs=(value); end
65
71
 
66
72
  sig { returns(T.nilable(T::Array[String])) }
@@ -81,6 +87,42 @@ module Retab
81
87
  sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
82
88
  def created_at=(value); end
83
89
 
90
+ sig { returns(T.nilable(String)) }
91
+ def started_at; end
92
+
93
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
94
+ def started_at=(value); end
95
+
96
+ sig { returns(T.nilable(String)) }
97
+ def completed_at; end
98
+
99
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
100
+ def completed_at=(value); end
101
+
102
+ sig { returns(T.nilable(String)) }
103
+ def handle_inputs_fingerprint; end
104
+
105
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
106
+ def handle_inputs_fingerprint=(value); end
107
+
108
+ sig { returns(T.nilable(String)) }
109
+ def workflow_draft_fingerprint; end
110
+
111
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
112
+ def workflow_draft_fingerprint=(value); end
113
+
114
+ sig { returns(T.nilable(String)) }
115
+ def block_config_fingerprint; end
116
+
117
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
118
+ def block_config_fingerprint=(value); end
119
+
120
+ sig { returns(T.nilable(String)) }
121
+ def execution_fingerprint; end
122
+
123
+ sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
124
+ def execution_fingerprint=(value); end
125
+
84
126
  sig { returns(T.nilable(T::Hash[String, T.untyped])) }
85
127
  def block_config; end
86
128
 
@@ -88,10 +130,10 @@ module Retab
88
130
  def block_config=(value); end
89
131
 
90
132
  sig { returns(T.nilable(String)) }
91
- def step_id; end
133
+ def source_step_id; end
92
134
 
93
135
  sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
94
- def step_id=(value); end
136
+ def source_step_id=(value); end
95
137
 
96
138
  sig { returns(T.nilable(T::Array[T::Hash[String, T.untyped]])) }
97
139
  def available_iterations; end
@@ -9,10 +9,10 @@ module Retab
9
9
  sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
10
10
  def initialize(json); end
11
11
 
12
- sig { returns(T::Array[Retab::WorkflowTable]) }
12
+ sig { returns(T.nilable(T::Array[Retab::WorkflowTable])) }
13
13
  def tables; end
14
14
 
15
- sig { params(value: T::Array[Retab::WorkflowTable]).returns(T::Array[Retab::WorkflowTable]) }
15
+ sig { params(value: T.nilable(T::Array[Retab::WorkflowTable])).returns(T.nilable(T::Array[Retab::WorkflowTable])) }
16
16
  def tables=(value); end
17
17
 
18
18
  sig { returns(T::Hash[Symbol, T.untyped]) }
@@ -15,10 +15,10 @@ module Retab
15
15
  sig { params(value: String).returns(String) }
16
16
  def table_id=(value); end
17
17
 
18
- sig { returns(T::Array[Retab::WorkflowTableColumn]) }
18
+ sig { returns(T.nilable(T::Array[Retab::WorkflowTableColumn])) }
19
19
  def columns; end
20
20
 
21
- sig { params(value: T::Array[Retab::WorkflowTableColumn]).returns(T::Array[Retab::WorkflowTableColumn]) }
21
+ sig { params(value: T.nilable(T::Array[Retab::WorkflowTableColumn])).returns(T.nilable(T::Array[Retab::WorkflowTableColumn])) }
22
22
  def columns=(value); end
23
23
 
24
24
  sig { returns(T::Hash[Symbol, T.untyped]) }
@@ -16,10 +16,10 @@ module Retab
16
16
  def id=(value); end
17
17
 
18
18
  sig { returns(T.nilable(String)) }
19
- def run_id; end
19
+ def workflow_test_run_id; end
20
20
 
21
21
  sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
22
- def run_id=(value); end
22
+ def workflow_test_run_id=(value); end
23
23
 
24
24
  sig { returns(String) }
25
25
  def test_id; end
@@ -51,11 +51,17 @@ module Retab
51
51
  sig { params(value: String).returns(String) }
52
52
  def workflow_id=(value); end
53
53
 
54
- sig { returns(Retab::WorkflowTestBlockTarget) }
55
- def target; end
54
+ sig { returns(String) }
55
+ def block_id; end
56
+
57
+ sig { params(value: String).returns(String) }
58
+ def block_id=(value); end
56
59
 
57
- sig { params(value: Retab::WorkflowTestBlockTarget).returns(Retab::WorkflowTestBlockTarget) }
58
- def target=(value); end
60
+ sig { returns(String) }
61
+ def block_type; end
62
+
63
+ sig { params(value: String).returns(String) }
64
+ def block_type=(value); end
59
65
 
60
66
  sig { returns(T.nilable(String)) }
61
67
  def execution_fingerprint; end
@@ -81,17 +87,23 @@ module Retab
81
87
  sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
82
88
  def block_config_fingerprint=(value); end
83
89
 
84
- sig { returns(T.any(Retab::ManualWorkflowTestSource, Retab::RunStepWorkflowTestSource)) }
85
- def source; end
90
+ sig { returns(T.nilable(Retab::StepArtifactRef)) }
91
+ def artifact; end
86
92
 
87
- sig { params(value: T.any(Retab::ManualWorkflowTestSource, Retab::RunStepWorkflowTestSource)).returns(T.any(Retab::ManualWorkflowTestSource, Retab::RunStepWorkflowTestSource)) }
88
- def source=(value); end
93
+ sig { params(value: T.nilable(Retab::StepArtifactRef)).returns(T.nilable(Retab::StepArtifactRef)) }
94
+ def artifact=(value); end
89
95
 
90
- sig { returns(T.nilable(T::Hash[String, T.untyped])) }
91
- def outputs; end
96
+ sig { returns(T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])) }
97
+ def handle_inputs; end
92
98
 
93
- sig { params(value: T.nilable(T::Hash[String, T.untyped])).returns(T.nilable(T::Hash[String, T.untyped])) }
94
- def outputs=(value); end
99
+ sig { params(value: T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])).returns(T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])) }
100
+ def handle_inputs=(value); end
101
+
102
+ sig { returns(T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])) }
103
+ def handle_outputs; end
104
+
105
+ sig { params(value: T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])).returns(T.nilable(T::Hash[String, T.any(Retab::JsonHandleInput, Retab::FileHandleInput)])) }
106
+ def handle_outputs=(value); end
95
107
 
96
108
  sig { returns(T.nilable(T::Array[String])) }
97
109
  def routing_decisions; end
@@ -105,18 +117,6 @@ module Retab
105
117
  sig { params(value: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
106
118
  def warnings=(value); end
107
119
 
108
- sig { returns(T.nilable(Retab::ErrorDetails)) }
109
- def error; end
110
-
111
- sig { params(value: T.nilable(Retab::ErrorDetails)).returns(T.nilable(Retab::ErrorDetails)) }
112
- def error=(value); end
113
-
114
- sig { returns(T.nilable(T::Boolean)) }
115
- def skipped; end
116
-
117
- sig { params(value: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
118
- def skipped=(value); end
119
-
120
120
  sig { returns(T.nilable(Retab::AssertionResult)) }
121
121
  def assertion_result; end
122
122
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: retab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Retab
@@ -323,9 +323,16 @@ files:
323
323
  - lib/retab/workflow_artifacts/while_loop_termination.rb
324
324
  - lib/retab/workflow_artifacts/workflow_artifact.rb
325
325
  - lib/retab/workflow_block_executions.rb
326
+ - lib/retab/workflow_block_executions/block_exec_file_handle_input.rb
327
+ - lib/retab/workflow_block_executions/block_exec_file_ref.rb
328
+ - lib/retab/workflow_block_executions/block_exec_json_handle_input.rb
329
+ - lib/retab/workflow_block_executions/cancelled_block_execution_lifecycle.rb
326
330
  - lib/retab/workflow_block_executions/completed_block_execution_lifecycle.rb
327
331
  - lib/retab/workflow_block_executions/create_block_execution_request.rb
328
332
  - lib/retab/workflow_block_executions/error_block_execution_lifecycle.rb
333
+ - lib/retab/workflow_block_executions/pending_block_execution_lifecycle.rb
334
+ - lib/retab/workflow_block_executions/queued_block_execution_lifecycle.rb
335
+ - lib/retab/workflow_block_executions/running_block_execution_lifecycle.rb
329
336
  - lib/retab/workflow_block_executions/skipped_block_execution_lifecycle.rb
330
337
  - lib/retab/workflow_block_executions/step_artifact_ref.rb
331
338
  - lib/retab/workflow_block_executions/stored_block_execution.rb
@@ -352,7 +359,6 @@ files:
352
359
  - lib/retab/workflow_experiments/explicit_experiment_document_request.rb
353
360
  - lib/retab/workflow_experiments/file_handle_input.rb
354
361
  - lib/retab/workflow_experiments/json_handle_input.rb
355
- - lib/retab/workflow_experiments/materialized_document.rb
356
362
  - lib/retab/workflow_experiments/update_experiment_request.rb
357
363
  - lib/retab/workflow_experiments/workflow_experiment.rb
358
364
  - lib/retab/workflow_review_versions.rb
@@ -498,12 +504,16 @@ files:
498
504
  - rbi/retab/awaiting_review_step_lifecycle.rbi
499
505
  - rbi/retab/b_box.rbi
500
506
  - rbi/retab/between_condition.rbi
507
+ - rbi/retab/block_exec_file_handle_input.rbi
508
+ - rbi/retab/block_exec_file_ref.rbi
509
+ - rbi/retab/block_exec_json_handle_input.rbi
501
510
  - rbi/retab/block_test_batch_execution_counts.rbi
502
511
  - rbi/retab/block_test_lifecycle_counts.rbi
503
512
  - rbi/retab/block_test_outcome_counts.rbi
504
513
  - rbi/retab/cancel_workflow_experiment_run_response.rbi
505
514
  - rbi/retab/cancel_workflow_request.rbi
506
515
  - rbi/retab/cancel_workflow_response.rbi
516
+ - rbi/retab/cancelled_block_execution_lifecycle.rbi
507
517
  - rbi/retab/cancelled_step_lifecycle.rbi
508
518
  - rbi/retab/cancelled_terminal.rbi
509
519
  - rbi/retab/cancelled_workflow_experiment_result.rbi
@@ -622,7 +632,6 @@ files:
622
632
  - rbi/retab/llm_not_judged_as_condition.rbi
623
633
  - rbi/retab/manual_workflow_test_source.rbi
624
634
  - rbi/retab/matche_regex_condition.rbi
625
- - rbi/retab/materialized_document.rbi
626
635
  - rbi/retab/metrics_stale_error_last_run.rbi
627
636
  - rbi/retab/not_contains_condition.rbi
628
637
  - rbi/retab/not_equals_condition.rbi
@@ -642,6 +651,7 @@ files:
642
651
  - rbi/retab/partition_request.rbi
643
652
  - rbi/retab/partition_workflow_artifact.rbi
644
653
  - rbi/retab/partitions.rbi
654
+ - rbi/retab/pending_block_execution_lifecycle.rbi
645
655
  - rbi/retab/pending_run.rbi
646
656
  - rbi/retab/pending_step_lifecycle.rbi
647
657
  - rbi/retab/pending_workflow_experiment_result.rbi
@@ -651,6 +661,7 @@ files:
651
661
  - rbi/retab/public_handle_payload.rbi
652
662
  - rbi/retab/publish_workflow_request.rbi
653
663
  - rbi/retab/query_workflow_table_request.rbi
664
+ - rbi/retab/queued_block_execution_lifecycle.rbi
654
665
  - rbi/retab/queued_step_lifecycle.rbi
655
666
  - rbi/retab/queued_workflow_experiment_result.rbi
656
667
  - rbi/retab/queued_workflow_experiment_run.rbi
@@ -679,6 +690,7 @@ files:
679
690
  - rbi/retab/run_inputs.rbi
680
691
  - rbi/retab/run_step_workflow_test_source.rbi
681
692
  - rbi/retab/run_timing.rbi
693
+ - rbi/retab/running_block_execution_lifecycle.rbi
682
694
  - rbi/retab/running_run.rbi
683
695
  - rbi/retab/running_step_lifecycle.rbi
684
696
  - rbi/retab/running_workflow_experiment_result.rbi
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # This file is auto-generated by oagen. Do not edit.
4
-
5
- module Retab
6
- class MaterializedDocument < Retab::Types::BaseModel
7
-
8
- HASH_ATTRS = {
9
- original_id: :original_id,
10
- filename: :filename,
11
- mime_type: :mime_type,
12
- gcs_uri: :gcs_uri,
13
- size_bytes: :size_bytes,
14
- content_fingerprint: :content_fingerprint
15
- }.freeze
16
-
17
- attr_accessor(
18
- :original_id,
19
- :filename,
20
- :mime_type,
21
- :gcs_uri,
22
- :size_bytes,
23
- :content_fingerprint
24
- )
25
-
26
- def initialize(json)
27
- super()
28
- hash = self.class.normalize(json)
29
- @original_id = hash[:original_id]
30
- @filename = hash[:filename]
31
- @mime_type = hash[:mime_type]
32
- @gcs_uri = hash[:gcs_uri]
33
- @size_bytes = hash[:size_bytes]
34
- @content_fingerprint = hash[:content_fingerprint]
35
- end
36
- end
37
- end