vellum_ai 1.5.5 → 1.6.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 (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/requests.rb +2 -2
  3. data/lib/types_export.rb +1 -0
  4. data/lib/vellum_ai/types/composio_tool_definition.rb +9 -2
  5. data/lib/vellum_ai/types/integration_auth_config_integration.rb +70 -0
  6. data/lib/vellum_ai/types/integration_auth_config_integration_credential.rb +4 -6
  7. data/lib/vellum_ai/types/integration_read.rb +3 -3
  8. data/lib/vellum_ai/types/named_test_case_audio_variable_value.rb +6 -4
  9. data/lib/vellum_ai/types/named_test_case_audio_variable_value_request.rb +6 -4
  10. data/lib/vellum_ai/types/named_test_case_document_variable_value.rb +6 -4
  11. data/lib/vellum_ai/types/named_test_case_document_variable_value_request.rb +6 -4
  12. data/lib/vellum_ai/types/named_test_case_image_variable_value.rb +6 -4
  13. data/lib/vellum_ai/types/named_test_case_image_variable_value_request.rb +6 -4
  14. data/lib/vellum_ai/types/named_test_case_video_variable_value.rb +6 -4
  15. data/lib/vellum_ai/types/named_test_case_video_variable_value_request.rb +6 -4
  16. data/lib/vellum_ai/types/slim_composio_tool_definition.rb +9 -2
  17. data/lib/vellum_ai/types/slim_integration_auth_config_read.rb +17 -4
  18. data/lib/vellum_ai/types/slim_integration_read.rb +3 -3
  19. data/lib/vellum_ai/types/test_case_audio_variable_value.rb +3 -3
  20. data/lib/vellum_ai/types/test_case_document_variable_value.rb +3 -3
  21. data/lib/vellum_ai/types/test_case_image_variable_value.rb +3 -3
  22. data/lib/vellum_ai/types/test_case_video_variable_value.rb +3 -3
  23. data/lib/vellum_ai/types/tool_definition_integration.rb +4 -6
  24. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb4ef60e68acae241c3753e9868822735dc16116bcf897a1cc43611fe1df0773
4
- data.tar.gz: 5d1259a230ed07fecedf7999badd7f389f821ca0e884b505e89952986211c587
3
+ metadata.gz: f09af9383b24079d6149b77a9dde5a2bc4f21d16f5c636d3262467116e1da91e
4
+ data.tar.gz: d31bb8c0afd3e8818228f0259a229ad7170055db286335447f8a633422413a86
5
5
  SHA512:
6
- metadata.gz: 9f9a00cd355db706dd940b7b162c8fd3b653fbbd915891e180523f246ab84e21759ba72fcbdb5b897d540d44d35eee04be0a2b1ee26157a4d5e86ea421658830
7
- data.tar.gz: 7b0ff2df98c9b3f8979a30eb2ea1bac23388c3cd48b408c4a33397ee36a74732873ca7a2c5b230ed1610b2a3195f1f88a27079f158604c506eefc728ff78d74a
6
+ metadata.gz: 43b6072b40b3c0e611b61efa49c0d7bed82b2fe2a21d7e5c3ccf6c53a2b817018b6f2be5fd63edc171f21a1a2a7721a641293dcc905051ec5d16c645f2fa9a88
7
+ data.tar.gz: 4a0ac1f988bbac1aeece35dadf2ad6d3eff95ef7a9ef94ef3e896dccdfa9dee8a9363fa2162ac2accb9f59406eff1744c6e33bd56b7278d110c916ec0d4ffd9e
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.5.5' }
59
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.6.0' }
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.5.5' }
110
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.6.0' }
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
@@ -268,6 +268,7 @@ require_relative "vellum_ai/types/initiated_prompt_execution_meta"
268
268
  require_relative "vellum_ai/types/initiated_workflow_node_result_event"
269
269
  require_relative "vellum_ai/types/instructor_vectorizer_config"
270
270
  require_relative "vellum_ai/types/instructor_vectorizer_config_request"
271
+ require_relative "vellum_ai/types/integration_auth_config_integration"
271
272
  require_relative "vellum_ai/types/integration_auth_config_integration_credential"
272
273
  require_relative "vellum_ai/types/integration_credential_access_type"
273
274
  require_relative "vellum_ai/types/components_schemas_composio_integration_exec_config"
@@ -12,6 +12,8 @@ module Vellum
12
12
  attr_reader :integration
13
13
  # @return [String]
14
14
  attr_reader :name
15
+ # @return [String]
16
+ attr_reader :label
15
17
  # @return [String]
16
18
  attr_reader :description
17
19
  # @return [Hash{String => Object}]
@@ -29,20 +31,22 @@ module Vellum
29
31
  # @param provider [String]
30
32
  # @param integration [Vellum::ToolDefinitionIntegration]
31
33
  # @param name [String]
34
+ # @param label [String]
32
35
  # @param description [String]
33
36
  # @param input_parameters [Hash{String => Object}]
34
37
  # @param output_parameters [Hash{String => Object}]
35
38
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
36
39
  # @return [Vellum::ComposioToolDefinition]
37
- def initialize(provider:, integration:, name:, description:, input_parameters:, output_parameters:, additional_properties: nil)
40
+ def initialize(provider:, integration:, name:, label:, description:, input_parameters:, output_parameters:, additional_properties: nil)
38
41
  @provider = provider
39
42
  @integration = integration
40
43
  @name = name
44
+ @label = label
41
45
  @description = description
42
46
  @input_parameters = input_parameters
43
47
  @output_parameters = output_parameters
44
48
  @additional_properties = additional_properties
45
- @_field_set = { "provider": provider, "integration": integration, "name": name, "description": description, "input_parameters": input_parameters, "output_parameters": output_parameters }
49
+ @_field_set = { "provider": provider, "integration": integration, "name": name, "label": label, "description": description, "input_parameters": input_parameters, "output_parameters": output_parameters }
46
50
  end
47
51
  # Deserialize a JSON object to an instance of ComposioToolDefinition
48
52
  #
@@ -59,6 +63,7 @@ module Vellum
59
63
  integration = nil
60
64
  end
61
65
  name = parsed_json["name"]
66
+ label = parsed_json["label"]
62
67
  description = parsed_json["description"]
63
68
  input_parameters = parsed_json["input_parameters"]
64
69
  output_parameters = parsed_json["output_parameters"]
@@ -66,6 +71,7 @@ module Vellum
66
71
  provider: provider,
67
72
  integration: integration,
68
73
  name: name,
74
+ label: label,
69
75
  description: description,
70
76
  input_parameters: input_parameters,
71
77
  output_parameters: output_parameters,
@@ -88,6 +94,7 @@ module Vellum
88
94
  obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
89
95
  Vellum::ToolDefinitionIntegration.validate_raw(obj: obj.integration)
90
96
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
97
+ obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
91
98
  obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
92
99
  obj.input_parameters.is_a?(Hash) != false || raise("Passed value for field obj.input_parameters is not the expected type, validation failed.")
93
100
  obj.output_parameters.is_a?(Hash) != false || raise("Passed value for field obj.output_parameters is not the expected type, validation failed.")
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+ require_relative "integration_provider"
3
+ require_relative "integration_name"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module Vellum
8
+ class IntegrationAuthConfigIntegration
9
+ # @return [String]
10
+ attr_reader :id
11
+ # @return [Vellum::INTEGRATION_PROVIDER]
12
+ attr_reader :provider
13
+ # @return [Vellum::IntegrationName]
14
+ attr_reader :name
15
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
16
+ attr_reader :additional_properties
17
+ # @return [Object]
18
+ attr_reader :_field_set
19
+ protected :_field_set
20
+
21
+ OMIT = Object.new
22
+
23
+ # @param id [String]
24
+ # @param provider [Vellum::INTEGRATION_PROVIDER]
25
+ # @param name [Vellum::IntegrationName]
26
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
27
+ # @return [Vellum::IntegrationAuthConfigIntegration]
28
+ def initialize(id:, provider:, name:, additional_properties: nil)
29
+ @id = id
30
+ @provider = provider
31
+ @name = name
32
+ @additional_properties = additional_properties
33
+ @_field_set = { "id": id, "provider": provider, "name": name }
34
+ end
35
+ # Deserialize a JSON object to an instance of IntegrationAuthConfigIntegration
36
+ #
37
+ # @param json_object [String]
38
+ # @return [Vellum::IntegrationAuthConfigIntegration]
39
+ def self.from_json(json_object:)
40
+ struct = JSON.parse(json_object, object_class: OpenStruct)
41
+ parsed_json = JSON.parse(json_object)
42
+ id = parsed_json["id"]
43
+ provider = parsed_json["provider"]
44
+ name = parsed_json["name"]
45
+ new(
46
+ id: id,
47
+ provider: provider,
48
+ name: name,
49
+ additional_properties: struct
50
+ )
51
+ end
52
+ # Serialize an instance of IntegrationAuthConfigIntegration to a JSON object
53
+ #
54
+ # @return [String]
55
+ def to_json
56
+ @_field_set&.to_json
57
+ end
58
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
59
+ # hash and check each fields type against the current object's property
60
+ # definitions.
61
+ #
62
+ # @param obj [Object]
63
+ # @return [Void]
64
+ def self.validate_raw(obj:)
65
+ obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
66
+ obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
67
+ obj.name.is_a?(Vellum::IntegrationName) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
68
+ end
69
+ end
70
+ end
@@ -17,12 +17,10 @@ module Vellum
17
17
  # @param id [String]
18
18
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
19
19
  # @return [Vellum::IntegrationAuthConfigIntegrationCredential]
20
- def initialize(id: OMIT, additional_properties: nil)
21
- @id = id if id != OMIT
20
+ def initialize(id:, additional_properties: nil)
21
+ @id = id
22
22
  @additional_properties = additional_properties
23
- @_field_set = { "id": id }.reject do | _k, v |
24
- v == OMIT
25
- end
23
+ @_field_set = { "id": id }
26
24
  end
27
25
  # Deserialize a JSON object to an instance of
28
26
  # IntegrationAuthConfigIntegrationCredential
@@ -49,7 +47,7 @@ end
49
47
  # @param obj [Object]
50
48
  # @return [Void]
51
49
  def self.validate_raw(obj:)
52
- obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
50
+ obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
53
51
  end
54
52
  end
55
53
  end
@@ -36,8 +36,8 @@ module Vellum
36
36
  # @param exec_config [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_INTEGRATION_EXEC_CONFIG] Integration provider specific information needed for filtering tools.
37
37
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
38
38
  # @return [Vellum::IntegrationRead]
39
- def initialize(id: OMIT, label: OMIT, icon_url:, name:, provider:, exec_config:, additional_properties: nil)
40
- @id = id if id != OMIT
39
+ def initialize(id:, label: OMIT, icon_url:, name:, provider:, exec_config:, additional_properties: nil)
40
+ @id = id
41
41
  @label = label if label != OMIT
42
42
  @icon_url = icon_url
43
43
  @name = name
@@ -89,7 +89,7 @@ end
89
89
  # @param obj [Object]
90
90
  # @return [Void]
91
91
  def self.validate_raw(obj:)
92
- obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
92
+ obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
93
93
  obj.label&.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
94
94
  obj.icon_url.is_a?(String) != false || raise("Passed value for field obj.icon_url is not the expected type, validation failed.")
95
95
  obj.name.is_a?(Vellum::IntegrationName) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
@@ -25,12 +25,14 @@ module Vellum
25
25
  # @param name [String]
26
26
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
27
27
  # @return [Vellum::NamedTestCaseAudioVariableValue]
28
- def initialize(type:, value:, name:, additional_properties: nil)
28
+ def initialize(type:, value: OMIT, name:, additional_properties: nil)
29
29
  @type = type
30
- @value = value
30
+ @value = value if value != OMIT
31
31
  @name = name
32
32
  @additional_properties = additional_properties
33
- @_field_set = { "type": type, "value": value, "name": name }
33
+ @_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
34
+ v == OMIT
35
+ end
34
36
  end
35
37
  # Deserialize a JSON object to an instance of NamedTestCaseAudioVariableValue
36
38
  #
@@ -68,7 +70,7 @@ module Vellum
68
70
  # @return [Void]
69
71
  def self.validate_raw(obj:)
70
72
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
71
- Vellum::VellumAudio.validate_raw(obj: obj.value)
73
+ obj.value.nil? || Vellum::VellumAudio.validate_raw(obj: obj.value)
72
74
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
73
75
  end
74
76
  end
@@ -25,12 +25,14 @@ module Vellum
25
25
  # @param name [String]
26
26
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
27
27
  # @return [Vellum::NamedTestCaseAudioVariableValueRequest]
28
- def initialize(type:, value:, name:, additional_properties: nil)
28
+ def initialize(type:, value: OMIT, name:, additional_properties: nil)
29
29
  @type = type
30
- @value = value
30
+ @value = value if value != OMIT
31
31
  @name = name
32
32
  @additional_properties = additional_properties
33
- @_field_set = { "type": type, "value": value, "name": name }
33
+ @_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
34
+ v == OMIT
35
+ end
34
36
  end
35
37
  # Deserialize a JSON object to an instance of
36
38
  # NamedTestCaseAudioVariableValueRequest
@@ -69,7 +71,7 @@ module Vellum
69
71
  # @return [Void]
70
72
  def self.validate_raw(obj:)
71
73
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
72
- Vellum::VellumAudioRequest.validate_raw(obj: obj.value)
74
+ obj.value.nil? || Vellum::VellumAudioRequest.validate_raw(obj: obj.value)
73
75
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
74
76
  end
75
77
  end
@@ -24,12 +24,14 @@ module Vellum
24
24
  # @param name [String]
25
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
26
  # @return [Vellum::NamedTestCaseDocumentVariableValue]
27
- def initialize(type:, value:, name:, additional_properties: nil)
27
+ def initialize(type:, value: OMIT, name:, additional_properties: nil)
28
28
  @type = type
29
- @value = value
29
+ @value = value if value != OMIT
30
30
  @name = name
31
31
  @additional_properties = additional_properties
32
- @_field_set = { "type": type, "value": value, "name": name }
32
+ @_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
33
+ v == OMIT
34
+ end
33
35
  end
34
36
  # Deserialize a JSON object to an instance of NamedTestCaseDocumentVariableValue
35
37
  #
@@ -67,7 +69,7 @@ module Vellum
67
69
  # @return [Void]
68
70
  def self.validate_raw(obj:)
69
71
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
70
- Vellum::VellumDocument.validate_raw(obj: obj.value)
72
+ obj.value.nil? || Vellum::VellumDocument.validate_raw(obj: obj.value)
71
73
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
72
74
  end
73
75
  end
@@ -24,12 +24,14 @@ module Vellum
24
24
  # @param name [String]
25
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
26
  # @return [Vellum::NamedTestCaseDocumentVariableValueRequest]
27
- def initialize(type:, value:, name:, additional_properties: nil)
27
+ def initialize(type:, value: OMIT, name:, additional_properties: nil)
28
28
  @type = type
29
- @value = value
29
+ @value = value if value != OMIT
30
30
  @name = name
31
31
  @additional_properties = additional_properties
32
- @_field_set = { "type": type, "value": value, "name": name }
32
+ @_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
33
+ v == OMIT
34
+ end
33
35
  end
34
36
  # Deserialize a JSON object to an instance of
35
37
  # NamedTestCaseDocumentVariableValueRequest
@@ -69,7 +71,7 @@ module Vellum
69
71
  # @return [Void]
70
72
  def self.validate_raw(obj:)
71
73
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
72
- Vellum::VellumDocumentRequest.validate_raw(obj: obj.value)
74
+ obj.value.nil? || Vellum::VellumDocumentRequest.validate_raw(obj: obj.value)
73
75
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
74
76
  end
75
77
  end
@@ -24,12 +24,14 @@ module Vellum
24
24
  # @param name [String]
25
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
26
  # @return [Vellum::NamedTestCaseImageVariableValue]
27
- def initialize(type:, value:, name:, additional_properties: nil)
27
+ def initialize(type:, value: OMIT, name:, additional_properties: nil)
28
28
  @type = type
29
- @value = value
29
+ @value = value if value != OMIT
30
30
  @name = name
31
31
  @additional_properties = additional_properties
32
- @_field_set = { "type": type, "value": value, "name": name }
32
+ @_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
33
+ v == OMIT
34
+ end
33
35
  end
34
36
  # Deserialize a JSON object to an instance of NamedTestCaseImageVariableValue
35
37
  #
@@ -67,7 +69,7 @@ module Vellum
67
69
  # @return [Void]
68
70
  def self.validate_raw(obj:)
69
71
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
70
- Vellum::VellumImage.validate_raw(obj: obj.value)
72
+ obj.value.nil? || Vellum::VellumImage.validate_raw(obj: obj.value)
71
73
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
72
74
  end
73
75
  end
@@ -24,12 +24,14 @@ module Vellum
24
24
  # @param name [String]
25
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
26
  # @return [Vellum::NamedTestCaseImageVariableValueRequest]
27
- def initialize(type:, value:, name:, additional_properties: nil)
27
+ def initialize(type:, value: OMIT, name:, additional_properties: nil)
28
28
  @type = type
29
- @value = value
29
+ @value = value if value != OMIT
30
30
  @name = name
31
31
  @additional_properties = additional_properties
32
- @_field_set = { "type": type, "value": value, "name": name }
32
+ @_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
33
+ v == OMIT
34
+ end
33
35
  end
34
36
  # Deserialize a JSON object to an instance of
35
37
  # NamedTestCaseImageVariableValueRequest
@@ -68,7 +70,7 @@ module Vellum
68
70
  # @return [Void]
69
71
  def self.validate_raw(obj:)
70
72
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
71
- Vellum::VellumImageRequest.validate_raw(obj: obj.value)
73
+ obj.value.nil? || Vellum::VellumImageRequest.validate_raw(obj: obj.value)
72
74
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
73
75
  end
74
76
  end
@@ -24,12 +24,14 @@ module Vellum
24
24
  # @param name [String]
25
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
26
  # @return [Vellum::NamedTestCaseVideoVariableValue]
27
- def initialize(type:, value:, name:, additional_properties: nil)
27
+ def initialize(type:, value: OMIT, name:, additional_properties: nil)
28
28
  @type = type
29
- @value = value
29
+ @value = value if value != OMIT
30
30
  @name = name
31
31
  @additional_properties = additional_properties
32
- @_field_set = { "type": type, "value": value, "name": name }
32
+ @_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
33
+ v == OMIT
34
+ end
33
35
  end
34
36
  # Deserialize a JSON object to an instance of NamedTestCaseVideoVariableValue
35
37
  #
@@ -67,7 +69,7 @@ module Vellum
67
69
  # @return [Void]
68
70
  def self.validate_raw(obj:)
69
71
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
70
- Vellum::VellumVideo.validate_raw(obj: obj.value)
72
+ obj.value.nil? || Vellum::VellumVideo.validate_raw(obj: obj.value)
71
73
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
72
74
  end
73
75
  end
@@ -24,12 +24,14 @@ module Vellum
24
24
  # @param name [String]
25
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
26
  # @return [Vellum::NamedTestCaseVideoVariableValueRequest]
27
- def initialize(type:, value:, name:, additional_properties: nil)
27
+ def initialize(type:, value: OMIT, name:, additional_properties: nil)
28
28
  @type = type
29
- @value = value
29
+ @value = value if value != OMIT
30
30
  @name = name
31
31
  @additional_properties = additional_properties
32
- @_field_set = { "type": type, "value": value, "name": name }
32
+ @_field_set = { "type": type, "value": value, "name": name }.reject do | _k, v |
33
+ v == OMIT
34
+ end
33
35
  end
34
36
  # Deserialize a JSON object to an instance of
35
37
  # NamedTestCaseVideoVariableValueRequest
@@ -68,7 +70,7 @@ module Vellum
68
70
  # @return [Void]
69
71
  def self.validate_raw(obj:)
70
72
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
71
- Vellum::VellumVideoRequest.validate_raw(obj: obj.value)
73
+ obj.value.nil? || Vellum::VellumVideoRequest.validate_raw(obj: obj.value)
72
74
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
73
75
  end
74
76
  end
@@ -11,6 +11,8 @@ module Vellum
11
11
  attr_reader :integration
12
12
  # @return [String]
13
13
  attr_reader :name
14
+ # @return [String]
15
+ attr_reader :label
14
16
  # @return [String]
15
17
  attr_reader :description
16
18
  # @return [OpenStruct] Additional properties unmapped to the current class definition
@@ -24,16 +26,18 @@ module Vellum
24
26
  # @param provider [String]
25
27
  # @param integration [Vellum::ToolDefinitionIntegration]
26
28
  # @param name [String]
29
+ # @param label [String]
27
30
  # @param description [String]
28
31
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
29
32
  # @return [Vellum::SlimComposioToolDefinition]
30
- def initialize(provider:, integration:, name:, description:, additional_properties: nil)
33
+ def initialize(provider:, integration:, name:, label:, description:, additional_properties: nil)
31
34
  @provider = provider
32
35
  @integration = integration
33
36
  @name = name
37
+ @label = label
34
38
  @description = description
35
39
  @additional_properties = additional_properties
36
- @_field_set = { "provider": provider, "integration": integration, "name": name, "description": description }
40
+ @_field_set = { "provider": provider, "integration": integration, "name": name, "label": label, "description": description }
37
41
  end
38
42
  # Deserialize a JSON object to an instance of SlimComposioToolDefinition
39
43
  #
@@ -50,11 +54,13 @@ module Vellum
50
54
  integration = nil
51
55
  end
52
56
  name = parsed_json["name"]
57
+ label = parsed_json["label"]
53
58
  description = parsed_json["description"]
54
59
  new(
55
60
  provider: provider,
56
61
  integration: integration,
57
62
  name: name,
63
+ label: label,
58
64
  description: description,
59
65
  additional_properties: struct
60
66
  )
@@ -75,6 +81,7 @@ module Vellum
75
81
  obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
76
82
  Vellum::ToolDefinitionIntegration.validate_raw(obj: obj.integration)
77
83
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
84
+ obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
78
85
  obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
79
86
  end
80
87
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+ require_relative "integration_auth_config_integration"
2
3
  require_relative "integration_auth_config_integration_credential"
3
4
  require_relative "integration_credential_access_type"
4
5
  require "ostruct"
@@ -9,6 +10,8 @@ module Vellum
9
10
  class SlimIntegrationAuthConfigRead
10
11
  # @return [String]
11
12
  attr_reader :id
13
+ # @return [Vellum::IntegrationAuthConfigIntegration]
14
+ attr_reader :integration
12
15
  # @return [Array<Vellum::IntegrationAuthConfigIntegrationCredential>]
13
16
  attr_reader :integration_credentials
14
17
  # @return [Vellum::IntegrationCredentialAccessType]
@@ -22,16 +25,18 @@ module Vellum
22
25
  OMIT = Object.new
23
26
 
24
27
  # @param id [String]
28
+ # @param integration [Vellum::IntegrationAuthConfigIntegration]
25
29
  # @param integration_credentials [Array<Vellum::IntegrationAuthConfigIntegrationCredential>]
26
30
  # @param default_access_type [Vellum::IntegrationCredentialAccessType]
27
31
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
28
32
  # @return [Vellum::SlimIntegrationAuthConfigRead]
29
- def initialize(id: OMIT, integration_credentials: OMIT, default_access_type: OMIT, additional_properties: nil)
30
- @id = id if id != OMIT
33
+ def initialize(id:, integration:, integration_credentials: OMIT, default_access_type: OMIT, additional_properties: nil)
34
+ @id = id
35
+ @integration = integration
31
36
  @integration_credentials = integration_credentials if integration_credentials != OMIT
32
37
  @default_access_type = default_access_type if default_access_type != OMIT
33
38
  @additional_properties = additional_properties
34
- @_field_set = { "id": id, "integration_credentials": integration_credentials, "default_access_type": default_access_type }.reject do | _k, v |
39
+ @_field_set = { "id": id, "integration": integration, "integration_credentials": integration_credentials, "default_access_type": default_access_type }.reject do | _k, v |
35
40
  v == OMIT
36
41
  end
37
42
  end
@@ -43,6 +48,12 @@ end
43
48
  struct = JSON.parse(json_object, object_class: OpenStruct)
44
49
  parsed_json = JSON.parse(json_object)
45
50
  id = parsed_json["id"]
51
+ unless parsed_json["integration"].nil?
52
+ integration = parsed_json["integration"].to_json
53
+ integration = Vellum::IntegrationAuthConfigIntegration.from_json(json_object: integration)
54
+ else
55
+ integration = nil
56
+ end
46
57
  integration_credentials = parsed_json["integration_credentials"]&.map do | item |
47
58
  item = item.to_json
48
59
  Vellum::IntegrationAuthConfigIntegrationCredential.from_json(json_object: item)
@@ -50,6 +61,7 @@ end
50
61
  default_access_type = parsed_json["default_access_type"]
51
62
  new(
52
63
  id: id,
64
+ integration: integration,
53
65
  integration_credentials: integration_credentials,
54
66
  default_access_type: default_access_type,
55
67
  additional_properties: struct
@@ -68,7 +80,8 @@ end
68
80
  # @param obj [Object]
69
81
  # @return [Void]
70
82
  def self.validate_raw(obj:)
71
- obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
83
+ obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
84
+ Vellum::IntegrationAuthConfigIntegration.validate_raw(obj: obj.integration)
72
85
  obj.integration_credentials&.is_a?(Array) != false || raise("Passed value for field obj.integration_credentials is not the expected type, validation failed.")
73
86
  obj.default_access_type&.is_a?(Vellum::IntegrationCredentialAccessType) != false || raise("Passed value for field obj.default_access_type is not the expected type, validation failed.")
74
87
  end
@@ -31,8 +31,8 @@ module Vellum
31
31
  # @param provider [Vellum::INTEGRATION_PROVIDER]
32
32
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
33
33
  # @return [Vellum::SlimIntegrationRead]
34
- def initialize(id: OMIT, label: OMIT, icon_url:, name:, provider:, additional_properties: nil)
35
- @id = id if id != OMIT
34
+ def initialize(id:, label: OMIT, icon_url:, name:, provider:, additional_properties: nil)
35
+ @id = id
36
36
  @label = label if label != OMIT
37
37
  @icon_url = icon_url
38
38
  @name = name
@@ -76,7 +76,7 @@ end
76
76
  # @param obj [Object]
77
77
  # @return [Void]
78
78
  def self.validate_raw(obj:)
79
- obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
79
+ obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
80
80
  obj.label&.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
81
81
  obj.icon_url.is_a?(String) != false || raise("Passed value for field obj.icon_url is not the expected type, validation failed.")
82
82
  obj.name.is_a?(Vellum::IntegrationName) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
@@ -28,11 +28,11 @@ module Vellum
28
28
  # @param value [Vellum::VellumAudio]
29
29
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
30
  # @return [Vellum::TestCaseAudioVariableValue]
31
- def initialize(variable_id:, name: OMIT, type:, value:, additional_properties: nil)
31
+ def initialize(variable_id:, name: OMIT, type:, value: OMIT, additional_properties: nil)
32
32
  @variable_id = variable_id
33
33
  @name = name if name != OMIT
34
34
  @type = type
35
- @value = value
35
+ @value = value if value != OMIT
36
36
  @additional_properties = additional_properties
37
37
  @_field_set = { "variable_id": variable_id, "name": name, "type": type, "value": value }.reject do | _k, v |
38
38
  v == OMIT
@@ -78,7 +78,7 @@ end
78
78
  obj.variable_id.is_a?(String) != false || raise("Passed value for field obj.variable_id is not the expected type, validation failed.")
79
79
  obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
80
80
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
81
- Vellum::VellumAudio.validate_raw(obj: obj.value)
81
+ obj.value.nil? || Vellum::VellumAudio.validate_raw(obj: obj.value)
82
82
  end
83
83
  end
84
84
  end
@@ -28,11 +28,11 @@ module Vellum
28
28
  # @param value [Vellum::VellumDocument]
29
29
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
30
  # @return [Vellum::TestCaseDocumentVariableValue]
31
- def initialize(variable_id:, name: OMIT, type:, value:, additional_properties: nil)
31
+ def initialize(variable_id:, name: OMIT, type:, value: OMIT, additional_properties: nil)
32
32
  @variable_id = variable_id
33
33
  @name = name if name != OMIT
34
34
  @type = type
35
- @value = value
35
+ @value = value if value != OMIT
36
36
  @additional_properties = additional_properties
37
37
  @_field_set = { "variable_id": variable_id, "name": name, "type": type, "value": value }.reject do | _k, v |
38
38
  v == OMIT
@@ -78,7 +78,7 @@ end
78
78
  obj.variable_id.is_a?(String) != false || raise("Passed value for field obj.variable_id is not the expected type, validation failed.")
79
79
  obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
80
80
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
81
- Vellum::VellumDocument.validate_raw(obj: obj.value)
81
+ obj.value.nil? || Vellum::VellumDocument.validate_raw(obj: obj.value)
82
82
  end
83
83
  end
84
84
  end
@@ -28,11 +28,11 @@ module Vellum
28
28
  # @param value [Vellum::VellumImage]
29
29
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
30
  # @return [Vellum::TestCaseImageVariableValue]
31
- def initialize(variable_id:, name: OMIT, type:, value:, additional_properties: nil)
31
+ def initialize(variable_id:, name: OMIT, type:, value: OMIT, additional_properties: nil)
32
32
  @variable_id = variable_id
33
33
  @name = name if name != OMIT
34
34
  @type = type
35
- @value = value
35
+ @value = value if value != OMIT
36
36
  @additional_properties = additional_properties
37
37
  @_field_set = { "variable_id": variable_id, "name": name, "type": type, "value": value }.reject do | _k, v |
38
38
  v == OMIT
@@ -78,7 +78,7 @@ end
78
78
  obj.variable_id.is_a?(String) != false || raise("Passed value for field obj.variable_id is not the expected type, validation failed.")
79
79
  obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
80
80
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
81
- Vellum::VellumImage.validate_raw(obj: obj.value)
81
+ obj.value.nil? || Vellum::VellumImage.validate_raw(obj: obj.value)
82
82
  end
83
83
  end
84
84
  end
@@ -28,11 +28,11 @@ module Vellum
28
28
  # @param value [Vellum::VellumVideo]
29
29
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
30
  # @return [Vellum::TestCaseVideoVariableValue]
31
- def initialize(variable_id:, name: OMIT, type:, value:, additional_properties: nil)
31
+ def initialize(variable_id:, name: OMIT, type:, value: OMIT, additional_properties: nil)
32
32
  @variable_id = variable_id
33
33
  @name = name if name != OMIT
34
34
  @type = type
35
- @value = value
35
+ @value = value if value != OMIT
36
36
  @additional_properties = additional_properties
37
37
  @_field_set = { "variable_id": variable_id, "name": name, "type": type, "value": value }.reject do | _k, v |
38
38
  v == OMIT
@@ -78,7 +78,7 @@ end
78
78
  obj.variable_id.is_a?(String) != false || raise("Passed value for field obj.variable_id is not the expected type, validation failed.")
79
79
  obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
80
80
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
81
- Vellum::VellumVideo.validate_raw(obj: obj.value)
81
+ obj.value.nil? || Vellum::VellumVideo.validate_raw(obj: obj.value)
82
82
  end
83
83
  end
84
84
  end
@@ -25,14 +25,12 @@ module Vellum
25
25
  # @param name [Vellum::IntegrationName]
26
26
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
27
27
  # @return [Vellum::ToolDefinitionIntegration]
28
- def initialize(id: OMIT, provider:, name:, additional_properties: nil)
29
- @id = id if id != OMIT
28
+ def initialize(id:, provider:, name:, additional_properties: nil)
29
+ @id = id
30
30
  @provider = provider
31
31
  @name = name
32
32
  @additional_properties = additional_properties
33
- @_field_set = { "id": id, "provider": provider, "name": name }.reject do | _k, v |
34
- v == OMIT
35
- end
33
+ @_field_set = { "id": id, "provider": provider, "name": name }
36
34
  end
37
35
  # Deserialize a JSON object to an instance of ToolDefinitionIntegration
38
36
  #
@@ -64,7 +62,7 @@ end
64
62
  # @param obj [Object]
65
63
  # @return [Void]
66
64
  def self.validate_raw(obj:)
67
- obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
65
+ obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
68
66
  obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
69
67
  obj.name.is_a?(Vellum::IntegrationName) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
70
68
  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.5.5
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vellum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-29 00:00:00.000000000 Z
11
+ date: 2025-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -373,6 +373,7 @@ files:
373
373
  - lib/vellum_ai/types/initiated_workflow_node_result_event.rb
374
374
  - lib/vellum_ai/types/instructor_vectorizer_config.rb
375
375
  - lib/vellum_ai/types/instructor_vectorizer_config_request.rb
376
+ - lib/vellum_ai/types/integration_auth_config_integration.rb
376
377
  - lib/vellum_ai/types/integration_auth_config_integration_credential.rb
377
378
  - lib/vellum_ai/types/integration_credential_access_type.rb
378
379
  - lib/vellum_ai/types/integration_name.rb