vellum_ai 1.13.5 → 1.13.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5f2ed49f4e6377a28b8d378449dbcb39156ad73b6f47a0cc91237c2fa551776
4
- data.tar.gz: 7410fee9118b2013a89d92f3a04748238ad518c94fc1c0bce102d24908af7cf2
3
+ metadata.gz: 4a07b71f6b033bebd37a042b85b018301f560bc42ab0f4f1f0949ecef3474fa8
4
+ data.tar.gz: a5a463085952c4500bf6726dddd7c3b00720acbaed57105b76b569ca132a46bd
5
5
  SHA512:
6
- metadata.gz: 7b5413bb20ca17f50ddcef6abf184bf60e0f01e65719d2490362c8356fa300c65ef63e928a72029c0367e4661dc577c85ce2e22f276bf3d00730d338c972f5da
7
- data.tar.gz: 8d9836855116843ae52323a22b3a964ef8d42b7f05dfe98091b416c1d616cc85306583e6cdc033d44d9fec97624af2fc44997e5b5ecb39e8d968dd1b57d21802
6
+ metadata.gz: 5726db9880ebbc82bbf5cc03a89753c8e23ca302276f2d8f2672ec453baad1a4d5e02539942c99b6089365bec70d49631bab1a29a3fb27056b5d67caf006911c
7
+ data.tar.gz: ff0ee3367f4440e5ee80840dce803fde7b085e3bd5c7012501b67a5d316d3585572427f5ded0be058071c3b55f405d064d9646ff8416c1291aede189207693f2
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.13.5' }
59
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.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.13.5' }
110
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.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
@@ -69,9 +69,7 @@ end
69
69
  # * :provider (String)
70
70
  # * :arguments (Hash{String => Object})
71
71
  # * :toolkit_version (String)
72
- # * :integration_name (String)
73
72
  # * :integration (String)
74
- # * :tool_name (String)
75
73
  # * :tool (String)
76
74
  # @param request_options [Vellum::RequestOptions]
77
75
  # @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_RESPONSE]
@@ -244,9 +242,7 @@ end
244
242
  # * :provider (String)
245
243
  # * :arguments (Hash{String => Object})
246
244
  # * :toolkit_version (String)
247
- # * :integration_name (String)
248
245
  # * :integration (String)
249
- # * :tool_name (String)
250
246
  # * :tool (String)
251
247
  # @param request_options [Vellum::RequestOptions]
252
248
  # @return [Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_RESPONSE]
@@ -2,10 +2,12 @@
2
2
 
3
3
  module Vellum
4
4
  # * `API_KEY` - API Key
5
+ # * `GOOGLE_SERVICE_ACCOUNT` - Google Service Account
5
6
  # * `OAUTH2` - OAuth2
6
7
  class AuthTypeEnum
7
8
 
8
9
  API_KEY = "API_KEY"
10
+ GOOGLE_SERVICE_ACCOUNT = "GOOGLE_SERVICE_ACCOUNT"
9
11
  OAUTH_2 = "OAUTH2"
10
12
 
11
13
  end
@@ -11,12 +11,8 @@ module Vellum
11
11
  attr_reader :arguments
12
12
  # @return [String]
13
13
  attr_reader :toolkit_version
14
- # @return [String]
15
- attr_reader :integration_name
16
14
  # @return [String]
17
15
  attr_reader :integration
18
- # @return [String]
19
- attr_reader :tool_name
20
16
  # @return [String]
21
17
  attr_reader :tool
22
18
  # @return [OpenStruct] Additional properties unmapped to the current class definition
@@ -30,22 +26,18 @@ module Vellum
30
26
  # @param provider [String]
31
27
  # @param arguments [Hash{String => Object}]
32
28
  # @param toolkit_version [String]
33
- # @param integration_name [String]
34
29
  # @param integration [String]
35
- # @param tool_name [String]
36
30
  # @param tool [String]
37
31
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
38
32
  # @return [Vellum::ComposioExecuteToolRequest]
39
- def initialize(provider:, arguments:, toolkit_version: OMIT, integration_name: OMIT, integration: OMIT, tool_name: OMIT, tool: OMIT, additional_properties: nil)
33
+ def initialize(provider:, arguments:, toolkit_version: OMIT, integration: OMIT, tool: OMIT, additional_properties: nil)
40
34
  @provider = provider
41
35
  @arguments = arguments
42
36
  @toolkit_version = toolkit_version if toolkit_version != OMIT
43
- @integration_name = integration_name if integration_name != OMIT
44
37
  @integration = integration if integration != OMIT
45
- @tool_name = tool_name if tool_name != OMIT
46
38
  @tool = tool if tool != OMIT
47
39
  @additional_properties = additional_properties
48
- @_field_set = { "provider": provider, "arguments": arguments, "toolkit_version": toolkit_version, "integration_name": integration_name, "integration": integration, "tool_name": tool_name, "tool": tool }.reject do | _k, v |
40
+ @_field_set = { "provider": provider, "arguments": arguments, "toolkit_version": toolkit_version, "integration": integration, "tool": tool }.reject do | _k, v |
49
41
  v == OMIT
50
42
  end
51
43
  end
@@ -59,17 +51,13 @@ end
59
51
  provider = parsed_json["provider"]
60
52
  arguments = parsed_json["arguments"]
61
53
  toolkit_version = parsed_json["toolkit_version"]
62
- integration_name = parsed_json["integration_name"]
63
54
  integration = parsed_json["integration"]
64
- tool_name = parsed_json["tool_name"]
65
55
  tool = parsed_json["tool"]
66
56
  new(
67
57
  provider: provider,
68
58
  arguments: arguments,
69
59
  toolkit_version: toolkit_version,
70
- integration_name: integration_name,
71
60
  integration: integration,
72
- tool_name: tool_name,
73
61
  tool: tool,
74
62
  additional_properties: struct
75
63
  )
@@ -90,9 +78,7 @@ end
90
78
  obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
91
79
  obj.arguments.is_a?(Hash) != false || raise("Passed value for field obj.arguments is not the expected type, validation failed.")
92
80
  obj.toolkit_version&.is_a?(String) != false || raise("Passed value for field obj.toolkit_version is not the expected type, validation failed.")
93
- obj.integration_name&.is_a?(String) != false || raise("Passed value for field obj.integration_name is not the expected type, validation failed.")
94
81
  obj.integration&.is_a?(String) != false || raise("Passed value for field obj.integration is not the expected type, validation failed.")
95
- obj.tool_name&.is_a?(String) != false || raise("Passed value for field obj.tool_name is not the expected type, validation failed.")
96
82
  obj.tool&.is_a?(String) != false || raise("Passed value for field obj.tool is not the expected type, validation failed.")
97
83
  end
98
84
  end
@@ -29,6 +29,7 @@ module Vellum
29
29
  # * `GMAIL` - Gmail
30
30
  # * `GOOGLE_ADS` - Google Ads
31
31
  # * `GOOGLE_ANALYTICS` - Google Analytics
32
+ # * `GOOGLE_BIGQUERY` - Google BigQuery
32
33
  # * `GOOGLE_DOCS` - Google Docs
33
34
  # * `GOOGLE_PHOTOS` - Google Photos
34
35
  # * `GOOGLE_SEARCH_CONSOLE` - Google Search Console
@@ -131,6 +132,7 @@ module Vellum
131
132
  GMAIL = "GMAIL"
132
133
  GOOGLE_ADS = "GOOGLE_ADS"
133
134
  GOOGLE_ANALYTICS = "GOOGLE_ANALYTICS"
135
+ GOOGLE_BIGQUERY = "GOOGLE_BIGQUERY"
134
136
  GOOGLE_DOCS = "GOOGLE_DOCS"
135
137
  GOOGLE_PHOTOS = "GOOGLE_PHOTOS"
136
138
  GOOGLE_SEARCH_CONSOLE = "GOOGLE_SEARCH_CONSOLE"
@@ -9,6 +9,8 @@ module Vellum
9
9
  attr_reader :workflow_definition
10
10
  # @return [Hash{String => Object}]
11
11
  attr_reader :inputs
12
+ # @return [Vellum::VellumCodeResourceDefinition]
13
+ attr_reader :trigger
12
14
  # @return [OpenStruct] Additional properties unmapped to the current class definition
13
15
  attr_reader :additional_properties
14
16
  # @return [Object]
@@ -19,13 +21,17 @@ module Vellum
19
21
 
20
22
  # @param workflow_definition [Vellum::VellumCodeResourceDefinition]
21
23
  # @param inputs [Hash{String => Object}]
24
+ # @param trigger [Vellum::VellumCodeResourceDefinition]
22
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
26
  # @return [Vellum::WorkflowExecutionInitiatedBody]
24
- def initialize(workflow_definition:, inputs:, additional_properties: nil)
27
+ def initialize(workflow_definition:, inputs:, trigger: OMIT, additional_properties: nil)
25
28
  @workflow_definition = workflow_definition
26
29
  @inputs = inputs
30
+ @trigger = trigger if trigger != OMIT
27
31
  @additional_properties = additional_properties
28
- @_field_set = { "workflow_definition": workflow_definition, "inputs": inputs }
32
+ @_field_set = { "workflow_definition": workflow_definition, "inputs": inputs, "trigger": trigger }.reject do | _k, v |
33
+ v == OMIT
34
+ end
29
35
  end
30
36
  # Deserialize a JSON object to an instance of WorkflowExecutionInitiatedBody
31
37
  #
@@ -41,9 +47,16 @@ module Vellum
41
47
  workflow_definition = nil
42
48
  end
43
49
  inputs = parsed_json["inputs"]
50
+ unless parsed_json["trigger"].nil?
51
+ trigger = parsed_json["trigger"].to_json
52
+ trigger = Vellum::VellumCodeResourceDefinition.from_json(json_object: trigger)
53
+ else
54
+ trigger = nil
55
+ end
44
56
  new(
45
57
  workflow_definition: workflow_definition,
46
58
  inputs: inputs,
59
+ trigger: trigger,
47
60
  additional_properties: struct
48
61
  )
49
62
  end
@@ -62,6 +75,7 @@ module Vellum
62
75
  def self.validate_raw(obj:)
63
76
  Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.workflow_definition)
64
77
  obj.inputs.is_a?(Hash) != false || raise("Passed value for field obj.inputs is not the expected type, validation failed.")
78
+ obj.trigger.nil? || Vellum::VellumCodeResourceDefinition.validate_raw(obj: obj.trigger)
65
79
  end
66
80
  end
67
81
  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.13.5
4
+ version: 1.13.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vellum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-01-21 00:00:00.000000000 Z
11
+ date: 2026-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday