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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d383187521d3ec144df17ea5d0d8c64f349774acb0af763e75e457aa63d09252
|
|
4
|
+
data.tar.gz: 961b1325dfacd79d7a799f247a1a5f19bf93e8b129230e61a20d2c8f66f38861
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6942ecf790ca77a26005334afb280abfb3b190ad5b797e6a65434cdfd29ef4dbe8fa178ebf76d503fdb233c9c5dd495b21b89549c39d512f2690d95009a0fd52
|
|
7
|
+
data.tar.gz: a1db354c934aced2d3055e770b20ae6d4a4878e9f9fbc5b71abd2c6fd8e7780e08853a031669146e4217f50b8b29b78f1fca3384ef3cc58eec6b8e8080783656
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the Runtype Ruby SDK are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.2.1
|
|
6
|
+
|
|
7
|
+
- `Runtype::Client#run_with_local_tools` follows a run that detached from its
|
|
8
|
+
request. A saved-agent dispatch on the platform's durable lane answers a
|
|
9
|
+
buffered resume with `{ executionId, pauseKind, status: "running" }` and closes
|
|
10
|
+
a streamed resume on an `await` whose `awaitReason` is `detached`; the loop
|
|
11
|
+
used to return that acknowledgement as if it were the turn, with no result.
|
|
12
|
+
Both loops now read the rest of the turn through the execution events alias,
|
|
13
|
+
from the last event already consumed, and keep answering local-tool pauses
|
|
14
|
+
until the terminal frame (runtypelabs/core#8240 follow-up). The JSON loop
|
|
15
|
+
returns the buffered continuation envelope (`executionId`, `events[]`,
|
|
16
|
+
`status`, `error`) for a followed turn.
|
|
17
|
+
- `Runtype::Client#execution_events_stream(execution_id, after:, conversation_id:)`:
|
|
18
|
+
the events alias (`GET /v1/executions/{executionId}/events`) as a
|
|
19
|
+
`Runtype::Streaming::EventStream`, the reattach handle for any execution.
|
|
20
|
+
|
|
5
21
|
## 0.2.0
|
|
6
22
|
|
|
7
23
|
- Agents as code: `Runtype.define_agent` builds a validated, immutable
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
class Client
|
|
6
|
+
# @param client [Runtype::Internal::Http::RawClient]
|
|
7
|
+
#
|
|
8
|
+
# @return [void]
|
|
9
|
+
def initialize(client:)
|
|
10
|
+
@client = client
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# List the named pointers that select which immutable version of this agent runs. `live` sorts first, then the
|
|
14
|
+
# preview aliases by name. Archived aliases are omitted unless `includeArchived=true`. Omitting `limit` returns
|
|
15
|
+
# every pointer; supplying it pages through the same order with `cursor`.
|
|
16
|
+
#
|
|
17
|
+
# @param request_options [Hash]
|
|
18
|
+
# @param params [Hash]
|
|
19
|
+
# @option request_options [String] :base_url
|
|
20
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
21
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
22
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
23
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
24
|
+
# @option params [String] :id
|
|
25
|
+
# @option params [String, nil] :include_archived
|
|
26
|
+
# @option params [String, nil] :limit
|
|
27
|
+
# @option params [String, nil] :cursor
|
|
28
|
+
#
|
|
29
|
+
# @example
|
|
30
|
+
# client.agent_aliases.list_release_aliases_for_an_agent(id: "id")
|
|
31
|
+
#
|
|
32
|
+
# @return [Runtype::AgentAliases::Types::GetV1AgentsIDAliasesResponse]
|
|
33
|
+
def list_release_aliases_for_an_agent(request_options: {}, **params)
|
|
34
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
35
|
+
query_params = {}
|
|
36
|
+
query_params["includeArchived"] = params[:include_archived] if params.key?(:include_archived)
|
|
37
|
+
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
38
|
+
query_params["cursor"] = params[:cursor] if params.key?(:cursor)
|
|
39
|
+
|
|
40
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
41
|
+
base_url: request_options[:base_url],
|
|
42
|
+
method: "GET",
|
|
43
|
+
path: "v1/agents/#{URI.encode_uri_component(params[:id].to_s)}/aliases",
|
|
44
|
+
query: query_params,
|
|
45
|
+
request_options: request_options
|
|
46
|
+
)
|
|
47
|
+
begin
|
|
48
|
+
response = @client.send(request)
|
|
49
|
+
rescue Net::HTTPRequestTimeout
|
|
50
|
+
raise Runtype::Errors::TimeoutError
|
|
51
|
+
end
|
|
52
|
+
code = response.code.to_i
|
|
53
|
+
if code.between?(200, 299)
|
|
54
|
+
Runtype::AgentAliases::Types::GetV1AgentsIDAliasesResponse.load(response.body)
|
|
55
|
+
else
|
|
56
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
57
|
+
raise error_class.new(response.body, code: code)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Read one pointer. A missing or archived alias answers a structured 404 naming the alias; it never falls back to
|
|
62
|
+
# live.
|
|
63
|
+
#
|
|
64
|
+
# @param request_options [Hash]
|
|
65
|
+
# @param params [Hash]
|
|
66
|
+
# @option request_options [String] :base_url
|
|
67
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
68
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
69
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
70
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
71
|
+
# @option params [String] :id
|
|
72
|
+
# @option params [String] :alias_
|
|
73
|
+
# @option params [String, nil] :include_archived
|
|
74
|
+
#
|
|
75
|
+
# @example
|
|
76
|
+
# client.agent_aliases.get_one_release_alias(
|
|
77
|
+
# id: "id",
|
|
78
|
+
# alias_: "alias"
|
|
79
|
+
# )
|
|
80
|
+
#
|
|
81
|
+
# @return [Runtype::AgentAliases::Types::GetV1AgentsIDAliasesAliasResponse]
|
|
82
|
+
def get_one_release_alias(request_options: {}, **params)
|
|
83
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
84
|
+
query_params = {}
|
|
85
|
+
query_params["includeArchived"] = params[:include_archived] if params.key?(:include_archived)
|
|
86
|
+
|
|
87
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
88
|
+
base_url: request_options[:base_url],
|
|
89
|
+
method: "GET",
|
|
90
|
+
path: "v1/agents/#{URI.encode_uri_component(params[:id].to_s)}/aliases/#{URI.encode_uri_component(params[:alias_].to_s)}",
|
|
91
|
+
query: query_params,
|
|
92
|
+
request_options: request_options
|
|
93
|
+
)
|
|
94
|
+
begin
|
|
95
|
+
response = @client.send(request)
|
|
96
|
+
rescue Net::HTTPRequestTimeout
|
|
97
|
+
raise Runtype::Errors::TimeoutError
|
|
98
|
+
end
|
|
99
|
+
code = response.code.to_i
|
|
100
|
+
if code.between?(200, 299)
|
|
101
|
+
Runtype::AgentAliases::Types::GetV1AgentsIDAliasesAliasResponse.load(response.body)
|
|
102
|
+
else
|
|
103
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
104
|
+
raise error_class.new(response.body, code: code)
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Aim one alias at one immutable version of the same agent, appending a deployment receipt in the same
|
|
109
|
+
# transaction. Moving an existing `live` pointer requires the AGENTS:DEPLOY:LIVE scope and an `If-Match` revision;
|
|
110
|
+
# preview aliases require AGENTS:DEPLOY:PREVIEW. Dependency references the version names are fingerprinted first,
|
|
111
|
+
# and an unresolvable reference refuses the activation.
|
|
112
|
+
#
|
|
113
|
+
# @param request_options [Hash]
|
|
114
|
+
# @param params [Runtype::AgentAliases::Types::PutV1AgentsIDAliasesAliasRequest]
|
|
115
|
+
# @option request_options [String] :base_url
|
|
116
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
117
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
118
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
119
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
120
|
+
# @option params [String] :id
|
|
121
|
+
# @option params [String] :alias_
|
|
122
|
+
# @option params [String, nil] :if_match
|
|
123
|
+
# @option params [String, nil] :idempotency_key
|
|
124
|
+
#
|
|
125
|
+
# @example
|
|
126
|
+
# client.agent_aliases.activate_a_version_at_a_release_alias(
|
|
127
|
+
# id: "id",
|
|
128
|
+
# alias_: "alias",
|
|
129
|
+
# version_id: "versionId"
|
|
130
|
+
# )
|
|
131
|
+
#
|
|
132
|
+
# @return [Runtype::AgentAliases::Types::PutV1AgentsIDAliasesAliasResponse]
|
|
133
|
+
def activate_a_version_at_a_release_alias(request_options: {}, **params)
|
|
134
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
135
|
+
request_data = Runtype::AgentAliases::Types::PutV1AgentsIDAliasesAliasRequest.new(params).to_h
|
|
136
|
+
non_body_param_names = %w[id alias if-match idempotency-key]
|
|
137
|
+
body = request_data.except(*non_body_param_names)
|
|
138
|
+
|
|
139
|
+
headers = {}
|
|
140
|
+
headers["if-match"] = params[:if_match] if params[:if_match]
|
|
141
|
+
headers["idempotency-key"] = params[:idempotency_key] if params[:idempotency_key]
|
|
142
|
+
|
|
143
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
144
|
+
base_url: request_options[:base_url],
|
|
145
|
+
method: "PUT",
|
|
146
|
+
path: "v1/agents/#{URI.encode_uri_component(params[:id].to_s)}/aliases/#{URI.encode_uri_component(params[:alias_].to_s)}",
|
|
147
|
+
headers: headers,
|
|
148
|
+
body: body,
|
|
149
|
+
request_options: request_options
|
|
150
|
+
)
|
|
151
|
+
begin
|
|
152
|
+
response = @client.send(request)
|
|
153
|
+
rescue Net::HTTPRequestTimeout
|
|
154
|
+
raise Runtype::Errors::TimeoutError
|
|
155
|
+
end
|
|
156
|
+
code = response.code.to_i
|
|
157
|
+
if code.between?(200, 299)
|
|
158
|
+
Runtype::AgentAliases::Types::PutV1AgentsIDAliasesAliasResponse.load(response.body)
|
|
159
|
+
else
|
|
160
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
161
|
+
raise error_class.new(response.body, code: code)
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Archive a preview alias: it stops resolving for new executions, keeps its deployment history, and does not
|
|
166
|
+
# interrupt admitted runs. The row is never deleted, so a later activation revives the same pointer. `live` cannot
|
|
167
|
+
# be archived.
|
|
168
|
+
#
|
|
169
|
+
# @param request_options [Hash]
|
|
170
|
+
# @param params [Hash]
|
|
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
|
+
# @option params [String] :id
|
|
177
|
+
# @option params [String] :alias_
|
|
178
|
+
# @option params [String, nil] :if_match
|
|
179
|
+
# @option params [String, nil] :idempotency_key
|
|
180
|
+
#
|
|
181
|
+
# @example
|
|
182
|
+
# client.agent_aliases.archive_a_release_alias(
|
|
183
|
+
# id: "id",
|
|
184
|
+
# alias_: "alias"
|
|
185
|
+
# )
|
|
186
|
+
#
|
|
187
|
+
# @return [Runtype::AgentAliases::Types::DeleteV1AgentsIDAliasesAliasResponse]
|
|
188
|
+
def archive_a_release_alias(request_options: {}, **params)
|
|
189
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
190
|
+
headers = {}
|
|
191
|
+
headers["if-match"] = params[:if_match] if params[:if_match]
|
|
192
|
+
headers["idempotency-key"] = params[:idempotency_key] if params[:idempotency_key]
|
|
193
|
+
|
|
194
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
195
|
+
base_url: request_options[:base_url],
|
|
196
|
+
method: "DELETE",
|
|
197
|
+
path: "v1/agents/#{URI.encode_uri_component(params[:id].to_s)}/aliases/#{URI.encode_uri_component(params[:alias_].to_s)}",
|
|
198
|
+
headers: headers,
|
|
199
|
+
request_options: request_options
|
|
200
|
+
)
|
|
201
|
+
begin
|
|
202
|
+
response = @client.send(request)
|
|
203
|
+
rescue Net::HTTPRequestTimeout
|
|
204
|
+
raise Runtype::Errors::TimeoutError
|
|
205
|
+
end
|
|
206
|
+
code = response.code.to_i
|
|
207
|
+
if code.between?(200, 299)
|
|
208
|
+
Runtype::AgentAliases::Types::DeleteV1AgentsIDAliasesAliasResponse.load(response.body)
|
|
209
|
+
else
|
|
210
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
211
|
+
raise error_class.new(response.body, code: code)
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Re-aim an alias at the version recorded as `previousVersionId` on its most recent pointer-moving receipt,
|
|
216
|
+
# walking `steps` receipts back. Writes a `rollback` receipt. Rolling back `live` follows the same scope and
|
|
217
|
+
# `If-Match` rules as activation, and restores configuration only: external data and side effects are not rolled
|
|
218
|
+
# back.
|
|
219
|
+
#
|
|
220
|
+
# @param request_options [Hash]
|
|
221
|
+
# @param params [Runtype::AgentAliases::Types::PostV1AgentsIDAliasesAliasRollbackRequest]
|
|
222
|
+
# @option request_options [String] :base_url
|
|
223
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
224
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
225
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
226
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
227
|
+
# @option params [String] :id
|
|
228
|
+
# @option params [String] :alias_
|
|
229
|
+
# @option params [String, nil] :if_match
|
|
230
|
+
# @option params [String, nil] :idempotency_key
|
|
231
|
+
#
|
|
232
|
+
# @example
|
|
233
|
+
# client.agent_aliases.roll_a_release_alias_back_to_its_previous_version(
|
|
234
|
+
# id: "id",
|
|
235
|
+
# alias_: "alias"
|
|
236
|
+
# )
|
|
237
|
+
#
|
|
238
|
+
# @return [Runtype::AgentAliases::Types::PostV1AgentsIDAliasesAliasRollbackResponse]
|
|
239
|
+
def roll_a_release_alias_back_to_its_previous_version(request_options: {}, **params)
|
|
240
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
241
|
+
request_data = Runtype::AgentAliases::Types::PostV1AgentsIDAliasesAliasRollbackRequest.new(params).to_h
|
|
242
|
+
non_body_param_names = %w[id alias if-match idempotency-key]
|
|
243
|
+
body = request_data.except(*non_body_param_names)
|
|
244
|
+
|
|
245
|
+
headers = {}
|
|
246
|
+
headers["if-match"] = params[:if_match] if params[:if_match]
|
|
247
|
+
headers["idempotency-key"] = params[:idempotency_key] if params[:idempotency_key]
|
|
248
|
+
|
|
249
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
250
|
+
base_url: request_options[:base_url],
|
|
251
|
+
method: "POST",
|
|
252
|
+
path: "v1/agents/#{URI.encode_uri_component(params[:id].to_s)}/aliases/#{URI.encode_uri_component(params[:alias_].to_s)}/rollback",
|
|
253
|
+
headers: headers,
|
|
254
|
+
body: body,
|
|
255
|
+
request_options: request_options
|
|
256
|
+
)
|
|
257
|
+
begin
|
|
258
|
+
response = @client.send(request)
|
|
259
|
+
rescue Net::HTTPRequestTimeout
|
|
260
|
+
raise Runtype::Errors::TimeoutError
|
|
261
|
+
end
|
|
262
|
+
code = response.code.to_i
|
|
263
|
+
if code.between?(200, 299)
|
|
264
|
+
Runtype::AgentAliases::Types::PostV1AgentsIDAliasesAliasRollbackResponse.load(response.body)
|
|
265
|
+
else
|
|
266
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
267
|
+
raise error_class.new(response.body, code: code)
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# The append-only deployment history of this agent, newest first, cursor-paginated. Each receipt records the
|
|
272
|
+
# pointer, the previous and new versions, the alias revision, the actor, provenance and the dependency
|
|
273
|
+
# fingerprints checked at activation.
|
|
274
|
+
#
|
|
275
|
+
# @param request_options [Hash]
|
|
276
|
+
# @param params [Hash]
|
|
277
|
+
# @option request_options [String] :base_url
|
|
278
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
279
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
280
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
281
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
282
|
+
# @option params [String] :id
|
|
283
|
+
# @option params [String, nil] :alias_
|
|
284
|
+
# @option params [String, nil] :limit
|
|
285
|
+
# @option params [String, nil] :cursor
|
|
286
|
+
#
|
|
287
|
+
# @example
|
|
288
|
+
# client.agent_aliases.list_deployment_receipts_for_an_agent(id: "id")
|
|
289
|
+
#
|
|
290
|
+
# @return [Runtype::AgentAliases::Types::GetV1AgentsIDDeploymentsResponse]
|
|
291
|
+
def list_deployment_receipts_for_an_agent(request_options: {}, **params)
|
|
292
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
293
|
+
query_params = {}
|
|
294
|
+
query_params["alias"] = params[:alias_] if params.key?(:alias_)
|
|
295
|
+
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
296
|
+
query_params["cursor"] = params[:cursor] if params.key?(:cursor)
|
|
297
|
+
|
|
298
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
299
|
+
base_url: request_options[:base_url],
|
|
300
|
+
method: "GET",
|
|
301
|
+
path: "v1/agents/#{URI.encode_uri_component(params[:id].to_s)}/deployments",
|
|
302
|
+
query: query_params,
|
|
303
|
+
request_options: request_options
|
|
304
|
+
)
|
|
305
|
+
begin
|
|
306
|
+
response = @client.send(request)
|
|
307
|
+
rescue Net::HTTPRequestTimeout
|
|
308
|
+
raise Runtype::Errors::TimeoutError
|
|
309
|
+
end
|
|
310
|
+
code = response.code.to_i
|
|
311
|
+
if code.between?(200, 299)
|
|
312
|
+
Runtype::AgentAliases::Types::GetV1AgentsIDDeploymentsResponse.load(response.body)
|
|
313
|
+
else
|
|
314
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
315
|
+
raise error_class.new(response.body, code: code)
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class DeleteV1AgentsIDAliasesAliasRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :if_match, -> { String }, optional: true, nullable: false, api_name: "if-match"
|
|
12
|
+
|
|
13
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotency-key"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class DeleteV1AgentsIDAliasesAliasResponse < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :archived, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :receipt_id, -> { String }, optional: false, nullable: false, api_name: "receiptId"
|
|
12
|
+
|
|
13
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDAliasesAliasRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :include_archived, -> { String }, optional: true, nullable: false, api_name: "includeArchived"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDAliasesAliasResponse < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :archived_at, -> { String }, optional: false, nullable: true, api_name: "archivedAt"
|
|
10
|
+
|
|
11
|
+
field :content_hash, -> { String }, optional: false, nullable: true, api_name: "contentHash"
|
|
12
|
+
|
|
13
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
14
|
+
|
|
15
|
+
field :expires_at, -> { String }, optional: false, nullable: true, api_name: "expiresAt"
|
|
16
|
+
|
|
17
|
+
field :label, -> { String }, optional: false, nullable: true
|
|
18
|
+
|
|
19
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
20
|
+
|
|
21
|
+
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
22
|
+
|
|
23
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
24
|
+
|
|
25
|
+
field :version_number, -> { Integer }, optional: false, nullable: true, api_name: "versionNumber"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDAliasesRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :include_archived, -> { String }, optional: true, nullable: false, api_name: "includeArchived"
|
|
10
|
+
|
|
11
|
+
field :limit, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :cursor, -> { String }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDAliasesResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Runtype::AgentAliases::Types::GetV1AgentsIDAliasesResponseDataItem] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :next_cursor, -> { String }, optional: false, nullable: true, api_name: "nextCursor"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDAliasesResponseDataItem < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :archived_at, -> { String }, optional: false, nullable: true, api_name: "archivedAt"
|
|
10
|
+
|
|
11
|
+
field :content_hash, -> { String }, optional: false, nullable: true, api_name: "contentHash"
|
|
12
|
+
|
|
13
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
14
|
+
|
|
15
|
+
field :expires_at, -> { String }, optional: false, nullable: true, api_name: "expiresAt"
|
|
16
|
+
|
|
17
|
+
field :label, -> { String }, optional: false, nullable: true
|
|
18
|
+
|
|
19
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
20
|
+
|
|
21
|
+
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
22
|
+
|
|
23
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
24
|
+
|
|
25
|
+
field :version_number, -> { Integer }, optional: false, nullable: true, api_name: "versionNumber"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDDeploymentsRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :alias_, -> { String }, optional: true, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :limit, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :cursor, -> { String }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDDeploymentsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Runtype::AgentAliases::Types::GetV1AgentsIDDeploymentsResponseDataItem] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :pagination, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_response_data_item.rb
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDDeploymentsResponseDataItem < Internal::Types::Model
|
|
7
|
+
field :action, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :actor_user_id, -> { String }, optional: false, nullable: true, api_name: "actorUserId"
|
|
10
|
+
|
|
11
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
12
|
+
|
|
13
|
+
field :alias_revision, -> { Integer }, optional: false, nullable: false, api_name: "aliasRevision"
|
|
14
|
+
|
|
15
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
16
|
+
|
|
17
|
+
field :dependencies, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: true
|
|
18
|
+
|
|
19
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
20
|
+
|
|
21
|
+
field :previous_version_id, -> { String }, optional: false, nullable: true, api_name: "previousVersionId"
|
|
22
|
+
|
|
23
|
+
field :source, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
24
|
+
|
|
25
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_request.rb
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgentsIDAliasesAliasRollbackRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :if_match, -> { String }, optional: true, nullable: false, api_name: "if-match"
|
|
12
|
+
|
|
13
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotency-key"
|
|
14
|
+
|
|
15
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :steps, -> { Integer }, optional: true, nullable: false
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_response.rb
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgentsIDAliasesAliasRollbackResponse < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :changed, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :receipt_id, -> { String }, optional: false, nullable: false, api_name: "receiptId"
|
|
12
|
+
|
|
13
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
16
|
+
|
|
17
|
+
field :version_number, -> { Integer }, optional: false, nullable: true, api_name: "versionNumber"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDAliasesAliasRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :if_match, -> { String }, optional: true, nullable: false, api_name: "if-match"
|
|
12
|
+
|
|
13
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotency-key"
|
|
14
|
+
|
|
15
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDAliasesAliasResponse < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :changed, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :receipt_id, -> { String }, optional: false, nullable: false, api_name: "receiptId"
|
|
12
|
+
|
|
13
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
16
|
+
|
|
17
|
+
field :version_number, -> { Integer }, optional: false, nullable: true, api_name: "versionNumber"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|