vellum_ai 1.9.9 → 1.10.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64809a6c595bffb7c1cf0e9e28f127d3c491d5b7cc24fee4256dcc2be4be49f8
4
- data.tar.gz: 17bdf50b54dc2f90f5d29ad2eef7e19f524f4c733c8f6461d125df7afd1fa5be
3
+ metadata.gz: c9f9e2dcce5573fa92a19a6d0befe9dca48d38b3a4629fa60634759ddfe316ab
4
+ data.tar.gz: 03a51607e38a746210c475f06a8e7e2bf6e8a75d5ec9fc62dc1a2c4500cb9219
5
5
  SHA512:
6
- metadata.gz: 32c1b69259435af41572613efc2239fe8e849de104c882789ec62fcf8790b6bcbdb2c9537984fb49eaf50a1c022c6834821ab8dbd8ac8c7ca6df6a72c83c6973
7
- data.tar.gz: ff04732500d3b3e3f772014a629c5cb60537a6575549e52c8787aab1042d7990bbd70b253faf8b5e0df27dc75939a15e191c7e459da015c3b93b0f44717a4b8f
6
+ metadata.gz: bad168f1784fed607654a4883b236353d4700a9f0fcd33f61b7686f06d0cbc320b035ecaeb811a06d6f8db55f6ded2f64b00a6c4b01c57941d00a6b85fceb73d
7
+ data.tar.gz: 25e2f2bf49352d5eac22a48e836456d779d5e892fe1e4a2807893d2056897b655ba40e4f3c871e47e15d6e55f858c754aaf53d745f60b544a74653e08e946933
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.9.9' }
59
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.10.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.9.9' }
110
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.10.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
@@ -603,6 +603,7 @@ require_relative "vellum_ai/types/token_overlapping_window_chunker_config"
603
603
  require_relative "vellum_ai/types/token_overlapping_window_chunker_config_request"
604
604
  require_relative "vellum_ai/types/components_schemas_composio_tool_definition"
605
605
  require_relative "vellum_ai/types/unit_enum"
606
+ require_relative "vellum_ai/types/update_active_workspace_response"
606
607
  require_relative "vellum_ai/types/upload_document_response"
607
608
  require_relative "vellum_ai/types/upsert_test_suite_test_case_request"
608
609
  require_relative "vellum_ai/types/vellum_audio"
@@ -111,6 +111,7 @@ end
111
111
  # @param offset [Integer] The initial index from which to return the results.
112
112
  # @param ordering [String] Which field to use when ordering the results.
113
113
  # @param search [String] A search term.
114
+ # @param supports_integration_triggers [String]
114
115
  # @param request_options [Vellum::RequestOptions]
115
116
  # @return [Vellum::PaginatedSlimIntegrationReadList]
116
117
  # @example
@@ -120,7 +121,7 @@ end
120
121
  # api_key: "YOUR_API_KEY"
121
122
  # )
122
123
  # api.integrations.list
123
- def list(integration_provider: nil, limit: nil, offset: nil, ordering: nil, search: nil, request_options: nil)
124
+ def list(integration_provider: nil, limit: nil, offset: nil, ordering: nil, search: nil, supports_integration_triggers: nil, request_options: nil)
124
125
  response = @request_client.conn.get do | req |
125
126
  unless request_options&.timeout_in_seconds.nil?
126
127
  req.options.timeout = request_options.timeout_in_seconds
@@ -134,7 +135,7 @@ end
134
135
  req.headers["X-API-Version"] = "2025-07-30"
135
136
  end
136
137
  req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
137
- req.params = { **(request_options&.additional_query_parameters || {}), "integration_provider": integration_provider, "limit": limit, "offset": offset, "ordering": ordering, "search": search }.compact
138
+ req.params = { **(request_options&.additional_query_parameters || {}), "integration_provider": integration_provider, "limit": limit, "offset": offset, "ordering": ordering, "search": search, "supports_integration_triggers": supports_integration_triggers }.compact
138
139
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
139
140
  req.body = { **(request_options&.additional_body_parameters || {}) }.compact
140
141
  end
@@ -282,6 +283,7 @@ end
282
283
  # @param offset [Integer] The initial index from which to return the results.
283
284
  # @param ordering [String] Which field to use when ordering the results.
284
285
  # @param search [String] A search term.
286
+ # @param supports_integration_triggers [String]
285
287
  # @param request_options [Vellum::RequestOptions]
286
288
  # @return [Vellum::PaginatedSlimIntegrationReadList]
287
289
  # @example
@@ -291,7 +293,7 @@ end
291
293
  # api_key: "YOUR_API_KEY"
292
294
  # )
293
295
  # api.integrations.list
294
- def list(integration_provider: nil, limit: nil, offset: nil, ordering: nil, search: nil, request_options: nil)
296
+ def list(integration_provider: nil, limit: nil, offset: nil, ordering: nil, search: nil, supports_integration_triggers: nil, request_options: nil)
295
297
  Async do
296
298
  response = @request_client.conn.get do | req |
297
299
  unless request_options&.timeout_in_seconds.nil?
@@ -306,7 +308,7 @@ end
306
308
  req.headers["X-API-Version"] = "2025-07-30"
307
309
  end
308
310
  req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
309
- req.params = { **(request_options&.additional_query_parameters || {}), "integration_provider": integration_provider, "limit": limit, "offset": offset, "ordering": ordering, "search": search }.compact
311
+ req.params = { **(request_options&.additional_query_parameters || {}), "integration_provider": integration_provider, "limit": limit, "offset": offset, "ordering": ordering, "search": search, "supports_integration_triggers": supports_integration_triggers }.compact
310
312
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
311
313
  req.body = { **(request_options&.additional_body_parameters || {}) }.compact
312
314
  end
@@ -8,6 +8,8 @@ module Vellum
8
8
  attr_reader :type
9
9
  # @return [String]
10
10
  attr_reader :slug
11
+ # @return [Boolean]
12
+ attr_reader :supports_webhook_triggers
11
13
  # @return [OpenStruct] Additional properties unmapped to the current class definition
12
14
  attr_reader :additional_properties
13
15
  # @return [Object]
@@ -18,13 +20,17 @@ module Vellum
18
20
 
19
21
  # @param type [String]
20
22
  # @param slug [String]
23
+ # @param supports_webhook_triggers [Boolean]
21
24
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
22
25
  # @return [Vellum::ComposioIntegrationExecConfig]
23
- def initialize(type:, slug:, additional_properties: nil)
26
+ def initialize(type:, slug:, supports_webhook_triggers: OMIT, additional_properties: nil)
24
27
  @type = type
25
28
  @slug = slug
29
+ @supports_webhook_triggers = supports_webhook_triggers if supports_webhook_triggers != OMIT
26
30
  @additional_properties = additional_properties
27
- @_field_set = { "type": type, "slug": slug }
31
+ @_field_set = { "type": type, "slug": slug, "supports_webhook_triggers": supports_webhook_triggers }.reject do | _k, v |
32
+ v == OMIT
33
+ end
28
34
  end
29
35
  # Deserialize a JSON object to an instance of ComposioIntegrationExecConfig
30
36
  #
@@ -35,9 +41,11 @@ module Vellum
35
41
  parsed_json = JSON.parse(json_object)
36
42
  type = parsed_json["type"]
37
43
  slug = parsed_json["slug"]
44
+ supports_webhook_triggers = parsed_json["supports_webhook_triggers"]
38
45
  new(
39
46
  type: type,
40
47
  slug: slug,
48
+ supports_webhook_triggers: supports_webhook_triggers,
41
49
  additional_properties: struct
42
50
  )
43
51
  end
@@ -56,6 +64,7 @@ module Vellum
56
64
  def self.validate_raw(obj:)
57
65
  obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
58
66
  obj.slug.is_a?(String) != false || raise("Passed value for field obj.slug is not the expected type, validation failed.")
67
+ obj.supports_webhook_triggers&.is_a?(Boolean) != false || raise("Passed value for field obj.supports_webhook_triggers is not the expected type, validation failed.")
59
68
  end
60
69
  end
61
70
  end
@@ -7,9 +7,13 @@ module Vellum
7
7
  # * `CALENDLY` - Calendly
8
8
  # * `CANVA` - Canva
9
9
  # * `CLICKUP` - ClickUp
10
+ # * `CODA` - Coda
10
11
  # * `HUBSPOT` - Hubspot
11
12
  # * `INTERCOM` - Intercom
12
13
  # * `LINEAR` - Linear
14
+ # * `LINKUP` - Linkup
15
+ # * `LISTENNOTES` - Listen Notes
16
+ # * `LMNT` - LMNT
13
17
  # * `LINKEDIN` - LinkedIn
14
18
  # * `MAILCHIMP` - Mailchimp
15
19
  # * `MEM0` - Mem0
@@ -19,6 +23,10 @@ module Vellum
19
23
  # * `GOOGLE_CALENDAR` - Google Calendar
20
24
  # * `GOOGLE_DRIVE` - Google Drive
21
25
  # * `GMAIL` - Gmail
26
+ # * `ACCULYNX` - AccuLynx
27
+ # * `AFFINITY` - Affinity
28
+ # * `AGENCYZOOM` - AgencyZoom
29
+ # * `AHREFS` - Ahrefs
22
30
  # * `AIRTABLE` - Airtable
23
31
  # * `APOLLO` - Apollo
24
32
  # * `ASANA` - Asana
@@ -35,8 +43,11 @@ module Vellum
35
43
  # * `GITLAB` - Gitlab
36
44
  # * `FIRECRAWL` - Firecrawl
37
45
  # * `FIGMA` - Figma
46
+ # * `FIREFLIES` - Fireflies
38
47
  # * `GOOGLE_MAPS` - Google Maps
48
+ # * `HEYGEN` - HeyGen
39
49
  # * `JIRA` - Jira
50
+ # * `JUNGLESCOUT` - Jungle Scout
40
51
  # * `KLAVIYO` - Klaviyo
41
52
  # * `PAGERDUTY` - PagerDuty
42
53
  # * `PARSERA` - Parsera
@@ -45,17 +56,23 @@ module Vellum
45
56
  # * `POSTHOG` - PostHog
46
57
  # * `REDDIT` - Reddit
47
58
  # * `SEMRUSH` - Semrush
59
+ # * `SEMANTICSCHOLAR` - Semantic Scholar
60
+ # * `SENDGRID` - SendGrid
48
61
  # * `SERPAPI` - Serp Api
49
62
  # * `SHARE_POINT` - SharePoint
63
+ # * `SHORTCUT` - Shortcut
50
64
  # * `STRIPE` - Stripe
51
65
  # * `SUPABASE` - Supabase
52
66
  # * `TAVILY` - Tavily
53
67
  # * `TELEGRAM` - Telegram
54
68
  # * `WEBFLOW` - Webflow
69
+ # * `YOUSEARCH` - You Search
55
70
  # * `ZENDESK` - Zendesk
71
+ # * `ZENROWS` - ZenRows
56
72
  # * `DROPBOX` - Dropbox
57
73
  # * `EVENTBRITE` - Eventbrite
58
74
  # * `CONFLUENCE` - Confluence
75
+ # * `COINBASE` - Coinbase
59
76
  # * `DISCORD` - Discord
60
77
  # * `DOCUSIGN` - DocuSign
61
78
  class IntegrationName
@@ -66,9 +83,13 @@ module Vellum
66
83
  CALENDLY = "CALENDLY"
67
84
  CANVA = "CANVA"
68
85
  CLICKUP = "CLICKUP"
86
+ CODA = "CODA"
69
87
  HUBSPOT = "HUBSPOT"
70
88
  INTERCOM = "INTERCOM"
71
89
  LINEAR = "LINEAR"
90
+ LINKUP = "LINKUP"
91
+ LISTENNOTES = "LISTENNOTES"
92
+ LMNT = "LMNT"
72
93
  LINKEDIN = "LINKEDIN"
73
94
  MAILCHIMP = "MAILCHIMP"
74
95
  MEM_0 = "MEM0"
@@ -78,6 +99,10 @@ module Vellum
78
99
  GOOGLE_CALENDAR = "GOOGLE_CALENDAR"
79
100
  GOOGLE_DRIVE = "GOOGLE_DRIVE"
80
101
  GMAIL = "GMAIL"
102
+ ACCULYNX = "ACCULYNX"
103
+ AFFINITY = "AFFINITY"
104
+ AGENCYZOOM = "AGENCYZOOM"
105
+ AHREFS = "AHREFS"
81
106
  AIRTABLE = "AIRTABLE"
82
107
  APOLLO = "APOLLO"
83
108
  ASANA = "ASANA"
@@ -94,8 +119,11 @@ module Vellum
94
119
  GITLAB = "GITLAB"
95
120
  FIRECRAWL = "FIRECRAWL"
96
121
  FIGMA = "FIGMA"
122
+ FIREFLIES = "FIREFLIES"
97
123
  GOOGLE_MAPS = "GOOGLE_MAPS"
124
+ HEYGEN = "HEYGEN"
98
125
  JIRA = "JIRA"
126
+ JUNGLESCOUT = "JUNGLESCOUT"
99
127
  KLAVIYO = "KLAVIYO"
100
128
  PAGERDUTY = "PAGERDUTY"
101
129
  PARSERA = "PARSERA"
@@ -104,17 +132,23 @@ module Vellum
104
132
  POSTHOG = "POSTHOG"
105
133
  REDDIT = "REDDIT"
106
134
  SEMRUSH = "SEMRUSH"
135
+ SEMANTICSCHOLAR = "SEMANTICSCHOLAR"
136
+ SENDGRID = "SENDGRID"
107
137
  SERPAPI = "SERPAPI"
108
138
  SHARE_POINT = "SHARE_POINT"
139
+ SHORTCUT = "SHORTCUT"
109
140
  STRIPE = "STRIPE"
110
141
  SUPABASE = "SUPABASE"
111
142
  TAVILY = "TAVILY"
112
143
  TELEGRAM = "TELEGRAM"
113
144
  WEBFLOW = "WEBFLOW"
145
+ YOUSEARCH = "YOUSEARCH"
114
146
  ZENDESK = "ZENDESK"
147
+ ZENROWS = "ZENROWS"
115
148
  DROPBOX = "DROPBOX"
116
149
  EVENTBRITE = "EVENTBRITE"
117
150
  CONFLUENCE = "CONFLUENCE"
151
+ COINBASE = "COINBASE"
118
152
  DISCORD = "DISCORD"
119
153
  DOCUSIGN = "DOCUSIGN"
120
154
 
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+ require "ostruct"
3
+ require "json"
4
+
5
+ module Vellum
6
+ class UpdateActiveWorkspaceResponse
7
+ # @return [String] The id of the workspace that the user should update to, or null if no workspace
8
+ # change needed.
9
+ attr_reader :update_active_workspace_id
10
+ # @return [String] The id of the environment that the user should update to, or null if no
11
+ # environment change needed.
12
+ attr_reader :update_active_environment_id
13
+ # @return [Boolean] Whether or not the user is a staff member of Vellum.
14
+ attr_reader :is_staff
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 update_active_workspace_id [String] The id of the workspace that the user should update to, or null if no workspace
24
+ # change needed.
25
+ # @param update_active_environment_id [String] The id of the environment that the user should update to, or null if no
26
+ # environment change needed.
27
+ # @param is_staff [Boolean] Whether or not the user is a staff member of Vellum.
28
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
29
+ # @return [Vellum::UpdateActiveWorkspaceResponse]
30
+ def initialize(update_active_workspace_id: OMIT, update_active_environment_id: OMIT, is_staff: OMIT, additional_properties: nil)
31
+ @update_active_workspace_id = update_active_workspace_id if update_active_workspace_id != OMIT
32
+ @update_active_environment_id = update_active_environment_id if update_active_environment_id != OMIT
33
+ @is_staff = is_staff if is_staff != OMIT
34
+ @additional_properties = additional_properties
35
+ @_field_set = { "update_active_workspace_id": update_active_workspace_id, "update_active_environment_id": update_active_environment_id, "is_staff": is_staff }.reject do | _k, v |
36
+ v == OMIT
37
+ end
38
+ end
39
+ # Deserialize a JSON object to an instance of UpdateActiveWorkspaceResponse
40
+ #
41
+ # @param json_object [String]
42
+ # @return [Vellum::UpdateActiveWorkspaceResponse]
43
+ def self.from_json(json_object:)
44
+ struct = JSON.parse(json_object, object_class: OpenStruct)
45
+ parsed_json = JSON.parse(json_object)
46
+ update_active_workspace_id = parsed_json["update_active_workspace_id"]
47
+ update_active_environment_id = parsed_json["update_active_environment_id"]
48
+ is_staff = parsed_json["is_staff"]
49
+ new(
50
+ update_active_workspace_id: update_active_workspace_id,
51
+ update_active_environment_id: update_active_environment_id,
52
+ is_staff: is_staff,
53
+ additional_properties: struct
54
+ )
55
+ end
56
+ # Serialize an instance of UpdateActiveWorkspaceResponse to a JSON object
57
+ #
58
+ # @return [String]
59
+ def to_json
60
+ @_field_set&.to_json
61
+ end
62
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
63
+ # hash and check each fields type against the current object's property
64
+ # definitions.
65
+ #
66
+ # @param obj [Object]
67
+ # @return [Void]
68
+ def self.validate_raw(obj:)
69
+ obj.update_active_workspace_id&.is_a?(String) != false || raise("Passed value for field obj.update_active_workspace_id is not the expected type, validation failed.")
70
+ obj.update_active_environment_id&.is_a?(String) != false || raise("Passed value for field obj.update_active_environment_id is not the expected type, validation failed.")
71
+ obj.is_staff&.is_a?(Boolean) != false || raise("Passed value for field obj.is_staff is not the expected type, validation failed.")
72
+ end
73
+ end
74
+ 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.9.9
4
+ version: 1.10.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-11-06 00:00:00.000000000 Z
11
+ date: 2025-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -731,6 +731,7 @@ files:
731
731
  - lib/vellum_ai/types/token_overlapping_window_chunking.rb
732
732
  - lib/vellum_ai/types/token_overlapping_window_chunking_request.rb
733
733
  - lib/vellum_ai/types/unit_enum.rb
734
+ - lib/vellum_ai/types/update_active_workspace_response.rb
734
735
  - lib/vellum_ai/types/upload_document_response.rb
735
736
  - lib/vellum_ai/types/upsert_test_suite_test_case_request.rb
736
737
  - lib/vellum_ai/types/variable_prompt_block.rb