vellum_ai 1.9.9 → 1.10.1
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/ad_hoc/client.rb +2 -0
- data/lib/vellum_ai/integrations/client.rb +6 -4
- data/lib/vellum_ai/types/composio_integration_exec_config.rb +11 -2
- data/lib/vellum_ai/types/integration_name.rb +36 -0
- data/lib/vellum_ai/types/update_active_workspace_response.rb +74 -0
- data/lib/vellum_ai/types/vellum_variable_extensions.rb +13 -3
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 057ba74c23155e4b27b6a35b1237a0926891d3c8e4479cf6f5150cc1db7c1084
|
|
4
|
+
data.tar.gz: 7414cda52e90d72746d368628c782affd5e482c22e48bfc85d092a6827af32fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc492e6cd0995ea71fdc4d6175603f7fa1e4eda1e4a0b5ac1bc0534e006becb5e74ab9031606f0ebb1ea421509e4bdf810da43b0d90a6b58633f997b8e82003c
|
|
7
|
+
data.tar.gz: 88b6cb6cb965ffd3068c34a7c31fe0d4dbe827936df7a1389e88f4db7f46ae9af4d6b848d18febc6aa1bbee30d30dcbfdee8802397fbc90a80f5fd503d761148
|
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.
|
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.10.1' }
|
|
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.
|
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.10.1' }
|
|
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"
|
|
@@ -32,6 +32,7 @@ module Vellum
|
|
|
32
32
|
# * :default (Hash)
|
|
33
33
|
# * :extensions (Hash)
|
|
34
34
|
# * :color (String)
|
|
35
|
+
# * :description (String)
|
|
35
36
|
# @param parameters [Hash] Request of type Vellum::PromptParameters, as a Hash
|
|
36
37
|
# * :stop (Array<String>)
|
|
37
38
|
# * :temperature (Float)
|
|
@@ -119,6 +120,7 @@ end
|
|
|
119
120
|
# * :default (Hash)
|
|
120
121
|
# * :extensions (Hash)
|
|
121
122
|
# * :color (String)
|
|
123
|
+
# * :description (String)
|
|
122
124
|
# @param parameters [Hash] Request of type Vellum::PromptParameters, as a Hash
|
|
123
125
|
# * :stop (Array<String>)
|
|
124
126
|
# * :temperature (Float)
|
|
@@ -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,19 +56,26 @@ 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
|
|
78
|
+
# * `TRELLO` - Trello
|
|
61
79
|
class IntegrationName
|
|
62
80
|
|
|
63
81
|
SLACK = "SLACK"
|
|
@@ -66,9 +84,13 @@ module Vellum
|
|
|
66
84
|
CALENDLY = "CALENDLY"
|
|
67
85
|
CANVA = "CANVA"
|
|
68
86
|
CLICKUP = "CLICKUP"
|
|
87
|
+
CODA = "CODA"
|
|
69
88
|
HUBSPOT = "HUBSPOT"
|
|
70
89
|
INTERCOM = "INTERCOM"
|
|
71
90
|
LINEAR = "LINEAR"
|
|
91
|
+
LINKUP = "LINKUP"
|
|
92
|
+
LISTENNOTES = "LISTENNOTES"
|
|
93
|
+
LMNT = "LMNT"
|
|
72
94
|
LINKEDIN = "LINKEDIN"
|
|
73
95
|
MAILCHIMP = "MAILCHIMP"
|
|
74
96
|
MEM_0 = "MEM0"
|
|
@@ -78,6 +100,10 @@ module Vellum
|
|
|
78
100
|
GOOGLE_CALENDAR = "GOOGLE_CALENDAR"
|
|
79
101
|
GOOGLE_DRIVE = "GOOGLE_DRIVE"
|
|
80
102
|
GMAIL = "GMAIL"
|
|
103
|
+
ACCULYNX = "ACCULYNX"
|
|
104
|
+
AFFINITY = "AFFINITY"
|
|
105
|
+
AGENCYZOOM = "AGENCYZOOM"
|
|
106
|
+
AHREFS = "AHREFS"
|
|
81
107
|
AIRTABLE = "AIRTABLE"
|
|
82
108
|
APOLLO = "APOLLO"
|
|
83
109
|
ASANA = "ASANA"
|
|
@@ -94,8 +120,11 @@ module Vellum
|
|
|
94
120
|
GITLAB = "GITLAB"
|
|
95
121
|
FIRECRAWL = "FIRECRAWL"
|
|
96
122
|
FIGMA = "FIGMA"
|
|
123
|
+
FIREFLIES = "FIREFLIES"
|
|
97
124
|
GOOGLE_MAPS = "GOOGLE_MAPS"
|
|
125
|
+
HEYGEN = "HEYGEN"
|
|
98
126
|
JIRA = "JIRA"
|
|
127
|
+
JUNGLESCOUT = "JUNGLESCOUT"
|
|
99
128
|
KLAVIYO = "KLAVIYO"
|
|
100
129
|
PAGERDUTY = "PAGERDUTY"
|
|
101
130
|
PARSERA = "PARSERA"
|
|
@@ -104,19 +133,26 @@ module Vellum
|
|
|
104
133
|
POSTHOG = "POSTHOG"
|
|
105
134
|
REDDIT = "REDDIT"
|
|
106
135
|
SEMRUSH = "SEMRUSH"
|
|
136
|
+
SEMANTICSCHOLAR = "SEMANTICSCHOLAR"
|
|
137
|
+
SENDGRID = "SENDGRID"
|
|
107
138
|
SERPAPI = "SERPAPI"
|
|
108
139
|
SHARE_POINT = "SHARE_POINT"
|
|
140
|
+
SHORTCUT = "SHORTCUT"
|
|
109
141
|
STRIPE = "STRIPE"
|
|
110
142
|
SUPABASE = "SUPABASE"
|
|
111
143
|
TAVILY = "TAVILY"
|
|
112
144
|
TELEGRAM = "TELEGRAM"
|
|
113
145
|
WEBFLOW = "WEBFLOW"
|
|
146
|
+
YOUSEARCH = "YOUSEARCH"
|
|
114
147
|
ZENDESK = "ZENDESK"
|
|
148
|
+
ZENROWS = "ZENROWS"
|
|
115
149
|
DROPBOX = "DROPBOX"
|
|
116
150
|
EVENTBRITE = "EVENTBRITE"
|
|
117
151
|
CONFLUENCE = "CONFLUENCE"
|
|
152
|
+
COINBASE = "COINBASE"
|
|
118
153
|
DISCORD = "DISCORD"
|
|
119
154
|
DOCUSIGN = "DOCUSIGN"
|
|
155
|
+
TRELLO = "TRELLO"
|
|
120
156
|
|
|
121
157
|
end
|
|
122
158
|
end
|
|
@@ -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
|
|
@@ -7,6 +7,8 @@ module Vellum
|
|
|
7
7
|
class VellumVariableExtensions
|
|
8
8
|
# @return [String]
|
|
9
9
|
attr_reader :color
|
|
10
|
+
# @return [String]
|
|
11
|
+
attr_reader :description
|
|
10
12
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
11
13
|
attr_reader :additional_properties
|
|
12
14
|
# @return [Object]
|
|
@@ -16,12 +18,14 @@ module Vellum
|
|
|
16
18
|
OMIT = Object.new
|
|
17
19
|
|
|
18
20
|
# @param color [String]
|
|
21
|
+
# @param description [String]
|
|
19
22
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
20
23
|
# @return [Vellum::VellumVariableExtensions]
|
|
21
|
-
def initialize(color: OMIT, additional_properties: nil)
|
|
24
|
+
def initialize(color: OMIT, description: OMIT, additional_properties: nil)
|
|
22
25
|
@color = color if color != OMIT
|
|
26
|
+
@description = description if description != OMIT
|
|
23
27
|
@additional_properties = additional_properties
|
|
24
|
-
@_field_set = { "color": color }.reject do | _k, v |
|
|
28
|
+
@_field_set = { "color": color, "description": description }.reject do | _k, v |
|
|
25
29
|
v == OMIT
|
|
26
30
|
end
|
|
27
31
|
end
|
|
@@ -33,7 +37,12 @@ end
|
|
|
33
37
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
34
38
|
parsed_json = JSON.parse(json_object)
|
|
35
39
|
color = parsed_json["color"]
|
|
36
|
-
|
|
40
|
+
description = parsed_json["description"]
|
|
41
|
+
new(
|
|
42
|
+
color: color,
|
|
43
|
+
description: description,
|
|
44
|
+
additional_properties: struct
|
|
45
|
+
)
|
|
37
46
|
end
|
|
38
47
|
# Serialize an instance of VellumVariableExtensions to a JSON object
|
|
39
48
|
#
|
|
@@ -49,6 +58,7 @@ end
|
|
|
49
58
|
# @return [Void]
|
|
50
59
|
def self.validate_raw(obj:)
|
|
51
60
|
obj.color&.is_a?(String) != false || raise("Passed value for field obj.color is not the expected type, validation failed.")
|
|
61
|
+
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
|
52
62
|
end
|
|
53
63
|
end
|
|
54
64
|
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.
|
|
4
|
+
version: 1.10.1
|
|
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-
|
|
11
|
+
date: 2025-11-11 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
|