runtype 0.2.2 → 0.5.0
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 +169 -1
- data/README.md +188 -23
- data/generated/lib/runtype/agent_aliases/client.rb +202 -1
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_bindings_request.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agent_aliases_request.rb +13 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agent_aliases_response.rb +11 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agent_aliases_response_data_item.rb +25 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_bindings_request.rb +13 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_response.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_response_data_item.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_response_data_item.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_response.rb +6 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_bindings_request.rb +21 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_request.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_response.rb +6 -0
- data/generated/lib/runtype/agent_versions/client.rb +13 -1
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request.rb +6 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request_deployment.rb +11 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request_deployment_action.rb +14 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_response.rb +1 -1
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_memory.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_id_execute_request_x_runtype_concurrency.rb +1 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_memory.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_memory.rb +2 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/batch/types/get_v1batch_batch_id_records_record_id_steps_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/client.rb +5 -5
- data/generated/lib/runtype/client_runtime/client.rb +118 -1
- data/generated/lib/runtype/client_runtime/types/get_v1client_conversations_conversation_id_executions_execution_id_deliveries_delivery_id_request.rb +21 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_chat_request_submit_mode.rb +1 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_conversations_conversation_id_executions_execution_id_cancel_request.rb +19 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_conversations_conversation_id_executions_execution_id_cancel_response.rb +13 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_response_durable_recovery.rb +2 -0
- data/generated/lib/runtype/client_tokens/types/get_v1client_tokens_id_response_client_token.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/get_v1client_tokens_response_client_tokens_item.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/post_v1client_tokens_id_regenerate_response_client_token.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/post_v1client_tokens_request.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/post_v1client_tokens_response_client_token.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/put_v1client_tokens_id_request.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/put_v1client_tokens_id_response_client_token.rb +4 -0
- data/generated/lib/runtype/conversations/client.rb +28 -10
- data/generated/lib/runtype/conversations/types/get_v1conversations_id_response.rb +3 -1
- data/generated/lib/runtype/conversations/types/post_v1conversations_request.rb +6 -0
- data/generated/lib/runtype/conversations/types/post_v1conversations_response.rb +3 -1
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request.rb +7 -1
- data/generated/lib/runtype/conversations/types/{put_v1conversations_id_request_messages_item_content_one_item_asset_ref_ref_kind.rb → put_v1conversations_id_request_messages_mode.rb} +3 -3
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_response.rb +3 -1
- data/generated/lib/runtype/dispatch/client.rb +5 -3
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_memory.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_history.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_memory.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_history.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response.rb +10 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response_results_by_record_value_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/evals/types/post_v1eval_run_request.rb +2 -0
- data/generated/lib/runtype/evals/types/post_v1eval_run_request_agent.rb +15 -0
- data/generated/lib/runtype/evals/types/post_v1eval_submit_request.rb +2 -0
- data/generated/lib/runtype/evals/types/post_v1eval_submit_request_agent.rb +15 -0
- data/generated/lib/runtype/evals/types/post_v1eval_suites_id_run_request.rb +2 -0
- data/generated/lib/runtype/executions/client.rb +43 -0
- data/generated/lib/runtype/executions/types/get_v1executions_execution_id_deliveries_delivery_id_request.rb +13 -0
- data/generated/lib/runtype/flows/client.rb +3 -4
- data/generated/lib/runtype/flows/types/get_v1flows_id_step_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/messaging_conversations/client.rb +2 -0
- data/generated/lib/runtype/messaging_conversations/types/get_v1messaging_conversations_request.rb +2 -0
- data/generated/lib/runtype/model_configs/types/post_v1model_configs_request_settings_custom_model.rb +2 -0
- data/generated/lib/runtype/model_configs/types/post_v1model_configs_request_settings_custom_model_mid_conversation_system_messages.rb +14 -0
- data/generated/lib/runtype/model_configs/types/put_v1model_configs_id_request_settings_custom_model.rb +2 -0
- data/generated/lib/runtype/model_configs/types/put_v1model_configs_id_request_settings_custom_model_mid_conversation_system_messages.rb +14 -0
- data/generated/lib/runtype/products/client.rb +45 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_request.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item.rb +17 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item.rb +77 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_agent_version.rb +17 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_execution_mode.rb +14 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_notification_mode.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_pending_approval.rb +27 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_status.rb +19 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_error.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item.rb +19 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_agent_mode.rb +45 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_available_fields.rb +39 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_available_fields_metadata_schema.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_error.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_source.rb +14 -0
- data/generated/lib/runtype/provider_keys/types/post_v1provider_keys_id_sync_models_request_models_item.rb +2 -0
- data/generated/lib/runtype/provider_keys/types/post_v1provider_keys_id_sync_models_request_models_item_mid_conversation_system_messages.rb +14 -0
- data/generated/lib/runtype/records/types/get_v1records_id_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/records/types/get_v1records_id_step_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/schedules/types/get_v1schedules_batch_batch_id_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/schedules/types/get_v1schedules_runs_run_id_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/types/agent_deployment_promotion.rb +17 -0
- data/generated/lib/runtype/types/agent_ensure_deploy_target.rb +2 -0
- data/generated/lib/runtype/types/agent_ensure_preview_alias_limit.rb +19 -0
- data/generated/lib/runtype/types/agent_ensure_preview_alias_limit_code.rb +11 -0
- data/generated/lib/runtype/types/agent_ensure_preview_alias_limit_scope.rb +12 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_memory.rb +2 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_memory_pointer_scope.rb +13 -0
- data/generated/lib/runtype/types/async_dispatch_handle.rb +10 -0
- data/generated/lib/runtype/types/async_dispatch_handle_delivery_status.rb +14 -0
- data/generated/lib/runtype/types/async_dispatch_handle_status.rb +5 -0
- data/generated/lib/runtype/types/client_input_delivery_receipt.rb +19 -0
- data/generated/lib/runtype/types/client_input_delivery_receipt_status.rb +14 -0
- data/generated/lib/runtype/types/conflict_error_body_candidate_count.rb +21 -0
- data/generated/lib/runtype/types/conflict_error_body_candidate_count_code.rb +11 -0
- data/generated/lib/runtype/types/conversation_busy_error.rb +15 -0
- data/generated/lib/runtype/types/conversation_busy_error_code.rb +11 -0
- data/generated/lib/runtype/types/conversation_busy_error_phase.rb +14 -0
- data/generated/lib/runtype/types/conversation_message_author.rb +16 -0
- data/generated/lib/runtype/types/conversation_message_author_type.rb +14 -0
- data/generated/lib/runtype/types/conversation_modified_error.rb +13 -0
- data/generated/lib/runtype/types/conversation_modified_error_code.rb +11 -0
- data/generated/lib/runtype/types/conversation_source.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message.rb +23 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item.rb +21 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_asset_ref.rb +19 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_asset_ref_ref_kind.rb +12 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_file.rb +13 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_image.rb +11 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_reasoning.rb +11 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_text.rb +9 -0
- data/generated/lib/runtype/types/conversation_transcript_message_role.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message_tool_calls_item.rb +15 -0
- data/generated/lib/runtype/types/conversation_transcript_message_tool_results_item.rb +15 -0
- data/generated/lib/runtype/types/dispatch_agent_json_response.rb +12 -0
- data/generated/lib/runtype/types/dispatch_agent_json_response_delivery_status.rb +14 -0
- data/generated/lib/runtype/types/dispatch_agent_json_response_execution_mode.rb +1 -0
- data/generated/lib/runtype/types/eval_agent_selector.rb +13 -0
- data/generated/lib/runtype/types/eval_run_scores_response.rb +10 -0
- data/generated/lib/runtype/types/eval_run_scores_response_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype/types/eval_run_scores_response_cases_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/types/eval_suite_run_queued.rb +10 -0
- data/generated/lib/runtype/types/eval_suite_run_queued_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype/types/input_delivery_receipt.rb +19 -0
- data/generated/lib/runtype/types/input_delivery_receipt_status.rb +14 -0
- data/generated/lib/runtype/types/preview_alias_limit_error.rb +21 -0
- data/generated/lib/runtype/types/preview_alias_limit_error_code.rb +11 -0
- data/generated/lib/runtype/types/preview_alias_limit_error_scope.rb +12 -0
- data/generated/lib/runtype/types/run_eval_response.rb +10 -0
- data/generated/lib/runtype/types/run_eval_response_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype.rb +109 -26
- data/lib/runtype/agent_ensure.rb +68 -4
- data/lib/runtype/agent_release_aliases.rb +282 -0
- data/lib/runtype/client.rb +22 -1
- data/lib/runtype/errors.rb +14 -2
- data/lib/runtype/raw_client_timeout.rb +56 -0
- data/lib/runtype/sdk_version.rb +2 -1
- data/lib/runtype.rb +2 -0
- metadata +95 -10
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item.rb +0 -17
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content.rb +0 -15
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item.rb +0 -21
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_asset_ref.rb +0 -21
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_file.rb +0 -15
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_image.rb +0 -13
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_text.rb +0 -11
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_role.rb +0 -15
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1ProductsIDActivityResponseDataAgentsItemDataItemStatus
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
QUEUED = "queued"
|
|
10
|
+
RUNNING = "running"
|
|
11
|
+
PAUSED = "paused"
|
|
12
|
+
COMPLETED = "completed"
|
|
13
|
+
FAILED = "failed"
|
|
14
|
+
CANCELLED = "cancelled"
|
|
15
|
+
INTERRUPTED = "interrupted"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItem < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemDataItem] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :error, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemError }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :pagination, -> { Runtype::Types::Pagination }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :source, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemSource }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :surface_id, -> { String }, optional: false, nullable: false, api_name: "surfaceId"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItemDataItem < Internal::Types::Model
|
|
7
|
+
extend Runtype::Internal::Types::Union
|
|
8
|
+
|
|
9
|
+
member -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAgentMode }
|
|
10
|
+
|
|
11
|
+
member -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAvailableFields }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAgentMode < Internal::Types::Model
|
|
7
|
+
field :agent_mode, -> { String }, optional: false, nullable: false, api_name: "agentMode"
|
|
8
|
+
|
|
9
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
10
|
+
|
|
11
|
+
field :external_participant_id, -> { String }, optional: false, nullable: true, api_name: "externalParticipantId"
|
|
12
|
+
|
|
13
|
+
field :external_thread_id, -> { String }, optional: false, nullable: true, api_name: "externalThreadId"
|
|
14
|
+
|
|
15
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :last_message_at, -> { String }, optional: false, nullable: true, api_name: "lastMessageAt"
|
|
18
|
+
|
|
19
|
+
field :message_count, -> { Integer }, optional: false, nullable: false, api_name: "messageCount"
|
|
20
|
+
|
|
21
|
+
field :participant_email, -> { String }, optional: false, nullable: true, api_name: "participantEmail"
|
|
22
|
+
|
|
23
|
+
field :participant_name, -> { String }, optional: false, nullable: true, api_name: "participantName"
|
|
24
|
+
|
|
25
|
+
field :status, -> { String }, optional: false, nullable: false
|
|
26
|
+
|
|
27
|
+
field :subject, -> { String }, optional: false, nullable: true
|
|
28
|
+
|
|
29
|
+
field :surface_id, -> { String }, optional: false, nullable: false, api_name: "surfaceId"
|
|
30
|
+
|
|
31
|
+
field :takeover_actor_id, -> { String }, optional: false, nullable: true, api_name: "takeoverActorId"
|
|
32
|
+
|
|
33
|
+
field :takeover_actor_type, -> { String }, optional: false, nullable: true, api_name: "takeoverActorType"
|
|
34
|
+
|
|
35
|
+
field :takeover_at, -> { String }, optional: false, nullable: true, api_name: "takeoverAt"
|
|
36
|
+
|
|
37
|
+
field :takeover_reason, -> { String }, optional: false, nullable: true, api_name: "takeoverReason"
|
|
38
|
+
|
|
39
|
+
field :timezone, -> { String }, optional: false, nullable: true
|
|
40
|
+
|
|
41
|
+
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAvailableFields < Internal::Types::Model
|
|
7
|
+
field :available_fields, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "availableFields"
|
|
8
|
+
|
|
9
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
10
|
+
|
|
11
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :messages, -> { Internal::Types::Array[Object] }, optional: false, nullable: true
|
|
14
|
+
|
|
15
|
+
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :metadata_labels, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false, api_name: "metadataLabels"
|
|
18
|
+
|
|
19
|
+
field :metadata_schema, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAvailableFieldsMetadataSchema }, optional: true, nullable: false, api_name: "metadataSchema"
|
|
20
|
+
|
|
21
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
22
|
+
|
|
23
|
+
field :organization_id, -> { String }, optional: false, nullable: true, api_name: "organizationId"
|
|
24
|
+
|
|
25
|
+
field :owner_id, -> { String }, optional: false, nullable: true, api_name: "ownerId"
|
|
26
|
+
|
|
27
|
+
field :product_surface_id, -> { String }, optional: false, nullable: true, api_name: "productSurfaceId"
|
|
28
|
+
|
|
29
|
+
field :schema_valid, -> { Internal::Types::Boolean }, optional: false, nullable: true, api_name: "schemaValid"
|
|
30
|
+
|
|
31
|
+
field :type, -> { String }, optional: false, nullable: false
|
|
32
|
+
|
|
33
|
+
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
34
|
+
|
|
35
|
+
field :user_id, -> { String }, optional: false, nullable: false, api_name: "userId"
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItemDataItemAvailableFieldsMetadataSchema < Internal::Types::Model
|
|
7
|
+
field :keys, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataSurfacesItemError < Internal::Types::Model
|
|
7
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1ProductsIDActivityResponseDataSurfacesItemSource
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MESSAGING = "messaging"
|
|
10
|
+
CLIENT_CONVERSATION = "client_conversation"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -12,6 +12,8 @@ module Runtype
|
|
|
12
12
|
|
|
13
13
|
field :max_output_tokens, -> { Integer }, optional: true, nullable: false, api_name: "maxOutputTokens"
|
|
14
14
|
|
|
15
|
+
field :mid_conversation_system_messages, -> { Runtype::ProviderKeys::Types::PostV1ProviderKeysIDSyncModelsRequestModelsItemMidConversationSystemMessages }, optional: true, nullable: false, api_name: "midConversationSystemMessages"
|
|
16
|
+
|
|
15
17
|
field :output_cost_per1k_tokens, -> { Integer }, optional: true, nullable: false, api_name: "outputCostPer1kTokens"
|
|
16
18
|
|
|
17
19
|
field :reasoning, -> { Runtype::ProviderKeys::Types::PostV1ProviderKeysIDSyncModelsRequestModelsItemReasoning }, optional: true, nullable: false
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module ProviderKeys
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1ProviderKeysIDSyncModelsRequestModelsItemMidConversationSystemMessages
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PRESERVE = "preserve"
|
|
10
|
+
HOIST = "hoist"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
# Source-organization ids and hashes this version was promoted from, linked on the receipt. Provenance only: it
|
|
6
|
+
# never authorizes anything, and the target credentials alone decide what the activation may do.
|
|
7
|
+
class AgentDeploymentPromotion < Internal::Types::Model
|
|
8
|
+
field :source_agent_id, -> { String }, optional: true, nullable: false, api_name: "sourceAgentId"
|
|
9
|
+
|
|
10
|
+
field :source_commit, -> { String }, optional: true, nullable: false, api_name: "sourceCommit"
|
|
11
|
+
|
|
12
|
+
field :source_content_hash, -> { String }, optional: true, nullable: false, api_name: "sourceContentHash"
|
|
13
|
+
|
|
14
|
+
field :source_version_id, -> { String }, optional: true, nullable: false, api_name: "sourceVersionId"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -10,6 +10,8 @@ module Runtype
|
|
|
10
10
|
# with code alias_requires_organization. Mutually exclusive with release.
|
|
11
11
|
class AgentEnsureDeployTarget < Internal::Types::Model
|
|
12
12
|
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
13
|
+
|
|
14
|
+
field :bindings, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
13
15
|
end
|
|
14
16
|
end
|
|
15
17
|
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class AgentEnsurePreviewAliasLimit < Internal::Types::Model
|
|
6
|
+
field :active, -> { Integer }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { Runtype::Types::AgentEnsurePreviewAliasLimitCode }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :error, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :limit, -> { Integer }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :scope, -> { Runtype::Types::AgentEnsurePreviewAliasLimitScope }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -7,6 +7,8 @@ module Runtype
|
|
|
7
7
|
|
|
8
8
|
field :inject_summary, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "injectSummary"
|
|
9
9
|
|
|
10
|
+
field :pointer_scope, -> { Runtype::Types::AgentPullResponseDefinitionConfigMemoryPointerScope }, optional: true, nullable: false, api_name: "pointerScope"
|
|
11
|
+
|
|
10
12
|
field :profile_template, -> { String }, optional: true, nullable: false, api_name: "profileTemplate"
|
|
11
13
|
end
|
|
12
14
|
end
|
|
@@ -3,10 +3,20 @@
|
|
|
3
3
|
module Runtype
|
|
4
4
|
module Types
|
|
5
5
|
class AsyncDispatchHandle < Internal::Types::Model
|
|
6
|
+
field :accepted, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
7
|
+
|
|
6
8
|
field :claude_managed_agent_id, -> { String }, optional: true, nullable: false, api_name: "claudeManagedAgentId"
|
|
7
9
|
|
|
8
10
|
field :conversation_id, -> { String }, optional: true, nullable: false, api_name: "conversationId"
|
|
9
11
|
|
|
12
|
+
field :delivery_id, -> { String }, optional: true, nullable: false, api_name: "deliveryId"
|
|
13
|
+
|
|
14
|
+
field :delivery_status, -> { Runtype::Types::AsyncDispatchHandleDeliveryStatus }, optional: true, nullable: false, api_name: "deliveryStatus"
|
|
15
|
+
|
|
16
|
+
field :delivery_status_url, -> { String }, optional: true, nullable: false, api_name: "deliveryStatusUrl"
|
|
17
|
+
|
|
18
|
+
field :events_url, -> { String }, optional: true, nullable: false, api_name: "eventsUrl"
|
|
19
|
+
|
|
10
20
|
field :execution_id, -> { String }, optional: false, nullable: false, api_name: "executionId"
|
|
11
21
|
|
|
12
22
|
field :status, -> { Runtype::Types::AsyncDispatchHandleStatus }, optional: false, nullable: false
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
module AsyncDispatchHandleDeliveryStatus
|
|
6
|
+
extend Runtype::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
PENDING = "pending"
|
|
9
|
+
APPLIED = "applied"
|
|
10
|
+
SETTLED = "settled"
|
|
11
|
+
NOT_APPLIED = "not_applied"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ClientInputDeliveryReceipt < Internal::Types::Model
|
|
6
|
+
field :delivery_id, -> { String }, optional: false, nullable: false, api_name: "deliveryId"
|
|
7
|
+
|
|
8
|
+
field :execution_id, -> { String }, optional: false, nullable: false, api_name: "executionId"
|
|
9
|
+
|
|
10
|
+
field :initial, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :outcome, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :sequence, -> { Integer }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :status, -> { Runtype::Types::ClientInputDeliveryReceiptStatus }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
module ClientInputDeliveryReceiptStatus
|
|
6
|
+
extend Runtype::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
PENDING = "pending"
|
|
9
|
+
APPLIED = "applied"
|
|
10
|
+
SETTLED = "settled"
|
|
11
|
+
NOT_APPLIED = "not_applied"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConflictErrorBodyCandidateCount < Internal::Types::Model
|
|
6
|
+
field :candidate_count, -> { Integer }, optional: false, nullable: false, api_name: "candidateCount"
|
|
7
|
+
|
|
8
|
+
field :code, -> { Runtype::Types::ConflictErrorBodyCandidateCountCode }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :config_id, -> { String }, optional: false, nullable: false, api_name: "configId"
|
|
11
|
+
|
|
12
|
+
field :details, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :error, -> { String }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :model_id, -> { String }, optional: false, nullable: false, api_name: "modelId"
|
|
17
|
+
|
|
18
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
module ConflictErrorBodyCandidateCountCode
|
|
6
|
+
extend Runtype::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
ORGANIZATION_MODEL_CONFIG_NEEDS_CONFIGURATION = "ORGANIZATION_MODEL_CONFIG_NEEDS_CONFIGURATION"
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConversationBusyError < Internal::Types::Model
|
|
6
|
+
field :code, -> { Runtype::Types::ConversationBusyErrorCode }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :error, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :execution_id, -> { String }, optional: true, nullable: false, api_name: "executionId"
|
|
11
|
+
|
|
12
|
+
field :phase, -> { Runtype::Types::ConversationBusyErrorPhase }, optional: true, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
# Who wrote this message in the source system. Stored and returned, never replayed.
|
|
6
|
+
class ConversationMessageAuthor < Internal::Types::Model
|
|
7
|
+
field :external_id, -> { String }, optional: true, nullable: false, api_name: "externalId"
|
|
8
|
+
|
|
9
|
+
field :id, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :type, -> { Runtype::Types::ConversationMessageAuthorType }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
module ConversationMessageAuthorType
|
|
6
|
+
extend Runtype::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
END_USER = "end_user"
|
|
9
|
+
OPERATOR = "operator"
|
|
10
|
+
AGENT = "agent"
|
|
11
|
+
SYSTEM = "system"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConversationModifiedError < Internal::Types::Model
|
|
6
|
+
field :details, -> { Internal::Types::Array[Runtype::Types::ErrorDetailsItem] }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :error, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :code, -> { Runtype::Types::ConversationModifiedErrorCode }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
# Import provenance, stored as metadata.importSource.
|
|
6
|
+
class ConversationSource < Internal::Types::Model
|
|
7
|
+
field :external_id, -> { String }, optional: true, nullable: false, api_name: "externalId"
|
|
8
|
+
|
|
9
|
+
field :imported_at, -> { String }, optional: true, nullable: false, api_name: "importedAt"
|
|
10
|
+
|
|
11
|
+
field :system, -> { String }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
class ConversationTranscriptMessage < Internal::Types::Model
|
|
6
|
+
field :author, -> { Runtype::Types::ConversationMessageAuthor }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :content, -> { Runtype::Types::ConversationTranscriptMessageContent }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :created_at, -> { String }, optional: true, nullable: false, api_name: "createdAt"
|
|
11
|
+
|
|
12
|
+
field :id, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :role, -> { Runtype::Types::ConversationTranscriptMessageRole }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :tool_calls, -> { Internal::Types::Array[Runtype::Types::ConversationTranscriptMessageToolCallsItem] }, optional: true, nullable: false, api_name: "toolCalls"
|
|
19
|
+
|
|
20
|
+
field :tool_results, -> { Internal::Types::Array[Runtype::Types::ConversationTranscriptMessageToolResultsItem] }, optional: true, nullable: false, api_name: "toolResults"
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Types
|
|
5
|
+
# Plain string, or an array of {type:"text"|"image"|"file"|"reasoning"|"asset_ref"} parts.
|
|
6
|
+
class ConversationTranscriptMessageContent < Internal::Types::Model
|
|
7
|
+
extend Runtype::Internal::Types::Union
|
|
8
|
+
|
|
9
|
+
member -> { String }
|
|
10
|
+
|
|
11
|
+
member -> { Internal::Types::Array[Runtype::Types::ConversationTranscriptMessageContentOneItem] }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|