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,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1QuestionSetsRequest < Internal::Types::Model
|
|
7
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :input_mapping, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false, api_name: "inputMapping"
|
|
10
|
+
|
|
11
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :questions, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :slug, -> { String }, optional: false, nullable: false
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1QuestionSetsResponse < 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
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1QuestionSetsIDRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :input_mapping, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false, api_name: "inputMapping"
|
|
12
|
+
|
|
13
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :questions, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1QuestionSetsIDResponse < Internal::Types::Model
|
|
7
|
+
field :question_set, -> { Runtype::Types::QuestionSet }, optional: false, nullable: false, api_name: "questionSet"
|
|
8
|
+
|
|
9
|
+
field :version, -> { Runtype::QuestionSets::Types::PutV1QuestionSetsIDResponseVersion }, optional: false, nullable: true
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module QuestionSets
|
|
5
|
+
module Types
|
|
6
|
+
# The new draft version, or null for a metadata-only update.
|
|
7
|
+
class PutV1QuestionSetsIDResponseVersion < Internal::Types::Model
|
|
8
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
9
|
+
|
|
10
|
+
field :created_by_user_id, -> { String }, optional: false, nullable: true, api_name: "createdByUserId"
|
|
11
|
+
|
|
12
|
+
field :current_calibration_id, -> { String }, optional: false, nullable: true, api_name: "currentCalibrationId"
|
|
13
|
+
|
|
14
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :input_mapping, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: true, api_name: "inputMapping"
|
|
17
|
+
|
|
18
|
+
field :model, -> { String }, optional: false, nullable: true
|
|
19
|
+
|
|
20
|
+
field :published_at, -> { String }, optional: false, nullable: true, api_name: "publishedAt"
|
|
21
|
+
|
|
22
|
+
field :question_set_id, -> { String }, optional: false, nullable: false, api_name: "questionSetId"
|
|
23
|
+
|
|
24
|
+
field :questions, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
25
|
+
|
|
26
|
+
field :version_number, -> { Integer }, optional: false, nullable: false, api_name: "versionNumber"
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Runs
|
|
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
|
+
# Every agent and flow run in the span store, newest start first, including runs that write no control-plane row.
|
|
14
|
+
# The UNSCOPED feed is ROOT runs only: a subagent or nested-flow run folds under its parent, `childCount` says how
|
|
15
|
+
# many are folded there, and `parentExecutionId=<id>` reads them. Pass `includeChildren=true` for the flat
|
|
16
|
+
# enumeration. Any resource-scoped filter (`agentId`, `flowId`, `conversationId`, `surfaceId`, `recordId`,
|
|
17
|
+
# `batchExecutionId`, `parentExecutionId`, `rootExecutionId`, `executionId`) is already an explicit selection and
|
|
18
|
+
# never folds, so an agent that only ever runs as a subagent still lists under `agentId`. Each row carries
|
|
19
|
+
# `origin` (dashboard | api | internal | null), read from the caller's authenticated principal, and `test` as its
|
|
20
|
+
# derived alias for `origin === "dashboard"`; any entrance that resolves a principal stamps origin, including the
|
|
21
|
+
# Runtype MCP server tools and Code Mode (`api`) and the hosted `/v1/mcp` proxy (`internal`). A lane with no
|
|
22
|
+
# principal answers null for both by design: schedule, webhook, messaging, A2A, an agent exposed as an MCP
|
|
23
|
+
# surface, subagent, nested flow, a client-token product surface, an ingested run, and any row whose header
|
|
24
|
+
# predates the field. `overlay=live` adds live control-plane fields; the overlay never adds, drops or reorders a
|
|
25
|
+
# row. A cursor minted by the retired control-plane list lane (`cp.` prefix) restarts at page one and answers
|
|
26
|
+
# `pagination.cursorReset: true`.
|
|
27
|
+
#
|
|
28
|
+
# @param request_options [Hash]
|
|
29
|
+
# @param params [Hash]
|
|
30
|
+
# @option request_options [String] :base_url
|
|
31
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
32
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
33
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
34
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
35
|
+
# @option params [String, nil] :agent_id
|
|
36
|
+
# @option params [String, nil] :flow_id
|
|
37
|
+
# @option params [String, nil] :conversation_id
|
|
38
|
+
# @option params [String, nil] :surface_id
|
|
39
|
+
# @option params [String, nil] :surface_type
|
|
40
|
+
# @option params [String, nil] :record_id
|
|
41
|
+
# @option params [String, nil] :batch_execution_id
|
|
42
|
+
# @option params [String, nil] :parent_execution_id
|
|
43
|
+
# @option params [String, nil] :root_execution_id
|
|
44
|
+
# @option params [Runtype::Runs::Types::GetV1RunsRequestIncludeChildren, nil] :include_children
|
|
45
|
+
# @option params [String, nil] :execution_id
|
|
46
|
+
# @option params [Runtype::Runs::Types::GetV1RunsRequestSource, nil] :source
|
|
47
|
+
# @option params [Runtype::Runs::Types::GetV1RunsRequestStatus, nil] :status
|
|
48
|
+
# @option params [String, nil] :from
|
|
49
|
+
# @option params [String, nil] :to
|
|
50
|
+
# @option params [Runtype::Runs::Types::GetV1RunsRequestView, nil] :view
|
|
51
|
+
# @option params [Runtype::Runs::Types::GetV1RunsRequestOverlay, nil] :overlay
|
|
52
|
+
# @option params [String, nil] :limit
|
|
53
|
+
# @option params [String, nil] :cursor
|
|
54
|
+
#
|
|
55
|
+
# @example
|
|
56
|
+
# client.runs.list_runs
|
|
57
|
+
#
|
|
58
|
+
# @return [Runtype::Runs::Types::GetV1RunsResponse]
|
|
59
|
+
def list_runs(request_options: {}, **params)
|
|
60
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
61
|
+
query_params = {}
|
|
62
|
+
query_params["agentId"] = params[:agent_id] if params.key?(:agent_id)
|
|
63
|
+
query_params["flowId"] = params[:flow_id] if params.key?(:flow_id)
|
|
64
|
+
query_params["conversationId"] = params[:conversation_id] if params.key?(:conversation_id)
|
|
65
|
+
query_params["surfaceId"] = params[:surface_id] if params.key?(:surface_id)
|
|
66
|
+
query_params["surfaceType"] = params[:surface_type] if params.key?(:surface_type)
|
|
67
|
+
query_params["recordId"] = params[:record_id] if params.key?(:record_id)
|
|
68
|
+
query_params["batchExecutionId"] = params[:batch_execution_id] if params.key?(:batch_execution_id)
|
|
69
|
+
query_params["parentExecutionId"] = params[:parent_execution_id] if params.key?(:parent_execution_id)
|
|
70
|
+
query_params["rootExecutionId"] = params[:root_execution_id] if params.key?(:root_execution_id)
|
|
71
|
+
query_params["includeChildren"] = params[:include_children] if params.key?(:include_children)
|
|
72
|
+
query_params["executionId"] = params[:execution_id] if params.key?(:execution_id)
|
|
73
|
+
query_params["source"] = params[:source] if params.key?(:source)
|
|
74
|
+
query_params["status"] = params[:status] if params.key?(:status)
|
|
75
|
+
query_params["from"] = params[:from] if params.key?(:from)
|
|
76
|
+
query_params["to"] = params[:to] if params.key?(:to)
|
|
77
|
+
query_params["view"] = params[:view] if params.key?(:view)
|
|
78
|
+
query_params["overlay"] = params[:overlay] if params.key?(:overlay)
|
|
79
|
+
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
80
|
+
query_params["cursor"] = params[:cursor] if params.key?(:cursor)
|
|
81
|
+
|
|
82
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
83
|
+
base_url: request_options[:base_url],
|
|
84
|
+
method: "GET",
|
|
85
|
+
path: "v1/runs",
|
|
86
|
+
query: query_params,
|
|
87
|
+
request_options: request_options
|
|
88
|
+
)
|
|
89
|
+
begin
|
|
90
|
+
response = @client.send(request)
|
|
91
|
+
rescue Net::HTTPRequestTimeout
|
|
92
|
+
raise Runtype::Errors::TimeoutError
|
|
93
|
+
end
|
|
94
|
+
code = response.code.to_i
|
|
95
|
+
if code.between?(200, 299)
|
|
96
|
+
Runtype::Runs::Types::GetV1RunsResponse.load(response.body)
|
|
97
|
+
else
|
|
98
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
99
|
+
raise error_class.new(response.body, code: code)
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# One run the caller owns, in the row shape the list returns. An API key must hold the scope of the run's own
|
|
104
|
+
# execution kind (AGENTS:READ or FLOWS:READ, and both when the run states neither). Use `GET
|
|
105
|
+
# /v1/logs/trace/execution/{id}` for its span tree.
|
|
106
|
+
#
|
|
107
|
+
# @param request_options [Hash]
|
|
108
|
+
# @param params [Hash]
|
|
109
|
+
# @option request_options [String] :base_url
|
|
110
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
111
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
112
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
113
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
114
|
+
# @option params [String] :execution_id
|
|
115
|
+
# @option params [Runtype::Runs::Types::GetV1RunsExecutionIDRequestOverlay, nil] :overlay
|
|
116
|
+
# @option params [Runtype::Runs::Types::GetV1RunsExecutionIDRequestView, nil] :view
|
|
117
|
+
#
|
|
118
|
+
# @example
|
|
119
|
+
# client.runs.read_one_run(execution_id: "executionId")
|
|
120
|
+
#
|
|
121
|
+
# @return [Runtype::Runs::Types::GetV1RunsExecutionIDResponse]
|
|
122
|
+
def read_one_run(request_options: {}, **params)
|
|
123
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
124
|
+
query_params = {}
|
|
125
|
+
query_params["overlay"] = params[:overlay] if params.key?(:overlay)
|
|
126
|
+
query_params["view"] = params[:view] if params.key?(:view)
|
|
127
|
+
|
|
128
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
129
|
+
base_url: request_options[:base_url],
|
|
130
|
+
method: "GET",
|
|
131
|
+
path: "v1/runs/#{URI.encode_uri_component(params[:execution_id].to_s)}",
|
|
132
|
+
query: query_params,
|
|
133
|
+
request_options: request_options
|
|
134
|
+
)
|
|
135
|
+
begin
|
|
136
|
+
response = @client.send(request)
|
|
137
|
+
rescue Net::HTTPRequestTimeout
|
|
138
|
+
raise Runtype::Errors::TimeoutError
|
|
139
|
+
end
|
|
140
|
+
code = response.code.to_i
|
|
141
|
+
if code.between?(200, 299)
|
|
142
|
+
Runtype::Runs::Types::GetV1RunsExecutionIDResponse.load(response.body)
|
|
143
|
+
else
|
|
144
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
145
|
+
raise error_class.new(response.body, code: code)
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Runs
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1RunsExecutionIDRequest < Internal::Types::Model
|
|
7
|
+
field :execution_id, -> { String }, optional: false, nullable: false, api_name: "executionId"
|
|
8
|
+
|
|
9
|
+
field :overlay, -> { Runtype::Runs::Types::GetV1RunsExecutionIDRequestOverlay }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :view, -> { Runtype::Runs::Types::GetV1RunsExecutionIDRequestView }, optional: true, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Runs
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1RunsRequest < Internal::Types::Model
|
|
7
|
+
field :agent_id, -> { String }, optional: true, nullable: false, api_name: "agentId"
|
|
8
|
+
|
|
9
|
+
field :flow_id, -> { String }, optional: true, nullable: false, api_name: "flowId"
|
|
10
|
+
|
|
11
|
+
field :conversation_id, -> { String }, optional: true, nullable: false, api_name: "conversationId"
|
|
12
|
+
|
|
13
|
+
field :surface_id, -> { String }, optional: true, nullable: false, api_name: "surfaceId"
|
|
14
|
+
|
|
15
|
+
field :surface_type, -> { String }, optional: true, nullable: false, api_name: "surfaceType"
|
|
16
|
+
|
|
17
|
+
field :record_id, -> { String }, optional: true, nullable: false, api_name: "recordId"
|
|
18
|
+
|
|
19
|
+
field :batch_execution_id, -> { String }, optional: true, nullable: false, api_name: "batchExecutionId"
|
|
20
|
+
|
|
21
|
+
field :parent_execution_id, -> { String }, optional: true, nullable: false, api_name: "parentExecutionId"
|
|
22
|
+
|
|
23
|
+
field :root_execution_id, -> { String }, optional: true, nullable: false, api_name: "rootExecutionId"
|
|
24
|
+
|
|
25
|
+
field :include_children, -> { Runtype::Runs::Types::GetV1RunsRequestIncludeChildren }, optional: true, nullable: false, api_name: "includeChildren"
|
|
26
|
+
|
|
27
|
+
field :execution_id, -> { String }, optional: true, nullable: false, api_name: "executionId"
|
|
28
|
+
|
|
29
|
+
field :source, -> { Runtype::Runs::Types::GetV1RunsRequestSource }, optional: true, nullable: false
|
|
30
|
+
|
|
31
|
+
field :status, -> { Runtype::Runs::Types::GetV1RunsRequestStatus }, optional: true, nullable: false
|
|
32
|
+
|
|
33
|
+
field :from, -> { String }, optional: true, nullable: false
|
|
34
|
+
|
|
35
|
+
field :to, -> { String }, optional: true, nullable: false
|
|
36
|
+
|
|
37
|
+
field :view, -> { Runtype::Runs::Types::GetV1RunsRequestView }, optional: true, nullable: false
|
|
38
|
+
|
|
39
|
+
field :overlay, -> { Runtype::Runs::Types::GetV1RunsRequestOverlay }, optional: true, nullable: false
|
|
40
|
+
|
|
41
|
+
field :limit, -> { String }, optional: true, nullable: false
|
|
42
|
+
|
|
43
|
+
field :cursor, -> { String }, optional: true, nullable: false
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Runs
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1RunsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Runtype::Types::RunListRow] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :pagination, -> { Runtype::Runs::Types::GetV1RunsResponsePagination }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :window, -> { Runtype::Runs::Types::GetV1RunsResponseWindow }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Runs
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1RunsResponsePagination < Internal::Types::Model
|
|
7
|
+
field :cursor_reset, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "cursorReset"
|
|
8
|
+
|
|
9
|
+
field :has_more, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasMore"
|
|
10
|
+
|
|
11
|
+
field :has_prev, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasPrev"
|
|
12
|
+
|
|
13
|
+
field :limit, -> { Integer }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :next_cursor, -> { String }, optional: false, nullable: true, api_name: "nextCursor"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Runs
|
|
5
|
+
module Types
|
|
6
|
+
# The started_at window the query resolved to, after defaults.
|
|
7
|
+
class GetV1RunsResponseWindow < Internal::Types::Model
|
|
8
|
+
field :from, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :to, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -158,6 +158,103 @@ module Runtype
|
|
|
158
158
|
end
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
+
# Idempotently converge a repo-defined schedule on a standalone flow or agent. Identity is name + target + account
|
|
162
|
+
# scope; the target may name the flow or agent instead of carrying its id, so one definition works in every
|
|
163
|
+
# environment. Hash-only probes skip the payload in the steady state (a miss is a normal 200 `definitionRequired`
|
|
164
|
+
# response); full requests create the schedule or update it when the canonical content hash differs. Set dryRun to
|
|
165
|
+
# plan without writing (CI drift gate) and onConflict: "overwrite" to converge over dashboard/API edits. Omit
|
|
166
|
+
# `enabled` to leave a paused schedule paused. Ensure never deletes; schedules owned by a product surface are
|
|
167
|
+
# never matched.
|
|
168
|
+
#
|
|
169
|
+
# @param request_options [Hash]
|
|
170
|
+
# @param params [Runtype::Schedules::Types::PostV1SchedulesEnsureRequest]
|
|
171
|
+
# @option request_options [String] :base_url
|
|
172
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
173
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
174
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
175
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
176
|
+
#
|
|
177
|
+
# @example
|
|
178
|
+
# client.schedules.ensure_schedule_config_as_code_converge(
|
|
179
|
+
# name: "name",
|
|
180
|
+
# target: {}
|
|
181
|
+
# )
|
|
182
|
+
#
|
|
183
|
+
# @return [Runtype::Types::ScheduleEnsureResponse]
|
|
184
|
+
def ensure_schedule_config_as_code_converge(request_options: {}, **params)
|
|
185
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
186
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
187
|
+
base_url: request_options[:base_url],
|
|
188
|
+
method: "POST",
|
|
189
|
+
path: "v1/schedules/ensure",
|
|
190
|
+
body: Runtype::Schedules::Types::PostV1SchedulesEnsureRequest.new(params).to_h,
|
|
191
|
+
request_options: request_options
|
|
192
|
+
)
|
|
193
|
+
begin
|
|
194
|
+
response = @client.send(request)
|
|
195
|
+
rescue Net::HTTPRequestTimeout
|
|
196
|
+
raise Runtype::Errors::TimeoutError
|
|
197
|
+
end
|
|
198
|
+
code = response.code.to_i
|
|
199
|
+
if code.between?(200, 299)
|
|
200
|
+
Runtype::Types::ScheduleEnsureResponse.load(response.body)
|
|
201
|
+
else
|
|
202
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
203
|
+
raise error_class.new(response.body, code: code)
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Return the canonical config-as-code definition and provenance for a standalone schedule by name and target — the
|
|
208
|
+
# absorb-drift direction of the ensure protocol. The target is echoed in the form the query used, and the
|
|
209
|
+
# definition always declares `enabled`.
|
|
210
|
+
#
|
|
211
|
+
# @param request_options [Hash]
|
|
212
|
+
# @param params [Hash]
|
|
213
|
+
# @option request_options [String] :base_url
|
|
214
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
215
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
216
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
217
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
218
|
+
# @option params [String] :name
|
|
219
|
+
# @option params [String, nil] :flow_id
|
|
220
|
+
# @option params [String, nil] :agent_id
|
|
221
|
+
# @option params [String, nil] :flow_name
|
|
222
|
+
# @option params [String, nil] :agent_name
|
|
223
|
+
#
|
|
224
|
+
# @example
|
|
225
|
+
# client.schedules.pull_schedule_definition_config_as_code(name: "name")
|
|
226
|
+
#
|
|
227
|
+
# @return [Runtype::Types::SchedulePullResponse]
|
|
228
|
+
def pull_schedule_definition_config_as_code(request_options: {}, **params)
|
|
229
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
230
|
+
query_params = {}
|
|
231
|
+
query_params["name"] = params[:name] if params.key?(:name)
|
|
232
|
+
query_params["flowId"] = params[:flow_id] if params.key?(:flow_id)
|
|
233
|
+
query_params["agentId"] = params[:agent_id] if params.key?(:agent_id)
|
|
234
|
+
query_params["flowName"] = params[:flow_name] if params.key?(:flow_name)
|
|
235
|
+
query_params["agentName"] = params[:agent_name] if params.key?(:agent_name)
|
|
236
|
+
|
|
237
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
238
|
+
base_url: request_options[:base_url],
|
|
239
|
+
method: "GET",
|
|
240
|
+
path: "v1/schedules/pull",
|
|
241
|
+
query: query_params,
|
|
242
|
+
request_options: request_options
|
|
243
|
+
)
|
|
244
|
+
begin
|
|
245
|
+
response = @client.send(request)
|
|
246
|
+
rescue Net::HTTPRequestTimeout
|
|
247
|
+
raise Runtype::Errors::TimeoutError
|
|
248
|
+
end
|
|
249
|
+
code = response.code.to_i
|
|
250
|
+
if code.between?(200, 299)
|
|
251
|
+
Runtype::Types::SchedulePullResponse.load(response.body)
|
|
252
|
+
else
|
|
253
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
254
|
+
raise error_class.new(response.body, code: code)
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
161
258
|
# Returns a paginated list of all runs across the user's schedules.
|
|
162
259
|
#
|
|
163
260
|
# @param request_options [Hash]
|
|
@@ -24,6 +24,8 @@ module Runtype
|
|
|
24
24
|
|
|
25
25
|
field :processed_records, -> { Integer }, optional: false, nullable: true, api_name: "processedRecords"
|
|
26
26
|
|
|
27
|
+
field :run, -> { Runtype::Types::ScheduleRunLink }, optional: false, nullable: false
|
|
28
|
+
|
|
27
29
|
field :schedule_id, -> { String }, optional: false, nullable: false, api_name: "scheduleId"
|
|
28
30
|
|
|
29
31
|
field :started_at, -> { String }, optional: false, nullable: true, api_name: "startedAt"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Schedules
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1SchedulesPullRequest < Internal::Types::Model
|
|
7
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :flow_id, -> { String }, optional: true, nullable: false, api_name: "flowId"
|
|
10
|
+
|
|
11
|
+
field :agent_id, -> { String }, optional: true, nullable: false, api_name: "agentId"
|
|
12
|
+
|
|
13
|
+
field :flow_name, -> { String }, optional: true, nullable: false, api_name: "flowName"
|
|
14
|
+
|
|
15
|
+
field :agent_name, -> { String }, optional: true, nullable: false, api_name: "agentName"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -24,6 +24,8 @@ module Runtype
|
|
|
24
24
|
|
|
25
25
|
field :processed_records, -> { Integer }, optional: false, nullable: true, api_name: "processedRecords"
|
|
26
26
|
|
|
27
|
+
field :run, -> { Runtype::Types::ScheduleRunLink }, optional: false, nullable: false
|
|
28
|
+
|
|
27
29
|
field :schedule_id, -> { String }, optional: false, nullable: false, api_name: "scheduleId"
|
|
28
30
|
|
|
29
31
|
field :started_at, -> { String }, optional: false, nullable: true, api_name: "startedAt"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Schedules
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1SchedulesEnsureRequest < Internal::Types::Model
|
|
7
|
+
field :content_hash, -> { String }, optional: true, nullable: false, api_name: "contentHash"
|
|
8
|
+
|
|
9
|
+
field :definition, -> { Runtype::Types::ScheduleEnsureDefinition }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :dry_run, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "dryRun"
|
|
12
|
+
|
|
13
|
+
field :expected_remote_hash, -> { String }, optional: true, nullable: false, api_name: "expectedRemoteHash"
|
|
14
|
+
|
|
15
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :on_conflict, -> { Runtype::Schedules::Types::PostV1SchedulesEnsureRequestOnConflict }, optional: true, nullable: false, api_name: "onConflict"
|
|
18
|
+
|
|
19
|
+
field :target, -> { Runtype::Types::ScheduleEnsureTarget }, optional: false, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|