vellum_ai 1.9.7 → 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: 62f3d8d769081bc5dce68f44efa833a5492a977eeb66b03c54e8c04c2a0d4b65
4
- data.tar.gz: dc91c9a40c1ae16607308e4f4ab6a4f45ccc900c27b76cac433e5100cad013ac
3
+ metadata.gz: c9f9e2dcce5573fa92a19a6d0befe9dca48d38b3a4629fa60634759ddfe316ab
4
+ data.tar.gz: 03a51607e38a746210c475f06a8e7e2bf6e8a75d5ec9fc62dc1a2c4500cb9219
5
5
  SHA512:
6
- metadata.gz: 8144531326fc3d4183f4faccb45a85a8bfdd72446f5c7e95f7ea5eb090e8796f730d4c1cfbf616c43494a5d8a9c0e0dc256237b7e2f56aa49e7b5e1915da7646
7
- data.tar.gz: cdfe39cb1f800bbaf452f1bb56efb8e1766be15a178839f03ed08d817cc96c6bcdbd5700811c87507bcc11e0e5b7b2ac2b5908ed24f5e2fc396c89ed03d97e37
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.7' }
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.7' }
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"
@@ -702,5 +703,6 @@ require_relative "vellum_ai/types/workflow_result_event_output_data"
702
703
  require_relative "vellum_ai/types/workflow_sandbox_display_data"
703
704
  require_relative "vellum_ai/types/workflow_sandbox_example"
704
705
  require_relative "vellum_ai/types/workflow_stream_event"
706
+ require_relative "vellum_ai/types/workspace_display_config"
705
707
  require_relative "vellum_ai/types/workspace_read"
706
708
  require_relative "vellum_ai/types/workspace_secret_read"
@@ -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
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+ require "ostruct"
3
+ require "json"
4
+
5
+ module Vellum
6
+ class WorkspaceDisplayConfig
7
+ # @return [String]
8
+ attr_reader :color
9
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
10
+ attr_reader :additional_properties
11
+ # @return [Object]
12
+ attr_reader :_field_set
13
+ protected :_field_set
14
+
15
+ OMIT = Object.new
16
+
17
+ # @param color [String]
18
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
19
+ # @return [Vellum::WorkspaceDisplayConfig]
20
+ def initialize(color: OMIT, additional_properties: nil)
21
+ @color = color if color != OMIT
22
+ @additional_properties = additional_properties
23
+ @_field_set = { "color": color }.reject do | _k, v |
24
+ v == OMIT
25
+ end
26
+ end
27
+ # Deserialize a JSON object to an instance of WorkspaceDisplayConfig
28
+ #
29
+ # @param json_object [String]
30
+ # @return [Vellum::WorkspaceDisplayConfig]
31
+ def self.from_json(json_object:)
32
+ struct = JSON.parse(json_object, object_class: OpenStruct)
33
+ parsed_json = JSON.parse(json_object)
34
+ color = parsed_json["color"]
35
+ new(color: color, additional_properties: struct)
36
+ end
37
+ # Serialize an instance of WorkspaceDisplayConfig to a JSON object
38
+ #
39
+ # @return [String]
40
+ def to_json
41
+ @_field_set&.to_json
42
+ end
43
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
44
+ # hash and check each fields type against the current object's property
45
+ # definitions.
46
+ #
47
+ # @param obj [Object]
48
+ # @return [Void]
49
+ def self.validate_raw(obj:)
50
+ obj.color&.is_a?(String) != false || raise("Passed value for field obj.color is not the expected type, validation failed.")
51
+ end
52
+ end
53
+ end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  require "date"
3
+ require_relative "workspace_display_config"
3
4
  require "ostruct"
4
5
  require "json"
5
6
 
@@ -13,6 +14,8 @@ module Vellum
13
14
  attr_reader :label
14
15
  # @return [DateTime]
15
16
  attr_reader :created
17
+ # @return [Vellum::WorkspaceDisplayConfig]
18
+ attr_reader :display_config
16
19
  # @return [OpenStruct] Additional properties unmapped to the current class definition
17
20
  attr_reader :additional_properties
18
21
  # @return [Object]
@@ -25,15 +28,19 @@ module Vellum
25
28
  # @param name [String] The name of the Workspace.
26
29
  # @param label [String]
27
30
  # @param created [DateTime]
31
+ # @param display_config [Vellum::WorkspaceDisplayConfig]
28
32
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
29
33
  # @return [Vellum::WorkspaceRead]
30
- def initialize(id:, name:, label:, created:, additional_properties: nil)
34
+ def initialize(id:, name:, label:, created:, display_config: OMIT, additional_properties: nil)
31
35
  @id = id
32
36
  @name = name
33
37
  @label = label
34
38
  @created = created
39
+ @display_config = display_config if display_config != OMIT
35
40
  @additional_properties = additional_properties
36
- @_field_set = { "id": id, "name": name, "label": label, "created": created }
41
+ @_field_set = { "id": id, "name": name, "label": label, "created": created, "display_config": display_config }.reject do | _k, v |
42
+ v == OMIT
43
+ end
37
44
  end
38
45
  # Deserialize a JSON object to an instance of WorkspaceRead
39
46
  #
@@ -50,11 +57,18 @@ module Vellum
50
57
  else
51
58
  nil
52
59
  end
60
+ unless parsed_json["display_config"].nil?
61
+ display_config = parsed_json["display_config"].to_json
62
+ display_config = Vellum::WorkspaceDisplayConfig.from_json(json_object: display_config)
63
+ else
64
+ display_config = nil
65
+ end
53
66
  new(
54
67
  id: id,
55
68
  name: name,
56
69
  label: label,
57
70
  created: created,
71
+ display_config: display_config,
58
72
  additional_properties: struct
59
73
  )
60
74
  end
@@ -75,6 +89,7 @@ end
75
89
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
76
90
  obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
77
91
  obj.created.is_a?(DateTime) != false || raise("Passed value for field obj.created is not the expected type, validation failed.")
92
+ obj.display_config.nil? || Vellum::WorkspaceDisplayConfig.validate_raw(obj: obj.display_config)
78
93
  end
79
94
  end
80
95
  end
@@ -57,7 +57,7 @@ module Vellum
57
57
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
58
58
  req.body = { **(request_options&.additional_body_parameters || {}) }.compact
59
59
  end
60
- req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/v1/workflows/#{id}/pull"
60
+ req.url "#{@request_client.get_url(environment: Predict, request_options: request_options)}/v1/workflows/#{id}/pull"
61
61
  end
62
62
  end
63
63
  # Retrieve the current state of a workflow execution.
@@ -140,6 +140,7 @@ end
140
140
  # Serialize files
141
141
  #
142
142
  # @param files [Hash{String => Object}]
143
+ # @param module_ [String]
143
144
  # @param request_options [Vellum::RequestOptions]
144
145
  # @return [Hash{String => Object}]
145
146
  # @example
@@ -149,7 +150,7 @@ end
149
150
  # api_key: "YOUR_API_KEY"
150
151
  # )
151
152
  # api.workflows.serialize_workflow_files(files: { "files": {"key":"value"} })
152
- def serialize_workflow_files(files:, request_options: nil)
153
+ def serialize_workflow_files(files:, module_: nil, request_options: nil)
153
154
  response = @request_client.conn.post do | req |
154
155
  unless request_options&.timeout_in_seconds.nil?
155
156
  req.options.timeout = request_options.timeout_in_seconds
@@ -166,7 +167,7 @@ end
166
167
  unless request_options.nil? || request_options&.additional_query_parameters.nil?
167
168
  req.params = { **(request_options&.additional_query_parameters || {}) }.compact
168
169
  end
169
- req.body = { **(request_options&.additional_body_parameters || {}), files: files }.compact
170
+ req.body = { **(request_options&.additional_body_parameters || {}), files: files, module: module_ }.compact
170
171
  req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/v1/workflows/serialize"
171
172
  end
172
173
  parsed_json = JSON.parse(response.body)
@@ -218,7 +219,7 @@ end
218
219
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
219
220
  req.body = { **(request_options&.additional_body_parameters || {}) }.compact
220
221
  end
221
- req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/v1/workflows/#{id}/pull"
222
+ req.url "#{@request_client.get_url(environment: Predict, request_options: request_options)}/v1/workflows/#{id}/pull"
222
223
  end
223
224
  end
224
225
  end
@@ -306,6 +307,7 @@ end
306
307
  # Serialize files
307
308
  #
308
309
  # @param files [Hash{String => Object}]
310
+ # @param module_ [String]
309
311
  # @param request_options [Vellum::RequestOptions]
310
312
  # @return [Hash{String => Object}]
311
313
  # @example
@@ -315,7 +317,7 @@ end
315
317
  # api_key: "YOUR_API_KEY"
316
318
  # )
317
319
  # api.workflows.serialize_workflow_files(files: { "files": {"key":"value"} })
318
- def serialize_workflow_files(files:, request_options: nil)
320
+ def serialize_workflow_files(files:, module_: nil, request_options: nil)
319
321
  Async do
320
322
  response = @request_client.conn.post do | req |
321
323
  unless request_options&.timeout_in_seconds.nil?
@@ -333,7 +335,7 @@ end
333
335
  unless request_options.nil? || request_options&.additional_query_parameters.nil?
334
336
  req.params = { **(request_options&.additional_query_parameters || {}) }.compact
335
337
  end
336
- req.body = { **(request_options&.additional_body_parameters || {}), files: files }.compact
338
+ req.body = { **(request_options&.additional_body_parameters || {}), files: files, module: module_ }.compact
337
339
  req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/v1/workflows/serialize"
338
340
  end
339
341
  parsed_json = JSON.parse(response.body)
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.7
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-04 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
@@ -855,6 +856,7 @@ files:
855
856
  - lib/vellum_ai/types/workflow_sandbox_example.rb
856
857
  - lib/vellum_ai/types/workflow_sandbox_parent_context.rb
857
858
  - lib/vellum_ai/types/workflow_stream_event.rb
859
+ - lib/vellum_ai/types/workspace_display_config.rb
858
860
  - lib/vellum_ai/types/workspace_read.rb
859
861
  - lib/vellum_ai/types/workspace_secret_read.rb
860
862
  - lib/vellum_ai/workflow_deployments/client.rb