vellum_ai 1.0.4 → 1.0.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: 914999cb008b320b49aaac00eaab0f64d0c5b881e3c5273d23a6e762b4d3482a
4
- data.tar.gz: a8432979f6fe3bb8df318f6043ad721a4ba08540940594b91b9007a1acdfa8d8
3
+ metadata.gz: 3f843fc332ca4969c268aeb227b39670203eddeaec614950fd4c3b24dd228aeb
4
+ data.tar.gz: a1ad16d1230bb7e15e5700698dd0ef5aa8572e2cae27f85eb1309f1a302569b5
5
5
  SHA512:
6
- metadata.gz: 39359c0a6e280f74426a99d07b57351e8247c16d4c69eca46a99a44db7d6196eafbc3603a83a288c7fe43d6fb14b84abd3e3111fe1b91590ac9471bf3ae79fb9
7
- data.tar.gz: 06dbdb1cc3914115ad8a6dbe341aba5b98ce54970b54f72f126bf37ee3c16cfb9f046d6fb3a0112ffb4c6e8b9a194ad8b3ef51186938db7f31afc949e7eedf4e
6
+ metadata.gz: 2314b176ea6bc209606b6e1167f38b3c0e4659946a86ba9bee807222cf39c406686da1463f7270f1ca24aacc3c998343c7da978975096360e747726de99637ac
7
+ data.tar.gz: 618cd74b81cafc232e57106b15e6965ab1b5324ef91a9931442e3954b1f34072974c5ccff6391243c29be37fffe852aae7899093025145886bceb5473257ad04
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.0.4' }
59
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.0.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.0.4' }
110
+ headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.0.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
data/lib/types_export.rb CHANGED
@@ -306,7 +306,6 @@ require_relative "vellum_ai/types/number_vellum_value"
306
306
  require_relative "vellum_ai/types/number_vellum_value_request"
307
307
  require_relative "vellum_ai/types/open_ai_vectorizer_config"
308
308
  require_relative "vellum_ai/types/open_ai_vectorizer_config_request"
309
- require_relative "vellum_ai/types/organization_limit_config"
310
309
  require_relative "vellum_ai/types/organization_read"
311
310
  require_relative "vellum_ai/types/paginated_container_image_read_list"
312
311
  require_relative "vellum_ai/types/paginated_deployment_release_tag_read_list"
@@ -356,7 +355,6 @@ require_relative "vellum_ai/types/prompt_request_input"
356
355
  require_relative "vellum_ai/types/prompt_settings"
357
356
  require_relative "vellum_ai/types/prompt_version_build_config_sandbox"
358
357
  require_relative "vellum_ai/types/components_schemas_prompt_version_build_config_sandbox"
359
- require_relative "vellum_ai/types/quota"
360
358
  require_relative "vellum_ai/types/raw_prompt_execution_overrides_request"
361
359
  require_relative "vellum_ai/types/reducto_chunker_config"
362
360
  require_relative "vellum_ai/types/reducto_chunker_config_request"
@@ -542,7 +540,6 @@ require_relative "vellum_ai/types/workflow_execution_paused_event"
542
540
  require_relative "vellum_ai/types/workflow_execution_resumed_event"
543
541
  require_relative "vellum_ai/types/workflow_execution_snapshotted_event"
544
542
  require_relative "vellum_ai/types/vellum_workflow_execution_event"
545
- require_relative "vellum_ai/types/vembda_service_tier_enum"
546
543
  require_relative "vellum_ai/types/workflow_deployment_event_executions_response"
547
544
  require_relative "vellum_ai/types/workflow_deployment_history_item"
548
545
  require_relative "vellum_ai/types/workflow_deployment_read"
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  require_relative "new_member_join_behavior_enum"
3
- require_relative "organization_limit_config"
4
3
  require "ostruct"
5
4
  require "json"
6
5
 
@@ -14,7 +13,7 @@ module Vellum
14
13
  attr_reader :allow_staff_access
15
14
  # @return [Vellum::NewMemberJoinBehaviorEnum]
16
15
  attr_reader :new_member_join_behavior
17
- # @return [Vellum::OrganizationLimitConfig]
16
+ # @return [Hash{String => Object}]
18
17
  attr_reader :limit_config
19
18
  # @return [OpenStruct] Additional properties unmapped to the current class definition
20
19
  attr_reader :additional_properties
@@ -28,15 +27,15 @@ module Vellum
28
27
  # @param name [String]
29
28
  # @param allow_staff_access [Boolean]
30
29
  # @param new_member_join_behavior [Vellum::NewMemberJoinBehaviorEnum]
31
- # @param limit_config [Vellum::OrganizationLimitConfig]
30
+ # @param limit_config [Hash{String => Object}]
32
31
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
33
32
  # @return [Vellum::OrganizationRead]
34
- def initialize(id:, name:, allow_staff_access: OMIT, new_member_join_behavior:, limit_config:, additional_properties: nil)
33
+ def initialize(id:, name:, allow_staff_access: OMIT, new_member_join_behavior:, limit_config: OMIT, additional_properties: nil)
35
34
  @id = id
36
35
  @name = name
37
36
  @allow_staff_access = allow_staff_access if allow_staff_access != OMIT
38
37
  @new_member_join_behavior = new_member_join_behavior
39
- @limit_config = limit_config
38
+ @limit_config = limit_config if limit_config != OMIT
40
39
  @additional_properties = additional_properties
41
40
  @_field_set = { "id": id, "name": name, "allow_staff_access": allow_staff_access, "new_member_join_behavior": new_member_join_behavior, "limit_config": limit_config }.reject do | _k, v |
42
41
  v == OMIT
@@ -53,12 +52,7 @@ end
53
52
  name = parsed_json["name"]
54
53
  allow_staff_access = parsed_json["allow_staff_access"]
55
54
  new_member_join_behavior = parsed_json["new_member_join_behavior"]
56
- unless parsed_json["limit_config"].nil?
57
- limit_config = parsed_json["limit_config"].to_json
58
- limit_config = Vellum::OrganizationLimitConfig.from_json(json_object: limit_config)
59
- else
60
- limit_config = nil
61
- end
55
+ limit_config = parsed_json["limit_config"]
62
56
  new(
63
57
  id: id,
64
58
  name: name,
@@ -85,7 +79,7 @@ end
85
79
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
86
80
  obj.allow_staff_access&.is_a?(Boolean) != false || raise("Passed value for field obj.allow_staff_access is not the expected type, validation failed.")
87
81
  obj.new_member_join_behavior.is_a?(Vellum::NewMemberJoinBehaviorEnum) != false || raise("Passed value for field obj.new_member_join_behavior is not the expected type, validation failed.")
88
- Vellum::OrganizationLimitConfig.validate_raw(obj: obj.limit_config)
82
+ obj.limit_config&.is_a?(Hash) != false || raise("Passed value for field obj.limit_config is not the expected type, validation failed.")
89
83
  end
90
84
  end
91
85
  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.0.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vellum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-21 00:00:00.000000000 Z
11
+ date: 2025-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -438,7 +438,6 @@ files:
438
438
  - lib/vellum_ai/types/open_ai_vectorizer_text_embedding_3_small_request.rb
439
439
  - lib/vellum_ai/types/open_ai_vectorizer_text_embedding_ada_002.rb
440
440
  - lib/vellum_ai/types/open_ai_vectorizer_text_embedding_ada_002_request.rb
441
- - lib/vellum_ai/types/organization_limit_config.rb
442
441
  - lib/vellum_ai/types/organization_read.rb
443
442
  - lib/vellum_ai/types/paginated_container_image_read_list.rb
444
443
  - lib/vellum_ai/types/paginated_deployment_release_tag_read_list.rb
@@ -479,7 +478,6 @@ files:
479
478
  - lib/vellum_ai/types/prompt_request_string_input.rb
480
479
  - lib/vellum_ai/types/prompt_settings.rb
481
480
  - lib/vellum_ai/types/prompt_version_build_config_sandbox.rb
482
- - lib/vellum_ai/types/quota.rb
483
481
  - lib/vellum_ai/types/raw_prompt_execution_overrides_request.rb
484
482
  - lib/vellum_ai/types/reducto_chunker_config.rb
485
483
  - lib/vellum_ai/types/reducto_chunker_config_request.rb
@@ -677,7 +675,6 @@ files:
677
675
  - lib/vellum_ai/types/vellum_variable_extensions.rb
678
676
  - lib/vellum_ai/types/vellum_variable_type.rb
679
677
  - lib/vellum_ai/types/vellum_workflow_execution_event.rb
680
- - lib/vellum_ai/types/vembda_service_tier_enum.rb
681
678
  - lib/vellum_ai/types/workflow_deployment_event_executions_response.rb
682
679
  - lib/vellum_ai/types/workflow_deployment_history_item.rb
683
680
  - lib/vellum_ai/types/workflow_deployment_parent_context.rb
@@ -1,101 +0,0 @@
1
- # frozen_string_literal: true
2
- require_relative "vembda_service_tier_enum"
3
- require_relative "quota"
4
- require "ostruct"
5
- require "json"
6
-
7
- module Vellum
8
- class OrganizationLimitConfig
9
- # @return [Vellum::VembdaServiceTierEnum]
10
- attr_reader :vembda_service_tier
11
- # @return [Vellum::Quota]
12
- attr_reader :prompt_executions_quota
13
- # @return [Vellum::Quota]
14
- attr_reader :workflow_executions_quota
15
- # @return [Vellum::Quota]
16
- attr_reader :workflow_runtime_seconds_quota
17
- # @return [Integer]
18
- attr_reader :max_workflow_runtime_seconds
19
- # @return [OpenStruct] Additional properties unmapped to the current class definition
20
- attr_reader :additional_properties
21
- # @return [Object]
22
- attr_reader :_field_set
23
- protected :_field_set
24
-
25
- OMIT = Object.new
26
-
27
- # @param vembda_service_tier [Vellum::VembdaServiceTierEnum]
28
- # @param prompt_executions_quota [Vellum::Quota]
29
- # @param workflow_executions_quota [Vellum::Quota]
30
- # @param workflow_runtime_seconds_quota [Vellum::Quota]
31
- # @param max_workflow_runtime_seconds [Integer]
32
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
33
- # @return [Vellum::OrganizationLimitConfig]
34
- def initialize(vembda_service_tier: OMIT, prompt_executions_quota: OMIT, workflow_executions_quota: OMIT, workflow_runtime_seconds_quota: OMIT, max_workflow_runtime_seconds: OMIT, additional_properties: nil)
35
- @vembda_service_tier = vembda_service_tier if vembda_service_tier != OMIT
36
- @prompt_executions_quota = prompt_executions_quota if prompt_executions_quota != OMIT
37
- @workflow_executions_quota = workflow_executions_quota if workflow_executions_quota != OMIT
38
- @workflow_runtime_seconds_quota = workflow_runtime_seconds_quota if workflow_runtime_seconds_quota != OMIT
39
- @max_workflow_runtime_seconds = max_workflow_runtime_seconds if max_workflow_runtime_seconds != OMIT
40
- @additional_properties = additional_properties
41
- @_field_set = { "vembda_service_tier": vembda_service_tier, "prompt_executions_quota": prompt_executions_quota, "workflow_executions_quota": workflow_executions_quota, "workflow_runtime_seconds_quota": workflow_runtime_seconds_quota, "max_workflow_runtime_seconds": max_workflow_runtime_seconds }.reject do | _k, v |
42
- v == OMIT
43
- end
44
- end
45
- # Deserialize a JSON object to an instance of OrganizationLimitConfig
46
- #
47
- # @param json_object [String]
48
- # @return [Vellum::OrganizationLimitConfig]
49
- def self.from_json(json_object:)
50
- struct = JSON.parse(json_object, object_class: OpenStruct)
51
- parsed_json = JSON.parse(json_object)
52
- vembda_service_tier = parsed_json["vembda_service_tier"]
53
- unless parsed_json["prompt_executions_quota"].nil?
54
- prompt_executions_quota = parsed_json["prompt_executions_quota"].to_json
55
- prompt_executions_quota = Vellum::Quota.from_json(json_object: prompt_executions_quota)
56
- else
57
- prompt_executions_quota = nil
58
- end
59
- unless parsed_json["workflow_executions_quota"].nil?
60
- workflow_executions_quota = parsed_json["workflow_executions_quota"].to_json
61
- workflow_executions_quota = Vellum::Quota.from_json(json_object: workflow_executions_quota)
62
- else
63
- workflow_executions_quota = nil
64
- end
65
- unless parsed_json["workflow_runtime_seconds_quota"].nil?
66
- workflow_runtime_seconds_quota = parsed_json["workflow_runtime_seconds_quota"].to_json
67
- workflow_runtime_seconds_quota = Vellum::Quota.from_json(json_object: workflow_runtime_seconds_quota)
68
- else
69
- workflow_runtime_seconds_quota = nil
70
- end
71
- max_workflow_runtime_seconds = parsed_json["max_workflow_runtime_seconds"]
72
- new(
73
- vembda_service_tier: vembda_service_tier,
74
- prompt_executions_quota: prompt_executions_quota,
75
- workflow_executions_quota: workflow_executions_quota,
76
- workflow_runtime_seconds_quota: workflow_runtime_seconds_quota,
77
- max_workflow_runtime_seconds: max_workflow_runtime_seconds,
78
- additional_properties: struct
79
- )
80
- end
81
- # Serialize an instance of OrganizationLimitConfig to a JSON object
82
- #
83
- # @return [String]
84
- def to_json
85
- @_field_set&.to_json
86
- end
87
- # Leveraged for Union-type generation, validate_raw attempts to parse the given
88
- # hash and check each fields type against the current object's property
89
- # definitions.
90
- #
91
- # @param obj [Object]
92
- # @return [Void]
93
- def self.validate_raw(obj:)
94
- obj.vembda_service_tier&.is_a?(Vellum::VembdaServiceTierEnum) != false || raise("Passed value for field obj.vembda_service_tier is not the expected type, validation failed.")
95
- obj.prompt_executions_quota.nil? || Vellum::Quota.validate_raw(obj: obj.prompt_executions_quota)
96
- obj.workflow_executions_quota.nil? || Vellum::Quota.validate_raw(obj: obj.workflow_executions_quota)
97
- obj.workflow_runtime_seconds_quota.nil? || Vellum::Quota.validate_raw(obj: obj.workflow_runtime_seconds_quota)
98
- obj.max_workflow_runtime_seconds&.is_a?(Integer) != false || raise("Passed value for field obj.max_workflow_runtime_seconds is not the expected type, validation failed.")
99
- end
100
- end
101
- end
@@ -1,70 +0,0 @@
1
- # frozen_string_literal: true
2
- require "ostruct"
3
- require "json"
4
-
5
- module Vellum
6
- class Quota
7
- # @return [String]
8
- attr_reader :name
9
- # @return [Integer]
10
- attr_reader :value
11
- # @return [Integer]
12
- attr_reader :period_seconds
13
- # @return [OpenStruct] Additional properties unmapped to the current class definition
14
- attr_reader :additional_properties
15
- # @return [Object]
16
- attr_reader :_field_set
17
- protected :_field_set
18
-
19
- OMIT = Object.new
20
-
21
- # @param name [String]
22
- # @param value [Integer]
23
- # @param period_seconds [Integer]
24
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
25
- # @return [Vellum::Quota]
26
- def initialize(name:, value: OMIT, period_seconds: OMIT, additional_properties: nil)
27
- @name = name
28
- @value = value if value != OMIT
29
- @period_seconds = period_seconds if period_seconds != OMIT
30
- @additional_properties = additional_properties
31
- @_field_set = { "name": name, "value": value, "period_seconds": period_seconds }.reject do | _k, v |
32
- v == OMIT
33
- end
34
- end
35
- # Deserialize a JSON object to an instance of Quota
36
- #
37
- # @param json_object [String]
38
- # @return [Vellum::Quota]
39
- def self.from_json(json_object:)
40
- struct = JSON.parse(json_object, object_class: OpenStruct)
41
- parsed_json = JSON.parse(json_object)
42
- name = parsed_json["name"]
43
- value = parsed_json["value"]
44
- period_seconds = parsed_json["period_seconds"]
45
- new(
46
- name: name,
47
- value: value,
48
- period_seconds: period_seconds,
49
- additional_properties: struct
50
- )
51
- end
52
- # Serialize an instance of Quota to a JSON object
53
- #
54
- # @return [String]
55
- def to_json
56
- @_field_set&.to_json
57
- end
58
- # Leveraged for Union-type generation, validate_raw attempts to parse the given
59
- # hash and check each fields type against the current object's property
60
- # definitions.
61
- #
62
- # @param obj [Object]
63
- # @return [Void]
64
- def self.validate_raw(obj:)
65
- obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
66
- obj.value&.is_a?(Integer) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
67
- obj.period_seconds&.is_a?(Integer) != false || raise("Passed value for field obj.period_seconds is not the expected type, validation failed.")
68
- end
69
- end
70
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Vellum
4
- # * `FREE` - FREE
5
- # * `PAID` - PAID
6
- class VembdaServiceTierEnum
7
-
8
- FREE = "FREE"
9
- PAID = "PAID"
10
-
11
- end
12
- end