vellum-ai 1.1.2__py3-none-any.whl → 1.1.4__py3-none-any.whl
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.
- vellum/__init__.py +18 -0
- vellum/client/README.md +77 -0
- vellum/client/__init__.py +149 -600
- vellum/client/core/__init__.py +2 -0
- vellum/client/core/api_error.py +13 -5
- vellum/client/core/client_wrapper.py +16 -4
- vellum/client/core/force_multipart.py +16 -0
- vellum/client/core/http_client.py +70 -24
- vellum/client/core/http_response.py +19 -11
- vellum/client/core/pydantic_utilities.py +71 -114
- vellum/client/core/serialization.py +6 -1
- vellum/client/errors/__init__.py +2 -0
- vellum/client/errors/bad_request_error.py +4 -3
- vellum/client/errors/forbidden_error.py +4 -3
- vellum/client/errors/internal_server_error.py +4 -3
- vellum/client/errors/not_found_error.py +4 -3
- vellum/client/raw_client.py +1041 -128
- vellum/client/reference.md +692 -19
- vellum/client/resources/__init__.py +2 -0
- vellum/client/resources/ad_hoc/__init__.py +2 -0
- vellum/client/resources/ad_hoc/client.py +37 -195
- vellum/client/resources/ad_hoc/raw_client.py +322 -31
- vellum/client/resources/container_images/__init__.py +2 -0
- vellum/client/resources/container_images/client.py +26 -49
- vellum/client/resources/container_images/raw_client.py +23 -24
- vellum/client/resources/deployments/__init__.py +2 -0
- vellum/client/resources/deployments/client.py +55 -102
- vellum/client/resources/deployments/raw_client.py +73 -66
- vellum/client/resources/deployments/types/__init__.py +2 -0
- vellum/client/resources/document_indexes/__init__.py +2 -0
- vellum/client/resources/document_indexes/client.py +43 -100
- vellum/client/resources/document_indexes/raw_client.py +42 -43
- vellum/client/resources/document_indexes/types/__init__.py +2 -0
- vellum/client/resources/documents/__init__.py +2 -0
- vellum/client/resources/documents/client.py +29 -52
- vellum/client/resources/documents/raw_client.py +51 -44
- vellum/client/resources/folder_entities/__init__.py +2 -0
- vellum/client/resources/folder_entities/client.py +16 -21
- vellum/client/resources/folder_entities/raw_client.py +15 -16
- vellum/client/resources/folder_entities/types/__init__.py +2 -0
- vellum/client/resources/metric_definitions/__init__.py +2 -0
- vellum/client/resources/metric_definitions/client.py +16 -27
- vellum/client/resources/metric_definitions/raw_client.py +17 -18
- vellum/client/resources/ml_models/__init__.py +2 -0
- vellum/client/resources/ml_models/client.py +7 -14
- vellum/client/resources/ml_models/raw_client.py +11 -12
- vellum/client/resources/organizations/__init__.py +2 -0
- vellum/client/resources/organizations/client.py +7 -12
- vellum/client/resources/organizations/raw_client.py +10 -11
- vellum/client/resources/prompts/__init__.py +2 -0
- vellum/client/resources/prompts/client.py +12 -19
- vellum/client/resources/prompts/raw_client.py +40 -33
- vellum/client/resources/sandboxes/__init__.py +2 -0
- vellum/client/resources/sandboxes/client.py +17 -34
- vellum/client/resources/sandboxes/raw_client.py +20 -21
- vellum/client/resources/test_suite_runs/__init__.py +2 -0
- vellum/client/resources/test_suite_runs/client.py +19 -34
- vellum/client/resources/test_suite_runs/raw_client.py +20 -21
- vellum/client/resources/test_suites/__init__.py +2 -0
- vellum/client/resources/test_suites/client.py +26 -100
- vellum/client/resources/test_suites/raw_client.py +172 -21
- vellum/client/resources/workflow_deployments/__init__.py +2 -0
- vellum/client/resources/workflow_deployments/client.py +61 -120
- vellum/client/resources/workflow_deployments/raw_client.py +48 -49
- vellum/client/resources/workflow_deployments/types/__init__.py +2 -0
- vellum/client/resources/workflow_executions/__init__.py +2 -0
- vellum/client/resources/workflow_executions/client.py +8 -13
- vellum/client/resources/workflow_executions/raw_client.py +11 -12
- vellum/client/resources/workflow_sandboxes/__init__.py +2 -0
- vellum/client/resources/workflow_sandboxes/client.py +14 -23
- vellum/client/resources/workflow_sandboxes/raw_client.py +16 -17
- vellum/client/resources/workflow_sandboxes/types/__init__.py +2 -0
- vellum/client/resources/workflows/__init__.py +2 -0
- vellum/client/resources/workflows/client.py +16 -16
- vellum/client/resources/workflows/raw_client.py +75 -57
- vellum/client/resources/workspace_secrets/__init__.py +2 -0
- vellum/client/resources/workspace_secrets/client.py +11 -28
- vellum/client/resources/workspace_secrets/raw_client.py +15 -16
- vellum/client/resources/workspaces/__init__.py +2 -0
- vellum/client/resources/workspaces/client.py +7 -12
- vellum/client/resources/workspaces/raw_client.py +10 -11
- vellum/client/types/__init__.py +18 -0
- vellum/client/types/ad_hoc_execute_prompt_event.py +3 -2
- vellum/client/types/ad_hoc_expand_meta.py +2 -2
- vellum/client/types/ad_hoc_fulfilled_prompt_execution_meta.py +3 -3
- vellum/client/types/ad_hoc_initiated_prompt_execution_meta.py +2 -2
- vellum/client/types/ad_hoc_rejected_prompt_execution_meta.py +3 -3
- vellum/client/types/ad_hoc_streaming_prompt_execution_meta.py +2 -2
- vellum/client/types/api_node_result.py +3 -3
- vellum/client/types/api_node_result_data.py +4 -4
- vellum/client/types/api_request_parent_context.py +11 -11
- vellum/client/types/array_chat_message_content.py +3 -3
- vellum/client/types/array_chat_message_content_item.py +7 -4
- vellum/client/types/array_chat_message_content_item_request.py +7 -4
- vellum/client/types/array_chat_message_content_request.py +3 -3
- vellum/client/types/array_input.py +12 -6
- vellum/client/types/array_vellum_value.py +4 -4
- vellum/client/types/array_vellum_value_request.py +4 -4
- vellum/client/types/audio_chat_message_content.py +3 -3
- vellum/client/types/audio_chat_message_content_request.py +3 -3
- vellum/client/types/audio_prompt_block.py +4 -4
- vellum/client/types/audio_vellum_value.py +3 -3
- vellum/client/types/audio_vellum_value_request.py +3 -3
- vellum/client/types/base_output.py +2 -2
- vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large.py +2 -2
- vellum/client/types/basic_vectorizer_intfloat_multilingual_e_5_large_request.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1_request.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1.py +2 -2
- vellum/client/types/basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request.py +2 -2
- vellum/client/types/chat_history_input.py +3 -3
- vellum/client/types/chat_history_input_request.py +3 -3
- vellum/client/types/chat_history_vellum_value.py +3 -3
- vellum/client/types/chat_history_vellum_value_request.py +3 -3
- vellum/client/types/chat_message.py +4 -4
- vellum/client/types/chat_message_content.py +7 -4
- vellum/client/types/chat_message_content_request.py +7 -4
- vellum/client/types/chat_message_prompt_block.py +7 -7
- vellum/client/types/chat_message_request.py +4 -4
- vellum/client/types/code_execution_node_array_result.py +11 -5
- vellum/client/types/code_execution_node_chat_history_result.py +3 -3
- vellum/client/types/code_execution_node_error_result.py +3 -3
- vellum/client/types/code_execution_node_function_call_result.py +3 -3
- vellum/client/types/code_execution_node_json_result.py +2 -2
- vellum/client/types/code_execution_node_number_result.py +2 -2
- vellum/client/types/code_execution_node_result.py +10 -4
- vellum/client/types/code_execution_node_result_data.py +10 -4
- vellum/client/types/code_execution_node_result_output.py +6 -5
- vellum/client/types/code_execution_node_search_results_result.py +3 -3
- vellum/client/types/code_execution_node_string_result.py +2 -2
- vellum/client/types/code_execution_package.py +2 -2
- vellum/client/types/code_executor_input.py +7 -6
- vellum/client/types/code_executor_response.py +11 -5
- vellum/client/types/code_executor_secret_input.py +3 -3
- vellum/client/types/code_resource_definition.py +3 -3
- vellum/client/types/compile_prompt_deployment_expand_meta_request.py +2 -2
- vellum/client/types/compile_prompt_meta.py +2 -2
- vellum/client/types/conditional_node_result.py +3 -3
- vellum/client/types/conditional_node_result_data.py +2 -2
- vellum/client/types/container_image_build_config.py +3 -3
- vellum/client/types/container_image_container_image_tag.py +2 -2
- vellum/client/types/container_image_read.py +5 -5
- vellum/client/types/create_test_suite_test_case_request.py +9 -3
- vellum/client/types/deployment_history_item.py +10 -4
- vellum/client/types/deployment_provider_payload_response.py +4 -4
- vellum/client/types/deployment_read.py +10 -4
- vellum/client/types/deployment_release_tag_deployment_history_item.py +2 -2
- vellum/client/types/deployment_release_tag_read.py +4 -4
- vellum/client/types/docker_service_token.py +2 -2
- vellum/client/types/document_chat_message_content.py +3 -3
- vellum/client/types/document_chat_message_content_request.py +3 -3
- vellum/client/types/document_document_to_document_index.py +3 -3
- vellum/client/types/document_index_chunking.py +1 -0
- vellum/client/types/document_index_chunking_request.py +1 -0
- vellum/client/types/document_index_indexing_config.py +4 -4
- vellum/client/types/document_index_indexing_config_request.py +4 -4
- vellum/client/types/document_index_read.py +4 -4
- vellum/client/types/document_prompt_block.py +4 -4
- vellum/client/types/document_read.py +4 -4
- vellum/client/types/document_vellum_value.py +3 -3
- vellum/client/types/document_vellum_value_request.py +3 -3
- vellum/client/types/enriched_normalized_completion.py +3 -3
- vellum/client/types/ephemeral_prompt_cache_config.py +3 -3
- vellum/client/types/error_input.py +3 -3
- vellum/client/types/error_vellum_value.py +3 -3
- vellum/client/types/error_vellum_value_request.py +3 -3
- vellum/client/types/execute_api_request_bearer_token.py +1 -0
- vellum/client/types/execute_api_request_headers_value.py +1 -0
- vellum/client/types/execute_api_response.py +5 -5
- vellum/client/types/execute_prompt_event.py +3 -2
- vellum/client/types/execute_prompt_response.py +1 -0
- vellum/client/types/execute_workflow_response.py +10 -4
- vellum/client/types/execute_workflow_workflow_result_event.py +1 -0
- vellum/client/types/execution_array_vellum_value.py +12 -6
- vellum/client/types/execution_chat_history_vellum_value.py +3 -3
- vellum/client/types/execution_error_vellum_value.py +3 -3
- vellum/client/types/execution_function_call_vellum_value.py +3 -3
- vellum/client/types/execution_json_vellum_value.py +3 -3
- vellum/client/types/execution_number_vellum_value.py +3 -3
- vellum/client/types/execution_search_results_vellum_value.py +3 -3
- vellum/client/types/execution_string_vellum_value.py +3 -3
- vellum/client/types/execution_thinking_vellum_value.py +3 -3
- vellum/client/types/execution_vellum_value.py +6 -5
- vellum/client/types/external_input_descriptor.py +3 -3
- vellum/client/types/external_parent_context.py +11 -11
- vellum/client/types/external_test_case_execution.py +10 -4
- vellum/client/types/external_test_case_execution_request.py +10 -4
- vellum/client/types/fast_embed_vectorizer_baai_bge_small_en_v_15.py +2 -2
- vellum/client/types/fast_embed_vectorizer_baai_bge_small_en_v_15_request.py +2 -2
- vellum/client/types/folder_entity.py +4 -3
- vellum/client/types/folder_entity_dataset.py +3 -3
- vellum/client/types/folder_entity_dataset_data.py +3 -3
- vellum/client/types/folder_entity_document_index.py +3 -3
- vellum/client/types/folder_entity_document_index_data.py +4 -4
- vellum/client/types/folder_entity_folder.py +3 -3
- vellum/client/types/folder_entity_folder_data.py +2 -2
- vellum/client/types/folder_entity_prompt_sandbox.py +3 -3
- vellum/client/types/folder_entity_prompt_sandbox_data.py +3 -3
- vellum/client/types/folder_entity_test_suite.py +3 -3
- vellum/client/types/folder_entity_test_suite_data.py +3 -3
- vellum/client/types/folder_entity_workflow_sandbox.py +3 -3
- vellum/client/types/folder_entity_workflow_sandbox_data.py +3 -3
- vellum/client/types/fulfilled_ad_hoc_execute_prompt_event.py +4 -4
- vellum/client/types/fulfilled_execute_prompt_event.py +4 -4
- vellum/client/types/fulfilled_execute_prompt_response.py +3 -3
- vellum/client/types/fulfilled_execute_workflow_workflow_result_event.py +11 -5
- vellum/client/types/fulfilled_prompt_execution_meta.py +3 -3
- vellum/client/types/fulfilled_workflow_node_result_event.py +12 -6
- vellum/client/types/function_call.py +2 -2
- vellum/client/types/function_call_chat_message_content.py +3 -3
- vellum/client/types/function_call_chat_message_content_request.py +3 -3
- vellum/client/types/function_call_chat_message_content_value.py +2 -2
- vellum/client/types/function_call_chat_message_content_value_request.py +2 -2
- vellum/client/types/function_call_input.py +3 -3
- vellum/client/types/function_call_prompt_block.py +4 -4
- vellum/client/types/function_call_request.py +2 -2
- vellum/client/types/function_call_vellum_value.py +3 -3
- vellum/client/types/function_call_vellum_value_request.py +3 -3
- vellum/client/types/function_definition.py +4 -4
- vellum/client/types/generate_options_request.py +3 -3
- vellum/client/types/generate_request.py +2 -2
- vellum/client/types/generate_response.py +3 -3
- vellum/client/types/generate_result.py +3 -3
- vellum/client/types/generate_result_data.py +3 -3
- vellum/client/types/generate_result_error.py +3 -3
- vellum/client/types/generate_stream_response.py +3 -3
- vellum/client/types/generate_stream_result.py +4 -4
- vellum/client/types/generate_stream_result_data.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_config.py +2 -2
- vellum/client/types/google_vertex_ai_vectorizer_config_request.py +2 -2
- vellum/client/types/google_vertex_ai_vectorizer_gemini_embedding_001.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_gemini_embedding_001_request.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_embedding_004_request.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002.py +3 -3
- vellum/client/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002_request.py +3 -3
- vellum/client/types/hkunlp_instructor_xl_vectorizer.py +3 -3
- vellum/client/types/hkunlp_instructor_xl_vectorizer_request.py +3 -3
- vellum/client/types/image_chat_message_content.py +3 -3
- vellum/client/types/image_chat_message_content_request.py +3 -3
- vellum/client/types/image_prompt_block.py +4 -4
- vellum/client/types/image_vellum_value.py +3 -3
- vellum/client/types/image_vellum_value_request.py +3 -3
- vellum/client/types/indexing_config_vectorizer.py +7 -6
- vellum/client/types/indexing_config_vectorizer_request.py +7 -6
- vellum/client/types/initiated_ad_hoc_execute_prompt_event.py +3 -3
- vellum/client/types/initiated_execute_prompt_event.py +3 -3
- vellum/client/types/initiated_prompt_execution_meta.py +2 -2
- vellum/client/types/initiated_workflow_node_result_event.py +12 -6
- vellum/client/types/instructor_vectorizer_config.py +2 -2
- vellum/client/types/instructor_vectorizer_config_request.py +2 -2
- vellum/client/types/invoked_port.py +2 -2
- vellum/client/types/jinja_prompt_block.py +4 -4
- vellum/client/types/json_input.py +3 -3
- vellum/client/types/json_input_request.py +3 -3
- vellum/client/types/json_vellum_value.py +2 -2
- vellum/client/types/json_vellum_value_request.py +2 -2
- vellum/client/types/map_node_result.py +3 -3
- vellum/client/types/map_node_result_data.py +3 -3
- vellum/client/types/merge_node_result.py +3 -3
- vellum/client/types/merge_node_result_data.py +2 -2
- vellum/client/types/metadata_filter_config_request.py +12 -6
- vellum/client/types/metadata_filter_rule_request.py +5 -5
- vellum/client/types/metadata_filters_request.py +1 -0
- vellum/client/types/metric_definition_execution.py +10 -4
- vellum/client/types/metric_definition_history_item.py +10 -4
- vellum/client/types/metric_definition_input.py +3 -2
- vellum/client/types/metric_node_result.py +2 -2
- vellum/client/types/ml_model_read.py +6 -3
- vellum/client/types/ml_model_usage.py +2 -2
- vellum/client/types/ml_model_usage_wrapper.py +3 -3
- vellum/client/types/named_scenario_input_chat_history_variable_value_request.py +3 -3
- vellum/client/types/named_scenario_input_json_variable_value_request.py +2 -2
- vellum/client/types/named_scenario_input_request.py +3 -2
- vellum/client/types/named_scenario_input_string_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_array_variable_value.py +11 -5
- vellum/client/types/named_test_case_array_variable_value_request.py +11 -5
- vellum/client/types/named_test_case_chat_history_variable_value.py +3 -3
- vellum/client/types/named_test_case_chat_history_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_error_variable_value.py +3 -3
- vellum/client/types/named_test_case_error_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_function_call_variable_value.py +3 -3
- vellum/client/types/named_test_case_function_call_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_json_variable_value.py +2 -2
- vellum/client/types/named_test_case_json_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_number_variable_value.py +2 -2
- vellum/client/types/named_test_case_number_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_search_results_variable_value.py +3 -3
- vellum/client/types/named_test_case_search_results_variable_value_request.py +3 -3
- vellum/client/types/named_test_case_string_variable_value.py +2 -2
- vellum/client/types/named_test_case_string_variable_value_request.py +2 -2
- vellum/client/types/named_test_case_variable_value.py +6 -5
- vellum/client/types/named_test_case_variable_value_request.py +6 -5
- vellum/client/types/node_execution_fulfilled_body.py +4 -4
- vellum/client/types/node_execution_fulfilled_event.py +22 -16
- vellum/client/types/node_execution_initiated_body.py +3 -3
- vellum/client/types/node_execution_initiated_event.py +22 -16
- vellum/client/types/node_execution_paused_body.py +3 -3
- vellum/client/types/node_execution_paused_event.py +22 -16
- vellum/client/types/node_execution_rejected_body.py +4 -4
- vellum/client/types/node_execution_rejected_event.py +22 -16
- vellum/client/types/node_execution_resumed_body.py +3 -3
- vellum/client/types/node_execution_resumed_event.py +22 -16
- vellum/client/types/node_execution_span.py +21 -13
- vellum/client/types/node_execution_span_attributes.py +2 -2
- vellum/client/types/node_execution_streaming_body.py +4 -4
- vellum/client/types/node_execution_streaming_event.py +22 -16
- vellum/client/types/node_input_compiled_array_value.py +11 -5
- vellum/client/types/node_input_compiled_chat_history_value.py +3 -3
- vellum/client/types/node_input_compiled_error_value.py +3 -3
- vellum/client/types/node_input_compiled_function_call_value.py +3 -3
- vellum/client/types/node_input_compiled_json_value.py +2 -2
- vellum/client/types/node_input_compiled_number_value.py +2 -2
- vellum/client/types/node_input_compiled_search_results_value.py +3 -3
- vellum/client/types/node_input_compiled_secret_value.py +3 -3
- vellum/client/types/node_input_compiled_string_value.py +2 -2
- vellum/client/types/node_input_variable_compiled_value.py +6 -5
- vellum/client/types/node_output_compiled_array_value.py +12 -6
- vellum/client/types/node_output_compiled_chat_history_value.py +3 -3
- vellum/client/types/node_output_compiled_error_value.py +3 -3
- vellum/client/types/node_output_compiled_function_call_value.py +3 -3
- vellum/client/types/node_output_compiled_json_value.py +3 -3
- vellum/client/types/node_output_compiled_number_value.py +3 -3
- vellum/client/types/node_output_compiled_search_results_value.py +3 -3
- vellum/client/types/node_output_compiled_string_value.py +3 -3
- vellum/client/types/node_output_compiled_thinking_value.py +3 -3
- vellum/client/types/node_output_compiled_value.py +6 -5
- vellum/client/types/node_parent_context.py +12 -12
- vellum/client/types/normalized_log_probs.py +3 -3
- vellum/client/types/normalized_token_log_probs.py +2 -2
- vellum/client/types/number_input.py +3 -3
- vellum/client/types/number_vellum_value.py +2 -2
- vellum/client/types/number_vellum_value_request.py +2 -2
- vellum/client/types/open_ai_vectorizer_config.py +3 -3
- vellum/client/types/open_ai_vectorizer_config_request.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_large.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_large_request.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_small.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_3_small_request.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_ada_002.py +3 -3
- vellum/client/types/open_ai_vectorizer_text_embedding_ada_002_request.py +3 -3
- vellum/client/types/organization_read.py +4 -4
- vellum/client/types/paginated_container_image_read_list.py +3 -3
- vellum/client/types/paginated_deployment_release_tag_read_list.py +3 -3
- vellum/client/types/paginated_document_index_read_list.py +3 -3
- vellum/client/types/paginated_folder_entity_list.py +3 -3
- vellum/client/types/paginated_slim_deployment_read_list.py +10 -4
- vellum/client/types/paginated_slim_document_list.py +3 -3
- vellum/client/types/paginated_slim_workflow_deployment_list.py +10 -4
- vellum/client/types/paginated_test_suite_run_execution_list.py +10 -4
- vellum/client/types/paginated_test_suite_test_case_list.py +10 -4
- vellum/client/types/paginated_workflow_release_tag_read_list.py +3 -3
- vellum/client/types/paginated_workflow_sandbox_example_list.py +3 -3
- vellum/client/types/parent_context.py +5 -5
- vellum/client/types/pdf_search_result_meta_source.py +2 -2
- vellum/client/types/pdf_search_result_meta_source_request.py +2 -2
- vellum/client/types/plain_text_prompt_block.py +4 -4
- vellum/client/types/price.py +3 -3
- vellum/client/types/prompt_block.py +9 -6
- vellum/client/types/prompt_deployment_expand_meta_request.py +2 -2
- vellum/client/types/prompt_deployment_input_request.py +3 -2
- vellum/client/types/prompt_deployment_parent_context.py +11 -11
- vellum/client/types/prompt_deployment_release.py +6 -6
- vellum/client/types/prompt_deployment_release_prompt_deployment.py +2 -2
- vellum/client/types/prompt_deployment_release_prompt_version.py +4 -4
- vellum/client/types/prompt_exec_config.py +15 -9
- vellum/client/types/prompt_execution_meta.py +3 -3
- vellum/client/types/prompt_node_execution_meta.py +3 -3
- vellum/client/types/prompt_node_result.py +3 -3
- vellum/client/types/prompt_node_result_data.py +3 -3
- vellum/client/types/prompt_output.py +3 -2
- vellum/client/types/prompt_parameters.py +2 -2
- vellum/client/types/prompt_push_response.py +2 -2
- vellum/client/types/prompt_request_chat_history_input.py +3 -3
- vellum/client/types/prompt_request_input.py +3 -2
- vellum/client/types/prompt_request_json_input.py +3 -3
- vellum/client/types/prompt_request_string_input.py +3 -3
- vellum/client/types/prompt_settings.py +2 -2
- vellum/client/types/prompt_version_build_config_sandbox.py +2 -2
- vellum/client/types/raw_prompt_execution_overrides_request.py +2 -2
- vellum/client/types/reducto_chunker_config.py +2 -2
- vellum/client/types/reducto_chunker_config_request.py +2 -2
- vellum/client/types/reducto_chunking.py +3 -3
- vellum/client/types/reducto_chunking_request.py +3 -3
- vellum/client/types/rejected_ad_hoc_execute_prompt_event.py +4 -4
- vellum/client/types/rejected_execute_prompt_event.py +4 -4
- vellum/client/types/rejected_execute_prompt_response.py +3 -3
- vellum/client/types/rejected_execute_workflow_workflow_result_event.py +4 -4
- vellum/client/types/rejected_prompt_execution_meta.py +3 -3
- vellum/client/types/rejected_workflow_node_result_event.py +12 -6
- vellum/client/types/release_created_by.py +2 -2
- vellum/client/types/release_environment.py +2 -2
- vellum/client/types/release_release_tag.py +3 -3
- vellum/client/types/release_review_reviewer.py +2 -2
- vellum/client/types/release_tag_release.py +2 -2
- vellum/client/types/replace_test_suite_test_case_request.py +9 -3
- vellum/client/types/rich_text_child_block.py +2 -1
- vellum/client/types/rich_text_prompt_block.py +4 -4
- vellum/client/types/sandbox_scenario.py +3 -3
- vellum/client/types/scenario_input.py +3 -2
- vellum/client/types/scenario_input_chat_history_variable_value.py +3 -3
- vellum/client/types/scenario_input_json_variable_value.py +2 -2
- vellum/client/types/scenario_input_string_variable_value.py +2 -2
- vellum/client/types/search_filters_request.py +11 -5
- vellum/client/types/search_node_result.py +3 -3
- vellum/client/types/search_node_result_data.py +3 -3
- vellum/client/types/search_request_options_request.py +13 -7
- vellum/client/types/search_response.py +3 -3
- vellum/client/types/search_result.py +3 -3
- vellum/client/types/search_result_document.py +2 -2
- vellum/client/types/search_result_document_request.py +2 -2
- vellum/client/types/search_result_merging_request.py +2 -2
- vellum/client/types/search_result_meta.py +3 -3
- vellum/client/types/search_result_meta_request.py +3 -3
- vellum/client/types/search_result_request.py +3 -3
- vellum/client/types/search_results_input.py +3 -3
- vellum/client/types/search_results_vellum_value.py +3 -3
- vellum/client/types/search_results_vellum_value_request.py +3 -3
- vellum/client/types/search_weights_request.py +2 -2
- vellum/client/types/sentence_chunker_config.py +2 -2
- vellum/client/types/sentence_chunker_config_request.py +2 -2
- vellum/client/types/sentence_chunking.py +3 -3
- vellum/client/types/sentence_chunking_request.py +3 -3
- vellum/client/types/slim_deployment_read.py +10 -4
- vellum/client/types/slim_document.py +5 -5
- vellum/client/types/slim_document_document_to_document_index.py +3 -3
- vellum/client/types/slim_release_review.py +4 -4
- vellum/client/types/slim_workflow_deployment.py +11 -5
- vellum/client/types/slim_workflow_execution_read.py +21 -15
- vellum/client/types/span_link.py +12 -12
- vellum/client/types/streaming_ad_hoc_execute_prompt_event.py +4 -4
- vellum/client/types/streaming_execute_prompt_event.py +3 -3
- vellum/client/types/streaming_prompt_execution_meta.py +2 -2
- vellum/client/types/streaming_workflow_node_result_event.py +12 -6
- vellum/client/types/string_chat_message_content.py +2 -2
- vellum/client/types/string_chat_message_content_request.py +2 -2
- vellum/client/types/string_input.py +3 -3
- vellum/client/types/string_input_request.py +3 -3
- vellum/client/types/string_vellum_value.py +2 -2
- vellum/client/types/string_vellum_value_request.py +2 -2
- vellum/client/types/submit_completion_actual_request.py +3 -3
- vellum/client/types/submit_workflow_execution_actual_request.py +3 -2
- vellum/client/types/subworkflow_node_result.py +3 -3
- vellum/client/types/subworkflow_node_result_data.py +2 -2
- vellum/client/types/templating_node_array_result.py +11 -5
- vellum/client/types/templating_node_chat_history_result.py +3 -3
- vellum/client/types/templating_node_error_result.py +3 -3
- vellum/client/types/templating_node_function_call_result.py +3 -3
- vellum/client/types/templating_node_json_result.py +2 -2
- vellum/client/types/templating_node_number_result.py +2 -2
- vellum/client/types/templating_node_result.py +10 -4
- vellum/client/types/templating_node_result_data.py +10 -4
- vellum/client/types/templating_node_result_output.py +6 -5
- vellum/client/types/templating_node_search_results_result.py +3 -3
- vellum/client/types/templating_node_string_result.py +2 -2
- vellum/client/types/terminal_node_array_result.py +11 -5
- vellum/client/types/terminal_node_chat_history_result.py +2 -2
- vellum/client/types/terminal_node_error_result.py +2 -2
- vellum/client/types/terminal_node_function_call_result.py +2 -2
- vellum/client/types/terminal_node_json_result.py +2 -2
- vellum/client/types/terminal_node_number_result.py +2 -2
- vellum/client/types/terminal_node_result.py +10 -4
- vellum/client/types/terminal_node_result_data.py +10 -4
- vellum/client/types/terminal_node_result_output.py +6 -5
- vellum/client/types/terminal_node_search_results_result.py +2 -2
- vellum/client/types/terminal_node_string_result.py +2 -2
- vellum/client/types/test_case_array_variable_value.py +11 -5
- vellum/client/types/test_case_chat_history_variable_value.py +3 -3
- vellum/client/types/test_case_error_variable_value.py +3 -3
- vellum/client/types/test_case_function_call_variable_value.py +3 -3
- vellum/client/types/test_case_json_variable_value.py +2 -2
- vellum/client/types/test_case_number_variable_value.py +2 -2
- vellum/client/types/test_case_search_results_variable_value.py +3 -3
- vellum/client/types/test_case_string_variable_value.py +2 -2
- vellum/client/types/test_case_variable_value.py +6 -5
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config.py +3 -3
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_deployment_release_tag_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_exec_config.py +2 -1
- vellum/client/types/test_suite_run_exec_config_request.py +2 -1
- vellum/client/types/test_suite_run_execution.py +11 -5
- vellum/client/types/test_suite_run_execution_array_output.py +11 -5
- vellum/client/types/test_suite_run_execution_chat_history_output.py +3 -3
- vellum/client/types/test_suite_run_execution_error_output.py +3 -3
- vellum/client/types/test_suite_run_execution_function_call_output.py +3 -3
- vellum/client/types/test_suite_run_execution_json_output.py +2 -2
- vellum/client/types/test_suite_run_execution_metric_definition.py +2 -2
- vellum/client/types/test_suite_run_execution_metric_result.py +11 -5
- vellum/client/types/test_suite_run_execution_number_output.py +2 -2
- vellum/client/types/test_suite_run_execution_output.py +6 -5
- vellum/client/types/test_suite_run_execution_search_results_output.py +3 -3
- vellum/client/types/test_suite_run_execution_string_output.py +2 -2
- vellum/client/types/test_suite_run_external_exec_config.py +10 -4
- vellum/client/types/test_suite_run_external_exec_config_data.py +10 -4
- vellum/client/types/test_suite_run_external_exec_config_data_request.py +10 -4
- vellum/client/types/test_suite_run_external_exec_config_request.py +10 -4
- vellum/client/types/test_suite_run_metric_array_output.py +11 -5
- vellum/client/types/test_suite_run_metric_error_output.py +3 -3
- vellum/client/types/test_suite_run_metric_json_output.py +2 -2
- vellum/client/types/test_suite_run_metric_number_output.py +2 -2
- vellum/client/types/test_suite_run_metric_output.py +5 -4
- vellum/client/types/test_suite_run_metric_string_output.py +2 -2
- vellum/client/types/test_suite_run_progress.py +2 -2
- vellum/client/types/test_suite_run_prompt_sandbox_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_prompt_sandbox_history_item_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_read.py +12 -6
- vellum/client/types/test_suite_run_test_suite.py +2 -2
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config.py +3 -3
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_release_tag_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_exec_config_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_data.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_data_request.py +3 -3
- vellum/client/types/test_suite_run_workflow_sandbox_history_item_exec_config_request.py +3 -3
- vellum/client/types/test_suite_test_case.py +10 -4
- vellum/client/types/test_suite_test_case_bulk_operation_request.py +2 -1
- vellum/client/types/test_suite_test_case_bulk_result.py +2 -1
- vellum/client/types/test_suite_test_case_create_bulk_operation_request.py +10 -4
- vellum/client/types/test_suite_test_case_created_bulk_result.py +3 -3
- vellum/client/types/test_suite_test_case_created_bulk_result_data.py +2 -2
- vellum/client/types/test_suite_test_case_delete_bulk_operation_data_request.py +2 -2
- vellum/client/types/test_suite_test_case_delete_bulk_operation_request.py +3 -3
- vellum/client/types/test_suite_test_case_deleted_bulk_result.py +3 -3
- vellum/client/types/test_suite_test_case_deleted_bulk_result_data.py +2 -2
- vellum/client/types/test_suite_test_case_rejected_bulk_result.py +2 -2
- vellum/client/types/test_suite_test_case_replace_bulk_operation_request.py +10 -4
- vellum/client/types/test_suite_test_case_replaced_bulk_result.py +3 -3
- vellum/client/types/test_suite_test_case_replaced_bulk_result_data.py +2 -2
- vellum/client/types/test_suite_test_case_upsert_bulk_operation_request.py +10 -4
- vellum/client/types/thinking_vellum_value.py +3 -3
- vellum/client/types/thinking_vellum_value_request.py +3 -3
- vellum/client/types/token_overlapping_window_chunker_config.py +2 -2
- vellum/client/types/token_overlapping_window_chunker_config_request.py +2 -2
- vellum/client/types/token_overlapping_window_chunking.py +3 -3
- vellum/client/types/token_overlapping_window_chunking_request.py +3 -3
- vellum/client/types/upload_document_response.py +3 -3
- vellum/client/types/upsert_test_suite_test_case_request.py +9 -3
- vellum/client/types/variable_prompt_block.py +4 -4
- vellum/client/types/vellum_audio.py +3 -3
- vellum/client/types/vellum_audio_request.py +3 -3
- vellum/client/types/vellum_code_resource_definition.py +2 -2
- vellum/client/types/vellum_document.py +2 -2
- vellum/client/types/vellum_document_request.py +2 -2
- vellum/client/types/vellum_error.py +3 -3
- vellum/client/types/vellum_error_request.py +3 -3
- vellum/client/types/vellum_image.py +2 -2
- vellum/client/types/vellum_image_request.py +2 -2
- vellum/client/types/vellum_node_execution_event.py +4 -3
- vellum/client/types/vellum_sdk_error.py +3 -3
- vellum/client/types/vellum_secret.py +2 -2
- vellum/client/types/vellum_span.py +2 -1
- vellum/client/types/vellum_value.py +11 -8
- vellum/client/types/vellum_value_logical_condition_group_request.py +6 -6
- vellum/client/types/vellum_value_logical_condition_request.py +13 -7
- vellum/client/types/vellum_value_logical_expression_request.py +2 -1
- vellum/client/types/vellum_value_request.py +11 -8
- vellum/client/types/vellum_variable.py +13 -7
- vellum/client/types/vellum_variable_extensions.py +2 -2
- vellum/client/types/vellum_variable_type.py +2 -1
- vellum/client/types/vellum_video.py +24 -0
- vellum/client/types/vellum_video_request.py +24 -0
- vellum/client/types/vellum_workflow_execution_event.py +4 -3
- vellum/client/types/video_chat_message_content.py +25 -0
- vellum/client/types/video_chat_message_content_request.py +25 -0
- vellum/client/types/video_prompt_block.py +29 -0
- vellum/client/types/video_vellum_value.py +25 -0
- vellum/client/types/video_vellum_value_request.py +25 -0
- vellum/client/types/workflow_deployment_event_executions_response.py +18 -12
- vellum/client/types/workflow_deployment_history_item.py +10 -4
- vellum/client/types/workflow_deployment_parent_context.py +11 -11
- vellum/client/types/workflow_deployment_read.py +11 -5
- vellum/client/types/workflow_deployment_release.py +13 -7
- vellum/client/types/workflow_deployment_release_workflow_deployment.py +2 -2
- vellum/client/types/workflow_deployment_release_workflow_version.py +10 -4
- vellum/client/types/workflow_error.py +1 -0
- vellum/client/types/workflow_event_error.py +3 -3
- vellum/client/types/workflow_event_execution_read.py +22 -16
- vellum/client/types/workflow_execution_actual.py +10 -4
- vellum/client/types/workflow_execution_actual_chat_history_request.py +2 -2
- vellum/client/types/workflow_execution_actual_json_request.py +2 -2
- vellum/client/types/workflow_execution_actual_string_request.py +2 -2
- vellum/client/types/workflow_execution_detail.py +22 -16
- vellum/client/types/workflow_execution_fulfilled_body.py +3 -3
- vellum/client/types/workflow_execution_fulfilled_event.py +22 -16
- vellum/client/types/workflow_execution_initiated_body.py +3 -3
- vellum/client/types/workflow_execution_initiated_event.py +22 -16
- vellum/client/types/workflow_execution_node_result_event.py +10 -4
- vellum/client/types/workflow_execution_paused_body.py +4 -4
- vellum/client/types/workflow_execution_paused_event.py +22 -16
- vellum/client/types/workflow_execution_rejected_body.py +4 -4
- vellum/client/types/workflow_execution_rejected_event.py +22 -16
- vellum/client/types/workflow_execution_resumed_body.py +3 -3
- vellum/client/types/workflow_execution_resumed_event.py +22 -16
- vellum/client/types/workflow_execution_snapshotted_body.py +3 -3
- vellum/client/types/workflow_execution_snapshotted_event.py +22 -16
- vellum/client/types/workflow_execution_span.py +20 -12
- vellum/client/types/workflow_execution_span_attributes.py +2 -2
- vellum/client/types/workflow_execution_streaming_body.py +4 -4
- vellum/client/types/workflow_execution_streaming_event.py +22 -16
- vellum/client/types/workflow_execution_usage_calculation_error.py +3 -3
- vellum/client/types/workflow_execution_usage_calculation_fulfilled_body.py +22 -0
- vellum/client/types/workflow_execution_usage_result.py +3 -3
- vellum/client/types/workflow_execution_view_online_eval_metric_result.py +10 -4
- vellum/client/types/workflow_execution_workflow_result_event.py +10 -4
- vellum/client/types/workflow_expand_meta_request.py +2 -2
- vellum/client/types/workflow_initialization_error.py +2 -2
- vellum/client/types/workflow_node_result_data.py +8 -7
- vellum/client/types/workflow_node_result_event.py +3 -2
- vellum/client/types/workflow_output.py +6 -5
- vellum/client/types/workflow_output_array.py +12 -6
- vellum/client/types/workflow_output_chat_history.py +3 -3
- vellum/client/types/workflow_output_error.py +3 -3
- vellum/client/types/workflow_output_function_call.py +3 -3
- vellum/client/types/workflow_output_image.py +3 -3
- vellum/client/types/workflow_output_json.py +3 -3
- vellum/client/types/workflow_output_number.py +3 -3
- vellum/client/types/workflow_output_search_results.py +3 -3
- vellum/client/types/workflow_output_string.py +3 -3
- vellum/client/types/workflow_parent_context.py +12 -12
- vellum/client/types/workflow_push_deployment_config_request.py +2 -2
- vellum/client/types/workflow_push_response.py +2 -2
- vellum/client/types/workflow_release_tag_read.py +4 -4
- vellum/client/types/workflow_release_tag_workflow_deployment_history_item.py +2 -2
- vellum/client/types/workflow_request_chat_history_input_request.py +3 -3
- vellum/client/types/workflow_request_input_request.py +3 -2
- vellum/client/types/workflow_request_json_input_request.py +3 -3
- vellum/client/types/workflow_request_number_input_request.py +3 -3
- vellum/client/types/workflow_request_string_input_request.py +3 -3
- vellum/client/types/workflow_result_event.py +13 -7
- vellum/client/types/workflow_result_event_output_data.py +7 -6
- vellum/client/types/workflow_result_event_output_data_array.py +12 -6
- vellum/client/types/workflow_result_event_output_data_chat_history.py +3 -3
- vellum/client/types/workflow_result_event_output_data_error.py +3 -3
- vellum/client/types/workflow_result_event_output_data_function_call.py +3 -3
- vellum/client/types/workflow_result_event_output_data_json.py +3 -3
- vellum/client/types/workflow_result_event_output_data_number.py +3 -3
- vellum/client/types/workflow_result_event_output_data_search_results.py +3 -3
- vellum/client/types/workflow_result_event_output_data_string.py +3 -3
- vellum/client/types/workflow_sandbox_example.py +2 -2
- vellum/client/types/workflow_sandbox_parent_context.py +11 -11
- vellum/client/types/workflow_stream_event.py +2 -1
- vellum/client/types/workspace_read.py +3 -3
- vellum/client/types/workspace_secret_read.py +3 -3
- vellum/core/force_multipart.py +3 -0
- vellum/prompts/blocks/compilation.py +22 -10
- vellum/types/vellum_video.py +3 -0
- vellum/types/vellum_video_request.py +3 -0
- vellum/types/video_chat_message_content.py +3 -0
- vellum/types/video_chat_message_content_request.py +3 -0
- vellum/types/video_prompt_block.py +3 -0
- vellum/types/video_vellum_value.py +3 -0
- vellum/types/video_vellum_value_request.py +3 -0
- vellum/types/workflow_execution_usage_calculation_fulfilled_body.py +3 -0
- vellum/workflows/events/node.py +25 -10
- vellum/workflows/events/tests/test_event.py +19 -19
- vellum/workflows/events/workflow.py +11 -0
- vellum/workflows/graph/graph.py +103 -1
- vellum/workflows/graph/tests/test_graph.py +99 -0
- vellum/workflows/nodes/bases/base.py +9 -1
- vellum/workflows/nodes/displayable/bases/utils.py +4 -2
- vellum/workflows/nodes/displayable/tool_calling_node/node.py +19 -18
- vellum/workflows/nodes/displayable/tool_calling_node/tests/test_node.py +17 -7
- vellum/workflows/nodes/displayable/tool_calling_node/tests/test_utils.py +7 -7
- vellum/workflows/nodes/displayable/tool_calling_node/utils.py +47 -80
- vellum/workflows/references/environment_variable.py +10 -0
- vellum/workflows/runner/runner.py +18 -2
- vellum/workflows/state/context.py +101 -12
- vellum/workflows/state/encoder.py +2 -4
- vellum/workflows/types/definition.py +11 -1
- vellum/workflows/types/tests/test_definition.py +19 -0
- vellum/workflows/utils/functions.py +1 -1
- vellum/workflows/utils/vellum_variables.py +9 -5
- vellum/workflows/workflows/base.py +12 -5
- {vellum_ai-1.1.2.dist-info → vellum_ai-1.1.4.dist-info}/METADATA +2 -2
- {vellum_ai-1.1.2.dist-info → vellum_ai-1.1.4.dist-info}/RECORD +693 -675
- vellum_ee/workflows/display/nodes/vellum/code_execution_node.py +1 -1
- vellum_ee/workflows/display/nodes/vellum/tests/test_code_execution_node.py +55 -1
- vellum_ee/workflows/display/nodes/vellum/tests/test_tool_calling_node.py +164 -47
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_mcp_serialization.py +15 -49
- vellum_ee/workflows/display/types.py +14 -1
- vellum_ee/workflows/display/utils/expressions.py +13 -4
- vellum_ee/workflows/display/workflows/base_workflow_display.py +6 -19
- {vellum_ai-1.1.2.dist-info → vellum_ai-1.1.4.dist-info}/LICENSE +0 -0
- {vellum_ai-1.1.2.dist-info → vellum_ai-1.1.4.dist-info}/WHEEL +0 -0
- {vellum_ai-1.1.2.dist-info → vellum_ai-1.1.4.dist-info}/entry_points.txt +0 -0
@@ -1,21 +1,20 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
|
5
|
-
from .
|
6
|
-
from .types.workflow_deployments_list_request_status import WorkflowDeploymentsListRequestStatus
|
4
|
+
|
5
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
7
6
|
from ...core.request_options import RequestOptions
|
8
7
|
from ...types.paginated_slim_workflow_deployment_list import PaginatedSlimWorkflowDeploymentList
|
9
|
-
from ...types.
|
8
|
+
from ...types.paginated_workflow_release_tag_read_list import PaginatedWorkflowReleaseTagReadList
|
10
9
|
from ...types.workflow_deployment_event_executions_response import WorkflowDeploymentEventExecutionsResponse
|
11
|
-
from ...types.workflow_event_execution_read import WorkflowEventExecutionRead
|
12
10
|
from ...types.workflow_deployment_history_item import WorkflowDeploymentHistoryItem
|
13
|
-
from
|
14
|
-
from ...types.paginated_workflow_release_tag_read_list import PaginatedWorkflowReleaseTagReadList
|
15
|
-
from ...types.workflow_release_tag_read import WorkflowReleaseTagRead
|
11
|
+
from ...types.workflow_deployment_read import WorkflowDeploymentRead
|
16
12
|
from ...types.workflow_deployment_release import WorkflowDeploymentRelease
|
17
|
-
from ...
|
18
|
-
from .
|
13
|
+
from ...types.workflow_event_execution_read import WorkflowEventExecutionRead
|
14
|
+
from ...types.workflow_release_tag_read import WorkflowReleaseTagRead
|
15
|
+
from .raw_client import AsyncRawWorkflowDeploymentsClient, RawWorkflowDeploymentsClient
|
16
|
+
from .types.list_workflow_release_tags_request_source import ListWorkflowReleaseTagsRequestSource
|
17
|
+
from .types.workflow_deployments_list_request_status import WorkflowDeploymentsListRequestStatus
|
19
18
|
|
20
19
|
# this is used as the default value for optional parameters
|
21
20
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -40,7 +39,7 @@ class WorkflowDeploymentsClient:
|
|
40
39
|
"""
|
41
40
|
return self._raw_client
|
42
41
|
|
43
|
-
def
|
42
|
+
def list(
|
44
43
|
self,
|
45
44
|
*,
|
46
45
|
limit: typing.Optional[int] = None,
|
@@ -84,14 +83,10 @@ class WorkflowDeploymentsClient:
|
|
84
83
|
)
|
85
84
|
client.workflow_deployments.list()
|
86
85
|
"""
|
87
|
-
|
88
|
-
limit=limit,
|
89
|
-
offset=offset,
|
90
|
-
ordering=ordering,
|
91
|
-
status=status,
|
92
|
-
request_options=request_options,
|
86
|
+
_response = self._raw_client.list(
|
87
|
+
limit=limit, offset=offset, ordering=ordering, status=status, request_options=request_options
|
93
88
|
)
|
94
|
-
return
|
89
|
+
return _response.data
|
95
90
|
|
96
91
|
def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> WorkflowDeploymentRead:
|
97
92
|
"""
|
@@ -122,11 +117,8 @@ class WorkflowDeploymentsClient:
|
|
122
117
|
id="id",
|
123
118
|
)
|
124
119
|
"""
|
125
|
-
|
126
|
-
|
127
|
-
request_options=request_options,
|
128
|
-
)
|
129
|
-
return response.data
|
120
|
+
_response = self._raw_client.retrieve(id, request_options=request_options)
|
121
|
+
return _response.data
|
130
122
|
|
131
123
|
def list_workflow_deployment_event_executions(
|
132
124
|
self,
|
@@ -170,14 +162,10 @@ class WorkflowDeploymentsClient:
|
|
170
162
|
id="id",
|
171
163
|
)
|
172
164
|
"""
|
173
|
-
|
174
|
-
id,
|
175
|
-
filters=filters,
|
176
|
-
limit=limit,
|
177
|
-
offset=offset,
|
178
|
-
request_options=request_options,
|
165
|
+
_response = self._raw_client.list_workflow_deployment_event_executions(
|
166
|
+
id, filters=filters, limit=limit, offset=offset, request_options=request_options
|
179
167
|
)
|
180
|
-
return
|
168
|
+
return _response.data
|
181
169
|
|
182
170
|
def workflow_deployment_event_execution(
|
183
171
|
self, execution_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -210,12 +198,10 @@ class WorkflowDeploymentsClient:
|
|
210
198
|
id="id",
|
211
199
|
)
|
212
200
|
"""
|
213
|
-
|
214
|
-
execution_id,
|
215
|
-
id,
|
216
|
-
request_options=request_options,
|
201
|
+
_response = self._raw_client.workflow_deployment_event_execution(
|
202
|
+
execution_id, id, request_options=request_options
|
217
203
|
)
|
218
|
-
return
|
204
|
+
return _response.data
|
219
205
|
|
220
206
|
def workflow_deployment_history_item_retrieve(
|
221
207
|
self, history_id_or_release_tag: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -253,12 +239,10 @@ class WorkflowDeploymentsClient:
|
|
253
239
|
id="id",
|
254
240
|
)
|
255
241
|
"""
|
256
|
-
|
257
|
-
history_id_or_release_tag,
|
258
|
-
id,
|
259
|
-
request_options=request_options,
|
242
|
+
_response = self._raw_client.workflow_deployment_history_item_retrieve(
|
243
|
+
history_id_or_release_tag, id, request_options=request_options
|
260
244
|
)
|
261
|
-
return
|
245
|
+
return _response.data
|
262
246
|
|
263
247
|
def list_workflow_release_tags(
|
264
248
|
self,
|
@@ -309,15 +293,10 @@ class WorkflowDeploymentsClient:
|
|
309
293
|
id="id",
|
310
294
|
)
|
311
295
|
"""
|
312
|
-
|
313
|
-
id,
|
314
|
-
limit=limit,
|
315
|
-
offset=offset,
|
316
|
-
ordering=ordering,
|
317
|
-
source=source,
|
318
|
-
request_options=request_options,
|
296
|
+
_response = self._raw_client.list_workflow_release_tags(
|
297
|
+
id, limit=limit, offset=offset, ordering=ordering, source=source, request_options=request_options
|
319
298
|
)
|
320
|
-
return
|
299
|
+
return _response.data
|
321
300
|
|
322
301
|
def retrieve_workflow_release_tag(
|
323
302
|
self, id: str, name: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -354,12 +333,8 @@ class WorkflowDeploymentsClient:
|
|
354
333
|
name="name",
|
355
334
|
)
|
356
335
|
"""
|
357
|
-
|
358
|
-
|
359
|
-
name,
|
360
|
-
request_options=request_options,
|
361
|
-
)
|
362
|
-
return response.data
|
336
|
+
_response = self._raw_client.retrieve_workflow_release_tag(id, name, request_options=request_options)
|
337
|
+
return _response.data
|
363
338
|
|
364
339
|
def update_workflow_release_tag(
|
365
340
|
self,
|
@@ -404,13 +379,10 @@ class WorkflowDeploymentsClient:
|
|
404
379
|
name="name",
|
405
380
|
)
|
406
381
|
"""
|
407
|
-
|
408
|
-
id,
|
409
|
-
name,
|
410
|
-
history_item_id=history_item_id,
|
411
|
-
request_options=request_options,
|
382
|
+
_response = self._raw_client.update_workflow_release_tag(
|
383
|
+
id, name, history_item_id=history_item_id, request_options=request_options
|
412
384
|
)
|
413
|
-
return
|
385
|
+
return _response.data
|
414
386
|
|
415
387
|
def retrieve_workflow_deployment_release(
|
416
388
|
self, id: str, release_id_or_release_tag: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -447,12 +419,10 @@ class WorkflowDeploymentsClient:
|
|
447
419
|
release_id_or_release_tag="release_id_or_release_tag",
|
448
420
|
)
|
449
421
|
"""
|
450
|
-
|
451
|
-
id,
|
452
|
-
release_id_or_release_tag,
|
453
|
-
request_options=request_options,
|
422
|
+
_response = self._raw_client.retrieve_workflow_deployment_release(
|
423
|
+
id, release_id_or_release_tag, request_options=request_options
|
454
424
|
)
|
455
|
-
return
|
425
|
+
return _response.data
|
456
426
|
|
457
427
|
|
458
428
|
class AsyncWorkflowDeploymentsClient:
|
@@ -470,7 +440,7 @@ class AsyncWorkflowDeploymentsClient:
|
|
470
440
|
"""
|
471
441
|
return self._raw_client
|
472
442
|
|
473
|
-
async def
|
443
|
+
async def list(
|
474
444
|
self,
|
475
445
|
*,
|
476
446
|
limit: typing.Optional[int] = None,
|
@@ -522,14 +492,10 @@ class AsyncWorkflowDeploymentsClient:
|
|
522
492
|
|
523
493
|
asyncio.run(main())
|
524
494
|
"""
|
525
|
-
|
526
|
-
limit=limit,
|
527
|
-
offset=offset,
|
528
|
-
ordering=ordering,
|
529
|
-
status=status,
|
530
|
-
request_options=request_options,
|
495
|
+
_response = await self._raw_client.list(
|
496
|
+
limit=limit, offset=offset, ordering=ordering, status=status, request_options=request_options
|
531
497
|
)
|
532
|
-
return
|
498
|
+
return _response.data
|
533
499
|
|
534
500
|
async def retrieve(
|
535
501
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -570,11 +536,8 @@ class AsyncWorkflowDeploymentsClient:
|
|
570
536
|
|
571
537
|
asyncio.run(main())
|
572
538
|
"""
|
573
|
-
|
574
|
-
|
575
|
-
request_options=request_options,
|
576
|
-
)
|
577
|
-
return response.data
|
539
|
+
_response = await self._raw_client.retrieve(id, request_options=request_options)
|
540
|
+
return _response.data
|
578
541
|
|
579
542
|
async def list_workflow_deployment_event_executions(
|
580
543
|
self,
|
@@ -626,14 +589,10 @@ class AsyncWorkflowDeploymentsClient:
|
|
626
589
|
|
627
590
|
asyncio.run(main())
|
628
591
|
"""
|
629
|
-
|
630
|
-
id,
|
631
|
-
filters=filters,
|
632
|
-
limit=limit,
|
633
|
-
offset=offset,
|
634
|
-
request_options=request_options,
|
592
|
+
_response = await self._raw_client.list_workflow_deployment_event_executions(
|
593
|
+
id, filters=filters, limit=limit, offset=offset, request_options=request_options
|
635
594
|
)
|
636
|
-
return
|
595
|
+
return _response.data
|
637
596
|
|
638
597
|
async def workflow_deployment_event_execution(
|
639
598
|
self, execution_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -674,12 +633,10 @@ class AsyncWorkflowDeploymentsClient:
|
|
674
633
|
|
675
634
|
asyncio.run(main())
|
676
635
|
"""
|
677
|
-
|
678
|
-
execution_id,
|
679
|
-
id,
|
680
|
-
request_options=request_options,
|
636
|
+
_response = await self._raw_client.workflow_deployment_event_execution(
|
637
|
+
execution_id, id, request_options=request_options
|
681
638
|
)
|
682
|
-
return
|
639
|
+
return _response.data
|
683
640
|
|
684
641
|
async def workflow_deployment_history_item_retrieve(
|
685
642
|
self, history_id_or_release_tag: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -725,12 +682,10 @@ class AsyncWorkflowDeploymentsClient:
|
|
725
682
|
|
726
683
|
asyncio.run(main())
|
727
684
|
"""
|
728
|
-
|
729
|
-
history_id_or_release_tag,
|
730
|
-
id,
|
731
|
-
request_options=request_options,
|
685
|
+
_response = await self._raw_client.workflow_deployment_history_item_retrieve(
|
686
|
+
history_id_or_release_tag, id, request_options=request_options
|
732
687
|
)
|
733
|
-
return
|
688
|
+
return _response.data
|
734
689
|
|
735
690
|
async def list_workflow_release_tags(
|
736
691
|
self,
|
@@ -789,15 +744,10 @@ class AsyncWorkflowDeploymentsClient:
|
|
789
744
|
|
790
745
|
asyncio.run(main())
|
791
746
|
"""
|
792
|
-
|
793
|
-
id,
|
794
|
-
limit=limit,
|
795
|
-
offset=offset,
|
796
|
-
ordering=ordering,
|
797
|
-
source=source,
|
798
|
-
request_options=request_options,
|
747
|
+
_response = await self._raw_client.list_workflow_release_tags(
|
748
|
+
id, limit=limit, offset=offset, ordering=ordering, source=source, request_options=request_options
|
799
749
|
)
|
800
|
-
return
|
750
|
+
return _response.data
|
801
751
|
|
802
752
|
async def retrieve_workflow_release_tag(
|
803
753
|
self, id: str, name: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -842,12 +792,8 @@ class AsyncWorkflowDeploymentsClient:
|
|
842
792
|
|
843
793
|
asyncio.run(main())
|
844
794
|
"""
|
845
|
-
|
846
|
-
|
847
|
-
name,
|
848
|
-
request_options=request_options,
|
849
|
-
)
|
850
|
-
return response.data
|
795
|
+
_response = await self._raw_client.retrieve_workflow_release_tag(id, name, request_options=request_options)
|
796
|
+
return _response.data
|
851
797
|
|
852
798
|
async def update_workflow_release_tag(
|
853
799
|
self,
|
@@ -900,13 +846,10 @@ class AsyncWorkflowDeploymentsClient:
|
|
900
846
|
|
901
847
|
asyncio.run(main())
|
902
848
|
"""
|
903
|
-
|
904
|
-
id,
|
905
|
-
name,
|
906
|
-
history_item_id=history_item_id,
|
907
|
-
request_options=request_options,
|
849
|
+
_response = await self._raw_client.update_workflow_release_tag(
|
850
|
+
id, name, history_item_id=history_item_id, request_options=request_options
|
908
851
|
)
|
909
|
-
return
|
852
|
+
return _response.data
|
910
853
|
|
911
854
|
async def retrieve_workflow_deployment_release(
|
912
855
|
self, id: str, release_id_or_release_tag: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -951,9 +894,7 @@ class AsyncWorkflowDeploymentsClient:
|
|
951
894
|
|
952
895
|
asyncio.run(main())
|
953
896
|
"""
|
954
|
-
|
955
|
-
id,
|
956
|
-
release_id_or_release_tag,
|
957
|
-
request_options=request_options,
|
897
|
+
_response = await self._raw_client.retrieve_workflow_deployment_release(
|
898
|
+
id, release_id_or_release_tag, request_options=request_options
|
958
899
|
)
|
959
|
-
return
|
900
|
+
return _response.data
|
@@ -1,25 +1,24 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
from ...core.client_wrapper import SyncClientWrapper
|
5
|
-
from .types.workflow_deployments_list_request_status import WorkflowDeploymentsListRequestStatus
|
6
|
-
from ...core.request_options import RequestOptions
|
7
|
-
from ...core.http_response import HttpResponse
|
8
|
-
from ...types.paginated_slim_workflow_deployment_list import PaginatedSlimWorkflowDeploymentList
|
9
|
-
from ...core.pydantic_utilities import parse_obj_as
|
10
4
|
from json.decoder import JSONDecodeError
|
5
|
+
|
11
6
|
from ...core.api_error import ApiError
|
12
|
-
from ...
|
7
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
8
|
+
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
13
9
|
from ...core.jsonable_encoder import jsonable_encoder
|
10
|
+
from ...core.pydantic_utilities import parse_obj_as
|
11
|
+
from ...core.request_options import RequestOptions
|
12
|
+
from ...types.paginated_slim_workflow_deployment_list import PaginatedSlimWorkflowDeploymentList
|
13
|
+
from ...types.paginated_workflow_release_tag_read_list import PaginatedWorkflowReleaseTagReadList
|
14
14
|
from ...types.workflow_deployment_event_executions_response import WorkflowDeploymentEventExecutionsResponse
|
15
|
-
from ...types.workflow_event_execution_read import WorkflowEventExecutionRead
|
16
15
|
from ...types.workflow_deployment_history_item import WorkflowDeploymentHistoryItem
|
17
|
-
from
|
18
|
-
from ...types.paginated_workflow_release_tag_read_list import PaginatedWorkflowReleaseTagReadList
|
19
|
-
from ...types.workflow_release_tag_read import WorkflowReleaseTagRead
|
16
|
+
from ...types.workflow_deployment_read import WorkflowDeploymentRead
|
20
17
|
from ...types.workflow_deployment_release import WorkflowDeploymentRelease
|
21
|
-
from ...
|
22
|
-
from ...
|
18
|
+
from ...types.workflow_event_execution_read import WorkflowEventExecutionRead
|
19
|
+
from ...types.workflow_release_tag_read import WorkflowReleaseTagRead
|
20
|
+
from .types.list_workflow_release_tags_request_source import ListWorkflowReleaseTagsRequestSource
|
21
|
+
from .types.workflow_deployments_list_request_status import WorkflowDeploymentsListRequestStatus
|
23
22
|
|
24
23
|
# this is used as the default value for optional parameters
|
25
24
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -87,8 +86,8 @@ class RawWorkflowDeploymentsClient:
|
|
87
86
|
return HttpResponse(response=_response, data=_data)
|
88
87
|
_response_json = _response.json()
|
89
88
|
except JSONDecodeError:
|
90
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
91
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
89
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
90
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
92
91
|
|
93
92
|
def retrieve(
|
94
93
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -127,8 +126,8 @@ class RawWorkflowDeploymentsClient:
|
|
127
126
|
return HttpResponse(response=_response, data=_data)
|
128
127
|
_response_json = _response.json()
|
129
128
|
except JSONDecodeError:
|
130
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
131
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
129
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
130
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
132
131
|
|
133
132
|
def list_workflow_deployment_event_executions(
|
134
133
|
self,
|
@@ -183,8 +182,8 @@ class RawWorkflowDeploymentsClient:
|
|
183
182
|
return HttpResponse(response=_response, data=_data)
|
184
183
|
_response_json = _response.json()
|
185
184
|
except JSONDecodeError:
|
186
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
187
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
185
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
186
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
188
187
|
|
189
188
|
def workflow_deployment_event_execution(
|
190
189
|
self, execution_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -222,8 +221,8 @@ class RawWorkflowDeploymentsClient:
|
|
222
221
|
return HttpResponse(response=_response, data=_data)
|
223
222
|
_response_json = _response.json()
|
224
223
|
except JSONDecodeError:
|
225
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
226
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
224
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
225
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
227
226
|
|
228
227
|
def workflow_deployment_history_item_retrieve(
|
229
228
|
self, history_id_or_release_tag: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -266,8 +265,8 @@ class RawWorkflowDeploymentsClient:
|
|
266
265
|
return HttpResponse(response=_response, data=_data)
|
267
266
|
_response_json = _response.json()
|
268
267
|
except JSONDecodeError:
|
269
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
270
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
268
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
269
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
271
270
|
|
272
271
|
def list_workflow_release_tags(
|
273
272
|
self,
|
@@ -330,8 +329,8 @@ class RawWorkflowDeploymentsClient:
|
|
330
329
|
return HttpResponse(response=_response, data=_data)
|
331
330
|
_response_json = _response.json()
|
332
331
|
except JSONDecodeError:
|
333
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
334
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
332
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
333
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
335
334
|
|
336
335
|
def retrieve_workflow_release_tag(
|
337
336
|
self, id: str, name: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -373,8 +372,8 @@ class RawWorkflowDeploymentsClient:
|
|
373
372
|
return HttpResponse(response=_response, data=_data)
|
374
373
|
_response_json = _response.json()
|
375
374
|
except JSONDecodeError:
|
376
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
377
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
375
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
376
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
378
377
|
|
379
378
|
def update_workflow_release_tag(
|
380
379
|
self,
|
@@ -431,8 +430,8 @@ class RawWorkflowDeploymentsClient:
|
|
431
430
|
return HttpResponse(response=_response, data=_data)
|
432
431
|
_response_json = _response.json()
|
433
432
|
except JSONDecodeError:
|
434
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
435
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
433
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
434
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
436
435
|
|
437
436
|
def retrieve_workflow_deployment_release(
|
438
437
|
self, id: str, release_id_or_release_tag: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -474,8 +473,8 @@ class RawWorkflowDeploymentsClient:
|
|
474
473
|
return HttpResponse(response=_response, data=_data)
|
475
474
|
_response_json = _response.json()
|
476
475
|
except JSONDecodeError:
|
477
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
478
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
476
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
477
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
479
478
|
|
480
479
|
|
481
480
|
class AsyncRawWorkflowDeploymentsClient:
|
@@ -540,8 +539,8 @@ class AsyncRawWorkflowDeploymentsClient:
|
|
540
539
|
return AsyncHttpResponse(response=_response, data=_data)
|
541
540
|
_response_json = _response.json()
|
542
541
|
except JSONDecodeError:
|
543
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
544
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
542
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
543
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
545
544
|
|
546
545
|
async def retrieve(
|
547
546
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -580,8 +579,8 @@ class AsyncRawWorkflowDeploymentsClient:
|
|
580
579
|
return AsyncHttpResponse(response=_response, data=_data)
|
581
580
|
_response_json = _response.json()
|
582
581
|
except JSONDecodeError:
|
583
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
584
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
582
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
583
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
585
584
|
|
586
585
|
async def list_workflow_deployment_event_executions(
|
587
586
|
self,
|
@@ -636,8 +635,8 @@ class AsyncRawWorkflowDeploymentsClient:
|
|
636
635
|
return AsyncHttpResponse(response=_response, data=_data)
|
637
636
|
_response_json = _response.json()
|
638
637
|
except JSONDecodeError:
|
639
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
640
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
638
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
639
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
641
640
|
|
642
641
|
async def workflow_deployment_event_execution(
|
643
642
|
self, execution_id: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -675,8 +674,8 @@ class AsyncRawWorkflowDeploymentsClient:
|
|
675
674
|
return AsyncHttpResponse(response=_response, data=_data)
|
676
675
|
_response_json = _response.json()
|
677
676
|
except JSONDecodeError:
|
678
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
679
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
677
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
678
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
680
679
|
|
681
680
|
async def workflow_deployment_history_item_retrieve(
|
682
681
|
self, history_id_or_release_tag: str, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -719,8 +718,8 @@ class AsyncRawWorkflowDeploymentsClient:
|
|
719
718
|
return AsyncHttpResponse(response=_response, data=_data)
|
720
719
|
_response_json = _response.json()
|
721
720
|
except JSONDecodeError:
|
722
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
723
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
721
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
722
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
724
723
|
|
725
724
|
async def list_workflow_release_tags(
|
726
725
|
self,
|
@@ -783,8 +782,8 @@ class AsyncRawWorkflowDeploymentsClient:
|
|
783
782
|
return AsyncHttpResponse(response=_response, data=_data)
|
784
783
|
_response_json = _response.json()
|
785
784
|
except JSONDecodeError:
|
786
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
787
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
785
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
786
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
788
787
|
|
789
788
|
async def retrieve_workflow_release_tag(
|
790
789
|
self, id: str, name: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -826,8 +825,8 @@ class AsyncRawWorkflowDeploymentsClient:
|
|
826
825
|
return AsyncHttpResponse(response=_response, data=_data)
|
827
826
|
_response_json = _response.json()
|
828
827
|
except JSONDecodeError:
|
829
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
830
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
828
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
829
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
831
830
|
|
832
831
|
async def update_workflow_release_tag(
|
833
832
|
self,
|
@@ -884,8 +883,8 @@ class AsyncRawWorkflowDeploymentsClient:
|
|
884
883
|
return AsyncHttpResponse(response=_response, data=_data)
|
885
884
|
_response_json = _response.json()
|
886
885
|
except JSONDecodeError:
|
887
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
888
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
886
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
887
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
889
888
|
|
890
889
|
async def retrieve_workflow_deployment_release(
|
891
890
|
self, id: str, release_id_or_release_tag: str, *, request_options: typing.Optional[RequestOptions] = None
|
@@ -927,5 +926,5 @@ class AsyncRawWorkflowDeploymentsClient:
|
|
927
926
|
return AsyncHttpResponse(response=_response, data=_data)
|
928
927
|
_response_json = _response.json()
|
929
928
|
except JSONDecodeError:
|
930
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
931
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
929
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
930
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
# isort: skip_file
|
4
|
+
|
3
5
|
from .list_workflow_release_tags_request_source import ListWorkflowReleaseTagsRequestSource
|
4
6
|
from .workflow_deployments_list_request_status import WorkflowDeploymentsListRequestStatus
|
5
7
|
|
@@ -1,12 +1,11 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
-
from ...core.client_wrapper import SyncClientWrapper
|
4
|
-
from .raw_client import RawWorkflowExecutionsClient
|
5
3
|
import typing
|
4
|
+
|
5
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
6
6
|
from ...core.request_options import RequestOptions
|
7
7
|
from ...types.workflow_execution_detail import WorkflowExecutionDetail
|
8
|
-
from
|
9
|
-
from .raw_client import AsyncRawWorkflowExecutionsClient
|
8
|
+
from .raw_client import AsyncRawWorkflowExecutionsClient, RawWorkflowExecutionsClient
|
10
9
|
|
11
10
|
|
12
11
|
class WorkflowExecutionsClient:
|
@@ -56,11 +55,8 @@ class WorkflowExecutionsClient:
|
|
56
55
|
execution_id="execution_id",
|
57
56
|
)
|
58
57
|
"""
|
59
|
-
|
60
|
-
|
61
|
-
request_options=request_options,
|
62
|
-
)
|
63
|
-
return response.data
|
58
|
+
_response = self._raw_client.retrieve_workflow_execution_detail(execution_id, request_options=request_options)
|
59
|
+
return _response.data
|
64
60
|
|
65
61
|
|
66
62
|
class AsyncWorkflowExecutionsClient:
|
@@ -114,8 +110,7 @@ class AsyncWorkflowExecutionsClient:
|
|
114
110
|
|
115
111
|
asyncio.run(main())
|
116
112
|
"""
|
117
|
-
|
118
|
-
execution_id,
|
119
|
-
request_options=request_options,
|
113
|
+
_response = await self._raw_client.retrieve_workflow_execution_detail(
|
114
|
+
execution_id, request_options=request_options
|
120
115
|
)
|
121
|
-
return
|
116
|
+
return _response.data
|
@@ -1,16 +1,15 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
-
from ...core.client_wrapper import SyncClientWrapper
|
4
3
|
import typing
|
5
|
-
from ...core.request_options import RequestOptions
|
6
|
-
from ...core.http_response import HttpResponse
|
7
|
-
from ...types.workflow_execution_detail import WorkflowExecutionDetail
|
8
|
-
from ...core.jsonable_encoder import jsonable_encoder
|
9
|
-
from ...core.pydantic_utilities import parse_obj_as
|
10
4
|
from json.decoder import JSONDecodeError
|
5
|
+
|
11
6
|
from ...core.api_error import ApiError
|
12
|
-
from ...core.client_wrapper import AsyncClientWrapper
|
13
|
-
from ...core.http_response import AsyncHttpResponse
|
7
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
8
|
+
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
9
|
+
from ...core.jsonable_encoder import jsonable_encoder
|
10
|
+
from ...core.pydantic_utilities import parse_obj_as
|
11
|
+
from ...core.request_options import RequestOptions
|
12
|
+
from ...types.workflow_execution_detail import WorkflowExecutionDetail
|
14
13
|
|
15
14
|
|
16
15
|
class RawWorkflowExecutionsClient:
|
@@ -51,8 +50,8 @@ class RawWorkflowExecutionsClient:
|
|
51
50
|
return HttpResponse(response=_response, data=_data)
|
52
51
|
_response_json = _response.json()
|
53
52
|
except JSONDecodeError:
|
54
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
55
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
53
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
54
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
56
55
|
|
57
56
|
|
58
57
|
class AsyncRawWorkflowExecutionsClient:
|
@@ -93,5 +92,5 @@ class AsyncRawWorkflowExecutionsClient:
|
|
93
92
|
return AsyncHttpResponse(response=_response, data=_data)
|
94
93
|
_response_json = _response.json()
|
95
94
|
except JSONDecodeError:
|
96
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
97
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
95
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
96
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|