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,14 +1,13 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
|
5
|
-
from .
|
4
|
+
|
5
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
6
6
|
from ...core.request_options import RequestOptions
|
7
|
+
from ...types.paginated_workflow_sandbox_example_list import PaginatedWorkflowSandboxExampleList
|
7
8
|
from ...types.workflow_deployment_read import WorkflowDeploymentRead
|
9
|
+
from .raw_client import AsyncRawWorkflowSandboxesClient, RawWorkflowSandboxesClient
|
8
10
|
from .types.list_workflow_sandbox_examples_request_tag import ListWorkflowSandboxExamplesRequestTag
|
9
|
-
from ...types.paginated_workflow_sandbox_example_list import PaginatedWorkflowSandboxExampleList
|
10
|
-
from ...core.client_wrapper import AsyncClientWrapper
|
11
|
-
from .raw_client import AsyncRawWorkflowSandboxesClient
|
12
11
|
|
13
12
|
# this is used as the default value for optional parameters
|
14
13
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -90,7 +89,7 @@ class WorkflowSandboxesClient:
|
|
90
89
|
workflow_id="workflow_id",
|
91
90
|
)
|
92
91
|
"""
|
93
|
-
|
92
|
+
_response = self._raw_client.deploy_workflow(
|
94
93
|
id,
|
95
94
|
workflow_id,
|
96
95
|
workflow_deployment_id=workflow_deployment_id,
|
@@ -100,7 +99,7 @@ class WorkflowSandboxesClient:
|
|
100
99
|
release_description=release_description,
|
101
100
|
request_options=request_options,
|
102
101
|
)
|
103
|
-
return
|
102
|
+
return _response.data
|
104
103
|
|
105
104
|
def list_workflow_sandbox_examples(
|
106
105
|
self,
|
@@ -145,14 +144,10 @@ class WorkflowSandboxesClient:
|
|
145
144
|
)
|
146
145
|
client.workflow_sandboxes.list_workflow_sandbox_examples()
|
147
146
|
"""
|
148
|
-
|
149
|
-
limit=limit,
|
150
|
-
offset=offset,
|
151
|
-
ordering=ordering,
|
152
|
-
tag=tag,
|
153
|
-
request_options=request_options,
|
147
|
+
_response = self._raw_client.list_workflow_sandbox_examples(
|
148
|
+
limit=limit, offset=offset, ordering=ordering, tag=tag, request_options=request_options
|
154
149
|
)
|
155
|
-
return
|
150
|
+
return _response.data
|
156
151
|
|
157
152
|
|
158
153
|
class AsyncWorkflowSandboxesClient:
|
@@ -235,7 +230,7 @@ class AsyncWorkflowSandboxesClient:
|
|
235
230
|
|
236
231
|
asyncio.run(main())
|
237
232
|
"""
|
238
|
-
|
233
|
+
_response = await self._raw_client.deploy_workflow(
|
239
234
|
id,
|
240
235
|
workflow_id,
|
241
236
|
workflow_deployment_id=workflow_deployment_id,
|
@@ -245,7 +240,7 @@ class AsyncWorkflowSandboxesClient:
|
|
245
240
|
release_description=release_description,
|
246
241
|
request_options=request_options,
|
247
242
|
)
|
248
|
-
return
|
243
|
+
return _response.data
|
249
244
|
|
250
245
|
async def list_workflow_sandbox_examples(
|
251
246
|
self,
|
@@ -298,11 +293,7 @@ class AsyncWorkflowSandboxesClient:
|
|
298
293
|
|
299
294
|
asyncio.run(main())
|
300
295
|
"""
|
301
|
-
|
302
|
-
limit=limit,
|
303
|
-
offset=offset,
|
304
|
-
ordering=ordering,
|
305
|
-
tag=tag,
|
306
|
-
request_options=request_options,
|
296
|
+
_response = await self._raw_client.list_workflow_sandbox_examples(
|
297
|
+
limit=limit, offset=offset, ordering=ordering, tag=tag, request_options=request_options
|
307
298
|
)
|
308
|
-
return
|
299
|
+
return _response.data
|
@@ -1,18 +1,17 @@
|
|
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 ...core.request_options import RequestOptions
|
6
|
-
from ...core.http_response import HttpResponse
|
7
|
-
from ...types.workflow_deployment_read import WorkflowDeploymentRead
|
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 .
|
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
|
13
12
|
from ...types.paginated_workflow_sandbox_example_list import PaginatedWorkflowSandboxExampleList
|
14
|
-
from ...
|
15
|
-
from
|
13
|
+
from ...types.workflow_deployment_read import WorkflowDeploymentRead
|
14
|
+
from .types.list_workflow_sandbox_examples_request_tag import ListWorkflowSandboxExamplesRequestTag
|
16
15
|
|
17
16
|
# this is used as the default value for optional parameters
|
18
17
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -95,8 +94,8 @@ class RawWorkflowSandboxesClient:
|
|
95
94
|
return HttpResponse(response=_response, data=_data)
|
96
95
|
_response_json = _response.json()
|
97
96
|
except JSONDecodeError:
|
98
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
99
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
97
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
98
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
100
99
|
|
101
100
|
def list_workflow_sandbox_examples(
|
102
101
|
self,
|
@@ -155,8 +154,8 @@ class RawWorkflowSandboxesClient:
|
|
155
154
|
return HttpResponse(response=_response, data=_data)
|
156
155
|
_response_json = _response.json()
|
157
156
|
except JSONDecodeError:
|
158
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
159
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
157
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
158
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
160
159
|
|
161
160
|
|
162
161
|
class AsyncRawWorkflowSandboxesClient:
|
@@ -236,8 +235,8 @@ class AsyncRawWorkflowSandboxesClient:
|
|
236
235
|
return AsyncHttpResponse(response=_response, data=_data)
|
237
236
|
_response_json = _response.json()
|
238
237
|
except JSONDecodeError:
|
239
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
240
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
238
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
239
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
241
240
|
|
242
241
|
async def list_workflow_sandbox_examples(
|
243
242
|
self,
|
@@ -296,5 +295,5 @@ class AsyncRawWorkflowSandboxesClient:
|
|
296
295
|
return AsyncHttpResponse(response=_response, data=_data)
|
297
296
|
_response_json = _response.json()
|
298
297
|
except JSONDecodeError:
|
299
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
300
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
298
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
299
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
@@ -1,15 +1,14 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
|
5
|
-
from
|
4
|
+
|
5
|
+
from ... import core
|
6
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
6
7
|
from ...core.request_options import RequestOptions
|
7
|
-
from ...types.workflow_push_exec_config import WorkflowPushExecConfig
|
8
8
|
from ...types.workflow_push_deployment_config_request import WorkflowPushDeploymentConfigRequest
|
9
|
-
from ... import
|
9
|
+
from ...types.workflow_push_exec_config import WorkflowPushExecConfig
|
10
10
|
from ...types.workflow_push_response import WorkflowPushResponse
|
11
|
-
from
|
12
|
-
from .raw_client import AsyncRawWorkflowsClient
|
11
|
+
from .raw_client import AsyncRawWorkflowsClient, RawWorkflowsClient
|
13
12
|
|
14
13
|
# this is used as the default value for optional parameters
|
15
14
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -69,7 +68,7 @@ class WorkflowsClient:
|
|
69
68
|
typing.Iterator[bytes]
|
70
69
|
|
71
70
|
"""
|
72
|
-
|
71
|
+
with self._raw_client.pull(
|
73
72
|
id,
|
74
73
|
exclude_code=exclude_code,
|
75
74
|
exclude_display=exclude_display,
|
@@ -77,8 +76,8 @@ class WorkflowsClient:
|
|
77
76
|
include_sandbox=include_sandbox,
|
78
77
|
strict=strict,
|
79
78
|
request_options=request_options,
|
80
|
-
)
|
81
|
-
|
79
|
+
) as r:
|
80
|
+
yield from r.data
|
82
81
|
|
83
82
|
def push(
|
84
83
|
self,
|
@@ -116,7 +115,7 @@ class WorkflowsClient:
|
|
116
115
|
WorkflowPushResponse
|
117
116
|
|
118
117
|
"""
|
119
|
-
|
118
|
+
_response = self._raw_client.push(
|
120
119
|
exec_config=exec_config,
|
121
120
|
workflow_sandbox_id=workflow_sandbox_id,
|
122
121
|
deployment_config=deployment_config,
|
@@ -125,7 +124,7 @@ class WorkflowsClient:
|
|
125
124
|
strict=strict,
|
126
125
|
request_options=request_options,
|
127
126
|
)
|
128
|
-
return
|
127
|
+
return _response.data
|
129
128
|
|
130
129
|
|
131
130
|
class AsyncWorkflowsClient:
|
@@ -178,7 +177,7 @@ class AsyncWorkflowsClient:
|
|
178
177
|
typing.AsyncIterator[bytes]
|
179
178
|
|
180
179
|
"""
|
181
|
-
|
180
|
+
async with self._raw_client.pull(
|
182
181
|
id,
|
183
182
|
exclude_code=exclude_code,
|
184
183
|
exclude_display=exclude_display,
|
@@ -186,8 +185,9 @@ class AsyncWorkflowsClient:
|
|
186
185
|
include_sandbox=include_sandbox,
|
187
186
|
strict=strict,
|
188
187
|
request_options=request_options,
|
189
|
-
)
|
190
|
-
|
188
|
+
) as r:
|
189
|
+
async for _chunk in r.data:
|
190
|
+
yield _chunk
|
191
191
|
|
192
192
|
async def push(
|
193
193
|
self,
|
@@ -225,7 +225,7 @@ class AsyncWorkflowsClient:
|
|
225
225
|
WorkflowPushResponse
|
226
226
|
|
227
227
|
"""
|
228
|
-
|
228
|
+
_response = await self._raw_client.push(
|
229
229
|
exec_config=exec_config,
|
230
230
|
workflow_sandbox_id=workflow_sandbox_id,
|
231
231
|
deployment_config=deployment_config,
|
@@ -234,4 +234,4 @@ class AsyncWorkflowsClient:
|
|
234
234
|
strict=strict,
|
235
235
|
request_options=request_options,
|
236
236
|
)
|
237
|
-
return
|
237
|
+
return _response.data
|
@@ -1,20 +1,20 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
|
+
import contextlib
|
3
4
|
import typing
|
4
|
-
from ...core.client_wrapper import SyncClientWrapper
|
5
|
-
from ...core.request_options import RequestOptions
|
6
|
-
from ...core.http_response import HttpResponse
|
7
|
-
from ...core.jsonable_encoder import jsonable_encoder
|
8
|
-
from ...errors.bad_request_error import BadRequestError
|
9
|
-
from ...core.pydantic_utilities import parse_obj_as
|
10
5
|
from json.decoder import JSONDecodeError
|
6
|
+
|
7
|
+
from ... import core
|
11
8
|
from ...core.api_error import ApiError
|
12
|
-
from ...
|
9
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
10
|
+
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
11
|
+
from ...core.jsonable_encoder import jsonable_encoder
|
12
|
+
from ...core.pydantic_utilities import parse_obj_as
|
13
|
+
from ...core.request_options import RequestOptions
|
14
|
+
from ...errors.bad_request_error import BadRequestError
|
13
15
|
from ...types.workflow_push_deployment_config_request import WorkflowPushDeploymentConfigRequest
|
14
|
-
from ... import
|
16
|
+
from ...types.workflow_push_exec_config import WorkflowPushExecConfig
|
15
17
|
from ...types.workflow_push_response import WorkflowPushResponse
|
16
|
-
from ...core.client_wrapper import AsyncClientWrapper
|
17
|
-
from ...core.http_response import AsyncHttpResponse
|
18
18
|
|
19
19
|
# this is used as the default value for optional parameters
|
20
20
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -24,6 +24,7 @@ class RawWorkflowsClient:
|
|
24
24
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
25
25
|
self._client_wrapper = client_wrapper
|
26
26
|
|
27
|
+
@contextlib.contextmanager
|
27
28
|
def pull(
|
28
29
|
self,
|
29
30
|
id: str,
|
@@ -34,7 +35,7 @@ class RawWorkflowsClient:
|
|
34
35
|
include_sandbox: typing.Optional[bool] = None,
|
35
36
|
strict: typing.Optional[bool] = None,
|
36
37
|
request_options: typing.Optional[RequestOptions] = None,
|
37
|
-
) -> HttpResponse[typing.Iterator[bytes]]:
|
38
|
+
) -> typing.Iterator[HttpResponse[typing.Iterator[bytes]]]:
|
38
39
|
"""
|
39
40
|
Parameters
|
40
41
|
----------
|
@@ -56,7 +57,7 @@ class RawWorkflowsClient:
|
|
56
57
|
|
57
58
|
Returns
|
58
59
|
-------
|
59
|
-
HttpResponse[typing.Iterator[bytes]]
|
60
|
+
typing.Iterator[HttpResponse[typing.Iterator[bytes]]]
|
60
61
|
|
61
62
|
"""
|
62
63
|
with self._client_wrapper.httpx_client.stream(
|
@@ -72,27 +73,34 @@ class RawWorkflowsClient:
|
|
72
73
|
},
|
73
74
|
request_options=request_options,
|
74
75
|
) as _response:
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
76
|
+
|
77
|
+
def _stream() -> HttpResponse[typing.Iterator[bytes]]:
|
78
|
+
try:
|
79
|
+
if 200 <= _response.status_code < 300:
|
80
|
+
_chunk_size = request_options.get("chunk_size", None) if request_options is not None else None
|
81
|
+
return HttpResponse(
|
82
|
+
response=_response, data=(_chunk for _chunk in _response.iter_bytes(chunk_size=_chunk_size))
|
83
|
+
)
|
84
|
+
_response.read()
|
85
|
+
if _response.status_code == 400:
|
86
|
+
raise BadRequestError(
|
87
|
+
headers=dict(_response.headers),
|
88
|
+
body=typing.cast(
|
89
|
+
typing.Optional[typing.Any],
|
90
|
+
parse_obj_as(
|
91
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
92
|
+
object_=_response.json(),
|
93
|
+
),
|
89
94
|
),
|
90
95
|
)
|
96
|
+
_response_json = _response.json()
|
97
|
+
except JSONDecodeError:
|
98
|
+
raise ApiError(
|
99
|
+
status_code=_response.status_code, headers=dict(_response.headers), body=_response.text
|
91
100
|
)
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
101
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
102
|
+
|
103
|
+
yield _stream()
|
96
104
|
|
97
105
|
def push(
|
98
106
|
self,
|
@@ -142,10 +150,11 @@ class RawWorkflowsClient:
|
|
142
150
|
"strict": strict,
|
143
151
|
},
|
144
152
|
files={
|
145
|
-
"artifact": artifact,
|
153
|
+
**({"artifact": artifact} if artifact is not None else {}),
|
146
154
|
},
|
147
155
|
request_options=request_options,
|
148
156
|
omit=OMIT,
|
157
|
+
force_multipart=True,
|
149
158
|
)
|
150
159
|
try:
|
151
160
|
if 200 <= _response.status_code < 300:
|
@@ -159,14 +168,15 @@ class RawWorkflowsClient:
|
|
159
168
|
return HttpResponse(response=_response, data=_data)
|
160
169
|
_response_json = _response.json()
|
161
170
|
except JSONDecodeError:
|
162
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
163
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
171
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
172
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
164
173
|
|
165
174
|
|
166
175
|
class AsyncRawWorkflowsClient:
|
167
176
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
168
177
|
self._client_wrapper = client_wrapper
|
169
178
|
|
179
|
+
@contextlib.asynccontextmanager
|
170
180
|
async def pull(
|
171
181
|
self,
|
172
182
|
id: str,
|
@@ -177,7 +187,7 @@ class AsyncRawWorkflowsClient:
|
|
177
187
|
include_sandbox: typing.Optional[bool] = None,
|
178
188
|
strict: typing.Optional[bool] = None,
|
179
189
|
request_options: typing.Optional[RequestOptions] = None,
|
180
|
-
) -> AsyncHttpResponse[typing.AsyncIterator[bytes]]:
|
190
|
+
) -> typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[bytes]]]:
|
181
191
|
"""
|
182
192
|
Parameters
|
183
193
|
----------
|
@@ -199,7 +209,7 @@ class AsyncRawWorkflowsClient:
|
|
199
209
|
|
200
210
|
Returns
|
201
211
|
-------
|
202
|
-
AsyncHttpResponse[typing.AsyncIterator[bytes]]
|
212
|
+
typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[bytes]]]
|
203
213
|
|
204
214
|
"""
|
205
215
|
async with self._client_wrapper.httpx_client.stream(
|
@@ -215,28 +225,35 @@ class AsyncRawWorkflowsClient:
|
|
215
225
|
},
|
216
226
|
request_options=request_options,
|
217
227
|
) as _response:
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
228
|
+
|
229
|
+
async def _stream() -> AsyncHttpResponse[typing.AsyncIterator[bytes]]:
|
230
|
+
try:
|
231
|
+
if 200 <= _response.status_code < 300:
|
232
|
+
_chunk_size = request_options.get("chunk_size", None) if request_options is not None else None
|
233
|
+
return AsyncHttpResponse(
|
234
|
+
response=_response,
|
235
|
+
data=(_chunk async for _chunk in _response.aiter_bytes(chunk_size=_chunk_size)),
|
236
|
+
)
|
237
|
+
await _response.aread()
|
238
|
+
if _response.status_code == 400:
|
239
|
+
raise BadRequestError(
|
240
|
+
headers=dict(_response.headers),
|
241
|
+
body=typing.cast(
|
242
|
+
typing.Optional[typing.Any],
|
243
|
+
parse_obj_as(
|
244
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
245
|
+
object_=_response.json(),
|
246
|
+
),
|
233
247
|
),
|
234
248
|
)
|
249
|
+
_response_json = _response.json()
|
250
|
+
except JSONDecodeError:
|
251
|
+
raise ApiError(
|
252
|
+
status_code=_response.status_code, headers=dict(_response.headers), body=_response.text
|
235
253
|
)
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
254
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
255
|
+
|
256
|
+
yield await _stream()
|
240
257
|
|
241
258
|
async def push(
|
242
259
|
self,
|
@@ -286,10 +303,11 @@ class AsyncRawWorkflowsClient:
|
|
286
303
|
"strict": strict,
|
287
304
|
},
|
288
305
|
files={
|
289
|
-
"artifact": artifact,
|
306
|
+
**({"artifact": artifact} if artifact is not None else {}),
|
290
307
|
},
|
291
308
|
request_options=request_options,
|
292
309
|
omit=OMIT,
|
310
|
+
force_multipart=True,
|
293
311
|
)
|
294
312
|
try:
|
295
313
|
if 200 <= _response.status_code < 300:
|
@@ -303,5 +321,5 @@ class AsyncRawWorkflowsClient:
|
|
303
321
|
return AsyncHttpResponse(response=_response, data=_data)
|
304
322
|
_response_json = _response.json()
|
305
323
|
except JSONDecodeError:
|
306
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
307
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
324
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
325
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
@@ -1,12 +1,11 @@
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
2
2
|
|
3
3
|
import typing
|
4
|
-
|
5
|
-
from .
|
4
|
+
|
5
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
6
6
|
from ...core.request_options import RequestOptions
|
7
7
|
from ...types.workspace_secret_read import WorkspaceSecretRead
|
8
|
-
from
|
9
|
-
from .raw_client import AsyncRawWorkspaceSecretsClient
|
8
|
+
from .raw_client import AsyncRawWorkspaceSecretsClient, RawWorkspaceSecretsClient
|
10
9
|
|
11
10
|
# this is used as the default value for optional parameters
|
12
11
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -60,11 +59,8 @@ class WorkspaceSecretsClient:
|
|
60
59
|
id="id",
|
61
60
|
)
|
62
61
|
"""
|
63
|
-
|
64
|
-
|
65
|
-
request_options=request_options,
|
66
|
-
)
|
67
|
-
return response.data
|
62
|
+
_response = self._raw_client.retrieve(id, request_options=request_options)
|
63
|
+
return _response.data
|
68
64
|
|
69
65
|
def partial_update(
|
70
66
|
self,
|
@@ -106,13 +102,8 @@ class WorkspaceSecretsClient:
|
|
106
102
|
id="id",
|
107
103
|
)
|
108
104
|
"""
|
109
|
-
|
110
|
-
|
111
|
-
label=label,
|
112
|
-
value=value,
|
113
|
-
request_options=request_options,
|
114
|
-
)
|
115
|
-
return response.data
|
105
|
+
_response = self._raw_client.partial_update(id, label=label, value=value, request_options=request_options)
|
106
|
+
return _response.data
|
116
107
|
|
117
108
|
|
118
109
|
class AsyncWorkspaceSecretsClient:
|
@@ -169,11 +160,8 @@ class AsyncWorkspaceSecretsClient:
|
|
169
160
|
|
170
161
|
asyncio.run(main())
|
171
162
|
"""
|
172
|
-
|
173
|
-
|
174
|
-
request_options=request_options,
|
175
|
-
)
|
176
|
-
return response.data
|
163
|
+
_response = await self._raw_client.retrieve(id, request_options=request_options)
|
164
|
+
return _response.data
|
177
165
|
|
178
166
|
async def partial_update(
|
179
167
|
self,
|
@@ -223,10 +211,5 @@ class AsyncWorkspaceSecretsClient:
|
|
223
211
|
|
224
212
|
asyncio.run(main())
|
225
213
|
"""
|
226
|
-
|
227
|
-
|
228
|
-
label=label,
|
229
|
-
value=value,
|
230
|
-
request_options=request_options,
|
231
|
-
)
|
232
|
-
return response.data
|
214
|
+
_response = await self._raw_client.partial_update(id, label=label, value=value, request_options=request_options)
|
215
|
+
return _response.data
|
@@ -1,16 +1,15 @@
|
|
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 ...core.request_options import RequestOptions
|
6
|
-
from ...core.http_response import HttpResponse
|
7
|
-
from ...types.workspace_secret_read import WorkspaceSecretRead
|
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.workspace_secret_read import WorkspaceSecretRead
|
14
13
|
|
15
14
|
# this is used as the default value for optional parameters
|
16
15
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -57,8 +56,8 @@ class RawWorkspaceSecretsClient:
|
|
57
56
|
return HttpResponse(response=_response, data=_data)
|
58
57
|
_response_json = _response.json()
|
59
58
|
except JSONDecodeError:
|
60
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
61
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
59
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
60
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
62
61
|
|
63
62
|
def partial_update(
|
64
63
|
self,
|
@@ -114,8 +113,8 @@ class RawWorkspaceSecretsClient:
|
|
114
113
|
return HttpResponse(response=_response, data=_data)
|
115
114
|
_response_json = _response.json()
|
116
115
|
except JSONDecodeError:
|
117
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
118
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
116
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
117
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
119
118
|
|
120
119
|
|
121
120
|
class AsyncRawWorkspaceSecretsClient:
|
@@ -159,8 +158,8 @@ class AsyncRawWorkspaceSecretsClient:
|
|
159
158
|
return AsyncHttpResponse(response=_response, data=_data)
|
160
159
|
_response_json = _response.json()
|
161
160
|
except JSONDecodeError:
|
162
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
163
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
161
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
162
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
164
163
|
|
165
164
|
async def partial_update(
|
166
165
|
self,
|
@@ -216,5 +215,5 @@ class AsyncRawWorkspaceSecretsClient:
|
|
216
215
|
return AsyncHttpResponse(response=_response, data=_data)
|
217
216
|
_response_json = _response.json()
|
218
217
|
except JSONDecodeError:
|
219
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
220
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
218
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
219
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|