vellum_ai 1.13.6 → 1.14.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 +4 -4
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +2 -1
- data/lib/vellum_ai/deployments/types/deployments_list_request_status.rb +1 -0
- data/lib/vellum_ai/document_indexes/client.rb +8 -0
- data/lib/vellum_ai/document_indexes/types/document_indexes_list_request_status.rb +1 -0
- data/lib/vellum_ai/folder_entities/client.rb +2 -0
- data/lib/vellum_ai/folder_entities/types/folder_entities_list_request_entity_status.rb +1 -0
- data/lib/vellum_ai/integrations/client.rb +8 -8
- data/lib/vellum_ai/types/chat_message.rb +9 -2
- data/lib/vellum_ai/types/chat_message_request.rb +9 -2
- data/lib/vellum_ai/types/deployment_read.rb +2 -0
- data/lib/vellum_ai/types/document_index_read.rb +2 -0
- data/lib/vellum_ai/types/entity_status.rb +2 -0
- data/lib/vellum_ai/types/integration_name.rb +12 -0
- data/lib/vellum_ai/types/slim_deployment_read.rb +2 -0
- data/lib/vellum_ai/types/slim_workflow_deployment.rb +2 -0
- data/lib/vellum_ai/types/vellum_sdk_error.rb +15 -9
- data/lib/vellum_ai/types/vellum_sdk_error_raw_data.rb +56 -0
- data/lib/vellum_ai/types/workflow_deployment_read.rb +2 -0
- data/lib/vellum_ai/types/workflow_event_error.rb +15 -9
- data/lib/vellum_ai/types/workflow_event_error_raw_data.rb +56 -0
- data/lib/vellum_ai/workflow_deployments/client.rb +10 -4
- data/lib/vellum_ai/workflow_deployments/types/workflow_deployments_list_request_status.rb +1 -0
- metadata +4 -3
- data/lib/vellum_ai/types/error_detail_response.rb +0 -51
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 199fa266a9e879d9c248014a425ec2552b4cedcdc396be52082fddd22a85aa0d
|
|
4
|
+
data.tar.gz: 392572a0ab0cccb4efee59c6f162b1071cd05f75ab67d2a94ecfd1d804c0b0d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f6872f61a97df9ccb5da952c294531b05117e2e5566af72cfba834a52f074cc09fd7ee446fc1c03a36208f6a9a5f7c6f8f836a6dfa496b7edb90ea21e3df586
|
|
7
|
+
data.tar.gz: a1bf23857d3e64533829af9e2cf7a990fb6c6d4a5a4edac4aae46877a0513dbb7e3182d090352f84a3f02cdd07d535f5aaa64f5c0f2773e7375a12d1170ae24c
|
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.14.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.
|
|
110
|
+
headers = { "X-Fern-Language": 'Ruby', "X-Fern-SDK-Name": 'vellum_ai', "X-Fern-SDK-Version": '1.14.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
|
@@ -175,7 +175,6 @@ require_relative "vellum_ai/types/environment_enum"
|
|
|
175
175
|
require_relative "vellum_ai/types/environment_read"
|
|
176
176
|
require_relative "vellum_ai/types/ephemeral_prompt_cache_config"
|
|
177
177
|
require_relative "vellum_ai/types/ephemeral_prompt_cache_config_type_enum"
|
|
178
|
-
require_relative "vellum_ai/types/error_detail_response"
|
|
179
178
|
require_relative "vellum_ai/types/error_vellum_value"
|
|
180
179
|
require_relative "vellum_ai/types/error_vellum_value_request"
|
|
181
180
|
require_relative "vellum_ai/types/event_create_response"
|
|
@@ -627,6 +626,7 @@ require_relative "vellum_ai/types/vellum_error_request"
|
|
|
627
626
|
require_relative "vellum_ai/types/vellum_image"
|
|
628
627
|
require_relative "vellum_ai/types/vellum_image_request"
|
|
629
628
|
require_relative "vellum_ai/types/vellum_node_execution_event"
|
|
629
|
+
require_relative "vellum_ai/types/vellum_sdk_error_raw_data"
|
|
630
630
|
require_relative "vellum_ai/types/vellum_sdk_error"
|
|
631
631
|
require_relative "vellum_ai/types/vellum_sdk_error_code_enum"
|
|
632
632
|
require_relative "vellum_ai/types/workflow_execution_span"
|
|
@@ -652,6 +652,7 @@ require_relative "vellum_ai/types/workflow_display_icon"
|
|
|
652
652
|
require_relative "vellum_ai/types/workflow_event_error"
|
|
653
653
|
require_relative "vellum_ai/types/workflow_initialization_error"
|
|
654
654
|
require_relative "vellum_ai/types/workflow_error"
|
|
655
|
+
require_relative "vellum_ai/types/workflow_event_error_raw_data"
|
|
655
656
|
require_relative "vellum_ai/types/workflow_event_execution_read"
|
|
656
657
|
require_relative "vellum_ai/types/workflow_execution_actual"
|
|
657
658
|
require_relative "vellum_ai/types/workflow_execution_detail"
|
|
@@ -36,6 +36,7 @@ module Vellum
|
|
|
36
36
|
# specified
|
|
37
37
|
# * `ACTIVE` - Active
|
|
38
38
|
# * `ARCHIVED` - Archived
|
|
39
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
39
40
|
# @param request_options [Vellum::RequestOptions]
|
|
40
41
|
# @return [Vellum::PaginatedDocumentIndexReadList]
|
|
41
42
|
# @example
|
|
@@ -74,6 +75,7 @@ end
|
|
|
74
75
|
# @param status [Vellum::EntityStatus] The current status of the document index
|
|
75
76
|
# * `ACTIVE` - Active
|
|
76
77
|
# * `ARCHIVED` - Archived
|
|
78
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
77
79
|
# @param indexing_config [Hash] Request of type Vellum::DocumentIndexIndexingConfigRequest, as a Hash
|
|
78
80
|
# * :vectorizer (Hash)
|
|
79
81
|
# * :chunking (Hash)
|
|
@@ -156,6 +158,7 @@ end
|
|
|
156
158
|
# @param status [Vellum::EntityStatus] The current status of the document index
|
|
157
159
|
# * `ACTIVE` - Active
|
|
158
160
|
# * `ARCHIVED` - Archived
|
|
161
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
159
162
|
# @param request_options [Vellum::RequestOptions]
|
|
160
163
|
# @return [Vellum::DocumentIndexRead]
|
|
161
164
|
# @example
|
|
@@ -229,6 +232,7 @@ end
|
|
|
229
232
|
# @param status [Vellum::EntityStatus] The current status of the document index
|
|
230
233
|
# * `ACTIVE` - Active
|
|
231
234
|
# * `ARCHIVED` - Archived
|
|
235
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
232
236
|
# @param request_options [Vellum::RequestOptions]
|
|
233
237
|
# @return [Vellum::DocumentIndexRead]
|
|
234
238
|
# @example
|
|
@@ -357,6 +361,7 @@ end
|
|
|
357
361
|
# specified
|
|
358
362
|
# * `ACTIVE` - Active
|
|
359
363
|
# * `ARCHIVED` - Archived
|
|
364
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
360
365
|
# @param request_options [Vellum::RequestOptions]
|
|
361
366
|
# @return [Vellum::PaginatedDocumentIndexReadList]
|
|
362
367
|
# @example
|
|
@@ -397,6 +402,7 @@ end
|
|
|
397
402
|
# @param status [Vellum::EntityStatus] The current status of the document index
|
|
398
403
|
# * `ACTIVE` - Active
|
|
399
404
|
# * `ARCHIVED` - Archived
|
|
405
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
400
406
|
# @param indexing_config [Hash] Request of type Vellum::DocumentIndexIndexingConfigRequest, as a Hash
|
|
401
407
|
# * :vectorizer (Hash)
|
|
402
408
|
# * :chunking (Hash)
|
|
@@ -483,6 +489,7 @@ end
|
|
|
483
489
|
# @param status [Vellum::EntityStatus] The current status of the document index
|
|
484
490
|
# * `ACTIVE` - Active
|
|
485
491
|
# * `ARCHIVED` - Archived
|
|
492
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
486
493
|
# @param request_options [Vellum::RequestOptions]
|
|
487
494
|
# @return [Vellum::DocumentIndexRead]
|
|
488
495
|
# @example
|
|
@@ -560,6 +567,7 @@ end
|
|
|
560
567
|
# @param status [Vellum::EntityStatus] The current status of the document index
|
|
561
568
|
# * `ACTIVE` - Active
|
|
562
569
|
# * `ARCHIVED` - Archived
|
|
570
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
563
571
|
# @param request_options [Vellum::RequestOptions]
|
|
564
572
|
# @return [Vellum::DocumentIndexRead]
|
|
565
573
|
# @example
|
|
@@ -23,6 +23,7 @@ module Vellum
|
|
|
23
23
|
# status specified.
|
|
24
24
|
# * `ACTIVE` - Active
|
|
25
25
|
# * `ARCHIVED` - Archived
|
|
26
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
26
27
|
# @param limit [Integer] Number of results to return per page.
|
|
27
28
|
# @param offset [Integer] The initial index from which to return the results.
|
|
28
29
|
# @param ordering [String] Which field to use when ordering the results.
|
|
@@ -125,6 +126,7 @@ end
|
|
|
125
126
|
# status specified.
|
|
126
127
|
# * `ACTIVE` - Active
|
|
127
128
|
# * `ARCHIVED` - Archived
|
|
129
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
128
130
|
# @param limit [Integer] Number of results to return per page.
|
|
129
131
|
# @param offset [Integer] The initial index from which to return the results.
|
|
130
132
|
# @param ordering [String] Which field to use when ordering the results.
|
|
@@ -65,6 +65,8 @@ end
|
|
|
65
65
|
# @param integration_name [String] The integration name
|
|
66
66
|
# @param integration_provider [String] The integration provider name
|
|
67
67
|
# @param tool_name [String] The tool's unique name, as specified by the integration provider
|
|
68
|
+
# @param expand [String] The response fields to expand for more information. Supported values: 'logs' -
|
|
69
|
+
# includes execution logs from Composio
|
|
68
70
|
# @param request [Hash] Request of type Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_REQUEST, as a Hash
|
|
69
71
|
# * :provider (String)
|
|
70
72
|
# * :arguments (Hash{String => Object})
|
|
@@ -85,7 +87,7 @@ end
|
|
|
85
87
|
# tool_name: "tool_name",
|
|
86
88
|
# request: { provider: "COMPOSIO", arguments: { "arguments": {"key":"value"} } }
|
|
87
89
|
# )
|
|
88
|
-
def execute_integration_tool(integration_name:, integration_provider:, tool_name:, request:, request_options: nil)
|
|
90
|
+
def execute_integration_tool(integration_name:, integration_provider:, tool_name:, expand: nil, request:, request_options: nil)
|
|
89
91
|
response = @request_client.conn.post do | req |
|
|
90
92
|
unless request_options&.timeout_in_seconds.nil?
|
|
91
93
|
req.options.timeout = request_options.timeout_in_seconds
|
|
@@ -99,9 +101,7 @@ end
|
|
|
99
101
|
req.headers["X-API-Version"] = "2025-07-30"
|
|
100
102
|
end
|
|
101
103
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
|
102
|
-
|
|
103
|
-
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
104
|
-
end
|
|
104
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "expand": expand }.compact
|
|
105
105
|
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
106
106
|
req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/integrations/v1/providers/#{integration_name}/integrations/#{integration_provider}/tools/#{tool_name}/execute"
|
|
107
107
|
end
|
|
@@ -238,6 +238,8 @@ end
|
|
|
238
238
|
# @param integration_name [String] The integration name
|
|
239
239
|
# @param integration_provider [String] The integration provider name
|
|
240
240
|
# @param tool_name [String] The tool's unique name, as specified by the integration provider
|
|
241
|
+
# @param expand [String] The response fields to expand for more information. Supported values: 'logs' -
|
|
242
|
+
# includes execution logs from Composio
|
|
241
243
|
# @param request [Hash] Request of type Vellum::COMPONENTS_SCHEMAS_COMPOSIO_EXECUTE_TOOL_REQUEST, as a Hash
|
|
242
244
|
# * :provider (String)
|
|
243
245
|
# * :arguments (Hash{String => Object})
|
|
@@ -258,7 +260,7 @@ end
|
|
|
258
260
|
# tool_name: "tool_name",
|
|
259
261
|
# request: { provider: "COMPOSIO", arguments: { "arguments": {"key":"value"} } }
|
|
260
262
|
# )
|
|
261
|
-
def execute_integration_tool(integration_name:, integration_provider:, tool_name:, request:, request_options: nil)
|
|
263
|
+
def execute_integration_tool(integration_name:, integration_provider:, tool_name:, expand: nil, request:, request_options: nil)
|
|
262
264
|
Async do
|
|
263
265
|
response = @request_client.conn.post do | req |
|
|
264
266
|
unless request_options&.timeout_in_seconds.nil?
|
|
@@ -273,9 +275,7 @@ end
|
|
|
273
275
|
req.headers["X-API-Version"] = "2025-07-30"
|
|
274
276
|
end
|
|
275
277
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
|
276
|
-
|
|
277
|
-
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
278
|
-
end
|
|
278
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "expand": expand }.compact
|
|
279
279
|
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
280
280
|
req.url "#{@request_client.get_url(environment: Default, request_options: request_options)}/integrations/v1/providers/#{integration_name}/integrations/#{integration_provider}/tools/#{tool_name}/execute"
|
|
281
281
|
end
|
|
@@ -14,6 +14,8 @@ module Vellum
|
|
|
14
14
|
attr_reader :content
|
|
15
15
|
# @return [String] An optional identifier representing who or what generated this message.
|
|
16
16
|
attr_reader :source
|
|
17
|
+
# @return [Hash{String => Object}]
|
|
18
|
+
attr_reader :metadata
|
|
17
19
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
18
20
|
attr_reader :additional_properties
|
|
19
21
|
# @return [Object]
|
|
@@ -26,15 +28,17 @@ module Vellum
|
|
|
26
28
|
# @param role [Vellum::ChatMessageRole]
|
|
27
29
|
# @param content [Vellum::ChatMessageContent]
|
|
28
30
|
# @param source [String] An optional identifier representing who or what generated this message.
|
|
31
|
+
# @param metadata [Hash{String => Object}]
|
|
29
32
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
30
33
|
# @return [Vellum::ChatMessage]
|
|
31
|
-
def initialize(text: OMIT, role:, content: OMIT, source: OMIT, additional_properties: nil)
|
|
34
|
+
def initialize(text: OMIT, role:, content: OMIT, source: OMIT, metadata: OMIT, additional_properties: nil)
|
|
32
35
|
@text = text if text != OMIT
|
|
33
36
|
@role = role
|
|
34
37
|
@content = content if content != OMIT
|
|
35
38
|
@source = source if source != OMIT
|
|
39
|
+
@metadata = metadata if metadata != OMIT
|
|
36
40
|
@additional_properties = additional_properties
|
|
37
|
-
@_field_set = { "text": text, "role": role, "content": content, "source": source }.reject do | _k, v |
|
|
41
|
+
@_field_set = { "text": text, "role": role, "content": content, "source": source, "metadata": metadata }.reject do | _k, v |
|
|
38
42
|
v == OMIT
|
|
39
43
|
end
|
|
40
44
|
end
|
|
@@ -54,11 +58,13 @@ end
|
|
|
54
58
|
content = nil
|
|
55
59
|
end
|
|
56
60
|
source = parsed_json["source"]
|
|
61
|
+
metadata = parsed_json["metadata"]
|
|
57
62
|
new(
|
|
58
63
|
text: text,
|
|
59
64
|
role: role,
|
|
60
65
|
content: content,
|
|
61
66
|
source: source,
|
|
67
|
+
metadata: metadata,
|
|
62
68
|
additional_properties: struct
|
|
63
69
|
)
|
|
64
70
|
end
|
|
@@ -79,6 +85,7 @@ end
|
|
|
79
85
|
obj.role.is_a?(Vellum::ChatMessageRole) != false || raise("Passed value for field obj.role is not the expected type, validation failed.")
|
|
80
86
|
obj.content.nil? || Vellum::ChatMessageContent.validate_raw(obj: obj.content)
|
|
81
87
|
obj.source&.is_a?(String) != false || raise("Passed value for field obj.source is not the expected type, validation failed.")
|
|
88
|
+
obj.metadata&.is_a?(Hash) != false || raise("Passed value for field obj.metadata is not the expected type, validation failed.")
|
|
82
89
|
end
|
|
83
90
|
end
|
|
84
91
|
end
|
|
@@ -14,6 +14,8 @@ module Vellum
|
|
|
14
14
|
attr_reader :content
|
|
15
15
|
# @return [String] An optional identifier representing who or what generated this message.
|
|
16
16
|
attr_reader :source
|
|
17
|
+
# @return [Hash{String => Object}]
|
|
18
|
+
attr_reader :metadata
|
|
17
19
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
18
20
|
attr_reader :additional_properties
|
|
19
21
|
# @return [Object]
|
|
@@ -26,15 +28,17 @@ module Vellum
|
|
|
26
28
|
# @param role [Vellum::ChatMessageRole]
|
|
27
29
|
# @param content [Vellum::ChatMessageContentRequest]
|
|
28
30
|
# @param source [String] An optional identifier representing who or what generated this message.
|
|
31
|
+
# @param metadata [Hash{String => Object}]
|
|
29
32
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
30
33
|
# @return [Vellum::ChatMessageRequest]
|
|
31
|
-
def initialize(text: OMIT, role:, content: OMIT, source: OMIT, additional_properties: nil)
|
|
34
|
+
def initialize(text: OMIT, role:, content: OMIT, source: OMIT, metadata: OMIT, additional_properties: nil)
|
|
32
35
|
@text = text if text != OMIT
|
|
33
36
|
@role = role
|
|
34
37
|
@content = content if content != OMIT
|
|
35
38
|
@source = source if source != OMIT
|
|
39
|
+
@metadata = metadata if metadata != OMIT
|
|
36
40
|
@additional_properties = additional_properties
|
|
37
|
-
@_field_set = { "text": text, "role": role, "content": content, "source": source }.reject do | _k, v |
|
|
41
|
+
@_field_set = { "text": text, "role": role, "content": content, "source": source, "metadata": metadata }.reject do | _k, v |
|
|
38
42
|
v == OMIT
|
|
39
43
|
end
|
|
40
44
|
end
|
|
@@ -54,11 +58,13 @@ end
|
|
|
54
58
|
content = nil
|
|
55
59
|
end
|
|
56
60
|
source = parsed_json["source"]
|
|
61
|
+
metadata = parsed_json["metadata"]
|
|
57
62
|
new(
|
|
58
63
|
text: text,
|
|
59
64
|
role: role,
|
|
60
65
|
content: content,
|
|
61
66
|
source: source,
|
|
67
|
+
metadata: metadata,
|
|
62
68
|
additional_properties: struct
|
|
63
69
|
)
|
|
64
70
|
end
|
|
@@ -79,6 +85,7 @@ end
|
|
|
79
85
|
obj.role.is_a?(Vellum::ChatMessageRole) != false || raise("Passed value for field obj.role is not the expected type, validation failed.")
|
|
80
86
|
obj.content.nil? || Vellum::ChatMessageContentRequest.validate_raw(obj: obj.content)
|
|
81
87
|
obj.source&.is_a?(String) != false || raise("Passed value for field obj.source is not the expected type, validation failed.")
|
|
88
|
+
obj.metadata&.is_a?(Hash) != false || raise("Passed value for field obj.metadata is not the expected type, validation failed.")
|
|
82
89
|
end
|
|
83
90
|
end
|
|
84
91
|
end
|
|
@@ -21,6 +21,7 @@ module Vellum
|
|
|
21
21
|
# @return [Vellum::EntityStatus] The current status of the deployment
|
|
22
22
|
# * `ACTIVE` - Active
|
|
23
23
|
# * `ARCHIVED` - Archived
|
|
24
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
24
25
|
attr_reader :status
|
|
25
26
|
# @return [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'.
|
|
26
27
|
attr_reader :environment
|
|
@@ -49,6 +50,7 @@ module Vellum
|
|
|
49
50
|
# @param status [Vellum::EntityStatus] The current status of the deployment
|
|
50
51
|
# * `ACTIVE` - Active
|
|
51
52
|
# * `ARCHIVED` - Archived
|
|
53
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
52
54
|
# @param environment [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'.
|
|
53
55
|
# @param last_deployed_on [DateTime]
|
|
54
56
|
# @param input_variables [Array<Vellum::VellumVariable>]
|
|
@@ -18,6 +18,7 @@ module Vellum
|
|
|
18
18
|
# @return [Vellum::EntityStatus] The current status of the document index
|
|
19
19
|
# * `ACTIVE` - Active
|
|
20
20
|
# * `ARCHIVED` - Archived
|
|
21
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
21
22
|
attr_reader :status
|
|
22
23
|
# @return [Vellum::DocumentIndexIndexingConfig]
|
|
23
24
|
attr_reader :indexing_config
|
|
@@ -36,6 +37,7 @@ module Vellum
|
|
|
36
37
|
# @param status [Vellum::EntityStatus] The current status of the document index
|
|
37
38
|
# * `ACTIVE` - Active
|
|
38
39
|
# * `ARCHIVED` - Archived
|
|
40
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
39
41
|
# @param indexing_config [Vellum::DocumentIndexIndexingConfig]
|
|
40
42
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
41
43
|
# @return [Vellum::DocumentIndexRead]
|
|
@@ -25,6 +25,7 @@ module Vellum
|
|
|
25
25
|
# * `GITHUB` - Github
|
|
26
26
|
# * `GOOGLE_SHEETS` - Google Sheets
|
|
27
27
|
# * `GOOGLE_CALENDAR` - Google Calendar
|
|
28
|
+
# * `GOOGLE_CLASSROOM` - Google Classroom
|
|
28
29
|
# * `GOOGLE_DRIVE` - Google Drive
|
|
29
30
|
# * `GMAIL` - Gmail
|
|
30
31
|
# * `GOOGLE_ADS` - Google Ads
|
|
@@ -59,6 +60,7 @@ module Vellum
|
|
|
59
60
|
# * `FIGMA` - Figma
|
|
60
61
|
# * `FIREFLIES` - Fireflies
|
|
61
62
|
# * `GOOGLE_MAPS` - Google Maps
|
|
63
|
+
# * `GOOGLEMEET` - Google Meet
|
|
62
64
|
# * `HEYGEN` - HeyGen
|
|
63
65
|
# * `JIRA` - Jira
|
|
64
66
|
# * `JUNGLESCOUT` - Jungle Scout
|
|
@@ -69,6 +71,7 @@ module Vellum
|
|
|
69
71
|
# * `PERPLEXITY` - Perplexity
|
|
70
72
|
# * `POSTHOG` - PostHog
|
|
71
73
|
# * `PRODUCTBOARD` - Productboard
|
|
74
|
+
# * `QUICKBOOKS` - QuickBooks
|
|
72
75
|
# * `REDDIT` - Reddit
|
|
73
76
|
# * `SALESFORCE` - Salesforce
|
|
74
77
|
# * `SEMRUSH` - Semrush
|
|
@@ -84,6 +87,7 @@ module Vellum
|
|
|
84
87
|
# * `SUPABASE` - Supabase
|
|
85
88
|
# * `TAVILY` - Tavily
|
|
86
89
|
# * `TELEGRAM` - Telegram
|
|
90
|
+
# * `TIKTOK` - TikTok
|
|
87
91
|
# * `TODOIST` - Todoist
|
|
88
92
|
# * `WEBFLOW` - Webflow
|
|
89
93
|
# * `YOUSEARCH` - You Search
|
|
@@ -97,11 +101,13 @@ module Vellum
|
|
|
97
101
|
# * `DISCORD` - Discord
|
|
98
102
|
# * `DOCUSIGN` - DocuSign
|
|
99
103
|
# * `TRELLO` - Trello
|
|
104
|
+
# * `TWITTER` - Twitter
|
|
100
105
|
# * `HEYREACH` - HeyReach
|
|
101
106
|
# * `ACTIVE_CAMPAIGN` - Active Campaign
|
|
102
107
|
# * `CUSTOMER_IO` - Customer.io
|
|
103
108
|
# * `SEGMENT` - Segment
|
|
104
109
|
# * `WHATSAPP` - WhatsApp
|
|
110
|
+
# * `YOUTUBE` - YouTube
|
|
105
111
|
class IntegrationName
|
|
106
112
|
|
|
107
113
|
SLACK = "SLACK"
|
|
@@ -128,6 +134,7 @@ module Vellum
|
|
|
128
134
|
GITHUB = "GITHUB"
|
|
129
135
|
GOOGLE_SHEETS = "GOOGLE_SHEETS"
|
|
130
136
|
GOOGLE_CALENDAR = "GOOGLE_CALENDAR"
|
|
137
|
+
GOOGLE_CLASSROOM = "GOOGLE_CLASSROOM"
|
|
131
138
|
GOOGLE_DRIVE = "GOOGLE_DRIVE"
|
|
132
139
|
GMAIL = "GMAIL"
|
|
133
140
|
GOOGLE_ADS = "GOOGLE_ADS"
|
|
@@ -162,6 +169,7 @@ module Vellum
|
|
|
162
169
|
FIGMA = "FIGMA"
|
|
163
170
|
FIREFLIES = "FIREFLIES"
|
|
164
171
|
GOOGLE_MAPS = "GOOGLE_MAPS"
|
|
172
|
+
GOOGLEMEET = "GOOGLEMEET"
|
|
165
173
|
HEYGEN = "HEYGEN"
|
|
166
174
|
JIRA = "JIRA"
|
|
167
175
|
JUNGLESCOUT = "JUNGLESCOUT"
|
|
@@ -172,6 +180,7 @@ module Vellum
|
|
|
172
180
|
PERPLEXITY = "PERPLEXITY"
|
|
173
181
|
POSTHOG = "POSTHOG"
|
|
174
182
|
PRODUCTBOARD = "PRODUCTBOARD"
|
|
183
|
+
QUICKBOOKS = "QUICKBOOKS"
|
|
175
184
|
REDDIT = "REDDIT"
|
|
176
185
|
SALESFORCE = "SALESFORCE"
|
|
177
186
|
SEMRUSH = "SEMRUSH"
|
|
@@ -187,6 +196,7 @@ module Vellum
|
|
|
187
196
|
SUPABASE = "SUPABASE"
|
|
188
197
|
TAVILY = "TAVILY"
|
|
189
198
|
TELEGRAM = "TELEGRAM"
|
|
199
|
+
TIKTOK = "TIKTOK"
|
|
190
200
|
TODOIST = "TODOIST"
|
|
191
201
|
WEBFLOW = "WEBFLOW"
|
|
192
202
|
YOUSEARCH = "YOUSEARCH"
|
|
@@ -200,11 +210,13 @@ module Vellum
|
|
|
200
210
|
DISCORD = "DISCORD"
|
|
201
211
|
DOCUSIGN = "DOCUSIGN"
|
|
202
212
|
TRELLO = "TRELLO"
|
|
213
|
+
TWITTER = "TWITTER"
|
|
203
214
|
HEYREACH = "HEYREACH"
|
|
204
215
|
ACTIVE_CAMPAIGN = "ACTIVE_CAMPAIGN"
|
|
205
216
|
CUSTOMER_IO = "CUSTOMER_IO"
|
|
206
217
|
SEGMENT = "SEGMENT"
|
|
207
218
|
WHATSAPP = "WHATSAPP"
|
|
219
|
+
YOUTUBE = "YOUTUBE"
|
|
208
220
|
|
|
209
221
|
end
|
|
210
222
|
end
|
|
@@ -21,6 +21,7 @@ module Vellum
|
|
|
21
21
|
# @return [Vellum::EntityStatus] The current status of the deployment
|
|
22
22
|
# * `ACTIVE` - Active
|
|
23
23
|
# * `ARCHIVED` - Archived
|
|
24
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
24
25
|
attr_reader :status
|
|
25
26
|
# @return [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'.
|
|
26
27
|
attr_reader :environment
|
|
@@ -45,6 +46,7 @@ module Vellum
|
|
|
45
46
|
# @param status [Vellum::EntityStatus] The current status of the deployment
|
|
46
47
|
# * `ACTIVE` - Active
|
|
47
48
|
# * `ARCHIVED` - Archived
|
|
49
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
48
50
|
# @param environment [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'.
|
|
49
51
|
# @param last_deployed_on [DateTime]
|
|
50
52
|
# @param input_variables [Array<Vellum::VellumVariable>]
|
|
@@ -19,6 +19,7 @@ module Vellum
|
|
|
19
19
|
# @return [Vellum::EntityStatus] The current status of the workflow deployment
|
|
20
20
|
# * `ACTIVE` - Active
|
|
21
21
|
# * `ARCHIVED` - Archived
|
|
22
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
22
23
|
attr_reader :status
|
|
23
24
|
# @return [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'.
|
|
24
25
|
attr_reader :environment
|
|
@@ -47,6 +48,7 @@ module Vellum
|
|
|
47
48
|
# @param status [Vellum::EntityStatus] The current status of the workflow deployment
|
|
48
49
|
# * `ACTIVE` - Active
|
|
49
50
|
# * `ARCHIVED` - Archived
|
|
51
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
50
52
|
# @param environment [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'.
|
|
51
53
|
# @param created [DateTime]
|
|
52
54
|
# @param last_deployed_on [DateTime]
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
+
require_relative "vellum_sdk_error_raw_data"
|
|
2
3
|
require_relative "vellum_sdk_error_code_enum"
|
|
3
4
|
require "ostruct"
|
|
4
5
|
require "json"
|
|
@@ -7,10 +8,10 @@ module Vellum
|
|
|
7
8
|
class VellumSdkError
|
|
8
9
|
# @return [String]
|
|
9
10
|
attr_reader :message
|
|
11
|
+
# @return [Vellum::VellumSdkErrorRawData]
|
|
12
|
+
attr_reader :raw_data
|
|
10
13
|
# @return [Vellum::VellumSdkErrorCodeEnum]
|
|
11
14
|
attr_reader :code
|
|
12
|
-
# @return [Hash{String => Object}]
|
|
13
|
-
attr_reader :raw_data
|
|
14
15
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
15
16
|
attr_reader :additional_properties
|
|
16
17
|
# @return [Object]
|
|
@@ -20,16 +21,16 @@ module Vellum
|
|
|
20
21
|
OMIT = Object.new
|
|
21
22
|
|
|
22
23
|
# @param message [String]
|
|
24
|
+
# @param raw_data [Vellum::VellumSdkErrorRawData]
|
|
23
25
|
# @param code [Vellum::VellumSdkErrorCodeEnum]
|
|
24
|
-
# @param raw_data [Hash{String => Object}]
|
|
25
26
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
26
27
|
# @return [Vellum::VellumSdkError]
|
|
27
|
-
def initialize(message:,
|
|
28
|
+
def initialize(message:, raw_data: OMIT, code:, additional_properties: nil)
|
|
28
29
|
@message = message
|
|
29
|
-
@code = code
|
|
30
30
|
@raw_data = raw_data if raw_data != OMIT
|
|
31
|
+
@code = code
|
|
31
32
|
@additional_properties = additional_properties
|
|
32
|
-
@_field_set = { "message": message, "
|
|
33
|
+
@_field_set = { "message": message, "raw_data": raw_data, "code": code }.reject do | _k, v |
|
|
33
34
|
v == OMIT
|
|
34
35
|
end
|
|
35
36
|
end
|
|
@@ -41,12 +42,17 @@ end
|
|
|
41
42
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
42
43
|
parsed_json = JSON.parse(json_object)
|
|
43
44
|
message = parsed_json["message"]
|
|
45
|
+
unless parsed_json["raw_data"].nil?
|
|
46
|
+
raw_data = parsed_json["raw_data"].to_json
|
|
47
|
+
raw_data = Vellum::VellumSdkErrorRawData.from_json(json_object: raw_data)
|
|
48
|
+
else
|
|
49
|
+
raw_data = nil
|
|
50
|
+
end
|
|
44
51
|
code = parsed_json["code"]
|
|
45
|
-
raw_data = parsed_json["raw_data"]
|
|
46
52
|
new(
|
|
47
53
|
message: message,
|
|
48
|
-
code: code,
|
|
49
54
|
raw_data: raw_data,
|
|
55
|
+
code: code,
|
|
50
56
|
additional_properties: struct
|
|
51
57
|
)
|
|
52
58
|
end
|
|
@@ -64,8 +70,8 @@ end
|
|
|
64
70
|
# @return [Void]
|
|
65
71
|
def self.validate_raw(obj:)
|
|
66
72
|
obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
|
73
|
+
obj.raw_data.nil? || Vellum::VellumSdkErrorRawData.validate_raw(obj: obj.raw_data)
|
|
67
74
|
obj.code.is_a?(Vellum::VellumSdkErrorCodeEnum) != false || raise("Passed value for field obj.code is not the expected type, validation failed.")
|
|
68
|
-
obj.raw_data&.is_a?(Hash) != false || raise("Passed value for field obj.raw_data is not the expected type, validation failed.")
|
|
69
75
|
end
|
|
70
76
|
end
|
|
71
77
|
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
require "json"
|
|
3
|
+
|
|
4
|
+
module Vellum
|
|
5
|
+
class VellumSdkErrorRawData
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Deserialize a JSON object to an instance of VellumSdkErrorRawData
|
|
9
|
+
#
|
|
10
|
+
# @param json_object [String]
|
|
11
|
+
# @return [Vellum::VellumSdkErrorRawData]
|
|
12
|
+
def self.from_json(json_object:)
|
|
13
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
14
|
+
begin
|
|
15
|
+
struct.is_a?(Hash) != false || raise("Passed value for field struct is not the expected type, validation failed.")
|
|
16
|
+
unless struct.nil?
|
|
17
|
+
return struct
|
|
18
|
+
else
|
|
19
|
+
return nil
|
|
20
|
+
end
|
|
21
|
+
rescue StandardError
|
|
22
|
+
# noop
|
|
23
|
+
end
|
|
24
|
+
begin
|
|
25
|
+
struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.")
|
|
26
|
+
unless struct.nil?
|
|
27
|
+
return struct
|
|
28
|
+
else
|
|
29
|
+
return nil
|
|
30
|
+
end
|
|
31
|
+
rescue StandardError
|
|
32
|
+
# noop
|
|
33
|
+
end
|
|
34
|
+
return struct
|
|
35
|
+
end
|
|
36
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
37
|
+
# hash and check each fields type against the current object's property
|
|
38
|
+
# definitions.
|
|
39
|
+
#
|
|
40
|
+
# @param obj [Object]
|
|
41
|
+
# @return [Void]
|
|
42
|
+
def self.validate_raw(obj:)
|
|
43
|
+
begin
|
|
44
|
+
return obj.is_a?(Hash) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
|
45
|
+
rescue StandardError
|
|
46
|
+
# noop
|
|
47
|
+
end
|
|
48
|
+
begin
|
|
49
|
+
return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
|
50
|
+
rescue StandardError
|
|
51
|
+
# noop
|
|
52
|
+
end
|
|
53
|
+
raise("Passed value matched no type within the union, validation failed.")
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -20,6 +20,7 @@ module Vellum
|
|
|
20
20
|
# @return [Vellum::EntityStatus] The current status of the workflow deployment
|
|
21
21
|
# * `ACTIVE` - Active
|
|
22
22
|
# * `ARCHIVED` - Archived
|
|
23
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
23
24
|
attr_reader :status
|
|
24
25
|
# @return [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'.
|
|
25
26
|
attr_reader :environment
|
|
@@ -54,6 +55,7 @@ module Vellum
|
|
|
54
55
|
# @param status [Vellum::EntityStatus] The current status of the workflow deployment
|
|
55
56
|
# * `ACTIVE` - Active
|
|
56
57
|
# * `ARCHIVED` - Archived
|
|
58
|
+
# * `PENDING_DELETION` - Pending Deletion
|
|
57
59
|
# @param environment [Vellum::EnvironmentEnum] Deprecated. The value returned will always be 'PRODUCTION'.
|
|
58
60
|
# @param created [DateTime]
|
|
59
61
|
# @param last_deployed_on [DateTime]
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
+
require_relative "workflow_event_error_raw_data"
|
|
2
3
|
require_relative "workflow_execution_event_error_code"
|
|
3
4
|
require "ostruct"
|
|
4
5
|
require "json"
|
|
@@ -7,10 +8,10 @@ module Vellum
|
|
|
7
8
|
class WorkflowEventError
|
|
8
9
|
# @return [String]
|
|
9
10
|
attr_reader :message
|
|
11
|
+
# @return [Vellum::WorkflowEventErrorRawData]
|
|
12
|
+
attr_reader :raw_data
|
|
10
13
|
# @return [Vellum::WorkflowExecutionEventErrorCode]
|
|
11
14
|
attr_reader :code
|
|
12
|
-
# @return [Hash{String => Object}]
|
|
13
|
-
attr_reader :raw_data
|
|
14
15
|
# @return [String]
|
|
15
16
|
attr_reader :stacktrace
|
|
16
17
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
@@ -22,18 +23,18 @@ module Vellum
|
|
|
22
23
|
OMIT = Object.new
|
|
23
24
|
|
|
24
25
|
# @param message [String]
|
|
26
|
+
# @param raw_data [Vellum::WorkflowEventErrorRawData]
|
|
25
27
|
# @param code [Vellum::WorkflowExecutionEventErrorCode]
|
|
26
|
-
# @param raw_data [Hash{String => Object}]
|
|
27
28
|
# @param stacktrace [String]
|
|
28
29
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
29
30
|
# @return [Vellum::WorkflowEventError]
|
|
30
|
-
def initialize(message:,
|
|
31
|
+
def initialize(message:, raw_data: OMIT, code:, stacktrace: OMIT, additional_properties: nil)
|
|
31
32
|
@message = message
|
|
32
|
-
@code = code
|
|
33
33
|
@raw_data = raw_data if raw_data != OMIT
|
|
34
|
+
@code = code
|
|
34
35
|
@stacktrace = stacktrace if stacktrace != OMIT
|
|
35
36
|
@additional_properties = additional_properties
|
|
36
|
-
@_field_set = { "message": message, "
|
|
37
|
+
@_field_set = { "message": message, "raw_data": raw_data, "code": code, "stacktrace": stacktrace }.reject do | _k, v |
|
|
37
38
|
v == OMIT
|
|
38
39
|
end
|
|
39
40
|
end
|
|
@@ -45,13 +46,18 @@ end
|
|
|
45
46
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
46
47
|
parsed_json = JSON.parse(json_object)
|
|
47
48
|
message = parsed_json["message"]
|
|
49
|
+
unless parsed_json["raw_data"].nil?
|
|
50
|
+
raw_data = parsed_json["raw_data"].to_json
|
|
51
|
+
raw_data = Vellum::WorkflowEventErrorRawData.from_json(json_object: raw_data)
|
|
52
|
+
else
|
|
53
|
+
raw_data = nil
|
|
54
|
+
end
|
|
48
55
|
code = parsed_json["code"]
|
|
49
|
-
raw_data = parsed_json["raw_data"]
|
|
50
56
|
stacktrace = parsed_json["stacktrace"]
|
|
51
57
|
new(
|
|
52
58
|
message: message,
|
|
53
|
-
code: code,
|
|
54
59
|
raw_data: raw_data,
|
|
60
|
+
code: code,
|
|
55
61
|
stacktrace: stacktrace,
|
|
56
62
|
additional_properties: struct
|
|
57
63
|
)
|
|
@@ -70,8 +76,8 @@ end
|
|
|
70
76
|
# @return [Void]
|
|
71
77
|
def self.validate_raw(obj:)
|
|
72
78
|
obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
|
79
|
+
obj.raw_data.nil? || Vellum::WorkflowEventErrorRawData.validate_raw(obj: obj.raw_data)
|
|
73
80
|
obj.code.is_a?(Vellum::WorkflowExecutionEventErrorCode) != false || raise("Passed value for field obj.code is not the expected type, validation failed.")
|
|
74
|
-
obj.raw_data&.is_a?(Hash) != false || raise("Passed value for field obj.raw_data is not the expected type, validation failed.")
|
|
75
81
|
obj.stacktrace&.is_a?(String) != false || raise("Passed value for field obj.stacktrace is not the expected type, validation failed.")
|
|
76
82
|
end
|
|
77
83
|
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
require "json"
|
|
3
|
+
|
|
4
|
+
module Vellum
|
|
5
|
+
class WorkflowEventErrorRawData
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Deserialize a JSON object to an instance of WorkflowEventErrorRawData
|
|
9
|
+
#
|
|
10
|
+
# @param json_object [String]
|
|
11
|
+
# @return [Vellum::WorkflowEventErrorRawData]
|
|
12
|
+
def self.from_json(json_object:)
|
|
13
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
14
|
+
begin
|
|
15
|
+
struct.is_a?(Hash) != false || raise("Passed value for field struct is not the expected type, validation failed.")
|
|
16
|
+
unless struct.nil?
|
|
17
|
+
return struct
|
|
18
|
+
else
|
|
19
|
+
return nil
|
|
20
|
+
end
|
|
21
|
+
rescue StandardError
|
|
22
|
+
# noop
|
|
23
|
+
end
|
|
24
|
+
begin
|
|
25
|
+
struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.")
|
|
26
|
+
unless struct.nil?
|
|
27
|
+
return struct
|
|
28
|
+
else
|
|
29
|
+
return nil
|
|
30
|
+
end
|
|
31
|
+
rescue StandardError
|
|
32
|
+
# noop
|
|
33
|
+
end
|
|
34
|
+
return struct
|
|
35
|
+
end
|
|
36
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
37
|
+
# hash and check each fields type against the current object's property
|
|
38
|
+
# definitions.
|
|
39
|
+
#
|
|
40
|
+
# @param obj [Object]
|
|
41
|
+
# @return [Void]
|
|
42
|
+
def self.validate_raw(obj:)
|
|
43
|
+
begin
|
|
44
|
+
return obj.is_a?(Hash) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
|
45
|
+
rescue StandardError
|
|
46
|
+
# noop
|
|
47
|
+
end
|
|
48
|
+
begin
|
|
49
|
+
return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
|
50
|
+
rescue StandardError
|
|
51
|
+
# noop
|
|
52
|
+
end
|
|
53
|
+
raise("Passed value matched no type within the union, validation failed.")
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -36,9 +36,12 @@ module Vellum
|
|
|
36
36
|
end
|
|
37
37
|
# Used to list all Workflow Deployments.
|
|
38
38
|
#
|
|
39
|
+
# @param has_story_config [String] has_story_config
|
|
40
|
+
# @param is_public [String] is_public
|
|
39
41
|
# @param limit [Integer] Number of results to return per page.
|
|
40
42
|
# @param offset [Integer] The initial index from which to return the results.
|
|
41
43
|
# @param ordering [String] Which field to use when ordering the results.
|
|
44
|
+
# @param owned_by [String] owned_by
|
|
42
45
|
# @param status [Vellum::WorkflowDeployments::WorkflowDeploymentsListRequestStatus] status
|
|
43
46
|
# @param request_options [Vellum::RequestOptions]
|
|
44
47
|
# @return [Vellum::PaginatedSlimWorkflowDeploymentList]
|
|
@@ -49,7 +52,7 @@ module Vellum
|
|
|
49
52
|
# api_key: "YOUR_API_KEY"
|
|
50
53
|
# )
|
|
51
54
|
# api.workflow_deployments.list
|
|
52
|
-
def list(limit: nil, offset: nil, ordering: nil, status: nil, request_options: nil)
|
|
55
|
+
def list(has_story_config: nil, is_public: nil, limit: nil, offset: nil, ordering: nil, owned_by: nil, status: nil, request_options: nil)
|
|
53
56
|
response = @request_client.conn.get do | req |
|
|
54
57
|
unless request_options&.timeout_in_seconds.nil?
|
|
55
58
|
req.options.timeout = request_options.timeout_in_seconds
|
|
@@ -63,7 +66,7 @@ module Vellum
|
|
|
63
66
|
req.headers["X-API-Version"] = "2025-07-30"
|
|
64
67
|
end
|
|
65
68
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
|
66
|
-
req.params = { **(request_options&.additional_query_parameters || {}), "limit": limit, "offset": offset, "ordering": ordering, "status": status }.compact
|
|
69
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "has_story_config": has_story_config, "is_public": is_public, "limit": limit, "offset": offset, "ordering": ordering, "owned_by": owned_by, "status": status }.compact
|
|
67
70
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
68
71
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
69
72
|
end
|
|
@@ -425,9 +428,12 @@ end
|
|
|
425
428
|
end
|
|
426
429
|
# Used to list all Workflow Deployments.
|
|
427
430
|
#
|
|
431
|
+
# @param has_story_config [String] has_story_config
|
|
432
|
+
# @param is_public [String] is_public
|
|
428
433
|
# @param limit [Integer] Number of results to return per page.
|
|
429
434
|
# @param offset [Integer] The initial index from which to return the results.
|
|
430
435
|
# @param ordering [String] Which field to use when ordering the results.
|
|
436
|
+
# @param owned_by [String] owned_by
|
|
431
437
|
# @param status [Vellum::WorkflowDeployments::WorkflowDeploymentsListRequestStatus] status
|
|
432
438
|
# @param request_options [Vellum::RequestOptions]
|
|
433
439
|
# @return [Vellum::PaginatedSlimWorkflowDeploymentList]
|
|
@@ -438,7 +444,7 @@ end
|
|
|
438
444
|
# api_key: "YOUR_API_KEY"
|
|
439
445
|
# )
|
|
440
446
|
# api.workflow_deployments.list
|
|
441
|
-
def list(limit: nil, offset: nil, ordering: nil, status: nil, request_options: nil)
|
|
447
|
+
def list(has_story_config: nil, is_public: nil, limit: nil, offset: nil, ordering: nil, owned_by: nil, status: nil, request_options: nil)
|
|
442
448
|
Async do
|
|
443
449
|
response = @request_client.conn.get do | req |
|
|
444
450
|
unless request_options&.timeout_in_seconds.nil?
|
|
@@ -453,7 +459,7 @@ end
|
|
|
453
459
|
req.headers["X-API-Version"] = "2025-07-30"
|
|
454
460
|
end
|
|
455
461
|
req.headers = { **(req.headers || {}), **@request_client.get_headers, **(request_options&.additional_headers || {}) }.compact
|
|
456
|
-
req.params = { **(request_options&.additional_query_parameters || {}), "limit": limit, "offset": offset, "ordering": ordering, "status": status }.compact
|
|
462
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "has_story_config": has_story_config, "is_public": is_public, "limit": limit, "offset": offset, "ordering": ordering, "owned_by": owned_by, "status": status }.compact
|
|
457
463
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
458
464
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
459
465
|
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.14.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vellum
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -282,7 +282,6 @@ files:
|
|
|
282
282
|
- lib/vellum_ai/types/environment_read.rb
|
|
283
283
|
- lib/vellum_ai/types/ephemeral_prompt_cache_config.rb
|
|
284
284
|
- lib/vellum_ai/types/ephemeral_prompt_cache_config_type_enum.rb
|
|
285
|
-
- lib/vellum_ai/types/error_detail_response.rb
|
|
286
285
|
- lib/vellum_ai/types/error_input.rb
|
|
287
286
|
- lib/vellum_ai/types/error_vellum_value.rb
|
|
288
287
|
- lib/vellum_ai/types/error_vellum_value_request.rb
|
|
@@ -758,6 +757,7 @@ files:
|
|
|
758
757
|
- lib/vellum_ai/types/vellum_node_execution_event.rb
|
|
759
758
|
- lib/vellum_ai/types/vellum_sdk_error.rb
|
|
760
759
|
- lib/vellum_ai/types/vellum_sdk_error_code_enum.rb
|
|
760
|
+
- lib/vellum_ai/types/vellum_sdk_error_raw_data.rb
|
|
761
761
|
- lib/vellum_ai/types/vellum_secret.rb
|
|
762
762
|
- lib/vellum_ai/types/vellum_span.rb
|
|
763
763
|
- lib/vellum_ai/types/vellum_value.rb
|
|
@@ -790,6 +790,7 @@ files:
|
|
|
790
790
|
- lib/vellum_ai/types/workflow_error.rb
|
|
791
791
|
- lib/vellum_ai/types/workflow_event.rb
|
|
792
792
|
- lib/vellum_ai/types/workflow_event_error.rb
|
|
793
|
+
- lib/vellum_ai/types/workflow_event_error_raw_data.rb
|
|
793
794
|
- lib/vellum_ai/types/workflow_event_execution_read.rb
|
|
794
795
|
- lib/vellum_ai/types/workflow_execution_actual.rb
|
|
795
796
|
- lib/vellum_ai/types/workflow_execution_actual_chat_history_request.rb
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require "ostruct"
|
|
3
|
-
require "json"
|
|
4
|
-
|
|
5
|
-
module Vellum
|
|
6
|
-
class ErrorDetailResponse
|
|
7
|
-
# @return [String] Message informing the user of the error.
|
|
8
|
-
attr_reader :detail
|
|
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 detail [String] Message informing the user of the error.
|
|
18
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
19
|
-
# @return [Vellum::ErrorDetailResponse]
|
|
20
|
-
def initialize(detail:, additional_properties: nil)
|
|
21
|
-
@detail = detail
|
|
22
|
-
@additional_properties = additional_properties
|
|
23
|
-
@_field_set = { "detail": detail }
|
|
24
|
-
end
|
|
25
|
-
# Deserialize a JSON object to an instance of ErrorDetailResponse
|
|
26
|
-
#
|
|
27
|
-
# @param json_object [String]
|
|
28
|
-
# @return [Vellum::ErrorDetailResponse]
|
|
29
|
-
def self.from_json(json_object:)
|
|
30
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
31
|
-
parsed_json = JSON.parse(json_object)
|
|
32
|
-
detail = parsed_json["detail"]
|
|
33
|
-
new(detail: detail, additional_properties: struct)
|
|
34
|
-
end
|
|
35
|
-
# Serialize an instance of ErrorDetailResponse to a JSON object
|
|
36
|
-
#
|
|
37
|
-
# @return [String]
|
|
38
|
-
def to_json
|
|
39
|
-
@_field_set&.to_json
|
|
40
|
-
end
|
|
41
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
42
|
-
# hash and check each fields type against the current object's property
|
|
43
|
-
# definitions.
|
|
44
|
-
#
|
|
45
|
-
# @param obj [Object]
|
|
46
|
-
# @return [Void]
|
|
47
|
-
def self.validate_raw(obj:)
|
|
48
|
-
obj.detail.is_a?(String) != false || raise("Passed value for field obj.detail is not the expected type, validation failed.")
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|