runtype 0.5.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +767 -0
- data/README.md +30 -2
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_response.rb +2 -0
- data/generated/lib/runtype/agent_feedback/client.rb +58 -0
- data/generated/lib/runtype/agent_feedback/types/post_v1agent_feedback_request.rb +19 -0
- data/generated/lib/runtype/agent_feedback/types/post_v1agent_feedback_request_category.rb +19 -0
- data/generated/lib/runtype/agent_feedback/types/post_v1agent_feedback_response.rb +13 -0
- data/generated/lib/runtype/agent_feedback/types/post_v1agent_feedback_response_status.rb +13 -0
- data/generated/lib/runtype/agents/client.rb +127 -14
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request.rb +17 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config.rb +59 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_advisor.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_artifacts.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_artifacts_types_item.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_context_management.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_context_management_compaction.rb +23 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_context_management_compaction_strategy.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_context_management_tool_results.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_context_management_tool_results_prune_mode.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_durability.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_durability_forced.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_error_handling.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_error_handling_fallbacks_item.rb +19 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_error_handling_fallbacks_item_message.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_error_handling_fallbacks_item_model.rb +17 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_error_handling_fallbacks_item_retry.rb +11 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_error_handling_on_error.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_error_handling_triggers_item.rb +11 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_error_handling_triggers_item_type.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_logging_policy.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_loop_config.rb +19 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_memory.rb +17 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_pii_redaction.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_reasoning.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_reasoning_budget_tokens.rb +25 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_reasoning_budget_tokens_reasoning_effort.rb +17 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_reasoning_budget_tokens_reasoning_summary.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_sandbox.rb +29 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_sandbox_coding_agents_item.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_sandbox_instance_type.rb +16 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_sandbox_network_access.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_sandbox_network_access_allow.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_sandbox_network_access_allow_profile.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_sandbox_network_access_zero.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_sandbox_persistence.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_sandbox_provider.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_sandbox_sleep_after.rb +16 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_sandbox_ttl.rb +16 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_state.rb +17 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_state_merge_strategy.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_state_predict_state_item.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_temporal.rb +17 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tenancy_strategy.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tenancy_strategy_assurance_floor.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tenancy_strategy_assurance_floor_end_user.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tenancy_strategy_assurance_floor_tenant.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tenancy_strategy_preset.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools.rb +31 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_approval.rb +17 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_approval_choices.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_approval_require.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_code_mode_config.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_mcp_servers_item.rb +25 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_mcp_servers_item_auth.rb +21 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_mcp_servers_item_auth_type.rb +18 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_mcp_servers_item_transport.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_per_tool_limits_value.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_runtime_tools_item.rb +23 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_runtime_tools_item_tool_type.rb +19 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_subagent_config.rb +33 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_subagent_config_default_execution_mode.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_subagent_config_default_notify.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_subagent_config_execution_modes_item.rb +14 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_tool_call_strategy.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_tools_tool_search.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_voice.rb +25 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_voice_eleven_labs.rb +17 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_voice_endpointing.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_voice_endpointing_strategy.rb +16 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_voice_interruption_mode.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_voice_speech.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_voice_speech_mode.rb +15 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_voice_speech_synthesizer.rb +17 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_voice_speech_synthesizer_settings.rb +13 -0
- data/generated/lib/runtype/agents/types/create_voice_agent_draft_request_config_voice_speech_transcriber.rb +13 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_execution_id_response.rb +6 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_execution_id_response_execution_lane.rb +14 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_execution_id_response_external_telemetry.rb +17 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_execution_id_response_external_telemetry_completeness.rb +16 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_execution_id_response_external_telemetry_source.rb +13 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_execution_id_tool_calls_response_tool_calls_item.rb +14 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_request.rb +2 -0
- data/generated/lib/runtype/agents/types/{get_v1agents_id_export_runtime_response_agent_type.rb → get_v1agents_id_executions_request_agent_source.rb} +4 -2
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_response_data_item.rb +2 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_response_data_item_otel_producer.rb +20 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_export_runtime_request.rb +6 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_export_runtime_request_format.rb +14 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_run_insights_request.rb +13 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_run_insights_response.rb +13 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_run_insights_response_data.rb +27 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_run_insights_response_data_cost.rb +11 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_run_insights_response_data_tokens.rb +13 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_run_insights_response_data_tools_item.rb +17 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_run_insights_response_data_versions_item.rb +19 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_run_insights_response_data_window.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request.rb +4 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_sandbox.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_sandbox_coding_agents_item.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_tools.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_tools_runtime_tools_item.rb +4 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_tools_tool_search.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_id_execute_request_x_runtype_concurrency.rb +1 -1
- data/generated/lib/runtype/agents/types/post_v1agents_request_claude_managed_config.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_sandbox.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_sandbox_coding_agents_item.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_tools.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_tools_runtime_tools_item.rb +4 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_tools_tool_search.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_claude_managed_config.rb +2 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_sandbox.rb +2 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_sandbox_coding_agents_item.rb +13 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_tools.rb +2 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_tools_runtime_tools_item.rb +4 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_tools_tool_search.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_response.rb +2 -0
- data/generated/lib/runtype/client.rb +25 -5
- data/generated/lib/runtype/client_runtime/client.rb +57 -6
- data/generated/lib/runtype/client_runtime/types/post_v1client_agents_agent_id_voice_prewarm_request.rb +15 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_chat_request_submit_mode.rb +1 -1
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_session_id.rb +1 -1
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_session_id_identity_proof.rb +19 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_session_id_identity_proof_provider.rb +17 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_three.rb +1 -1
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_three_identity_proof.rb +19 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_three_identity_proof_provider.rb +17 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_two.rb +1 -1
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_two_identity_proof.rb +19 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_two_identity_proof_provider.rb +17 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_zero.rb +1 -1
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_zero_identity_proof.rb +19 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_request_zero_identity_proof_provider.rb +17 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_response_durable_recovery.rb +1 -1
- data/generated/lib/runtype/client_tokens/types/post_v1client_tokens_request.rb +2 -0
- data/generated/lib/runtype/dispatch/client.rb +5 -4
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_continue_request_continuation_tool_output_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_continue_request_continuation_tool_output_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_continue_request_continuation_tool_output_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_continue_request_continuation_tool_output_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_continue_stream_request_continuation_tool_output_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_continue_stream_request_continuation_tool_output_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_continue_stream_request_continuation_tool_output_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_continue_stream_request_continuation_tool_output_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_sandbox.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_sandbox_coding_agents_item.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_sandbox.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_sandbox_coding_agents_item.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_resume_request_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_resume_request_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_resume_request_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_resume_request_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_resume_stream_request_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_resume_stream_request_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_resume_stream_request_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_resume_stream_request_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/documentation/client.rb +2 -3
- data/generated/lib/runtype/documentation/types/post_v1documentation_build_instructions_request.rb +2 -0
- data/generated/lib/runtype/evals/client.rb +4 -1
- data/generated/lib/runtype/executions/client.rb +3 -1
- data/generated/lib/runtype/executions/types/get_v1executions_execution_id_status_response.rb +6 -0
- data/generated/lib/runtype/executions/types/get_v1executions_execution_id_status_response_execution_lane.rb +14 -0
- data/generated/lib/runtype/identity_integrations/client.rb +39 -0
- data/generated/lib/runtype/logs/client.rb +166 -8
- data/generated/lib/runtype/logs/types/get_v1logs_context_execution_id_blocks_request.rb +13 -0
- data/generated/lib/runtype/logs/types/get_v1logs_context_execution_id_blocks_response.rb +13 -0
- data/generated/lib/runtype/logs/types/get_v1logs_context_execution_id_request.rb +11 -0
- data/generated/lib/runtype/logs/types/{get_v1logs_debug_response.rb → get_v1logs_context_execution_id_response.rb} +2 -2
- data/generated/lib/runtype/logs/types/get_v1logs_entry_request.rb +15 -0
- data/generated/lib/runtype/logs/types/get_v1logs_entry_response.rb +13 -0
- data/generated/lib/runtype/logs/types/get_v1logs_entry_response_data.rb +11 -0
- data/generated/lib/runtype/logs/types/get_v1logs_request.rb +8 -0
- data/generated/lib/runtype/logs/types/get_v1logs_response.rb +2 -0
- data/generated/lib/runtype/logs/types/get_v1logs_response_data.rb +2 -0
- data/generated/lib/runtype/logs/types/get_v1logs_response_data_live.rb +17 -0
- data/generated/lib/runtype/logs/types/get_v1logs_response_data_live_reason.rb +14 -0
- data/generated/lib/runtype/logs/types/get_v1logs_response_data_pagination.rb +2 -0
- data/generated/lib/runtype/logs/types/get_v1logs_response_window.rb +14 -0
- data/generated/lib/runtype/logs/types/get_v1logs_stats_request.rb +8 -0
- data/generated/lib/runtype/logs/types/get_v1logs_stats_response.rb +2 -0
- data/generated/lib/runtype/logs/types/get_v1logs_stats_response_data.rb +4 -0
- data/generated/lib/runtype/logs/types/get_v1logs_stats_response_data_stats_source.rb +15 -0
- data/generated/lib/runtype/logs/types/get_v1logs_stats_response_window.rb +14 -0
- data/generated/lib/runtype/logs/types/get_v1logs_trace_conversation_conversation_id_response.rb +1 -1
- data/generated/lib/runtype/logs/types/get_v1logs_trace_execution_execution_id_children_request.rb +11 -0
- data/generated/lib/runtype/logs/types/get_v1logs_trace_execution_execution_id_children_response.rb +15 -0
- data/generated/lib/runtype/logs/types/get_v1logs_trace_execution_execution_id_children_response_data_item.rb +19 -0
- data/generated/lib/runtype/logs/types/get_v1logs_trace_execution_execution_id_response.rb +1 -1
- data/generated/lib/runtype/messaging_conversations/client.rb +2 -0
- data/generated/lib/runtype/messaging_conversations/types/get_v1messaging_conversations_id_messages_request.rb +2 -0
- data/generated/lib/runtype/products/client.rb +303 -7
- data/generated/lib/runtype/products/types/create_product_comment_request.rb +19 -0
- data/generated/lib/runtype/products/types/create_product_comment_request_author_kind.rb +14 -0
- data/generated/lib/runtype/products/types/create_product_comment_thread_request.rb +17 -0
- data/generated/lib/runtype/products/types/declare_product_stack_request.rb +15 -0
- data/generated/lib/runtype/products/types/declare_product_stack_request_source.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item.rb +1 -1
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item.rb +55 -23
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_completeness.rb +17 -0
- data/generated/lib/runtype/products/types/{get_v1products_id_activity_response_data_agents_item_data_item_execution_mode.rb → get_v1products_id_activity_response_data_agents_item_data_item_kind.rb} +3 -3
- data/generated/lib/runtype/products/types/{get_v1products_id_activity_response_data_agents_item_data_item_notification_mode.rb → get_v1products_id_activity_response_data_agents_item_data_item_origin.rb} +4 -4
- data/generated/lib/runtype/products/types/{get_v1products_id_activity_response_data_agents_item_data_item_agent_target_resolution.rb → get_v1products_id_activity_response_data_agents_item_data_item_source.rb} +3 -4
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_status.rb +1 -2
- data/generated/lib/runtype/products/types/get_v1products_id_comments_request.rb +19 -0
- data/generated/lib/runtype/products/types/get_v1products_id_comments_request_status.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_response.rb +2 -0
- data/generated/lib/runtype/products/types/get_v1products_id_response_editor_context.rb +6 -0
- data/generated/lib/runtype/products/types/get_v1products_id_response_editor_context_flow_steps_map_value_item.rb +2 -0
- data/generated/lib/runtype/products/types/get_v1products_id_surfaces_surface_id_response.rb +2 -0
- data/generated/lib/runtype/products/types/get_v1products_response_data_item_capabilities_item.rb +4 -0
- data/generated/lib/runtype/products/types/post_v1products_ensure_request_definition_spec_internal_docs_resources_item.rb +6 -0
- data/generated/lib/runtype/products/types/post_v1products_request_canvas.rb +2 -0
- data/generated/lib/runtype/products/types/post_v1products_request_spec.rb +2 -0
- data/generated/lib/runtype/products/types/post_v1products_request_spec_internal_docs_resources_item.rb +6 -0
- data/generated/lib/runtype/products/types/put_v1products_id_request_canvas.rb +2 -0
- data/generated/lib/runtype/products/types/put_v1products_id_request_spec.rb +2 -0
- data/generated/lib/runtype/products/types/put_v1products_id_request_spec_internal_docs_resources_item.rb +6 -0
- data/generated/lib/runtype/products/types/put_v1products_id_surfaces_surface_id_entry_point_request.rb +15 -0
- data/generated/lib/runtype/products/types/put_v1products_id_surfaces_surface_id_entry_point_response.rb +13 -0
- data/generated/lib/runtype/products/types/update_product_comment_thread_request.rb +15 -0
- data/generated/lib/runtype/question_sets/client.rb +416 -0
- data/generated/lib/runtype/question_sets/types/get_v1question_sets_id_request.rb +11 -0
- data/generated/lib/runtype/question_sets/types/get_v1question_sets_id_resolved_request.rb +13 -0
- data/generated/lib/runtype/question_sets/types/get_v1question_sets_id_response.rb +13 -0
- data/generated/lib/runtype/question_sets/types/get_v1question_sets_id_versions_request.rb +11 -0
- data/generated/lib/runtype/question_sets/types/get_v1question_sets_id_versions_response.rb +11 -0
- data/generated/lib/runtype/question_sets/types/get_v1question_sets_id_versions_version_number_calibrations_request.rb +17 -0
- data/generated/lib/runtype/question_sets/types/get_v1question_sets_id_versions_version_number_calibrations_response.rb +13 -0
- data/generated/lib/runtype/question_sets/types/get_v1question_sets_request.rb +17 -0
- data/generated/lib/runtype/question_sets/types/get_v1question_sets_request_direction.rb +14 -0
- data/generated/lib/runtype/question_sets/types/get_v1question_sets_response.rb +13 -0
- data/generated/lib/runtype/question_sets/types/post_v1question_sets_id_versions_version_number_calibrations_request.rb +17 -0
- data/generated/lib/runtype/question_sets/types/post_v1question_sets_id_versions_version_number_calibrations_request_record.rb +15 -0
- data/generated/lib/runtype/question_sets/types/post_v1question_sets_id_versions_version_number_calibrations_request_record_per_question_value.rb +19 -0
- data/generated/lib/runtype/question_sets/types/post_v1question_sets_id_versions_version_number_calibrations_response.rb +13 -0
- data/generated/lib/runtype/question_sets/types/post_v1question_sets_id_versions_version_number_publish_request.rb +13 -0
- data/generated/lib/runtype/question_sets/types/post_v1question_sets_id_versions_version_number_publish_response.rb +13 -0
- data/generated/lib/runtype/question_sets/types/post_v1question_sets_request.rb +21 -0
- data/generated/lib/runtype/question_sets/types/post_v1question_sets_response.rb +13 -0
- data/generated/lib/runtype/question_sets/types/put_v1question_sets_id_request.rb +21 -0
- data/generated/lib/runtype/question_sets/types/put_v1question_sets_id_response.rb +13 -0
- data/generated/lib/runtype/question_sets/types/put_v1question_sets_id_response_version.rb +30 -0
- data/generated/lib/runtype/runs/client.rb +150 -0
- data/generated/lib/runtype/runs/types/get_v1runs_execution_id_request.rb +15 -0
- data/generated/lib/runtype/runs/types/get_v1runs_execution_id_request_overlay.rb +14 -0
- data/generated/lib/runtype/runs/types/get_v1runs_execution_id_request_view.rb +14 -0
- data/generated/lib/runtype/runs/types/get_v1runs_execution_id_response.rb +11 -0
- data/generated/lib/runtype/runs/types/get_v1runs_request.rb +47 -0
- data/generated/lib/runtype/runs/types/get_v1runs_request_include_children.rb +14 -0
- data/generated/lib/runtype/runs/types/get_v1runs_request_overlay.rb +14 -0
- data/generated/lib/runtype/runs/types/get_v1runs_request_source.rb +14 -0
- data/generated/lib/runtype/runs/types/get_v1runs_request_status.rb +15 -0
- data/generated/lib/runtype/runs/types/get_v1runs_request_view.rb +14 -0
- data/generated/lib/runtype/runs/types/get_v1runs_response.rb +15 -0
- data/generated/lib/runtype/runs/types/get_v1runs_response_pagination.rb +19 -0
- data/generated/lib/runtype/runs/types/get_v1runs_response_window.rb +14 -0
- data/generated/lib/runtype/schedules/client.rb +97 -0
- data/generated/lib/runtype/schedules/types/get_v1schedules_id_runs_response_data_item.rb +2 -0
- data/generated/lib/runtype/schedules/types/get_v1schedules_pull_request.rb +19 -0
- data/generated/lib/runtype/schedules/types/get_v1schedules_runs_all_response_data_item.rb +2 -0
- data/generated/lib/runtype/schedules/types/post_v1schedules_ensure_request.rb +23 -0
- data/generated/lib/runtype/schedules/types/post_v1schedules_ensure_request_on_conflict.rb +14 -0
- data/generated/lib/runtype/skills/client.rb +39 -0
- data/generated/lib/runtype/skills/types/get_v1skills_id_bindings_request.rb +11 -0
- data/generated/lib/runtype/skills/types/get_v1skills_id_bindings_response.rb +11 -0
- data/generated/lib/runtype/skills/types/get_v1skills_id_bindings_response_data_item.rb +25 -0
- data/generated/lib/runtype/skills/types/get_v1skills_id_bindings_response_data_item_agent.rb +15 -0
- data/generated/lib/runtype/surfaces/client.rb +48 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_response_data_item_inbound.rb +16 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_response_data_item_inbound_channel_overrides_value.rb +13 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_response_data_item_inbound_channel_overrides_value_channel_response_mode.rb +15 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_response_data_item_inbound_channel_overrides_value_eagerness.rb +15 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_response_data_item_inbound_channel_response_mode.rb +15 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_response_data_item_inbound_context_backfill.rb +19 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_response_data_item_inbound_context_backfill_mode.rb +15 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_response_data_item_inbound_eagerness.rb +15 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_response_data_item_inbound_keywords.rb +15 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_response_data_item_inbound_on_uncertain.rb +14 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_surface_id_channel_context_request.rb +13 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_surface_id_channel_context_response.rb +19 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_surface_id_channel_context_response_provider.rb +15 -0
- data/generated/lib/runtype/surfaces/types/get_v1surfaces_surface_id_response.rb +2 -0
- data/generated/lib/runtype/telemetry/client.rb +58 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_request.rb +11 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_response.rb +27 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_response_admission.rb +17 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_response_errors_item.rb +13 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_response_status.rb +16 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_response_tiers.rb +15 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_response_tiers_canonical.rb +21 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_response_tiers_hot.rb +20 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_response_tiers_raw.rb +21 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_response_totals.rb +27 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_response_trace.rb +23 -0
- data/generated/lib/runtype/telemetry/types/get_otlp_ingest_health_response_trace_delivery.rb +23 -0
- data/generated/lib/runtype/tools/types/post_v1tools_flows_flow_id_convert_to_tool_response_validation.rb +2 -0
- data/generated/lib/runtype/tools/types/post_v1tools_id_execute_request.rb +2 -0
- data/generated/lib/runtype/tools/types/post_v1tools_id_execute_response.rb +3 -7
- data/generated/lib/runtype/tools/types/post_v1tools_id_execute_response_error.rb +19 -0
- data/generated/lib/runtype/tools/types/{post_v1tools_id_execute_response_status.rb → post_v1tools_id_execute_response_error_status.rb} +1 -1
- data/generated/lib/runtype/tools/types/post_v1tools_id_test_response.rb +3 -7
- data/generated/lib/runtype/tools/types/post_v1tools_id_test_response_error.rb +19 -0
- data/generated/lib/runtype/tools/types/{post_v1tools_id_test_response_status.rb → post_v1tools_id_test_response_error_status.rb} +1 -1
- data/generated/lib/runtype/tools/types/post_v1tools_response_validation.rb +2 -0
- data/generated/lib/runtype/tools/types/put_v1tools_id_response_validation.rb +2 -0
- data/generated/lib/runtype/types/agent_ensure_capability.rb +21 -0
- data/generated/lib/runtype/types/agent_ensure_capability_change.rb +17 -0
- data/generated/lib/runtype/types/agent_ensure_capability_change_action.rb +14 -0
- data/generated/lib/runtype/types/agent_ensure_capability_change_kind.rb +13 -0
- data/generated/lib/runtype/types/agent_ensure_response_changed_keys.rb +4 -0
- data/generated/lib/runtype/types/agent_ensure_response_version_id.rb +4 -0
- data/generated/lib/runtype/types/agent_ensure_skill_binding.rb +13 -0
- data/generated/lib/runtype/types/agent_ensure_skill_binding_change.rb +17 -0
- data/generated/lib/runtype/types/agent_ensure_skill_binding_change_action.rb +14 -0
- data/generated/lib/runtype/types/agent_pull_response.rb +4 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_sandbox.rb +2 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_sandbox_coding_agents_item.rb +11 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_tools.rb +2 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_tools_runtime_tools_item.rb +4 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_tools_tool_search.rb +13 -0
- data/generated/lib/runtype/types/builtin_tool_execute_result.rb +15 -0
- data/generated/lib/runtype/types/channel_context_decision.rb +17 -0
- data/generated/lib/runtype/types/channel_context_decision_capability.rb +15 -0
- data/generated/lib/runtype/types/channel_context_decision_capability_outcome.rb +14 -0
- data/generated/lib/runtype/types/channel_context_decision_decision.rb +14 -0
- data/generated/lib/runtype/types/channel_context_decision_failure.rb +17 -0
- data/generated/lib/runtype/types/channel_context_label.rb +17 -0
- data/generated/lib/runtype/types/channel_context_label_label.rb +13 -0
- data/generated/lib/runtype/types/channel_context_label_source.rb +15 -0
- data/generated/lib/runtype/types/channel_context_message.rb +25 -0
- data/generated/lib/runtype/types/channel_context_message_author_kind.rb +13 -0
- data/generated/lib/runtype/types/collection_lookup_failed_error.rb +17 -0
- data/generated/lib/runtype/types/collection_lookup_failed_error_code.rb +11 -0
- data/generated/lib/runtype/types/context_blocks.rb +11 -0
- data/generated/lib/runtype/types/context_blocks_blocks_item.rb +13 -0
- data/generated/lib/runtype/types/context_manifest_entry.rb +27 -0
- data/generated/lib/runtype/types/context_manifest_entry_category.rb +16 -0
- data/generated/lib/runtype/types/context_manifest_entry_flags_item.rb +13 -0
- data/generated/lib/runtype/types/context_manifest_entry_kind.rb +19 -0
- data/generated/lib/runtype/types/context_manifest_entry_role.rb +14 -0
- data/generated/lib/runtype/types/context_snapshot.rb +33 -0
- data/generated/lib/runtype/types/context_snapshot_removed_since_previous_item.rb +11 -0
- data/generated/lib/runtype/types/context_snapshot_removed_since_previous_item_reason.rb +14 -0
- data/generated/lib/runtype/types/context_snapshot_reported.rb +13 -0
- data/generated/lib/runtype/types/context_snapshots.rb +13 -0
- data/generated/lib/runtype/types/conversation_trace.rb +17 -0
- data/generated/lib/runtype/types/conversation_trace_executions_item.rb +13 -0
- data/generated/lib/runtype/types/conversation_trace_produced_by.rb +38 -0
- data/generated/lib/runtype/types/conversation_trace_produced_by_source.rb +12 -0
- data/generated/lib/runtype/types/conversation_trace_truncation.rb +13 -0
- data/generated/lib/runtype/types/conversation_trace_truncation_reason.rb +11 -0
- data/generated/lib/runtype/types/create_voice_agent_draft_response.rb +11 -0
- data/generated/lib/runtype/types/declare_product_stack_response.rb +15 -0
- data/generated/lib/runtype/types/declare_product_stack_response_source.rb +13 -0
- data/generated/lib/runtype/types/dispatch_agent_json_response.rb +6 -0
- data/generated/lib/runtype/types/dispatch_agent_json_response_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype/types/dispatch_detached_tool_output_json_response.rb +6 -0
- data/generated/lib/runtype/types/dispatch_detached_tool_output_json_response_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype/types/dispatch_tool_output_continuation_json_response.rb +6 -0
- data/generated/lib/runtype/types/dispatch_tool_output_continuation_json_response_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype/types/eval_run_scores_response.rb +2 -0
- data/generated/lib/runtype/types/eval_run_scores_response_cases_item.rb +2 -0
- data/generated/lib/runtype/types/eval_run_scores_response_cases_item_failure_kind.rb +11 -0
- data/generated/lib/runtype/types/eval_suite_detail.rb +2 -0
- data/generated/lib/runtype/types/eval_suite_detail_warnings_item.rb +13 -0
- data/generated/lib/runtype/types/eval_suite_latest_run.rb +2 -0
- data/generated/lib/runtype/types/eval_suite_summary.rb +2 -0
- data/generated/lib/runtype/types/eval_suite_summary_warnings_item.rb +13 -0
- data/generated/lib/runtype/types/execution_stream_event.rb +4 -0
- data/generated/lib/runtype/types/execution_stream_event_model_call_complete.rb +41 -0
- data/generated/lib/runtype/types/execution_stream_event_model_call_complete_attributes_value.rb +15 -0
- data/generated/lib/runtype/types/execution_stream_event_model_call_complete_subagent.rb +13 -0
- data/generated/lib/runtype/types/execution_stream_event_model_call_complete_tokens.rb +17 -0
- data/generated/lib/runtype/types/execution_stream_event_model_call_start.rb +29 -0
- data/generated/lib/runtype/types/execution_stream_event_model_call_start_subagent.rb +13 -0
- data/generated/lib/runtype/types/execution_stream_event_turn_complete.rb +2 -0
- data/generated/lib/runtype/types/execution_stream_event_turn_complete_attributes_value.rb +15 -0
- data/generated/lib/runtype/types/external_observed_approvals.rb +17 -0
- data/generated/lib/runtype/types/external_observed_approvals_availability.rb +11 -0
- data/generated/lib/runtype/types/external_observed_approvals_lifecycles_item.rb +23 -0
- data/generated/lib/runtype/types/external_observed_approvals_lifecycles_item_decision.rb +14 -0
- data/generated/lib/runtype/types/external_observed_approvals_lifecycles_item_observations_item.rb +15 -0
- data/generated/lib/runtype/types/external_observed_approvals_lifecycles_item_observations_item_source.rb +15 -0
- data/generated/lib/runtype/types/external_observed_approvals_lifecycles_item_observations_item_source_attribute.rb +11 -0
- data/generated/lib/runtype/types/external_observed_approvals_lifecycles_item_observations_item_source_kind.rb +11 -0
- data/generated/lib/runtype/types/external_observed_approvals_lifecycles_item_observations_item_state.rb +13 -0
- data/generated/lib/runtype/types/external_observed_approvals_lifecycles_item_raw_states_item.rb +13 -0
- data/generated/lib/runtype/types/identity_assertion_jwks.rb +9 -0
- data/generated/lib/runtype/types/identity_assertion_public_jwk.rb +21 -0
- data/generated/lib/runtype/types/judgment_calibration_record.rb +23 -0
- data/generated/lib/runtype/types/judgment_calibration_record_source.rb +12 -0
- data/generated/lib/runtype/types/list_product_comments_response.rb +13 -0
- data/generated/lib/runtype/types/product_canvas_block.rb +23 -0
- data/generated/lib/runtype/types/product_comment.rb +23 -0
- data/generated/lib/runtype/types/product_comment_author_kind.rb +12 -0
- data/generated/lib/runtype/types/product_comment_thread.rb +27 -0
- data/generated/lib/runtype/types/product_declared_stack.rb +15 -0
- data/generated/lib/runtype/types/product_pull_response_definition_spec_internal_docs_resources_item.rb +6 -0
- data/generated/lib/runtype/types/product_stack.rb +18 -0
- data/generated/lib/runtype/types/product_stack_declared.rb +14 -0
- data/generated/lib/runtype/types/product_stack_detected.rb +12 -0
- data/generated/lib/runtype/types/product_stack_item.rb +21 -0
- data/generated/lib/runtype/types/question_set.rb +25 -0
- data/generated/lib/runtype/types/question_set_error.rb +13 -0
- data/generated/lib/runtype/types/question_set_list_item.rb +29 -0
- data/generated/lib/runtype/types/question_set_version.rb +27 -0
- data/generated/lib/runtype/types/resolved_question_set.rb +21 -0
- data/generated/lib/runtype/types/resolved_question_set_calibration.rb +17 -0
- data/generated/lib/runtype/types/resolved_question_set_calibration_source.rb +12 -0
- data/generated/lib/runtype/types/run_eval_response.rb +2 -0
- data/generated/lib/runtype/types/run_eval_response_cases_item.rb +2 -0
- data/generated/lib/runtype/types/run_eval_response_cases_item_failure_kind.rb +11 -0
- data/generated/lib/runtype/types/run_list_pagination.rb +15 -0
- data/generated/lib/runtype/types/run_list_row.rb +107 -0
- data/generated/lib/runtype/types/run_list_row_completeness.rb +15 -0
- data/generated/lib/runtype/types/run_list_row_kind.rb +12 -0
- data/generated/lib/runtype/types/run_list_row_origin.rb +13 -0
- data/generated/lib/runtype/types/run_list_row_source.rb +12 -0
- data/generated/lib/runtype/types/run_list_row_status.rb +16 -0
- data/generated/lib/runtype/types/runtime_exported_skill.rb +21 -0
- data/generated/lib/runtype/types/schedule_ensure_conflict.rb +17 -0
- data/generated/lib/runtype/types/schedule_ensure_conflict_code.rb +12 -0
- data/generated/lib/runtype/types/schedule_ensure_definition.rb +27 -0
- data/generated/lib/runtype/types/schedule_ensure_definition_execution_options.rb +27 -0
- data/generated/lib/runtype/types/schedule_ensure_definition_execution_options_logging_policy.rb +13 -0
- data/generated/lib/runtype/types/schedule_ensure_definition_trigger.rb +15 -0
- data/generated/lib/runtype/types/schedule_ensure_definition_trigger_type.rb +12 -0
- data/generated/lib/runtype/types/schedule_ensure_hash_mismatch.rb +13 -0
- data/generated/lib/runtype/types/schedule_ensure_hash_mismatch_code.rb +11 -0
- data/generated/lib/runtype/types/schedule_ensure_response.rb +15 -0
- data/generated/lib/runtype/types/schedule_ensure_response_changed_keys.rb +19 -0
- data/generated/lib/runtype/types/schedule_ensure_response_changed_keys_changes.rb +13 -0
- data/generated/lib/runtype/types/schedule_ensure_response_changed_keys_result.rb +11 -0
- data/generated/lib/runtype/types/schedule_ensure_response_one.rb +9 -0
- data/generated/lib/runtype/types/schedule_ensure_response_one_result.rb +11 -0
- data/generated/lib/runtype/types/schedule_ensure_response_zero.rb +13 -0
- data/generated/lib/runtype/types/schedule_ensure_response_zero_result.rb +13 -0
- data/generated/lib/runtype/types/schedule_ensure_target.rb +15 -0
- data/generated/lib/runtype/types/schedule_pull_response.rb +17 -0
- data/generated/lib/runtype/types/schedule_run_link.rb +15 -0
- data/generated/lib/runtype/types/schedule_run_link_kind.rb +13 -0
- data/generated/lib/runtype/types/tool_execute_error.rb +13 -0
- data/generated/lib/runtype/types/trace_log_entry.rb +145 -0
- data/generated/lib/runtype/types/trace_log_entry_estimated_context_breakdown.rb +15 -0
- data/generated/lib/runtype/types/trace_log_entry_estimated_context_breakdown_categories_value.rb +11 -0
- data/generated/lib/runtype/types/trace_log_entry_estimated_cost.rb +14 -0
- data/generated/lib/runtype/types/trace_log_entry_level.rb +14 -0
- data/generated/lib/runtype/types/trace_log_entry_logging_policy.rb +11 -0
- data/generated/lib/runtype/types/trace_log_entry_otlp_incomplete_activity.rb +13 -0
- data/generated/lib/runtype/types/trace_log_entry_otlp_instrumentation_warning.rb +11 -0
- data/generated/lib/runtype/types/trace_log_entry_otlp_record_kind.rb +13 -0
- data/generated/lib/runtype/types/trace_log_entry_status.rb +16 -0
- data/generated/lib/runtype/types/trace_log_entry_type.rb +19 -0
- data/generated/lib/runtype/types/trace_node.rb +35 -0
- data/generated/lib/runtype/types/trace_node_lifecycle.rb +14 -0
- data/generated/lib/runtype/types/trace_node_node_type.rb +16 -0
- data/generated/lib/runtype/types/trace_produced_by.rb +37 -0
- data/generated/lib/runtype/types/trace_produced_by_source.rb +12 -0
- data/generated/lib/runtype/types/trace_tree.rb +41 -0
- data/generated/lib/runtype/types/trace_tree_availability.rb +13 -0
- data/generated/lib/runtype/types/trace_tree_availability_reason.rb +11 -0
- data/generated/lib/runtype/types/trace_tree_child_truncation.rb +15 -0
- data/generated/lib/runtype/types/trace_tree_child_truncation_reason.rb +11 -0
- data/generated/lib/runtype/types/trace_tree_source.rb +13 -0
- data/generated/lib/runtype/types/trace_tree_totals_source.rb +12 -0
- data/generated/lib/runtype/types/trace_tree_truncation.rb +13 -0
- data/generated/lib/runtype/types/trace_tree_truncation_reason.rb +11 -0
- data/generated/lib/runtype/users/types/get_v1users_profile_response_features.rb +2 -0
- data/generated/lib/runtype.rb +3506 -2910
- data/lib/runtype/agent_ensure.rb +64 -9
- data/lib/runtype/client.rb +1 -0
- data/lib/runtype/config_ensure.rb +272 -0
- data/lib/runtype/content_hash.rb +257 -0
- data/lib/runtype/detached_follow.rb +12 -0
- data/lib/runtype/errors.rb +42 -8
- data/lib/runtype/local_tool_runner.rb +3 -1
- data/lib/runtype/sdk_version.rb +1 -1
- data/lib/runtype.rb +2 -0
- metadata +370 -11
- data/generated/lib/runtype/agents/types/get_v1agents_id_export_runtime_response.rb +0 -25
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_agent_version.rb +0 -17
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_pending_approval.rb +0 -27
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
class Client
|
|
6
|
+
# @param client [Runtype::Internal::Http::RawClient]
|
|
7
|
+
#
|
|
8
|
+
# @return [void]
|
|
9
|
+
def initialize(client:)
|
|
10
|
+
@client = client
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# List the organization's question sets with cursor pagination, newest first.
|
|
14
|
+
#
|
|
15
|
+
# @param request_options [Hash]
|
|
16
|
+
# @param params [Hash]
|
|
17
|
+
# @option request_options [String] :base_url
|
|
18
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
19
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
20
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
21
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
22
|
+
# @option params [String, nil] :limit
|
|
23
|
+
# @option params [String, nil] :cursor
|
|
24
|
+
# @option params [Runtype::QuestionSets::Types::GetV1QuestionSetsRequestDirection, nil] :direction
|
|
25
|
+
# @option params [String, nil] :include_count
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# client.question_sets.list_question_sets
|
|
29
|
+
#
|
|
30
|
+
# @return [Runtype::QuestionSets::Types::GetV1QuestionSetsResponse]
|
|
31
|
+
def list_question_sets(request_options: {}, **params)
|
|
32
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
33
|
+
query_params = {}
|
|
34
|
+
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
35
|
+
query_params["cursor"] = params[:cursor] if params.key?(:cursor)
|
|
36
|
+
query_params["direction"] = params[:direction] if params.key?(:direction)
|
|
37
|
+
query_params["includeCount"] = params[:include_count] if params.key?(:include_count)
|
|
38
|
+
|
|
39
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
40
|
+
base_url: request_options[:base_url],
|
|
41
|
+
method: "GET",
|
|
42
|
+
path: "v1/question-sets",
|
|
43
|
+
query: query_params,
|
|
44
|
+
request_options: request_options
|
|
45
|
+
)
|
|
46
|
+
begin
|
|
47
|
+
response = @client.send(request)
|
|
48
|
+
rescue Net::HTTPRequestTimeout
|
|
49
|
+
raise Runtype::Errors::TimeoutError
|
|
50
|
+
end
|
|
51
|
+
code = response.code.to_i
|
|
52
|
+
if code.between?(200, 299)
|
|
53
|
+
Runtype::QuestionSets::Types::GetV1QuestionSetsResponse.load(response.body)
|
|
54
|
+
else
|
|
55
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
56
|
+
raise error_class.new(response.body, code: code)
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Create a question set with its first version as a draft. Publish the version before a tool, step or grader can
|
|
61
|
+
# reference it.
|
|
62
|
+
#
|
|
63
|
+
# @param request_options [Hash]
|
|
64
|
+
# @param params [Runtype::QuestionSets::Types::PostV1QuestionSetsRequest]
|
|
65
|
+
# @option request_options [String] :base_url
|
|
66
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
67
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
68
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
69
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
70
|
+
#
|
|
71
|
+
# @example
|
|
72
|
+
# client.question_sets.create_a_question_set(
|
|
73
|
+
# name: "name",
|
|
74
|
+
# questions: {
|
|
75
|
+
# key: "value"
|
|
76
|
+
# },
|
|
77
|
+
# slug: "slug"
|
|
78
|
+
# )
|
|
79
|
+
#
|
|
80
|
+
# @return [Runtype::QuestionSets::Types::PostV1QuestionSetsResponse]
|
|
81
|
+
def create_a_question_set(request_options: {}, **params)
|
|
82
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
83
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
84
|
+
base_url: request_options[:base_url],
|
|
85
|
+
method: "POST",
|
|
86
|
+
path: "v1/question-sets",
|
|
87
|
+
body: Runtype::QuestionSets::Types::PostV1QuestionSetsRequest.new(params).to_h,
|
|
88
|
+
request_options: request_options
|
|
89
|
+
)
|
|
90
|
+
begin
|
|
91
|
+
response = @client.send(request)
|
|
92
|
+
rescue Net::HTTPRequestTimeout
|
|
93
|
+
raise Runtype::Errors::TimeoutError
|
|
94
|
+
end
|
|
95
|
+
code = response.code.to_i
|
|
96
|
+
if code.between?(200, 299)
|
|
97
|
+
Runtype::QuestionSets::Types::PostV1QuestionSetsResponse.load(response.body)
|
|
98
|
+
else
|
|
99
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
100
|
+
raise error_class.new(response.body, code: code)
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# A question set with its versions, newest first.
|
|
105
|
+
#
|
|
106
|
+
# @param request_options [Hash]
|
|
107
|
+
# @param params [Hash]
|
|
108
|
+
# @option request_options [String] :base_url
|
|
109
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
110
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
111
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
112
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
113
|
+
# @option params [String] :id
|
|
114
|
+
#
|
|
115
|
+
# @example
|
|
116
|
+
# client.question_sets.get_a_question_set(id: "id")
|
|
117
|
+
#
|
|
118
|
+
# @return [Runtype::QuestionSets::Types::GetV1QuestionSetsIDResponse]
|
|
119
|
+
def get_a_question_set(request_options: {}, **params)
|
|
120
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
121
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
122
|
+
base_url: request_options[:base_url],
|
|
123
|
+
method: "GET",
|
|
124
|
+
path: "v1/question-sets/#{URI.encode_uri_component(params[:id].to_s)}",
|
|
125
|
+
request_options: request_options
|
|
126
|
+
)
|
|
127
|
+
begin
|
|
128
|
+
response = @client.send(request)
|
|
129
|
+
rescue Net::HTTPRequestTimeout
|
|
130
|
+
raise Runtype::Errors::TimeoutError
|
|
131
|
+
end
|
|
132
|
+
code = response.code.to_i
|
|
133
|
+
if code.between?(200, 299)
|
|
134
|
+
Runtype::QuestionSets::Types::GetV1QuestionSetsIDResponse.load(response.body)
|
|
135
|
+
else
|
|
136
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
137
|
+
raise error_class.new(response.body, code: code)
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Update the name or description, and append a new draft version when `questions`, `inputMapping` or `model` is
|
|
142
|
+
# present. Fields left out of a new version carry over from the latest version. No existing version is changed,
|
|
143
|
+
# and the slug is fixed.
|
|
144
|
+
#
|
|
145
|
+
# @param request_options [Hash]
|
|
146
|
+
# @param params [Runtype::QuestionSets::Types::PutV1QuestionSetsIDRequest]
|
|
147
|
+
# @option request_options [String] :base_url
|
|
148
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
149
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
150
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
151
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
152
|
+
# @option params [String] :id
|
|
153
|
+
#
|
|
154
|
+
# @example
|
|
155
|
+
# client.question_sets.update_a_question_set(id: "id")
|
|
156
|
+
#
|
|
157
|
+
# @return [Runtype::QuestionSets::Types::PutV1QuestionSetsIDResponse]
|
|
158
|
+
def update_a_question_set(request_options: {}, **params)
|
|
159
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
160
|
+
request_data = Runtype::QuestionSets::Types::PutV1QuestionSetsIDRequest.new(params).to_h
|
|
161
|
+
non_body_param_names = %w[id]
|
|
162
|
+
body = request_data.except(*non_body_param_names)
|
|
163
|
+
|
|
164
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
165
|
+
base_url: request_options[:base_url],
|
|
166
|
+
method: "PUT",
|
|
167
|
+
path: "v1/question-sets/#{URI.encode_uri_component(params[:id].to_s)}",
|
|
168
|
+
body: body,
|
|
169
|
+
request_options: request_options
|
|
170
|
+
)
|
|
171
|
+
begin
|
|
172
|
+
response = @client.send(request)
|
|
173
|
+
rescue Net::HTTPRequestTimeout
|
|
174
|
+
raise Runtype::Errors::TimeoutError
|
|
175
|
+
end
|
|
176
|
+
code = response.code.to_i
|
|
177
|
+
if code.between?(200, 299)
|
|
178
|
+
Runtype::QuestionSets::Types::PutV1QuestionSetsIDResponse.load(response.body)
|
|
179
|
+
else
|
|
180
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
181
|
+
raise error_class.new(response.body, code: code)
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# The question set exactly as an execution receives it: the current published version (or the published `version`
|
|
186
|
+
# named), with its current calibration. A draft-only set answers 404 QUESTION_SET_UNRESOLVED.
|
|
187
|
+
#
|
|
188
|
+
# @param request_options [Hash]
|
|
189
|
+
# @param params [Hash]
|
|
190
|
+
# @option request_options [String] :base_url
|
|
191
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
192
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
193
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
194
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
195
|
+
# @option params [String] :id
|
|
196
|
+
# @option params [Integer, nil] :version
|
|
197
|
+
#
|
|
198
|
+
# @example
|
|
199
|
+
# client.question_sets.resolve_a_question_set(id: "id")
|
|
200
|
+
#
|
|
201
|
+
# @return [Runtype::Types::ResolvedQuestionSet]
|
|
202
|
+
def resolve_a_question_set(request_options: {}, **params)
|
|
203
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
204
|
+
query_params = {}
|
|
205
|
+
query_params["version"] = params[:version] if params.key?(:version)
|
|
206
|
+
|
|
207
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
208
|
+
base_url: request_options[:base_url],
|
|
209
|
+
method: "GET",
|
|
210
|
+
path: "v1/question-sets/#{URI.encode_uri_component(params[:id].to_s)}/resolved",
|
|
211
|
+
query: query_params,
|
|
212
|
+
request_options: request_options
|
|
213
|
+
)
|
|
214
|
+
begin
|
|
215
|
+
response = @client.send(request)
|
|
216
|
+
rescue Net::HTTPRequestTimeout
|
|
217
|
+
raise Runtype::Errors::TimeoutError
|
|
218
|
+
end
|
|
219
|
+
code = response.code.to_i
|
|
220
|
+
if code.between?(200, 299)
|
|
221
|
+
Runtype::Types::ResolvedQuestionSet.load(response.body)
|
|
222
|
+
else
|
|
223
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
224
|
+
raise error_class.new(response.body, code: code)
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# Every version, newest first.
|
|
229
|
+
#
|
|
230
|
+
# @param request_options [Hash]
|
|
231
|
+
# @param params [Hash]
|
|
232
|
+
# @option request_options [String] :base_url
|
|
233
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
234
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
235
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
236
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
237
|
+
# @option params [String] :id
|
|
238
|
+
#
|
|
239
|
+
# @example
|
|
240
|
+
# client.question_sets.list_a_question_sets_versions(id: "id")
|
|
241
|
+
#
|
|
242
|
+
# @return [Runtype::QuestionSets::Types::GetV1QuestionSetsIDVersionsResponse]
|
|
243
|
+
def list_a_question_sets_versions(request_options: {}, **params)
|
|
244
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
245
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
246
|
+
base_url: request_options[:base_url],
|
|
247
|
+
method: "GET",
|
|
248
|
+
path: "v1/question-sets/#{URI.encode_uri_component(params[:id].to_s)}/versions",
|
|
249
|
+
request_options: request_options
|
|
250
|
+
)
|
|
251
|
+
begin
|
|
252
|
+
response = @client.send(request)
|
|
253
|
+
rescue Net::HTTPRequestTimeout
|
|
254
|
+
raise Runtype::Errors::TimeoutError
|
|
255
|
+
end
|
|
256
|
+
code = response.code.to_i
|
|
257
|
+
if code.between?(200, 299)
|
|
258
|
+
Runtype::QuestionSets::Types::GetV1QuestionSetsIDVersionsResponse.load(response.body)
|
|
259
|
+
else
|
|
260
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
261
|
+
raise error_class.new(response.body, code: code)
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# The calibration history of one version, newest first, with cursor pagination.
|
|
266
|
+
#
|
|
267
|
+
# @param request_options [Hash]
|
|
268
|
+
# @param params [Hash]
|
|
269
|
+
# @option request_options [String] :base_url
|
|
270
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
271
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
272
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
273
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
274
|
+
# @option params [String] :id
|
|
275
|
+
# @option params [Integer] :version_number
|
|
276
|
+
# @option params [String, nil] :limit
|
|
277
|
+
# @option params [String, nil] :cursor
|
|
278
|
+
#
|
|
279
|
+
# @example
|
|
280
|
+
# client.question_sets.list_a_question_set_versions_calibrations(
|
|
281
|
+
# id: "id",
|
|
282
|
+
# version_number: 1
|
|
283
|
+
# )
|
|
284
|
+
#
|
|
285
|
+
# @return [Runtype::QuestionSets::Types::GetV1QuestionSetsIDVersionsVersionNumberCalibrationsResponse]
|
|
286
|
+
def list_a_question_set_versions_calibrations(request_options: {}, **params)
|
|
287
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
288
|
+
query_params = {}
|
|
289
|
+
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
290
|
+
query_params["cursor"] = params[:cursor] if params.key?(:cursor)
|
|
291
|
+
|
|
292
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
293
|
+
base_url: request_options[:base_url],
|
|
294
|
+
method: "GET",
|
|
295
|
+
path: "v1/question-sets/#{URI.encode_uri_component(params[:id].to_s)}/versions/#{URI.encode_uri_component(params[:version_number].to_s)}/calibrations",
|
|
296
|
+
query: query_params,
|
|
297
|
+
request_options: request_options
|
|
298
|
+
)
|
|
299
|
+
begin
|
|
300
|
+
response = @client.send(request)
|
|
301
|
+
rescue Net::HTTPRequestTimeout
|
|
302
|
+
raise Runtype::Errors::TimeoutError
|
|
303
|
+
end
|
|
304
|
+
code = response.code.to_i
|
|
305
|
+
if code.between?(200, 299)
|
|
306
|
+
Runtype::QuestionSets::Types::GetV1QuestionSetsIDVersionsVersionNumberCalibrationsResponse.load(response.body)
|
|
307
|
+
else
|
|
308
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
309
|
+
raise error_class.new(response.body, code: code)
|
|
310
|
+
end
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# Append a calibration measurement to a published version and make it the current one. Calibrations are never
|
|
314
|
+
# edited or deleted, so every past decision keeps the calibration it was taken under.
|
|
315
|
+
#
|
|
316
|
+
# @param request_options [Hash]
|
|
317
|
+
# @param params [Runtype::QuestionSets::Types::PostV1QuestionSetsIDVersionsVersionNumberCalibrationsRequest]
|
|
318
|
+
# @option request_options [String] :base_url
|
|
319
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
320
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
321
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
322
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
323
|
+
# @option params [String] :id
|
|
324
|
+
# @option params [Integer] :version_number
|
|
325
|
+
#
|
|
326
|
+
# @example
|
|
327
|
+
# client.question_sets.record_a_calibration_for_a_question_set_version(
|
|
328
|
+
# id: "id",
|
|
329
|
+
# version_number: 1,
|
|
330
|
+
# record: {
|
|
331
|
+
# labeled_set_ref: "labeledSetRef",
|
|
332
|
+
# measured_model: "measuredModel",
|
|
333
|
+
# per_question: {
|
|
334
|
+
# key: {
|
|
335
|
+
# ece: 1.1,
|
|
336
|
+
# handled_rate: 1.1,
|
|
337
|
+
# held_out_accuracy: 1.1,
|
|
338
|
+
# target_accuracy: 1.1,
|
|
339
|
+
# threshold: 1.1
|
|
340
|
+
# }
|
|
341
|
+
# }
|
|
342
|
+
# }
|
|
343
|
+
# )
|
|
344
|
+
#
|
|
345
|
+
# @return [Runtype::QuestionSets::Types::PostV1QuestionSetsIDVersionsVersionNumberCalibrationsResponse]
|
|
346
|
+
def record_a_calibration_for_a_question_set_version(request_options: {}, **params)
|
|
347
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
348
|
+
request_data = Runtype::QuestionSets::Types::PostV1QuestionSetsIDVersionsVersionNumberCalibrationsRequest.new(params).to_h
|
|
349
|
+
non_body_param_names = %w[id versionNumber]
|
|
350
|
+
body = request_data.except(*non_body_param_names)
|
|
351
|
+
|
|
352
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
353
|
+
base_url: request_options[:base_url],
|
|
354
|
+
method: "POST",
|
|
355
|
+
path: "v1/question-sets/#{URI.encode_uri_component(params[:id].to_s)}/versions/#{URI.encode_uri_component(params[:version_number].to_s)}/calibrations",
|
|
356
|
+
body: body,
|
|
357
|
+
request_options: request_options
|
|
358
|
+
)
|
|
359
|
+
begin
|
|
360
|
+
response = @client.send(request)
|
|
361
|
+
rescue Net::HTTPRequestTimeout
|
|
362
|
+
raise Runtype::Errors::TimeoutError
|
|
363
|
+
end
|
|
364
|
+
code = response.code.to_i
|
|
365
|
+
if code.between?(200, 299)
|
|
366
|
+
Runtype::QuestionSets::Types::PostV1QuestionSetsIDVersionsVersionNumberCalibrationsResponse.load(response.body)
|
|
367
|
+
else
|
|
368
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
369
|
+
raise error_class.new(response.body, code: code)
|
|
370
|
+
end
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Freeze the version and make it the one executions resolve when they name no version. Publishing an
|
|
374
|
+
# already-published version moves the current pointer back to it.
|
|
375
|
+
#
|
|
376
|
+
# @param request_options [Hash]
|
|
377
|
+
# @param params [Hash]
|
|
378
|
+
# @option request_options [String] :base_url
|
|
379
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
380
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
381
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
382
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
383
|
+
# @option params [String] :id
|
|
384
|
+
# @option params [Integer] :version_number
|
|
385
|
+
#
|
|
386
|
+
# @example
|
|
387
|
+
# client.question_sets.publish_a_question_set_version(
|
|
388
|
+
# id: "id",
|
|
389
|
+
# version_number: 1
|
|
390
|
+
# )
|
|
391
|
+
#
|
|
392
|
+
# @return [Runtype::QuestionSets::Types::PostV1QuestionSetsIDVersionsVersionNumberPublishResponse]
|
|
393
|
+
def publish_a_question_set_version(request_options: {}, **params)
|
|
394
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
395
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
396
|
+
base_url: request_options[:base_url],
|
|
397
|
+
method: "POST",
|
|
398
|
+
path: "v1/question-sets/#{URI.encode_uri_component(params[:id].to_s)}/versions/#{URI.encode_uri_component(params[:version_number].to_s)}/publish",
|
|
399
|
+
request_options: request_options
|
|
400
|
+
)
|
|
401
|
+
begin
|
|
402
|
+
response = @client.send(request)
|
|
403
|
+
rescue Net::HTTPRequestTimeout
|
|
404
|
+
raise Runtype::Errors::TimeoutError
|
|
405
|
+
end
|
|
406
|
+
code = response.code.to_i
|
|
407
|
+
if code.between?(200, 299)
|
|
408
|
+
Runtype::QuestionSets::Types::PostV1QuestionSetsIDVersionsVersionNumberPublishResponse.load(response.body)
|
|
409
|
+
else
|
|
410
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
411
|
+
raise error_class.new(response.body, code: code)
|
|
412
|
+
end
|
|
413
|
+
end
|
|
414
|
+
end
|
|
415
|
+
end
|
|
416
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1QuestionSetsIDResolvedRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :version, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1QuestionSetsIDResponse < Internal::Types::Model
|
|
7
|
+
field :question_set, -> { Runtype::Types::QuestionSet }, optional: false, nullable: false, api_name: "questionSet"
|
|
8
|
+
|
|
9
|
+
field :versions, -> { Internal::Types::Array[Runtype::Types::QuestionSetVersion] }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1QuestionSetsIDVersionsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Runtype::Types::QuestionSetVersion] }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1QuestionSetsIDVersionsVersionNumberCalibrationsRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :version_number, -> { Integer }, optional: false, nullable: false, api_name: "versionNumber"
|
|
10
|
+
|
|
11
|
+
field :limit, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :cursor, -> { String }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1QuestionSetsIDVersionsVersionNumberCalibrationsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Runtype::Types::JudgmentCalibrationRecord] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :pagination, -> { Runtype::Types::Pagination }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1QuestionSetsRequest < Internal::Types::Model
|
|
7
|
+
field :limit, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :cursor, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :direction, -> { Runtype::QuestionSets::Types::GetV1QuestionSetsRequestDirection }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :include_count, -> { String }, optional: true, nullable: false, api_name: "includeCount"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1QuestionSetsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Runtype::Types::QuestionSetListItem] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :pagination, -> { Runtype::Types::Pagination }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1QuestionSetsIDVersionsVersionNumberCalibrationsRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :version_number, -> { Integer }, optional: false, nullable: false, api_name: "versionNumber"
|
|
10
|
+
|
|
11
|
+
field :eval_run_id, -> { String }, optional: true, nullable: false, api_name: "evalRunId"
|
|
12
|
+
|
|
13
|
+
field :record, -> { Runtype::QuestionSets::Types::PostV1QuestionSetsIDVersionsVersionNumberCalibrationsRequestRecord }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1QuestionSetsIDVersionsVersionNumberCalibrationsRequestRecord < Internal::Types::Model
|
|
7
|
+
field :labeled_set_ref, -> { String }, optional: false, nullable: false, api_name: "labeledSetRef"
|
|
8
|
+
|
|
9
|
+
field :measured_model, -> { String }, optional: false, nullable: false, api_name: "measuredModel"
|
|
10
|
+
|
|
11
|
+
field :per_question, -> { Internal::Types::Hash[String, Runtype::QuestionSets::Types::PostV1QuestionSetsIDVersionsVersionNumberCalibrationsRequestRecordPerQuestionValue] }, optional: false, nullable: false, api_name: "perQuestion"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1QuestionSetsIDVersionsVersionNumberCalibrationsRequestRecordPerQuestionValue < Internal::Types::Model
|
|
7
|
+
field :ece, -> { Integer }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :handled_rate, -> { Integer }, optional: false, nullable: false, api_name: "handledRate"
|
|
10
|
+
|
|
11
|
+
field :held_out_accuracy, -> { Integer }, optional: false, nullable: false, api_name: "heldOutAccuracy"
|
|
12
|
+
|
|
13
|
+
field :target_accuracy, -> { Integer }, optional: false, nullable: false, api_name: "targetAccuracy"
|
|
14
|
+
|
|
15
|
+
field :threshold, -> { Integer }, optional: false, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1QuestionSetsIDVersionsVersionNumberCalibrationsResponse < Internal::Types::Model
|
|
7
|
+
field :calibration, -> { Runtype::Types::JudgmentCalibrationRecord }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :version, -> { Runtype::Types::QuestionSetVersion }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1QuestionSetsIDVersionsVersionNumberPublishRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :version_number, -> { Integer }, optional: false, nullable: false, api_name: "versionNumber"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1QuestionSetsIDVersionsVersionNumberPublishResponse < Internal::Types::Model
|
|
7
|
+
field :question_set, -> { Runtype::Types::QuestionSet }, optional: false, nullable: false, api_name: "questionSet"
|
|
8
|
+
|
|
9
|
+
field :version, -> { Runtype::Types::QuestionSetVersion }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|