diff --git a/lib/requests.rb b/lib/requests.rb index a18af515..58fed33a 100644 --- a/lib/requests.rb +++ b/lib/requests.rb @@ -56,7 +56,7 @@ def get_url(request_options: nil, environment:) end # @return [Hash{String => String}] def get_headers - headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.7' } + headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.8' } headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil? headers end @@ -107,7 +107,7 @@ def get_url(request_options: nil, environment:) end # @return [Hash{String => String}] def get_headers - headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.7' } + headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.13.8' } headers["X-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil? headers end diff --git a/lib/types_export.rb b/lib/types_export.rb index 506e576f..5e59e68d 100644 --- a/lib/types_export.rb +++ b/lib/types_export.rb @@ -626,6 +626,7 @@ require_relative "vellum_ai/types/vellum_image" require_relative "vellum_ai/types/vellum_image_request" require_relative "vellum_ai/types/vellum_node_execution_event" +require_relative "vellum_ai/types/vellum_sdk_error_raw_data" require_relative "vellum_ai/types/vellum_sdk_error" require_relative "vellum_ai/types/vellum_sdk_error_code_enum" require_relative "vellum_ai/types/workflow_execution_span" @@ -651,6 +652,7 @@ require_relative "vellum_ai/types/workflow_event_error" require_relative "vellum_ai/types/workflow_initialization_error" require_relative "vellum_ai/types/workflow_error" +require_relative "vellum_ai/types/workflow_event_error_raw_data" require_relative "vellum_ai/types/workflow_event_execution_read" require_relative "vellum_ai/types/workflow_execution_actual" require_relative "vellum_ai/types/workflow_execution_detail" diff --git a/lib/vellum_ai/deployments/types/deployments_list_request_status.rb b/lib/vellum_ai/deployments/types/deployments_list_request_status.rb index ffdb61fc..bba154bc 100644 --- a/lib/vellum_ai/deployments/types/deployments_list_request_status.rb +++ b/lib/vellum_ai/deployments/types/deployments_list_request_status.rb @@ -6,6 +6,7 @@ class DeploymentsListRequestStatus ACTIVE = "ACTIVE" ARCHIVED = "ARCHIVED" + PENDING_DELETION = "PENDING_DELETION" end end diff --git a/lib/vellum_ai/document_indexes/client.rb b/lib/vellum_ai/document_indexes/client.rb index e4cb8b5c..b0db6241 100644 --- a/lib/vellum_ai/document_indexes/client.rb +++ b/lib/vellum_ai/document_indexes/client.rb @@ -36,6 +36,7 @@ def initialize(request_client:) # specified # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param request_options [Vellum::RequestOptions] # @return [Vellum::PaginatedDocumentIndexReadList] # @example @@ -74,6 +75,7 @@ def list(limit: nil, offset: nil, ordering: nil, search: nil, status: nil, reque # @param status [Vellum::EntityStatus] The current status of the document index # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param indexing_config [Hash] Request of type Vellum::DocumentIndexIndexingConfigRequest, as a Hash # * :vectorizer (Hash) # * :chunking (Hash) @@ -156,6 +158,7 @@ def retrieve(id:, mask_indexing_config: nil, request_options: nil) # @param status [Vellum::EntityStatus] The current status of the document index # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param request_options [Vellum::RequestOptions] # @return [Vellum::DocumentIndexRead] # @example @@ -229,6 +232,7 @@ def destroy(id:, request_options: nil) # @param status [Vellum::EntityStatus] The current status of the document index # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param request_options [Vellum::RequestOptions] # @return [Vellum::DocumentIndexRead] # @example @@ -357,6 +361,7 @@ def initialize(request_client:) # specified # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param request_options [Vellum::RequestOptions] # @return [Vellum::PaginatedDocumentIndexReadList] # @example @@ -397,6 +402,7 @@ def list(limit: nil, offset: nil, ordering: nil, search: nil, status: nil, reque # @param status [Vellum::EntityStatus] The current status of the document index # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param indexing_config [Hash] Request of type Vellum::DocumentIndexIndexingConfigRequest, as a Hash # * :vectorizer (Hash) # * :chunking (Hash) @@ -483,6 +489,7 @@ def retrieve(id:, mask_indexing_config: nil, request_options: nil) # @param status [Vellum::EntityStatus] The current status of the document index # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param request_options [Vellum::RequestOptions] # @return [Vellum::DocumentIndexRead] # @example @@ -560,6 +567,7 @@ def destroy(id:, request_options: nil) # @param status [Vellum::EntityStatus] The current status of the document index # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param request_options [Vellum::RequestOptions] # @return [Vellum::DocumentIndexRead] # @example diff --git a/lib/vellum_ai/document_indexes/types/document_indexes_list_request_status.rb b/lib/vellum_ai/document_indexes/types/document_indexes_list_request_status.rb index 43aa1828..8c9f9fd4 100644 --- a/lib/vellum_ai/document_indexes/types/document_indexes_list_request_status.rb +++ b/lib/vellum_ai/document_indexes/types/document_indexes_list_request_status.rb @@ -6,6 +6,7 @@ class DocumentIndexesListRequestStatus ACTIVE = "ACTIVE" ARCHIVED = "ARCHIVED" + PENDING_DELETION = "PENDING_DELETION" end end diff --git a/lib/vellum_ai/folder_entities/client.rb b/lib/vellum_ai/folder_entities/client.rb index 5e807428..5f1d504b 100644 --- a/lib/vellum_ai/folder_entities/client.rb +++ b/lib/vellum_ai/folder_entities/client.rb @@ -23,6 +23,7 @@ def initialize(request_client:) # status specified. # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param limit [Integer] Number of results to return per page. # @param offset [Integer] The initial index from which to return the results. # @param ordering [String] Which field to use when ordering the results. @@ -125,6 +126,7 @@ def initialize(request_client:) # status specified. # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param limit [Integer] Number of results to return per page. # @param offset [Integer] The initial index from which to return the results. # @param ordering [String] Which field to use when ordering the results. diff --git a/lib/vellum_ai/folder_entities/types/folder_entities_list_request_entity_status.rb b/lib/vellum_ai/folder_entities/types/folder_entities_list_request_entity_status.rb index 0628b364..4b1a0238 100644 --- a/lib/vellum_ai/folder_entities/types/folder_entities_list_request_entity_status.rb +++ b/lib/vellum_ai/folder_entities/types/folder_entities_list_request_entity_status.rb @@ -6,6 +6,7 @@ class FolderEntitiesListRequestEntityStatus ACTIVE = "ACTIVE" ARCHIVED = "ARCHIVED" + PENDING_DELETION = "PENDING_DELETION" end end diff --git a/lib/vellum_ai/types/deployment_read.rb b/lib/vellum_ai/types/deployment_read.rb index 2dae84a1..b5c13ac2 100644 --- a/lib/vellum_ai/types/deployment_read.rb +++ b/lib/vellum_ai/types/deployment_read.rb @@ -21,6 +21,7 @@ class DeploymentRead # @return [Vellum::EntityStatus] The current status of the deployment # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion attr_reader :status # @return [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'. attr_reader :environment @@ -49,6 +50,7 @@ class DeploymentRead # @param status [Vellum::EntityStatus] The current status of the deployment # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param environment [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'. # @param last_deployed_on [DateTime] # @param input_variables [Array] diff --git a/lib/vellum_ai/types/document_index_read.rb b/lib/vellum_ai/types/document_index_read.rb index b73eeb2b..226d3fc4 100644 --- a/lib/vellum_ai/types/document_index_read.rb +++ b/lib/vellum_ai/types/document_index_read.rb @@ -18,6 +18,7 @@ class DocumentIndexRead # @return [Vellum::EntityStatus] The current status of the document index # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion attr_reader :status # @return [Vellum::DocumentIndexIndexingConfig] attr_reader :indexing_config @@ -36,6 +37,7 @@ class DocumentIndexRead # @param status [Vellum::EntityStatus] The current status of the document index # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param indexing_config [Vellum::DocumentIndexIndexingConfig] # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [Vellum::DocumentIndexRead] diff --git a/lib/vellum_ai/types/entity_status.rb b/lib/vellum_ai/types/entity_status.rb index 75f2c3f5..dfee84bb 100644 --- a/lib/vellum_ai/types/entity_status.rb +++ b/lib/vellum_ai/types/entity_status.rb @@ -3,10 +3,12 @@ module Vellum # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion class EntityStatus ACTIVE = "ACTIVE" ARCHIVED = "ARCHIVED" + PENDING_DELETION = "PENDING_DELETION" end end \ No newline at end of file diff --git a/lib/vellum_ai/types/integration_name.rb b/lib/vellum_ai/types/integration_name.rb index 9c182fbf..22ada09a 100644 --- a/lib/vellum_ai/types/integration_name.rb +++ b/lib/vellum_ai/types/integration_name.rb @@ -84,6 +84,7 @@ module Vellum # * `SUPABASE` - Supabase # * `TAVILY` - Tavily # * `TELEGRAM` - Telegram +# * `TIKTOK` - TikTok # * `TODOIST` - Todoist # * `WEBFLOW` - Webflow # * `YOUSEARCH` - You Search @@ -187,6 +188,7 @@ class IntegrationName SUPABASE = "SUPABASE" TAVILY = "TAVILY" TELEGRAM = "TELEGRAM" + TIKTOK = "TIKTOK" TODOIST = "TODOIST" WEBFLOW = "WEBFLOW" YOUSEARCH = "YOUSEARCH" diff --git a/lib/vellum_ai/types/slim_deployment_read.rb b/lib/vellum_ai/types/slim_deployment_read.rb index be5f0a86..15ead22c 100644 --- a/lib/vellum_ai/types/slim_deployment_read.rb +++ b/lib/vellum_ai/types/slim_deployment_read.rb @@ -21,6 +21,7 @@ class SlimDeploymentRead # @return [Vellum::EntityStatus] The current status of the deployment # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion attr_reader :status # @return [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'. attr_reader :environment @@ -45,6 +46,7 @@ class SlimDeploymentRead # @param status [Vellum::EntityStatus] The current status of the deployment # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param environment [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'. # @param last_deployed_on [DateTime] # @param input_variables [Array] diff --git a/lib/vellum_ai/types/slim_workflow_deployment.rb b/lib/vellum_ai/types/slim_workflow_deployment.rb index 1d16374a..491136cd 100644 --- a/lib/vellum_ai/types/slim_workflow_deployment.rb +++ b/lib/vellum_ai/types/slim_workflow_deployment.rb @@ -19,6 +19,7 @@ class SlimWorkflowDeployment # @return [Vellum::EntityStatus] The current status of the workflow deployment # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion attr_reader :status # @return [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'. attr_reader :environment @@ -47,6 +48,7 @@ class SlimWorkflowDeployment # @param status [Vellum::EntityStatus] The current status of the workflow deployment # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param environment [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'. # @param created [DateTime] # @param last_deployed_on [DateTime] diff --git a/lib/vellum_ai/types/vellum_sdk_error.rb b/lib/vellum_ai/types/vellum_sdk_error.rb index 003d8f16..db28983e 100644 --- a/lib/vellum_ai/types/vellum_sdk_error.rb +++ b/lib/vellum_ai/types/vellum_sdk_error.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +require_relative "vellum_sdk_error_raw_data" require_relative "vellum_sdk_error_code_enum" require "ostruct" require "json" @@ -7,10 +8,10 @@ module Vellum class VellumSdkError # @return [String] attr_reader :message + # @return [Vellum::VellumSdkErrorRawData] + attr_reader :raw_data # @return [Vellum::VellumSdkErrorCodeEnum] attr_reader :code - # @return [Hash{String => Object}] - attr_reader :raw_data # @return [OpenStruct] Additional properties unmapped to the current class definition attr_reader :additional_properties # @return [Object] @@ -20,16 +21,16 @@ class VellumSdkError OMIT = Object.new # @param message [String] + # @param raw_data [Vellum::VellumSdkErrorRawData] # @param code [Vellum::VellumSdkErrorCodeEnum] - # @param raw_data [Hash{String => Object}] # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [Vellum::VellumSdkError] - def initialize(message:, code:, raw_data: OMIT, additional_properties: nil) + def initialize(message:, raw_data: OMIT, code:, additional_properties: nil) @message = message - @code = code @raw_data = raw_data if raw_data != OMIT + @code = code @additional_properties = additional_properties - @_field_set = { "message": message, "code": code, "raw_data": raw_data }.reject do | _k, v | + @_field_set = { "message": message, "raw_data": raw_data, "code": code }.reject do | _k, v | v == OMIT end end @@ -41,12 +42,17 @@ def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) message = parsed_json["message"] + unless parsed_json["raw_data"].nil? + raw_data = parsed_json["raw_data"].to_json + raw_data = Vellum::VellumSdkErrorRawData.from_json(json_object: raw_data) + else + raw_data = nil + end code = parsed_json["code"] - raw_data = parsed_json["raw_data"] new( message: message, - code: code, raw_data: raw_data, + code: code, additional_properties: struct ) end @@ -64,8 +70,8 @@ def to_json # @return [Void] def self.validate_raw(obj:) obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.") + obj.raw_data.nil? || Vellum::VellumSdkErrorRawData.validate_raw(obj: obj.raw_data) obj.code.is_a?(Vellum::VellumSdkErrorCodeEnum) != false || raise("Passed value for field obj.code is not the expected type, validation failed.") - obj.raw_data&.is_a?(Hash) != false || raise("Passed value for field obj.raw_data is not the expected type, validation failed.") end end end \ No newline at end of file diff --git a/lib/vellum_ai/types/vellum_sdk_error_raw_data.rb b/lib/vellum_ai/types/vellum_sdk_error_raw_data.rb new file mode 100644 index 00000000..d4870b46 --- /dev/null +++ b/lib/vellum_ai/types/vellum_sdk_error_raw_data.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +require "json" + +module Vellum + class VellumSdkErrorRawData + + +# Deserialize a JSON object to an instance of VellumSdkErrorRawData + # + # @param json_object [String] + # @return [Vellum::VellumSdkErrorRawData] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(Hash) != false || raise("Passed value for field struct is not the expected type, validation failed.") + unless struct.nil? + return struct +else + return nil +end + rescue StandardError + # noop + end + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + unless struct.nil? + return struct +else + return nil +end + rescue StandardError + # noop + end + return struct + end +# Leveraged for Union-type generation, validate_raw attempts to parse the given +# hash and check each fields type against the current object's property +# definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(Hash) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end +end \ No newline at end of file diff --git a/lib/vellum_ai/types/workflow_deployment_read.rb b/lib/vellum_ai/types/workflow_deployment_read.rb index 8a31753e..cf2172c9 100644 --- a/lib/vellum_ai/types/workflow_deployment_read.rb +++ b/lib/vellum_ai/types/workflow_deployment_read.rb @@ -20,6 +20,7 @@ class WorkflowDeploymentRead # @return [Vellum::EntityStatus] The current status of the workflow deployment # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion attr_reader :status # @return [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'. attr_reader :environment @@ -54,6 +55,7 @@ class WorkflowDeploymentRead # @param status [Vellum::EntityStatus] The current status of the workflow deployment # * `ACTIVE` - Active # * `ARCHIVED` - Archived +# * `PENDING_DELETION` - Pending Deletion # @param environment [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'. # @param created [DateTime] # @param last_deployed_on [DateTime] diff --git a/lib/vellum_ai/types/workflow_event_error.rb b/lib/vellum_ai/types/workflow_event_error.rb index 76633cc3..1a4917b4 100644 --- a/lib/vellum_ai/types/workflow_event_error.rb +++ b/lib/vellum_ai/types/workflow_event_error.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +require_relative "workflow_event_error_raw_data" require_relative "workflow_execution_event_error_code" require "ostruct" require "json" @@ -7,10 +8,10 @@ module Vellum class WorkflowEventError # @return [String] attr_reader :message + # @return [Vellum::WorkflowEventErrorRawData] + attr_reader :raw_data # @return [Vellum::WorkflowExecutionEventErrorCode] attr_reader :code - # @return [Hash{String => Object}] - attr_reader :raw_data # @return [String] attr_reader :stacktrace # @return [OpenStruct] Additional properties unmapped to the current class definition @@ -22,18 +23,18 @@ class WorkflowEventError OMIT = Object.new # @param message [String] + # @param raw_data [Vellum::WorkflowEventErrorRawData] # @param code [Vellum::WorkflowExecutionEventErrorCode] - # @param raw_data [Hash{String => Object}] # @param stacktrace [String] # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [Vellum::WorkflowEventError] - def initialize(message:, code:, raw_data: OMIT, stacktrace: OMIT, additional_properties: nil) + def initialize(message:, raw_data: OMIT, code:, stacktrace: OMIT, additional_properties: nil) @message = message - @code = code @raw_data = raw_data if raw_data != OMIT + @code = code @stacktrace = stacktrace if stacktrace != OMIT @additional_properties = additional_properties - @_field_set = { "message": message, "code": code, "raw_data": raw_data, "stacktrace": stacktrace }.reject do | _k, v | + @_field_set = { "message": message, "raw_data": raw_data, "code": code, "stacktrace": stacktrace }.reject do | _k, v | v == OMIT end end @@ -45,13 +46,18 @@ def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) message = parsed_json["message"] + unless parsed_json["raw_data"].nil? + raw_data = parsed_json["raw_data"].to_json + raw_data = Vellum::WorkflowEventErrorRawData.from_json(json_object: raw_data) + else + raw_data = nil + end code = parsed_json["code"] - raw_data = parsed_json["raw_data"] stacktrace = parsed_json["stacktrace"] new( message: message, - code: code, raw_data: raw_data, + code: code, stacktrace: stacktrace, additional_properties: struct ) @@ -70,8 +76,8 @@ def to_json # @return [Void] def self.validate_raw(obj:) obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.") + obj.raw_data.nil? || Vellum::WorkflowEventErrorRawData.validate_raw(obj: obj.raw_data) obj.code.is_a?(Vellum::WorkflowExecutionEventErrorCode) != false || raise("Passed value for field obj.code is not the expected type, validation failed.") - obj.raw_data&.is_a?(Hash) != false || raise("Passed value for field obj.raw_data is not the expected type, validation failed.") obj.stacktrace&.is_a?(String) != false || raise("Passed value for field obj.stacktrace is not the expected type, validation failed.") end end diff --git a/lib/vellum_ai/types/workflow_event_error_raw_data.rb b/lib/vellum_ai/types/workflow_event_error_raw_data.rb new file mode 100644 index 00000000..13179f1d --- /dev/null +++ b/lib/vellum_ai/types/workflow_event_error_raw_data.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +require "json" + +module Vellum + class WorkflowEventErrorRawData + + +# Deserialize a JSON object to an instance of WorkflowEventErrorRawData + # + # @param json_object [String] + # @return [Vellum::WorkflowEventErrorRawData] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(Hash) != false || raise("Passed value for field struct is not the expected type, validation failed.") + unless struct.nil? + return struct +else + return nil +end + rescue StandardError + # noop + end + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + unless struct.nil? + return struct +else + return nil +end + rescue StandardError + # noop + end + return struct + end +# Leveraged for Union-type generation, validate_raw attempts to parse the given +# hash and check each fields type against the current object's property +# definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(Hash) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end +end \ No newline at end of file diff --git a/lib/vellum_ai/workflow_deployments/types/workflow_deployments_list_request_status.rb b/lib/vellum_ai/workflow_deployments/types/workflow_deployments_list_request_status.rb index b3ec3105..e1bd31cf 100644 --- a/lib/vellum_ai/workflow_deployments/types/workflow_deployments_list_request_status.rb +++ b/lib/vellum_ai/workflow_deployments/types/workflow_deployments_list_request_status.rb @@ -6,6 +6,7 @@ class WorkflowDeploymentsListRequestStatus ACTIVE = "ACTIVE" ARCHIVED = "ARCHIVED" + PENDING_DELETION = "PENDING_DELETION" end end diff --git a/vellum_ai.gemspec b/vellum_ai.gemspec index f0d87b9b..a7f13923 100644 --- a/vellum_ai.gemspec +++ b/vellum_ai.gemspec @@ -11,7 +11,7 @@ require_relative "lib/gemconfig" Gem::Specification.new do | spec | spec.name = "vellum_ai" - spec.version = "1.13.7" + spec.version = "1.13.8" spec.licenses = ["MIT"] spec.authors = Vellum::Gemconfig::AUTHORS spec.email = Vellum::Gemconfig::EMAIL