vellum_ai 1.0.7 → 1.0.10
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/vellum_ai/types/document_document_to_document_index.rb +3 -3
- data/lib/vellum_ai/types/organization_read.rb +14 -2
- data/lib/vellum_ai/types/slim_document_document_to_document_index.rb +3 -3
- data/lib/vellum_ai/workflows/client.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8beeed77c738535a6a6f505405bc8c88a3032262dcd6d5f8545b073b8fc5592
|
4
|
+
data.tar.gz: 6b47975f39629e0737157418346a36eac419d522f106979b8a1d37b54421d45b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d3536b044bae4a9170745f9843480b78f7d834eab71be8d53557f94c1fc4143b639a514da7dc1423cdef354e8e8a470ee27d221b60e21fe02b46f1cc337da07
|
7
|
+
data.tar.gz: 470c4934557a3d40b620db89107afef95531a5962005b7a4ee2edbc5495ca8aa3a68eba4e5e7fcbb5b725b1299d2982e6bce363994cecca00d05147344678c5f
|
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.
|
59
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.0.10' }
|
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.
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.0.10' }
|
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
|
@@ -48,10 +48,10 @@ module Vellum
|
|
48
48
|
# @param extracted_text_file_url [String]
|
49
49
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
50
50
|
# @return [Vellum::DocumentDocumentToDocumentIndex]
|
51
|
-
def initialize(id:, environment_document_index_id:, document_index_id
|
51
|
+
def initialize(id:, environment_document_index_id:, document_index_id: OMIT, indexing_state: OMIT, extracted_text_file_url: OMIT, additional_properties: nil)
|
52
52
|
@id = id
|
53
53
|
@environment_document_index_id = environment_document_index_id
|
54
|
-
@document_index_id = document_index_id
|
54
|
+
@document_index_id = document_index_id if document_index_id != OMIT
|
55
55
|
@indexing_state = indexing_state if indexing_state != OMIT
|
56
56
|
@extracted_text_file_url = extracted_text_file_url if extracted_text_file_url != OMIT
|
57
57
|
@additional_properties = additional_properties
|
@@ -95,7 +95,7 @@ end
|
|
95
95
|
def self.validate_raw(obj:)
|
96
96
|
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
97
97
|
obj.environment_document_index_id.is_a?(String) != false || raise("Passed value for field obj.environment_document_index_id is not the expected type, validation failed.")
|
98
|
-
obj.document_index_id
|
98
|
+
obj.document_index_id&.is_a?(String) != false || raise("Passed value for field obj.document_index_id is not the expected type, validation failed.")
|
99
99
|
obj.indexing_state&.is_a?(Vellum::IndexingStateEnum) != false || raise("Passed value for field obj.indexing_state is not the expected type, validation failed.")
|
100
100
|
obj.extracted_text_file_url&.is_a?(String) != false || raise("Passed value for field obj.extracted_text_file_url is not the expected type, validation failed.")
|
101
101
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
require "date"
|
2
3
|
require_relative "new_member_join_behavior_enum"
|
3
4
|
require "ostruct"
|
4
5
|
require "json"
|
@@ -9,6 +10,8 @@ module Vellum
|
|
9
10
|
attr_reader :id
|
10
11
|
# @return [String]
|
11
12
|
attr_reader :name
|
13
|
+
# @return [DateTime]
|
14
|
+
attr_reader :created
|
12
15
|
# @return [Boolean]
|
13
16
|
attr_reader :allow_staff_access
|
14
17
|
# @return [Vellum::NewMemberJoinBehaviorEnum]
|
@@ -25,19 +28,21 @@ module Vellum
|
|
25
28
|
|
26
29
|
# @param id [String]
|
27
30
|
# @param name [String]
|
31
|
+
# @param created [DateTime]
|
28
32
|
# @param allow_staff_access [Boolean]
|
29
33
|
# @param new_member_join_behavior [Vellum::NewMemberJoinBehaviorEnum]
|
30
34
|
# @param limit_config [Hash{String => Object}]
|
31
35
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
32
36
|
# @return [Vellum::OrganizationRead]
|
33
|
-
def initialize(id:, name:, allow_staff_access: OMIT, new_member_join_behavior:, limit_config: OMIT, additional_properties: nil)
|
37
|
+
def initialize(id:, name:, created: OMIT, allow_staff_access: OMIT, new_member_join_behavior:, limit_config: OMIT, additional_properties: nil)
|
34
38
|
@id = id
|
35
39
|
@name = name
|
40
|
+
@created = created if created != OMIT
|
36
41
|
@allow_staff_access = allow_staff_access if allow_staff_access != OMIT
|
37
42
|
@new_member_join_behavior = new_member_join_behavior
|
38
43
|
@limit_config = limit_config if limit_config != OMIT
|
39
44
|
@additional_properties = additional_properties
|
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 |
|
45
|
+
@_field_set = { "id": id, "name": name, "created": created, "allow_staff_access": allow_staff_access, "new_member_join_behavior": new_member_join_behavior, "limit_config": limit_config }.reject do | _k, v |
|
41
46
|
v == OMIT
|
42
47
|
end
|
43
48
|
end
|
@@ -50,12 +55,18 @@ end
|
|
50
55
|
parsed_json = JSON.parse(json_object)
|
51
56
|
id = parsed_json["id"]
|
52
57
|
name = parsed_json["name"]
|
58
|
+
created = unless parsed_json["created"].nil?
|
59
|
+
DateTime.parse(parsed_json["created"])
|
60
|
+
else
|
61
|
+
nil
|
62
|
+
end
|
53
63
|
allow_staff_access = parsed_json["allow_staff_access"]
|
54
64
|
new_member_join_behavior = parsed_json["new_member_join_behavior"]
|
55
65
|
limit_config = parsed_json["limit_config"]
|
56
66
|
new(
|
57
67
|
id: id,
|
58
68
|
name: name,
|
69
|
+
created: created,
|
59
70
|
allow_staff_access: allow_staff_access,
|
60
71
|
new_member_join_behavior: new_member_join_behavior,
|
61
72
|
limit_config: limit_config,
|
@@ -77,6 +88,7 @@ end
|
|
77
88
|
def self.validate_raw(obj:)
|
78
89
|
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
79
90
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
91
|
+
obj.created&.is_a?(DateTime) != false || raise("Passed value for field obj.created is not the expected type, validation failed.")
|
80
92
|
obj.allow_staff_access&.is_a?(Boolean) != false || raise("Passed value for field obj.allow_staff_access is not the expected type, validation failed.")
|
81
93
|
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.")
|
82
94
|
obj.limit_config&.is_a?(Hash) != false || raise("Passed value for field obj.limit_config is not the expected type, validation failed.")
|
@@ -45,10 +45,10 @@ module Vellum
|
|
45
45
|
# * `FAILED` - Failed
|
46
46
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
47
47
|
# @return [Vellum::SlimDocumentDocumentToDocumentIndex]
|
48
|
-
def initialize(id:, environment_document_index_id:, document_index_id
|
48
|
+
def initialize(id:, environment_document_index_id:, document_index_id: OMIT, indexing_state: OMIT, additional_properties: nil)
|
49
49
|
@id = id
|
50
50
|
@environment_document_index_id = environment_document_index_id
|
51
|
-
@document_index_id = document_index_id
|
51
|
+
@document_index_id = document_index_id if document_index_id != OMIT
|
52
52
|
@indexing_state = indexing_state if indexing_state != OMIT
|
53
53
|
@additional_properties = additional_properties
|
54
54
|
@_field_set = { "id": id, "environment_document_index_id": environment_document_index_id, "document_index_id": document_index_id, "indexing_state": indexing_state }.reject do | _k, v |
|
@@ -89,7 +89,7 @@ end
|
|
89
89
|
def self.validate_raw(obj:)
|
90
90
|
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
91
91
|
obj.environment_document_index_id.is_a?(String) != false || raise("Passed value for field obj.environment_document_index_id is not the expected type, validation failed.")
|
92
|
-
obj.document_index_id
|
92
|
+
obj.document_index_id&.is_a?(String) != false || raise("Passed value for field obj.document_index_id is not the expected type, validation failed.")
|
93
93
|
obj.indexing_state&.is_a?(Vellum::IndexingStateEnum) != false || raise("Passed value for field obj.indexing_state is not the expected type, validation failed.")
|
94
94
|
end
|
95
95
|
end
|
@@ -20,6 +20,7 @@ module Vellum
|
|
20
20
|
end
|
21
21
|
# @param id [String] The ID of the Workflow to pull from
|
22
22
|
# @param exclude_code [Boolean]
|
23
|
+
# @param exclude_display [Boolean]
|
23
24
|
# @param include_json [Boolean]
|
24
25
|
# @param include_sandbox [Boolean]
|
25
26
|
# @param strict [Boolean]
|
@@ -29,7 +30,7 @@ module Vellum
|
|
29
30
|
# response environment. The latter will allow access to the response status,
|
30
31
|
# headers and reason, as well as the request info.
|
31
32
|
# @return [Void]
|
32
|
-
def pull(id:, exclude_code: nil, include_json: nil, include_sandbox: nil, strict: nil, request_options: nil, &on_data)
|
33
|
+
def pull(id:, exclude_code: nil, exclude_display: nil, include_json: nil, include_sandbox: nil, strict: nil, request_options: nil, &on_data)
|
33
34
|
response = @request_client.conn.get do | req |
|
34
35
|
unless request_options&.timeout_in_seconds.nil?
|
35
36
|
req.options.timeout = request_options.timeout_in_seconds
|
@@ -44,7 +45,7 @@ module Vellum
|
|
44
45
|
end
|
45
46
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
46
47
|
req.options.on_data = on_data
|
47
|
-
req.params = { **(request_options&.additional_query_parameters || {}), "exclude_code": exclude_code, "include_json": include_json, "include_sandbox": include_sandbox, "strict": strict }.compact
|
48
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "exclude_code": exclude_code, "exclude_display": exclude_display, "include_json": include_json, "include_sandbox": include_sandbox, "strict": strict }.compact
|
48
49
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
49
50
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
50
51
|
end
|
@@ -100,6 +101,7 @@ end
|
|
100
101
|
end
|
101
102
|
# @param id [String] The ID of the Workflow to pull from
|
102
103
|
# @param exclude_code [Boolean]
|
104
|
+
# @param exclude_display [Boolean]
|
103
105
|
# @param include_json [Boolean]
|
104
106
|
# @param include_sandbox [Boolean]
|
105
107
|
# @param strict [Boolean]
|
@@ -109,7 +111,7 @@ end
|
|
109
111
|
# response environment. The latter will allow access to the response status,
|
110
112
|
# headers and reason, as well as the request info.
|
111
113
|
# @return [Void]
|
112
|
-
def pull(id:, exclude_code: nil, include_json: nil, include_sandbox: nil, strict: nil, request_options: nil, &on_data)
|
114
|
+
def pull(id:, exclude_code: nil, exclude_display: nil, include_json: nil, include_sandbox: nil, strict: nil, request_options: nil, &on_data)
|
113
115
|
Async do
|
114
116
|
response = @request_client.conn.get do | req |
|
115
117
|
unless request_options&.timeout_in_seconds.nil?
|
@@ -125,7 +127,7 @@ end
|
|
125
127
|
end
|
126
128
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
127
129
|
req.options.on_data = on_data
|
128
|
-
req.params = { **(request_options&.additional_query_parameters || {}), "exclude_code": exclude_code, "include_json": include_json, "include_sandbox": include_sandbox, "strict": strict }.compact
|
130
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "exclude_code": exclude_code, "exclude_display": exclude_display, "include_json": include_json, "include_sandbox": include_sandbox, "strict": strict }.compact
|
129
131
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
130
132
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
131
133
|
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
|
+
version: 1.0.10
|
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
|
+
date: 2025-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|