vellum_ai 1.14.2 → 1.14.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b8a8f454fee1f291795592d7269917b93878d313195d21ef6f3c7ed218f5bd9
4
- data.tar.gz: b7f45a55cd2e7ba92886f8adb40189f5bfec81fc18ed2e653e99a842b2120b0c
3
+ metadata.gz: 773a96530e6b5c8d9e660c018941ba5170f3259598cfb1f96c044c8418d2b42a
4
+ data.tar.gz: 7993665369a5918c4056d8c768a45170d95df7b02b30d488a2769856341e1620
5
5
  SHA512:
6
- metadata.gz: 99bef05a234be14be4ca0caef253f5445cd4e58dc1914be4a7d198ca7cdbaa50d9d9a093faefe310c226517602d2db01eaa46197523febc253dbaa6b9d152bba
7
- data.tar.gz: 9abbeda556fc5ca31bb6e1685449d33c6bdf14aed143a30b84830490f00547d160d7693e305dab1194894fcb13f17401317e17a69feaab577694fa501a25661d
6
+ metadata.gz: c8931c2b9fad67b09642220b88b7a9b6a6342974fe30f7dfaec401d155a29b762497138fe06ca42e0e31441b32be5f4a8dc3e9fc9a500382faf1cefaf1f32859
7
+ data.tar.gz: 5b24f1bdccce5eb609eaf0eb314a24357cad5bd310d928dee68ccea7dd43cb7225fc5877432c0a97f58e5544a6fc7b55d4ef5a0bba04bb5ddc2fedff701e1b10
data/lib/requests.rb CHANGED
@@ -56,7 +56,7 @@ end
56
56
  end
57
57
  # @return [Hash{String => String}]
58
58
  def get_headers
59
- headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.14.2' }
59
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.14.3' }
60
60
  headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
61
61
  headers
62
62
  end
@@ -107,7 +107,7 @@ end
107
107
  end
108
108
  # @return [Hash{String => String}]
109
109
  def get_headers
110
- headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.14.2' }
110
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.14.3' }
111
111
  headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
112
112
  headers
113
113
  end
data/lib/types_export.rb CHANGED
@@ -642,6 +642,9 @@ require_relative "vellum_ai/types/vellum_variable_type"
642
642
  require_relative "vellum_ai/types/vellum_video"
643
643
  require_relative "vellum_ai/types/vellum_video_request"
644
644
  require_relative "vellum_ai/types/vellum_workflow_execution_event"
645
+ require_relative "vellum_ai/types/workflow_integration_dependency"
646
+ require_relative "vellum_ai/types/workflow_model_provider_dependency"
647
+ require_relative "vellum_ai/types/workflow_dependency"
645
648
  require_relative "vellum_ai/types/workflow_deployment_display_data"
646
649
  require_relative "vellum_ai/types/workflow_deployment_event_executions_response"
647
650
  require_relative "vellum_ai/types/workflow_deployment_history_item"
@@ -23,6 +23,7 @@ module Vellum
23
23
  # - 'additional_parameters' (retrieve only) fetches additional parameter
24
24
  # requirements for the auth config.
25
25
  # @param integration_name [String]
26
+ # @param integration_names [String] Multiple values may be separated by commas.
26
27
  # @param integration_provider [String]
27
28
  # @param limit [Integer] Number of results to return per page.
28
29
  # @param offset [Integer] The initial index from which to return the results.
@@ -37,7 +38,7 @@ module Vellum
37
38
  # api_key: "YOUR_API_KEY"
38
39
  # )
39
40
  # api.integration_auth_configs.list_integration_auth_configs
40
- def list_integration_auth_configs(expand: nil, integration_name: nil, integration_provider: nil, limit: nil, offset: nil, ordering: nil, search: nil, request_options: nil)
41
+ def list_integration_auth_configs(expand: nil, integration_name: nil, integration_names: nil, integration_provider: nil, limit: nil, offset: nil, ordering: nil, search: nil, request_options: nil)
41
42
  response = @request_client.conn.get do | req |
42
43
  unless request_options&.timeout_in_seconds.nil?
43
44
  req.options.timeout = request_options.timeout_in_seconds
@@ -51,7 +52,7 @@ module Vellum
51
52
  req.headers["X-API-Version"] = "2025-07-30"
52
53
  end
53
54
  req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
54
- req.params = { **(request_options&.additional_query_parameters || {}), "expand": expand, "integration_name": integration_name, "integration_provider": integration_provider, "limit": limit, "offset": offset, "ordering": ordering, "search": search }.compact
55
+ req.params = { **(request_options&.additional_query_parameters || {}), "expand": expand, "integration_name": integration_name, "integration_names": integration_names, "integration_provider": integration_provider, "limit": limit, "offset": offset, "ordering": ordering, "search": search }.compact
55
56
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
56
57
  req.body = { **(request_options&.additional_body_parameters || {}) }.compact
57
58
  end
@@ -78,6 +79,7 @@ end
78
79
  # - 'additional_parameters' (retrieve only) fetches additional parameter
79
80
  # requirements for the auth config.
80
81
  # @param integration_name [String]
82
+ # @param integration_names [String] Multiple values may be separated by commas.
81
83
  # @param integration_provider [String]
82
84
  # @param limit [Integer] Number of results to return per page.
83
85
  # @param offset [Integer] The initial index from which to return the results.
@@ -92,7 +94,7 @@ end
92
94
  # api_key: "YOUR_API_KEY"
93
95
  # )
94
96
  # api.integration_auth_configs.list_integration_auth_configs
95
- def list_integration_auth_configs(expand: nil, integration_name: nil, integration_provider: nil, limit: nil, offset: nil, ordering: nil, search: nil, request_options: nil)
97
+ def list_integration_auth_configs(expand: nil, integration_name: nil, integration_names: nil, integration_provider: nil, limit: nil, offset: nil, ordering: nil, search: nil, request_options: nil)
96
98
  Async do
97
99
  response = @request_client.conn.get do | req |
98
100
  unless request_options&.timeout_in_seconds.nil?
@@ -107,7 +109,7 @@ end
107
109
  req.headers["X-API-Version"] = "2025-07-30"
108
110
  end
109
111
  req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
110
- req.params = { **(request_options&.additional_query_parameters || {}), "expand": expand, "integration_name": integration_name, "integration_provider": integration_provider, "limit": limit, "offset": offset, "ordering": ordering, "search": search }.compact
112
+ req.params = { **(request_options&.additional_query_parameters || {}), "expand": expand, "integration_name": integration_name, "integration_names": integration_names, "integration_provider": integration_provider, "limit": limit, "offset": offset, "ordering": ordering, "search": search }.compact
111
113
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
112
114
  req.body = { **(request_options&.additional_body_parameters || {}) }.compact
113
115
  end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+ require "json"
3
+ require_relative "workflow_integration_dependency"
4
+ require_relative "workflow_model_provider_dependency"
5
+
6
+ module Vellum
7
+ class WorkflowDependency
8
+
9
+
10
+ # Deserialize a JSON object to an instance of WorkflowDependency
11
+ #
12
+ # @param json_object [String]
13
+ # @return [Vellum::WorkflowDependency]
14
+ def self.from_json(json_object:)
15
+ struct = JSON.parse(json_object, object_class: OpenStruct)
16
+ begin
17
+ Vellum::WorkflowIntegrationDependency.validate_raw(obj: struct)
18
+ unless struct.nil?
19
+ return Vellum::WorkflowIntegrationDependency.from_json(json_object: struct)
20
+ else
21
+ return nil
22
+ end
23
+ rescue StandardError
24
+ # noop
25
+ end
26
+ begin
27
+ Vellum::WorkflowModelProviderDependency.validate_raw(obj: struct)
28
+ unless struct.nil?
29
+ return Vellum::WorkflowModelProviderDependency.from_json(json_object: struct)
30
+ else
31
+ return nil
32
+ end
33
+ rescue StandardError
34
+ # noop
35
+ end
36
+ return struct
37
+ end
38
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
39
+ # hash and check each fields type against the current object's property
40
+ # definitions.
41
+ #
42
+ # @param obj [Object]
43
+ # @return [Void]
44
+ def self.validate_raw(obj:)
45
+ begin
46
+ return Vellum::WorkflowIntegrationDependency.validate_raw(obj: obj)
47
+ rescue StandardError
48
+ # noop
49
+ end
50
+ begin
51
+ return Vellum::WorkflowModelProviderDependency.validate_raw(obj: obj)
52
+ rescue StandardError
53
+ # noop
54
+ end
55
+ raise("Passed value matched no type within the union, validation failed.")
56
+ end
57
+ end
58
+ end
@@ -1,9 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
  require_relative "vellum_variable"
3
+ require_relative "workflow_dependency"
3
4
  require "ostruct"
4
5
  require "json"
5
6
 
6
7
  module Vellum
8
+ # The workflow version associated with a workflow deployment release.
7
9
  class WorkflowDeploymentReleaseWorkflowVersion
8
10
  # @return [String]
9
11
  attr_reader :id
@@ -11,6 +13,8 @@ module Vellum
11
13
  attr_reader :input_variables
12
14
  # @return [Array<Vellum::VellumVariable>]
13
15
  attr_reader :output_variables
16
+ # @return [Array<Vellum::WorkflowDependency>]
17
+ attr_reader :dependencies
14
18
  # @return [OpenStruct] Additional properties unmapped to the current class definition
15
19
  attr_reader :additional_properties
16
20
  # @return [Object]
@@ -22,14 +26,18 @@ module Vellum
22
26
  # @param id [String]
23
27
  # @param input_variables [Array<Vellum::VellumVariable>]
24
28
  # @param output_variables [Array<Vellum::VellumVariable>]
29
+ # @param dependencies [Array<Vellum::WorkflowDependency>]
25
30
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
31
  # @return [Vellum::WorkflowDeploymentReleaseWorkflowVersion]
27
- def initialize(id:, input_variables:, output_variables:, additional_properties: nil)
32
+ def initialize(id:, input_variables:, output_variables:, dependencies: OMIT, additional_properties: nil)
28
33
  @id = id
29
34
  @input_variables = input_variables
30
35
  @output_variables = output_variables
36
+ @dependencies = dependencies if dependencies != OMIT
31
37
  @additional_properties = additional_properties
32
- @_field_set = { "id": id, "input_variables": input_variables, "output_variables": output_variables }
38
+ @_field_set = { "id": id, "input_variables": input_variables, "output_variables": output_variables, "dependencies": dependencies }.reject do | _k, v |
39
+ v == OMIT
40
+ end
33
41
  end
34
42
  # Deserialize a JSON object to an instance of
35
43
  # WorkflowDeploymentReleaseWorkflowVersion
@@ -47,11 +55,16 @@ end
47
55
  output_variables = parsed_json["output_variables"]&.map do | item |
48
56
  item = item.to_json
49
57
  Vellum::VellumVariable.from_json(json_object: item)
58
+ end
59
+ dependencies = parsed_json["dependencies"]&.map do | item |
60
+ item = item.to_json
61
+ Vellum::WorkflowDependency.from_json(json_object: item)
50
62
  end
51
63
  new(
52
64
  id: id,
53
65
  input_variables: input_variables,
54
66
  output_variables: output_variables,
67
+ dependencies: dependencies,
55
68
  additional_properties: struct
56
69
  )
57
70
  end
@@ -72,6 +85,7 @@ end
72
85
  obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
73
86
  obj.input_variables.is_a?(Array) != false || raise("Passed value for field obj.input_variables is not the expected type, validation failed.")
74
87
  obj.output_variables.is_a?(Array) != false || raise("Passed value for field obj.output_variables is not the expected type, validation failed.")
88
+ obj.dependencies&.is_a?(Array) != false || raise("Passed value for field obj.dependencies is not the expected type, validation failed.")
75
89
  end
76
90
  end
77
91
  end
@@ -0,0 +1,78 @@
1
+ # frozen_string_literal: true
2
+ require_relative "integration_name"
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module Vellum
7
+ class WorkflowIntegrationDependency
8
+ # @return [String]
9
+ attr_reader :type
10
+ # @return [Vellum::IntegrationName]
11
+ attr_reader :name
12
+ # @return [String]
13
+ attr_reader :provider
14
+ # @return [String]
15
+ attr_reader :label
16
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
17
+ attr_reader :additional_properties
18
+ # @return [Object]
19
+ attr_reader :_field_set
20
+ protected :_field_set
21
+
22
+ OMIT = Object.new
23
+
24
+ # @param type [String]
25
+ # @param name [Vellum::IntegrationName]
26
+ # @param provider [String]
27
+ # @param label [String]
28
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
29
+ # @return [Vellum::WorkflowIntegrationDependency]
30
+ def initialize(type:, name:, provider:, label: OMIT, additional_properties: nil)
31
+ @type = type
32
+ @name = name
33
+ @provider = provider
34
+ @label = label if label != OMIT
35
+ @additional_properties = additional_properties
36
+ @_field_set = { "type": type, "name": name, "provider": provider, "label": label }.reject do | _k, v |
37
+ v == OMIT
38
+ end
39
+ end
40
+ # Deserialize a JSON object to an instance of WorkflowIntegrationDependency
41
+ #
42
+ # @param json_object [String]
43
+ # @return [Vellum::WorkflowIntegrationDependency]
44
+ def self.from_json(json_object:)
45
+ struct = JSON.parse(json_object, object_class: OpenStruct)
46
+ parsed_json = JSON.parse(json_object)
47
+ type = parsed_json["type"]
48
+ name = parsed_json["name"]
49
+ provider = parsed_json["provider"]
50
+ label = parsed_json["label"]
51
+ new(
52
+ type: type,
53
+ name: name,
54
+ provider: provider,
55
+ label: label,
56
+ additional_properties: struct
57
+ )
58
+ end
59
+ # Serialize an instance of WorkflowIntegrationDependency to a JSON object
60
+ #
61
+ # @return [String]
62
+ def to_json
63
+ @_field_set&.to_json
64
+ end
65
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
66
+ # hash and check each fields type against the current object's property
67
+ # definitions.
68
+ #
69
+ # @param obj [Object]
70
+ # @return [Void]
71
+ def self.validate_raw(obj:)
72
+ obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
73
+ obj.name.is_a?(Vellum::IntegrationName) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
74
+ obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
75
+ obj.label&.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,78 @@
1
+ # frozen_string_literal: true
2
+ require_relative "ml_model_hosting_interface"
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module Vellum
7
+ class WorkflowModelProviderDependency
8
+ # @return [String]
9
+ attr_reader :type
10
+ # @return [Vellum::MlModelHostingInterface]
11
+ attr_reader :name
12
+ # @return [String]
13
+ attr_reader :label
14
+ # @return [String]
15
+ attr_reader :model_name
16
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
17
+ attr_reader :additional_properties
18
+ # @return [Object]
19
+ attr_reader :_field_set
20
+ protected :_field_set
21
+
22
+ OMIT = Object.new
23
+
24
+ # @param type [String]
25
+ # @param name [Vellum::MlModelHostingInterface]
26
+ # @param label [String]
27
+ # @param model_name [String]
28
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
29
+ # @return [Vellum::WorkflowModelProviderDependency]
30
+ def initialize(type:, name:, label: OMIT, model_name:, additional_properties: nil)
31
+ @type = type
32
+ @name = name
33
+ @label = label if label != OMIT
34
+ @model_name = model_name
35
+ @additional_properties = additional_properties
36
+ @_field_set = { "type": type, "name": name, "label": label, "model_name": model_name }.reject do | _k, v |
37
+ v == OMIT
38
+ end
39
+ end
40
+ # Deserialize a JSON object to an instance of WorkflowModelProviderDependency
41
+ #
42
+ # @param json_object [String]
43
+ # @return [Vellum::WorkflowModelProviderDependency]
44
+ def self.from_json(json_object:)
45
+ struct = JSON.parse(json_object, object_class: OpenStruct)
46
+ parsed_json = JSON.parse(json_object)
47
+ type = parsed_json["type"]
48
+ name = parsed_json["name"]
49
+ label = parsed_json["label"]
50
+ model_name = parsed_json["model_name"]
51
+ new(
52
+ type: type,
53
+ name: name,
54
+ label: label,
55
+ model_name: model_name,
56
+ additional_properties: struct
57
+ )
58
+ end
59
+ # Serialize an instance of WorkflowModelProviderDependency to a JSON object
60
+ #
61
+ # @return [String]
62
+ def to_json
63
+ @_field_set&.to_json
64
+ end
65
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
66
+ # hash and check each fields type against the current object's property
67
+ # definitions.
68
+ #
69
+ # @param obj [Object]
70
+ # @return [Void]
71
+ def self.validate_raw(obj:)
72
+ obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
73
+ obj.name.is_a?(Vellum::MlModelHostingInterface) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
74
+ obj.label&.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
75
+ obj.model_name.is_a?(String) != false || raise("Passed value for field obj.model_name is not the expected type, validation failed.")
76
+ end
77
+ end
78
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vellum_ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.2
4
+ version: 1.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vellum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-02-03 00:00:00.000000000 Z
11
+ date: 2026-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -779,6 +779,7 @@ files:
779
779
  - lib/vellum_ai/types/video_prompt_block.rb
780
780
  - lib/vellum_ai/types/video_vellum_value.rb
781
781
  - lib/vellum_ai/types/video_vellum_value_request.rb
782
+ - lib/vellum_ai/types/workflow_dependency.rb
782
783
  - lib/vellum_ai/types/workflow_deployment_display_data.rb
783
784
  - lib/vellum_ai/types/workflow_deployment_event_executions_response.rb
784
785
  - lib/vellum_ai/types/workflow_deployment_history_item.rb
@@ -826,6 +827,8 @@ files:
826
827
  - lib/vellum_ai/types/workflow_expand_meta_request.rb
827
828
  - lib/vellum_ai/types/workflow_initialization_error.rb
828
829
  - lib/vellum_ai/types/workflow_input.rb
830
+ - lib/vellum_ai/types/workflow_integration_dependency.rb
831
+ - lib/vellum_ai/types/workflow_model_provider_dependency.rb
829
832
  - lib/vellum_ai/types/workflow_node_result_data.rb
830
833
  - lib/vellum_ai/types/workflow_node_result_event.rb
831
834
  - lib/vellum_ai/types/workflow_node_result_event_state.rb