vellum_ai 1.5.5 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +1 -0
- data/lib/vellum_ai/types/integration_auth_config_integration.rb +70 -0
- data/lib/vellum_ai/types/integration_auth_config_integration_credential.rb +4 -6
- data/lib/vellum_ai/types/integration_read.rb +3 -3
- data/lib/vellum_ai/types/slim_integration_auth_config_read.rb +17 -4
- data/lib/vellum_ai/types/slim_integration_read.rb +3 -3
- data/lib/vellum_ai/types/tool_definition_integration.rb +4 -6
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89aa1ab287988176ec0434127dc8bc67623d60faeb2a7f8024b893b35e22a4be
|
4
|
+
data.tar.gz: 16dcc87437f3f3cbab637f30440db01594dadaecabfb619ece8945bfe3d0d615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d25e6760a0732bf6da15ca08253c54c9f711b5f55d81e61e81b9dd97cd1fcecd356eaa73cadac671c453a07612e034907564ce0c638206edbbeb720c80a1e3ce
|
7
|
+
data.tar.gz: 27a7bb3fd60159349cb97f3239d10647e429f730a87d6633de641fe77f042940007ec6c1d326a95dae67a04b131ddf07ff99843513422ef43f9bcf41feb143f2
|
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.
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.5.6' }
|
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.
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.5.6' }
|
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"
|
@@ -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
|
21
|
-
@id = id
|
20
|
+
def initialize(id:, additional_properties: nil)
|
21
|
+
@id = id
|
22
22
|
@additional_properties = additional_properties
|
23
|
-
@_field_set = { "id": id }
|
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
|
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
|
40
|
-
@id = id
|
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
|
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.")
|
@@ -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
|
30
|
-
@id = id
|
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
|
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
|
35
|
-
@id = id
|
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
|
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.")
|
@@ -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
|
29
|
-
@id = id
|
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 }
|
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
|
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,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vellum_ai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vellum
|
@@ -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
|