runtype 0.2.0 → 0.2.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 +16 -0
- data/generated/lib/runtype/agent_aliases/client.rb +320 -0
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_request.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_response.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_request.rb +15 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_response.rb +29 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_request.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_response.rb +13 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_response_data_item.rb +29 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_request.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_response.rb +13 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_response_data_item.rb +29 -0
- data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_request.rb +21 -0
- data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_response.rb +21 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_request.rb +21 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_response.rb +21 -0
- data/generated/lib/runtype/agents/client.rb +14 -2
- 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_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_execution_id_response_agent_version.rb +17 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_response_data_item.rb +6 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_response_data_item_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_response_data_item_agent_version.rb +17 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_response.rb +2 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_response_sandbox_capability_issues_item.rb +19 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_response_sandbox_capability_issues_item_code.rb +13 -0
- data/generated/lib/runtype/agents/types/get_v1agents_request.rb +2 -0
- data/generated/lib/runtype/agents/types/get_v1agents_request_managed_in_code.rb +14 -0
- data/generated/lib/runtype/agents/types/get_v1agents_response_data_item.rb +4 -0
- data/generated/lib/runtype/agents/types/get_v1agents_response_data_item_sandbox_capability_issues_item.rb +19 -0
- data/generated/lib/runtype/agents/types/get_v1agents_response_data_item_sandbox_capability_issues_item_code.rb +13 -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.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_context_management.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_context_management_compaction.rb +23 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_context_management_compaction_strategy.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_context_management_tool_results.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_context_management_tool_results_prune_mode.rb +14 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice.rb +8 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_endpointing.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_endpointing_strategy.rb +16 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_speech.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_speech_mode.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_speech_synthesizer.rb +17 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_speech_synthesizer_settings.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_speech_transcriber.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_context_management.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_context_management_compaction.rb +23 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_context_management_compaction_strategy.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_context_management_tool_results.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_context_management_tool_results_prune_mode.rb +14 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice.rb +8 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_endpointing.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_endpointing_strategy.rb +16 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech_mode.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech_synthesizer.rb +17 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech_synthesizer_settings.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech_transcriber.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_response.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_response_sandbox_capability_issues_item.rb +19 -0
- data/generated/lib/runtype/agents/types/post_v1agents_response_sandbox_capability_issues_item_code.rb +13 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config.rb +2 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_context_management.rb +13 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_context_management_compaction.rb +23 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_context_management_compaction_strategy.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_context_management_tool_results.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_context_management_tool_results_prune_mode.rb +14 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice.rb +8 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_endpointing.rb +13 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_endpointing_strategy.rb +16 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech_mode.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech_synthesizer.rb +17 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech_synthesizer_settings.rb +13 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech_transcriber.rb +13 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_response.rb +2 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_response_sandbox_capability_issues_item.rb +19 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_response_sandbox_capability_issues_item_code.rb +13 -0
- data/generated/lib/runtype/analytics/types/get_v1analytics_record_results_response_data_data_results_item.rb +4 -0
- data/generated/lib/runtype/client.rb +5 -0
- data/generated/lib/runtype/dispatch/client.rb +11 -4
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent.rb +6 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_durability.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_durability_forced.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice.rb +8 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_endpointing.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_endpointing_strategy.rb +16 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_speech.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_speech_mode.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_speech_synthesizer.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_speech_synthesizer_settings.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_speech_transcriber.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent.rb +6 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_durability.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_durability_forced.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice.rb +8 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_endpointing.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_endpointing_strategy.rb +16 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_speech.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_speech_mode.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_speech_synthesizer.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_speech_synthesizer_settings.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_speech_transcriber.rb +13 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response.rb +2 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response_case_errors_item.rb +15 -0
- data/generated/lib/runtype/executions/client.rb +53 -0
- data/generated/lib/runtype/executions/types/get_v1executions_execution_id_events_request.rb +15 -0
- 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_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/executions/types/get_v1executions_execution_id_status_response_agent_version.rb +16 -0
- data/generated/lib/runtype/flows/client.rb +2 -1
- data/generated/lib/runtype/flows/types/post_v1flows_ensure_request.rb +2 -0
- data/generated/lib/runtype/records/types/get_v1records_id_results_response_data_item.rb +4 -0
- data/generated/lib/runtype/tools/client.rb +11 -11
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request.rb +29 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_language.rb +15 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_retention.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_sleep_policy.rb +17 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_sleep_policy_idle.rb +11 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_sleep_policy_idle_after.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_sleep_policy_never.rb +9 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response.rb +2 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy.rb +23 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_metering.rb +14 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_origin.rb +14 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_retention.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_sleep_policy.rb +17 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_sleep_policy_idle.rb +11 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_sleep_policy_idle_after.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_sleep_policy_never.rb +9 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request.rb +35 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_language.rb +15 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_retention.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_sleep_policy.rb +17 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_sleep_policy_idle.rb +11 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_sleep_policy_idle_after.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_sleep_policy_never.rb +9 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response.rb +2 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy.rb +23 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_metering.rb +14 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_origin.rb +14 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_retention.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_sleep_policy.rb +17 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_sleep_policy_idle.rb +11 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_sleep_policy_idle_after.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_sleep_policy_never.rb +9 -0
- data/generated/lib/runtype/types/agent_ensure_bad_request.rb +11 -0
- data/generated/lib/runtype/types/agent_ensure_bad_request_code.rb +11 -0
- data/generated/lib/runtype/types/agent_ensure_deploy_target.rb +15 -0
- data/generated/lib/runtype/types/agent_ensure_deployment.rb +20 -0
- data/generated/lib/runtype/types/agent_ensure_response_changed_keys.rb +2 -0
- data/generated/lib/runtype/types/agent_ensure_response_changed_keys_deployment.rb +20 -0
- data/generated/lib/runtype/types/agent_ensure_response_version_id.rb +4 -0
- data/generated/lib/runtype/types/agent_ensure_server_error.rb +13 -0
- data/generated/lib/runtype/types/agent_ensure_server_error_code.rb +11 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config.rb +2 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_context_management.rb +11 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_context_management_compaction.rb +21 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_context_management_compaction_strategy.rb +13 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_context_management_tool_results.rb +13 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_context_management_tool_results_prune_mode.rb +12 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice.rb +8 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_endpointing.rb +11 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_endpointing_strategy.rb +14 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_speech.rb +13 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_speech_mode.rb +13 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_speech_synthesizer.rb +15 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_speech_synthesizer_settings.rb +11 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_speech_transcriber.rb +11 -0
- data/generated/lib/runtype/types/dispatch_continuation_json_response.rb +2 -0
- data/generated/lib/runtype/types/dispatch_detached_tool_output_json_response.rb +13 -0
- data/generated/lib/runtype/types/dispatch_detached_tool_output_json_response_pause_kind.rb +12 -0
- data/generated/lib/runtype/types/dispatch_detached_tool_output_json_response_status.rb +11 -0
- data/generated/lib/runtype/types/dispatch_resume_json_response.rb +13 -0
- data/generated/lib/runtype/types/ensure_version_metadata.rb +13 -0
- data/generated/lib/runtype/types/eval_run_scores_response_cases_item.rb +2 -0
- data/generated/lib/runtype/types/execution_stream_event.rb +2 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice.rb +29 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice_kind.rb +11 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice_outcome.rb +14 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice_phase.rb +12 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice_reason.rb +15 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice_strategy.rb +12 -0
- data/generated/lib/runtype/types/not_found_error_body_code.rb +11 -0
- data/generated/lib/runtype/types/precondition_failed_error_body.rb +17 -0
- data/generated/lib/runtype/types/precondition_failed_error_body_code.rb +11 -0
- data/generated/lib/runtype/types/run_eval_response_cases_item.rb +2 -0
- data/generated/lib/runtype.rb +154 -5
- data/lib/runtype/agent_definition.rb +1 -1
- data/lib/runtype/client.rb +22 -2
- data/lib/runtype/detached_follow.rb +136 -0
- data/lib/runtype/local_tool_runner.rb +117 -16
- data/lib/runtype/sdk_version.rb +1 -1
- data/lib/runtype.rb +1 -0
- metadata +151 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestOneAgentVoiceSpeechSynthesizerSettings < Internal::Types::Model
|
|
7
|
+
field :similarity, -> { Integer }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :stability, -> { 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 Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestOneAgentVoiceSpeechTranscriber < Internal::Types::Model
|
|
7
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -10,10 +10,14 @@ module Runtype
|
|
|
10
10
|
|
|
11
11
|
field :agent_type, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentAgentType }, optional: true, nullable: false, api_name: "agentType"
|
|
12
12
|
|
|
13
|
+
field :alias_, -> { String }, optional: true, nullable: false, api_name: "alias"
|
|
14
|
+
|
|
13
15
|
field :artifacts, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentArtifacts }, optional: true, nullable: false
|
|
14
16
|
|
|
15
17
|
field :claude_managed_config, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentClaudeManagedConfig }, optional: true, nullable: false, api_name: "claudeManagedConfig"
|
|
16
18
|
|
|
19
|
+
field :durability, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentDurability }, optional: true, nullable: false
|
|
20
|
+
|
|
17
21
|
field :error_handling, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentErrorHandling }, optional: true, nullable: false, api_name: "errorHandling"
|
|
18
22
|
|
|
19
23
|
field :frequency_penalty, -> { Integer }, optional: true, nullable: false, api_name: "frequencyPenalty"
|
|
@@ -54,6 +58,8 @@ module Runtype
|
|
|
54
58
|
|
|
55
59
|
field :top_p, -> { Integer }, optional: true, nullable: false, api_name: "topP"
|
|
56
60
|
|
|
61
|
+
field :version_id, -> { String }, optional: true, nullable: false, api_name: "versionId"
|
|
62
|
+
|
|
57
63
|
field :voice, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentVoice }, optional: true, nullable: false
|
|
58
64
|
end
|
|
59
65
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestZeroAgentDurability < Internal::Types::Model
|
|
7
|
+
field :forced, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentDurabilityForced }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :max_budget_ms, -> { Integer }, optional: true, nullable: false, api_name: "maxBudgetMs"
|
|
10
|
+
|
|
11
|
+
field :watch_lease_ms, -> { Integer }, optional: true, nullable: false, api_name: "watchLeaseMs"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_durability_forced.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1DispatchRequestZeroAgentDurabilityForced
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
DURABLE = "durable"
|
|
10
|
+
IN_PROCESS = "in_process"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -8,9 +8,17 @@ module Runtype
|
|
|
8
8
|
|
|
9
9
|
field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :endpointing, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentVoiceEndpointing }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :greeting, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
11
15
|
field :interruption_mode, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentVoiceInterruptionMode }, optional: true, nullable: false, api_name: "interruptionMode"
|
|
12
16
|
|
|
17
|
+
field :language, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
13
19
|
field :provider, -> { String }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :speech, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentVoiceSpeech }, optional: true, nullable: false
|
|
14
22
|
end
|
|
15
23
|
end
|
|
16
24
|
end
|
data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_endpointing.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestZeroAgentVoiceEndpointing < Internal::Types::Model
|
|
7
|
+
field :silence_ms, -> { Integer }, optional: true, nullable: false, api_name: "silenceMs"
|
|
8
|
+
|
|
9
|
+
field :strategy, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentVoiceEndpointingStrategy }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1DispatchRequestZeroAgentVoiceEndpointingStrategy
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PROVIDER_VAD = "provider_vad"
|
|
10
|
+
SERVER_VAD = "server_vad"
|
|
11
|
+
CLIENT_COMMIT = "client_commit"
|
|
12
|
+
MANUAL = "manual"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestZeroAgentVoiceSpeech < Internal::Types::Model
|
|
7
|
+
field :mode, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentVoiceSpeechMode }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :synthesizer, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentVoiceSpeechSynthesizer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :transcriber, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentVoiceSpeechTranscriber }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_speech_mode.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1DispatchRequestZeroAgentVoiceSpeechMode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PIPELINE = "pipeline"
|
|
10
|
+
SPEECH_TO_SPEECH = "speech_to_speech"
|
|
11
|
+
PROVIDER_MANAGED = "provider_managed"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestZeroAgentVoiceSpeechSynthesizer < Internal::Types::Model
|
|
7
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :settings, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroAgentVoiceSpeechSynthesizerSettings }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :voice_id, -> { String }, optional: true, nullable: false, api_name: "voiceId"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestZeroAgentVoiceSpeechSynthesizerSettings < Internal::Types::Model
|
|
7
|
+
field :similarity, -> { Integer }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :stability, -> { 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 Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestZeroAgentVoiceSpeechTranscriber < Internal::Types::Model
|
|
7
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -6,6 +6,8 @@ module Runtype
|
|
|
6
6
|
class GetV1EvalIDResultsResponse < Internal::Types::Model
|
|
7
7
|
field :batch_execution_id, -> { String }, optional: false, nullable: false, api_name: "batchExecutionId"
|
|
8
8
|
|
|
9
|
+
field :case_errors, -> { Internal::Types::Array[Runtype::Evals::Types::GetV1EvalIDResultsResponseCaseErrorsItem] }, optional: false, nullable: false, api_name: "caseErrors"
|
|
10
|
+
|
|
9
11
|
field :completed_at, -> { String }, optional: true, nullable: false, api_name: "completedAt"
|
|
10
12
|
|
|
11
13
|
field :eval_config, -> { Object }, optional: true, nullable: false, api_name: "evalConfig"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Evals
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1EvalIDResultsResponseCaseErrorsItem < Internal::Types::Model
|
|
7
|
+
field :case_id, -> { String }, optional: false, nullable: true, api_name: "caseId"
|
|
8
|
+
|
|
9
|
+
field :error, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -10,6 +10,59 @@ module Runtype
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Execution-scoped alias of `GET /v1/agents/{id}/executions/{executionId}/events`: reconnect to a durable turn and
|
|
14
|
+
# replay-and-tail its Server-Sent Events without already knowing which agent ran it. The agent is resolved from
|
|
15
|
+
# the execution's own persisted record, so a run started through `/v1/dispatch` reconnects by execution id alone;
|
|
16
|
+
# a record with no agent (an inline definition, which addresses no durable session) answers 404. A turn that
|
|
17
|
+
# streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps
|
|
18
|
+
# running; pass the last seen SSE `id:` as `after` to rejoin it. Replays buffered events strictly past the `after`
|
|
19
|
+
# cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq,
|
|
20
|
+
# or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass
|
|
21
|
+
# that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or
|
|
22
|
+
# duplicating events. Replayed and live-tailed frames use the unified execution vocabulary. An API key needs
|
|
23
|
+
# `AGENTS:READ`, `AGENTS:*`, `DISPATCH:*`, or `*`; `DISPATCH:*` is admitted because this alias exists for
|
|
24
|
+
# dispatch-started runs.
|
|
25
|
+
#
|
|
26
|
+
# @param request_options [Hash]
|
|
27
|
+
# @param params [Hash]
|
|
28
|
+
# @option request_options [String] :base_url
|
|
29
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
30
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
31
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
32
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
33
|
+
# @option params [String] :execution_id
|
|
34
|
+
# @option params [String, nil] :conversation_id
|
|
35
|
+
# @option params [String, nil] :after
|
|
36
|
+
#
|
|
37
|
+
# @example
|
|
38
|
+
# client.executions.stream_execution_events(execution_id: "executionId")
|
|
39
|
+
#
|
|
40
|
+
# @return [untyped]
|
|
41
|
+
def stream_execution_events(request_options: {}, **params)
|
|
42
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
43
|
+
query_params = {}
|
|
44
|
+
query_params["conversationId"] = params[:conversation_id] if params.key?(:conversation_id)
|
|
45
|
+
query_params["after"] = params[:after] if params.key?(:after)
|
|
46
|
+
|
|
47
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
48
|
+
base_url: request_options[:base_url],
|
|
49
|
+
method: "GET",
|
|
50
|
+
path: "v1/executions/#{URI.encode_uri_component(params[:execution_id].to_s)}/events",
|
|
51
|
+
query: query_params,
|
|
52
|
+
request_options: request_options
|
|
53
|
+
)
|
|
54
|
+
begin
|
|
55
|
+
response = @client.send(request)
|
|
56
|
+
rescue Net::HTTPRequestTimeout
|
|
57
|
+
raise Runtype::Errors::TimeoutError
|
|
58
|
+
end
|
|
59
|
+
code = response.code.to_i
|
|
60
|
+
return if code.between?(200, 299)
|
|
61
|
+
|
|
62
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
63
|
+
raise error_class.new(response.body, code: code)
|
|
64
|
+
end
|
|
65
|
+
|
|
13
66
|
# Returns the durable flow-execution journal events for an execution the caller owns, in replay order. At most
|
|
14
67
|
# 1000 events are returned; when the execution has more, the response is capped at that many rows and `truncated`
|
|
15
68
|
# is true.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Executions
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ExecutionsExecutionIDEventsRequest < Internal::Types::Model
|
|
7
|
+
field :execution_id, -> { String }, optional: false, nullable: false, api_name: "executionId"
|
|
8
|
+
|
|
9
|
+
field :conversation_id, -> { String }, optional: true, nullable: false, api_name: "conversationId"
|
|
10
|
+
|
|
11
|
+
field :after, -> { String }, optional: true, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/generated/lib/runtype/executions/types/get_v1executions_execution_id_status_response.rb
CHANGED
|
@@ -4,6 +4,12 @@ module Runtype
|
|
|
4
4
|
module Executions
|
|
5
5
|
module Types
|
|
6
6
|
class GetV1ExecutionsExecutionIDStatusResponse < Internal::Types::Model
|
|
7
|
+
field :agent_target_resolution, -> { Runtype::Executions::Types::GetV1ExecutionsExecutionIDStatusResponseAgentTargetResolution }, optional: true, nullable: false, api_name: "agentTargetResolution"
|
|
8
|
+
|
|
9
|
+
field :agent_version, -> { Runtype::Executions::Types::GetV1ExecutionsExecutionIDStatusResponseAgentVersion }, optional: true, nullable: false, api_name: "agentVersion"
|
|
10
|
+
|
|
11
|
+
field :agent_version_id, -> { String }, optional: true, nullable: false, api_name: "agentVersionId"
|
|
12
|
+
|
|
7
13
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
8
14
|
|
|
9
15
|
field :error, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Executions
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1ExecutionsExecutionIDStatusResponseAgentTargetResolution
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
ALIAS = "alias"
|
|
10
|
+
VERSION = "version"
|
|
11
|
+
LEGACY_LIVE_ROW = "legacy-live-row"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Executions
|
|
5
|
+
module Types
|
|
6
|
+
# Version number and label for `agentVersionId`. `null` exactly when `agentVersionId` is `null`.
|
|
7
|
+
class GetV1ExecutionsExecutionIDStatusResponseAgentVersion < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :label, -> { String }, optional: false, nullable: true
|
|
11
|
+
|
|
12
|
+
field :version_number, -> { Integer }, optional: false, nullable: false, api_name: "versionNumber"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -119,7 +119,8 @@ module Runtype
|
|
|
119
119
|
# Non-executing: never touches the execution pipeline — the deploy-time sibling of the dispatch-coupled `flowMode:
|
|
120
120
|
# "upsert"` (which saves and runs in one request). The response always carries the server-computed canonical hash.
|
|
121
121
|
# Set dryRun to plan without writing (CI drift gate), onConflict: "overwrite" to converge over dashboard/API
|
|
122
|
-
# edits, and release: "publish" to also re-aim the published-version pointer.
|
|
122
|
+
# edits, and release: "publish" to also re-aim the published-version pointer. Optional version.label /
|
|
123
|
+
# version.notes stamp provenance (a git SHA, a release tag) on the appended version row.
|
|
123
124
|
#
|
|
124
125
|
# @param request_options [Hash]
|
|
125
126
|
# @param params [Runtype::Flows::Types::PostV1FlowsEnsureRequest]
|
|
@@ -17,6 +17,8 @@ module Runtype
|
|
|
17
17
|
field :on_conflict, -> { Runtype::Flows::Types::PostV1FlowsEnsureRequestOnConflict }, optional: true, nullable: false, api_name: "onConflict"
|
|
18
18
|
|
|
19
19
|
field :release, -> { Runtype::Flows::Types::PostV1FlowsEnsureRequestRelease }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :version, -> { Runtype::Types::EnsureVersionMetadata }, optional: true, nullable: false
|
|
20
22
|
end
|
|
21
23
|
end
|
|
22
24
|
end
|
|
@@ -18,6 +18,8 @@ module Runtype
|
|
|
18
18
|
|
|
19
19
|
field :id, -> { String }, optional: false, nullable: false
|
|
20
20
|
|
|
21
|
+
field :model_cost, -> { String }, optional: false, nullable: true, api_name: "modelCost"
|
|
22
|
+
|
|
21
23
|
field :model_used, -> { String }, optional: false, nullable: true, api_name: "modelUsed"
|
|
22
24
|
|
|
23
25
|
field :prompt_id, -> { String }, optional: false, nullable: true, api_name: "promptId"
|
|
@@ -30,6 +32,8 @@ module Runtype
|
|
|
30
32
|
|
|
31
33
|
field :status, -> { String }, optional: false, nullable: false
|
|
32
34
|
|
|
35
|
+
field :tool_cost, -> { String }, optional: false, nullable: true, api_name: "toolCost"
|
|
36
|
+
|
|
33
37
|
field :total_tokens, -> { Integer }, optional: false, nullable: true, api_name: "totalTokens"
|
|
34
38
|
end
|
|
35
39
|
end
|
|
@@ -390,10 +390,11 @@ module Runtype
|
|
|
390
390
|
end
|
|
391
391
|
end
|
|
392
392
|
|
|
393
|
-
# Deploy
|
|
393
|
+
# Deploy a live Runtype Sandbox preview. Omitted retention preserves unlimited legacy retention; explicit
|
|
394
|
+
# retention is metered and rollout-gated. Provider sleep or loss can end availability earlier.
|
|
394
395
|
#
|
|
395
396
|
# @param request_options [Hash]
|
|
396
|
-
# @param params [
|
|
397
|
+
# @param params [Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployRequest]
|
|
397
398
|
# @option request_options [String] :base_url
|
|
398
399
|
# @option request_options [Hash{String => Object}] :additional_headers
|
|
399
400
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
@@ -401,9 +402,7 @@ module Runtype
|
|
|
401
402
|
# @option request_options [Integer] :timeout_in_seconds
|
|
402
403
|
#
|
|
403
404
|
# @example
|
|
404
|
-
# client.tools.deploy_runtype_sandbox(
|
|
405
|
-
# key: "value"
|
|
406
|
-
# })
|
|
405
|
+
# client.tools.deploy_runtype_sandbox(code: "code")
|
|
407
406
|
#
|
|
408
407
|
# @return [Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployResponse]
|
|
409
408
|
def deploy_runtype_sandbox(request_options: {}, **params)
|
|
@@ -412,7 +411,7 @@ module Runtype
|
|
|
412
411
|
base_url: request_options[:base_url],
|
|
413
412
|
method: "POST",
|
|
414
413
|
path: "v1/tools/sandbox/cf-sandbox/deploy",
|
|
415
|
-
body: params,
|
|
414
|
+
body: Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployRequest.new(params).to_h,
|
|
416
415
|
request_options: request_options
|
|
417
416
|
)
|
|
418
417
|
begin
|
|
@@ -466,10 +465,11 @@ module Runtype
|
|
|
466
465
|
end
|
|
467
466
|
end
|
|
468
467
|
|
|
469
|
-
# Deploy
|
|
468
|
+
# Deploy a live Daytona preview. Retention defaults to 10m; provider sleep or deletion can end availability
|
|
469
|
+
# earlier. Preview URLs are not durable hosting.
|
|
470
470
|
#
|
|
471
471
|
# @param request_options [Hash]
|
|
472
|
-
# @param params [
|
|
472
|
+
# @param params [Runtype::Tools::Types::PostV1ToolsSandboxDeployRequest]
|
|
473
473
|
# @option request_options [String] :base_url
|
|
474
474
|
# @option request_options [Hash{String => Object}] :additional_headers
|
|
475
475
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
@@ -477,14 +477,14 @@ module Runtype
|
|
|
477
477
|
# @option request_options [Integer] :timeout_in_seconds
|
|
478
478
|
#
|
|
479
479
|
# @example
|
|
480
|
-
# client.tools.deploy_daytona_sandbox(
|
|
480
|
+
# client.tools.deploy_daytona_sandbox(
|
|
481
481
|
# code: "const express = require('express');
|
|
482
482
|
# const app = express();
|
|
483
483
|
# app.get('/', (req, res) => res.send('Hello'));
|
|
484
484
|
# app.listen(3000);",
|
|
485
485
|
# language: "javascript",
|
|
486
486
|
# port: 3000
|
|
487
|
-
#
|
|
487
|
+
# )
|
|
488
488
|
#
|
|
489
489
|
# @return [Runtype::Tools::Types::PostV1ToolsSandboxDeployResponse]
|
|
490
490
|
def deploy_daytona_sandbox(request_options: {}, **params)
|
|
@@ -493,7 +493,7 @@ module Runtype
|
|
|
493
493
|
base_url: request_options[:base_url],
|
|
494
494
|
method: "POST",
|
|
495
495
|
path: "v1/tools/sandbox/deploy",
|
|
496
|
-
body: params,
|
|
496
|
+
body: Runtype::Tools::Types::PostV1ToolsSandboxDeployRequest.new(params).to_h,
|
|
497
497
|
request_options: request_options
|
|
498
498
|
)
|
|
499
499
|
begin
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Tools
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1ToolsSandboxCfSandboxDeployRequest < Internal::Types::Model
|
|
7
|
+
field :code, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :files, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :language, -> { Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployRequestLanguage }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :managed, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :package_json, -> { String }, optional: true, nullable: false, api_name: "packageJson"
|
|
16
|
+
|
|
17
|
+
field :port, -> { Integer }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :retention, -> { Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployRequestRetention }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :sandbox_id, -> { String }, optional: true, nullable: false, api_name: "sandboxId"
|
|
22
|
+
|
|
23
|
+
field :sleep_policy, -> { Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployRequestSleepPolicy }, optional: true, nullable: false, api_name: "sleepPolicy"
|
|
24
|
+
|
|
25
|
+
field :start_command, -> { String }, optional: true, nullable: false, api_name: "startCommand"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_language.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Tools
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1ToolsSandboxCfSandboxDeployRequestLanguage
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
JAVASCRIPT = "javascript"
|
|
10
|
+
TYPESCRIPT = "typescript"
|
|
11
|
+
PYTHON = "python"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_retention.rb
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Tools
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1ToolsSandboxCfSandboxDeployRequestRetention
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
TEN_M = "10m"
|
|
10
|
+
ONE_H = "1h"
|
|
11
|
+
TWENTY_FOUR_H = "24h"
|
|
12
|
+
UNLIMITED = "unlimited"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Tools
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1ToolsSandboxCfSandboxDeployRequestSleepPolicy < Internal::Types::Model
|
|
7
|
+
extend Runtype::Internal::Types::Union
|
|
8
|
+
|
|
9
|
+
discriminant :mode
|
|
10
|
+
|
|
11
|
+
member -> { Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployRequestSleepPolicyNever }, key: "NEVER"
|
|
12
|
+
|
|
13
|
+
member -> { Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployRequestSleepPolicyIdle }, key: "IDLE"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Tools
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1ToolsSandboxCfSandboxDeployRequestSleepPolicyIdle < Internal::Types::Model
|
|
7
|
+
field :after, -> { Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployRequestSleepPolicyIdleAfter }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Tools
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1ToolsSandboxCfSandboxDeployRequestSleepPolicyIdleAfter
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
FIVE_M = "5m"
|
|
10
|
+
FIFTEEN_M = "15m"
|
|
11
|
+
THIRTY_M = "30m"
|
|
12
|
+
ONE_H = "1h"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -4,6 +4,8 @@ module Runtype
|
|
|
4
4
|
module Tools
|
|
5
5
|
module Types
|
|
6
6
|
class PostV1ToolsSandboxCfSandboxDeployResponse < Internal::Types::Model
|
|
7
|
+
field :effective_policy, -> { Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployResponseEffectivePolicy }, optional: true, nullable: false, api_name: "effectivePolicy"
|
|
8
|
+
|
|
7
9
|
field :error, -> { String }, optional: true, nullable: false
|
|
8
10
|
|
|
9
11
|
field :output, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Tools
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1ToolsSandboxCfSandboxDeployResponseEffectivePolicy < Internal::Types::Model
|
|
7
|
+
field :auto_delete_interval, -> { Integer }, optional: true, nullable: false, api_name: "autoDeleteInterval"
|
|
8
|
+
|
|
9
|
+
field :auto_stop_interval, -> { Integer }, optional: true, nullable: false, api_name: "autoStopInterval"
|
|
10
|
+
|
|
11
|
+
field :expires_at, -> { String }, optional: false, nullable: true, api_name: "expiresAt"
|
|
12
|
+
|
|
13
|
+
field :metering, -> { Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployResponseEffectivePolicyMetering }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :origin, -> { Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployResponseEffectivePolicyOrigin }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :retention, -> { Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployResponseEffectivePolicyRetention }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :sleep_policy, -> { Runtype::Tools::Types::PostV1ToolsSandboxCfSandboxDeployResponseEffectivePolicySleepPolicy }, optional: true, nullable: false, api_name: "sleepPolicy"
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|