cerca 0.1.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 +7 -0
- data/.ignore +2 -0
- data/CHANGELOG.md +17 -0
- data/README.md +275 -0
- data/SECURITY.md +27 -0
- data/lib/cerca/client.rb +144 -0
- data/lib/cerca/errors.rb +228 -0
- data/lib/cerca/file_part.rb +58 -0
- data/lib/cerca/internal/agents_cursor_page.rb +92 -0
- data/lib/cerca/internal/approval_requests_cursor_page.rb +92 -0
- data/lib/cerca/internal/connections_cursor_page.rb +92 -0
- data/lib/cerca/internal/entries_cursor_page.rb +92 -0
- data/lib/cerca/internal/events_cursor_page.rb +92 -0
- data/lib/cerca/internal/fleets_cursor_page.rb +92 -0
- data/lib/cerca/internal/grants_cursor_page.rb +92 -0
- data/lib/cerca/internal/results_cursor_page.rb +92 -0
- data/lib/cerca/internal/sources_cursor_page.rb +92 -0
- data/lib/cerca/internal/stream.rb +55 -0
- data/lib/cerca/internal/subscriptions_cursor_page.rb +92 -0
- data/lib/cerca/internal/threads_cursor_page.rb +92 -0
- data/lib/cerca/internal/transport/base_client.rb +570 -0
- data/lib/cerca/internal/transport/pooled_net_requester.rb +210 -0
- data/lib/cerca/internal/type/array_of.rb +168 -0
- data/lib/cerca/internal/type/base_model.rb +530 -0
- data/lib/cerca/internal/type/base_page.rb +55 -0
- data/lib/cerca/internal/type/base_stream.rb +83 -0
- data/lib/cerca/internal/type/boolean.rb +77 -0
- data/lib/cerca/internal/type/converter.rb +327 -0
- data/lib/cerca/internal/type/enum.rb +152 -0
- data/lib/cerca/internal/type/file_input.rb +110 -0
- data/lib/cerca/internal/type/hash_of.rb +188 -0
- data/lib/cerca/internal/type/request_parameters.rb +42 -0
- data/lib/cerca/internal/type/union.rb +258 -0
- data/lib/cerca/internal/type/unknown.rb +81 -0
- data/lib/cerca/internal/util.rb +966 -0
- data/lib/cerca/internal.rb +20 -0
- data/lib/cerca/models/agent.rb +87 -0
- data/lib/cerca/models/agent_create_params.rb +47 -0
- data/lib/cerca/models/agent_delete_params.rb +20 -0
- data/lib/cerca/models/agent_delete_response.rb +16 -0
- data/lib/cerca/models/agent_list_params.rb +61 -0
- data/lib/cerca/models/agent_list_tools_params.rb +20 -0
- data/lib/cerca/models/agent_list_tools_response.rb +29 -0
- data/lib/cerca/models/agent_retrieve_config_params.rb +20 -0
- data/lib/cerca/models/agent_retrieve_params.rb +20 -0
- data/lib/cerca/models/agent_summary.rb +84 -0
- data/lib/cerca/models/agent_update_metadata_params.rb +33 -0
- data/lib/cerca/models/agent_update_params.rb +26 -0
- data/lib/cerca/models/api_key_tool_source_auth.rb +34 -0
- data/lib/cerca/models/approval_grant.rb +57 -0
- data/lib/cerca/models/approval_grant_delete_for_thread_params.rb +32 -0
- data/lib/cerca/models/approval_grant_delete_for_thread_response.rb +16 -0
- data/lib/cerca/models/approval_grant_delete_params.rb +26 -0
- data/lib/cerca/models/approval_grant_delete_response.rb +16 -0
- data/lib/cerca/models/approval_grant_list_for_thread_params.rb +26 -0
- data/lib/cerca/models/approval_grant_list_for_thread_response.rb +8 -0
- data/lib/cerca/models/approval_grant_list_params.rb +41 -0
- data/lib/cerca/models/approval_mode.rb +15 -0
- data/lib/cerca/models/approval_policy.rb +21 -0
- data/lib/cerca/models/approval_request.rb +133 -0
- data/lib/cerca/models/approval_request_list_params.rb +49 -0
- data/lib/cerca/models/approval_request_resolve_params.rb +65 -0
- data/lib/cerca/models/attached_connection.rb +22 -0
- data/lib/cerca/models/auth_context_params.rb +14 -0
- data/lib/cerca/models/auth_context_response.rb +22 -0
- data/lib/cerca/models/auth_fleets_response.rb +27 -0
- data/lib/cerca/models/auth_injection.rb +65 -0
- data/lib/cerca/models/auth_list_fleets_params.rb +34 -0
- data/lib/cerca/models/compiled_context.rb +30 -0
- data/lib/cerca/models/configuration.rb +41 -0
- data/lib/cerca/models/configuration_field_name.rb +17 -0
- data/lib/cerca/models/connection.rb +70 -0
- data/lib/cerca/models/connection_attach_params.rb +32 -0
- data/lib/cerca/models/connection_create_params.rb +50 -0
- data/lib/cerca/models/connection_delete_params.rb +48 -0
- data/lib/cerca/models/connection_delete_response.rb +16 -0
- data/lib/cerca/models/connection_detach_params.rb +26 -0
- data/lib/cerca/models/connection_detach_response.rb +16 -0
- data/lib/cerca/models/connection_list_for_agent_params.rb +20 -0
- data/lib/cerca/models/connection_list_for_agent_response.rb +28 -0
- data/lib/cerca/models/connection_list_params.rb +61 -0
- data/lib/cerca/models/connection_owner.rb +46 -0
- data/lib/cerca/models/content_block.rb +209 -0
- data/lib/cerca/models/context_delete_params.rb +29 -0
- data/lib/cerca/models/context_delete_response.rb +16 -0
- data/lib/cerca/models/context_list_params.rb +49 -0
- data/lib/cerca/models/context_retrieve_params.rb +29 -0
- data/lib/cerca/models/context_search_params.rb +57 -0
- data/lib/cerca/models/context_write_params.rb +44 -0
- data/lib/cerca/models/credential_provider.rb +20 -0
- data/lib/cerca/models/credential_type.rb +15 -0
- data/lib/cerca/models/discovered_tool.rb +119 -0
- data/lib/cerca/models/effective_configuration.rb +86 -0
- data/lib/cerca/models/entry.rb +40 -0
- data/lib/cerca/models/entry_summary.rb +40 -0
- data/lib/cerca/models/error_response.rb +23 -0
- data/lib/cerca/models/event_list_for_agent_params.rb +68 -0
- data/lib/cerca/models/event_list_for_fleet_params.rb +68 -0
- data/lib/cerca/models/event_list_for_thread_params.rb +75 -0
- data/lib/cerca/models/event_stream_for_agent_params.rb +64 -0
- data/lib/cerca/models/event_stream_for_fleet_params.rb +64 -0
- data/lib/cerca/models/event_stream_for_thread_events_params.rb +71 -0
- data/lib/cerca/models/event_stream_for_thread_params.rb +26 -0
- data/lib/cerca/models/exec_result.rb +63 -0
- data/lib/cerca/models/execution_principal.rb +56 -0
- data/lib/cerca/models/fleet.rb +39 -0
- data/lib/cerca/models/http_endpoint.rb +71 -0
- data/lib/cerca/models/http_tool_definition.rb +65 -0
- data/lib/cerca/models/http_tool_execution_policy.rb +47 -0
- data/lib/cerca/models/http_tool_source.rb +98 -0
- data/lib/cerca/models/json_object.rb +8 -0
- data/lib/cerca/models/mcp_tool_execution_policy.rb +47 -0
- data/lib/cerca/models/mcp_tool_source.rb +98 -0
- data/lib/cerca/models/message.rb +44 -0
- data/lib/cerca/models/metadata.rb +8 -0
- data/lib/cerca/models/model_descriptor.rb +64 -0
- data/lib/cerca/models/model_list_params.rb +14 -0
- data/lib/cerca/models/model_list_response.rb +16 -0
- data/lib/cerca/models/no_tool_source_auth.rb +15 -0
- data/lib/cerca/models/oauth_connect_params.rb +49 -0
- data/lib/cerca/models/oauth_connect_response.rb +41 -0
- data/lib/cerca/models/oauth_connection_tool_source_auth.rb +41 -0
- data/lib/cerca/models/oauth_exchange_config.rb +118 -0
- data/lib/cerca/models/oauth_exchange_tool_source_auth.rb +36 -0
- data/lib/cerca/models/read_response.rb +22 -0
- data/lib/cerca/models/response_normalization_hint.rb +30 -0
- data/lib/cerca/models/runtime_webhook_event.rb +1884 -0
- data/lib/cerca/models/sandbox_exec_params.rb +51 -0
- data/lib/cerca/models/sandbox_read_params.rb +38 -0
- data/lib/cerca/models/sandbox_write_params.rb +32 -0
- data/lib/cerca/models/sandbox_write_response.rb +16 -0
- data/lib/cerca/models/schedule.rb +105 -0
- data/lib/cerca/models/schedule_create_params.rb +82 -0
- data/lib/cerca/models/schedule_delete_params.rb +26 -0
- data/lib/cerca/models/schedule_delete_response.rb +16 -0
- data/lib/cerca/models/schedule_list_params.rb +20 -0
- data/lib/cerca/models/schedule_list_response.rb +16 -0
- data/lib/cerca/models/schedule_trigger_params.rb +26 -0
- data/lib/cerca/models/schedule_trigger_response.rb +16 -0
- data/lib/cerca/models/schedule_update_params.rb +96 -0
- data/lib/cerca/models/search_result.rb +52 -0
- data/lib/cerca/models/source_warning.rb +27 -0
- data/lib/cerca/models/status.rb +20 -0
- data/lib/cerca/models/steer_result.rb +47 -0
- data/lib/cerca/models/sub_thread_summary.rb +114 -0
- data/lib/cerca/models/subscription_event.rb +22 -0
- data/lib/cerca/models/thread.rb +202 -0
- data/lib/cerca/models/thread_cancel_params.rb +26 -0
- data/lib/cerca/models/thread_close_params.rb +26 -0
- data/lib/cerca/models/thread_compact_params.rb +26 -0
- data/lib/cerca/models/thread_create_params.rb +63 -0
- data/lib/cerca/models/thread_list_params.rb +57 -0
- data/lib/cerca/models/thread_retrieve_params.rb +66 -0
- data/lib/cerca/models/thread_start_turn_params.rb +55 -0
- data/lib/cerca/models/thread_steer_params.rb +32 -0
- data/lib/cerca/models/thread_stream_event.rb +888 -0
- data/lib/cerca/models/thread_summary.rb +92 -0
- data/lib/cerca/models/token_usage.rb +21 -0
- data/lib/cerca/models/tool.rb +22 -0
- data/lib/cerca/models/tool_approval_mode.rb +15 -0
- data/lib/cerca/models/tool_connection_metadata.rb +8 -0
- data/lib/cerca/models/tool_create_params.rb +157 -0
- data/lib/cerca/models/tool_delete_params.rb +26 -0
- data/lib/cerca/models/tool_descriptor.rb +78 -0
- data/lib/cerca/models/tool_list_params.rb +41 -0
- data/lib/cerca/models/tool_name.rb +50 -0
- data/lib/cerca/models/tool_retrieve_params.rb +26 -0
- data/lib/cerca/models/tool_source.rb +19 -0
- data/lib/cerca/models/tool_source_auth.rb +24 -0
- data/lib/cerca/models/tool_spec.rb +7 -0
- data/lib/cerca/models/tool_update_params.rb +163 -0
- data/lib/cerca/models/turn.rb +94 -0
- data/lib/cerca/models/webhook_create_params.rb +37 -0
- data/lib/cerca/models/webhook_delete_params.rb +26 -0
- data/lib/cerca/models/webhook_event_type.rb +33 -0
- data/lib/cerca/models/webhook_list_params.rb +41 -0
- data/lib/cerca/models/webhook_retrieve_params.rb +26 -0
- data/lib/cerca/models/webhook_rotate_params.rb +26 -0
- data/lib/cerca/models/webhook_subscription.rb +55 -0
- data/lib/cerca/models/webhook_subscription_created.rb +73 -0
- data/lib/cerca/models/webhook_subscription_event_type.rb +33 -0
- data/lib/cerca/models/webhook_test_params.rb +26 -0
- data/lib/cerca/models/webhook_test_response.rb +28 -0
- data/lib/cerca/models/webhook_update_params.rb +52 -0
- data/lib/cerca/models.rb +310 -0
- data/lib/cerca/request_options.rb +77 -0
- data/lib/cerca/resources/agents.rb +197 -0
- data/lib/cerca/resources/approval_grants.rb +106 -0
- data/lib/cerca/resources/approval_requests.rb +72 -0
- data/lib/cerca/resources/auth.rb +61 -0
- data/lib/cerca/resources/connections.rb +167 -0
- data/lib/cerca/resources/context.rb +157 -0
- data/lib/cerca/resources/events.rb +269 -0
- data/lib/cerca/resources/fleets.rb +14 -0
- data/lib/cerca/resources/models.rb +32 -0
- data/lib/cerca/resources/oauth.rb +45 -0
- data/lib/cerca/resources/sandbox.rb +91 -0
- data/lib/cerca/resources/schedules.rb +159 -0
- data/lib/cerca/resources/threads.rb +233 -0
- data/lib/cerca/resources/tools.rb +130 -0
- data/lib/cerca/resources/webhooks.rb +181 -0
- data/lib/cerca/version.rb +5 -0
- data/lib/cerca.rb +231 -0
- data/manifest.yaml +17 -0
- data/rbi/cerca/client.rbi +91 -0
- data/rbi/cerca/errors.rbi +205 -0
- data/rbi/cerca/file_part.rbi +37 -0
- data/rbi/cerca/internal/agents_cursor_page.rbi +25 -0
- data/rbi/cerca/internal/approval_requests_cursor_page.rbi +25 -0
- data/rbi/cerca/internal/connections_cursor_page.rbi +25 -0
- data/rbi/cerca/internal/entries_cursor_page.rbi +25 -0
- data/rbi/cerca/internal/events_cursor_page.rbi +25 -0
- data/rbi/cerca/internal/fleets_cursor_page.rbi +25 -0
- data/rbi/cerca/internal/grants_cursor_page.rbi +25 -0
- data/rbi/cerca/internal/results_cursor_page.rbi +25 -0
- data/rbi/cerca/internal/sources_cursor_page.rbi +25 -0
- data/rbi/cerca/internal/stream.rbi +18 -0
- data/rbi/cerca/internal/subscriptions_cursor_page.rbi +25 -0
- data/rbi/cerca/internal/threads_cursor_page.rbi +25 -0
- data/rbi/cerca/internal/transport/base_client.rbi +313 -0
- data/rbi/cerca/internal/transport/pooled_net_requester.rbi +82 -0
- data/rbi/cerca/internal/type/array_of.rbi +104 -0
- data/rbi/cerca/internal/type/base_model.rbi +299 -0
- data/rbi/cerca/internal/type/base_page.rbi +42 -0
- data/rbi/cerca/internal/type/base_stream.rbi +75 -0
- data/rbi/cerca/internal/type/boolean.rbi +58 -0
- data/rbi/cerca/internal/type/converter.rbi +204 -0
- data/rbi/cerca/internal/type/enum.rbi +82 -0
- data/rbi/cerca/internal/type/file_input.rbi +58 -0
- data/rbi/cerca/internal/type/hash_of.rbi +104 -0
- data/rbi/cerca/internal/type/request_parameters.rbi +29 -0
- data/rbi/cerca/internal/type/union.rbi +126 -0
- data/rbi/cerca/internal/type/unknown.rbi +58 -0
- data/rbi/cerca/internal/util.rbi +506 -0
- data/rbi/cerca/internal.rbi +16 -0
- data/rbi/cerca/models/agent.rbi +102 -0
- data/rbi/cerca/models/agent_create_params.rbi +75 -0
- data/rbi/cerca/models/agent_delete_params.rbi +35 -0
- data/rbi/cerca/models/agent_delete_response.rbi +23 -0
- data/rbi/cerca/models/agent_list_params.rbi +99 -0
- data/rbi/cerca/models/agent_list_tools_params.rbi +35 -0
- data/rbi/cerca/models/agent_list_tools_response.rbi +56 -0
- data/rbi/cerca/models/agent_retrieve_config_params.rbi +35 -0
- data/rbi/cerca/models/agent_retrieve_params.rbi +35 -0
- data/rbi/cerca/models/agent_summary.rbi +91 -0
- data/rbi/cerca/models/agent_update_metadata_params.rbi +51 -0
- data/rbi/cerca/models/agent_update_params.rbi +46 -0
- data/rbi/cerca/models/api_key_tool_source_auth.rbi +66 -0
- data/rbi/cerca/models/approval_grant.rbi +80 -0
- data/rbi/cerca/models/approval_grant_delete_for_thread_params.rbi +51 -0
- data/rbi/cerca/models/approval_grant_delete_for_thread_response.rbi +26 -0
- data/rbi/cerca/models/approval_grant_delete_params.rbi +43 -0
- data/rbi/cerca/models/approval_grant_delete_response.rbi +26 -0
- data/rbi/cerca/models/approval_grant_list_for_thread_params.rbi +46 -0
- data/rbi/cerca/models/approval_grant_list_for_thread_response.rbi +11 -0
- data/rbi/cerca/models/approval_grant_list_params.rbi +65 -0
- data/rbi/cerca/models/approval_mode.rbi +19 -0
- data/rbi/cerca/models/approval_policy.rbi +42 -0
- data/rbi/cerca/models/approval_request.rbi +152 -0
- data/rbi/cerca/models/approval_request_list_params.rbi +76 -0
- data/rbi/cerca/models/approval_request_resolve_params.rbi +137 -0
- data/rbi/cerca/models/attached_connection.rbi +37 -0
- data/rbi/cerca/models/auth_context_params.rbi +27 -0
- data/rbi/cerca/models/auth_context_response.rbi +26 -0
- data/rbi/cerca/models/auth_fleets_response.rbi +43 -0
- data/rbi/cerca/models/auth_injection.rbi +91 -0
- data/rbi/cerca/models/auth_list_fleets_params.rbi +59 -0
- data/rbi/cerca/models/compiled_context.rbi +41 -0
- data/rbi/cerca/models/configuration.rbi +67 -0
- data/rbi/cerca/models/configuration_field_name.rbi +26 -0
- data/rbi/cerca/models/connection.rbi +83 -0
- data/rbi/cerca/models/connection_attach_params.rbi +56 -0
- data/rbi/cerca/models/connection_create_params.rbi +87 -0
- data/rbi/cerca/models/connection_delete_params.rbi +87 -0
- data/rbi/cerca/models/connection_delete_response.rbi +26 -0
- data/rbi/cerca/models/connection_detach_params.rbi +43 -0
- data/rbi/cerca/models/connection_detach_response.rbi +26 -0
- data/rbi/cerca/models/connection_list_for_agent_params.rbi +35 -0
- data/rbi/cerca/models/connection_list_for_agent_response.rbi +46 -0
- data/rbi/cerca/models/connection_list_params.rbi +103 -0
- data/rbi/cerca/models/connection_owner.rbi +68 -0
- data/rbi/cerca/models/content_block.rbi +324 -0
- data/rbi/cerca/models/context_delete_params.rbi +49 -0
- data/rbi/cerca/models/context_delete_response.rbi +23 -0
- data/rbi/cerca/models/context_list_params.rbi +76 -0
- data/rbi/cerca/models/context_retrieve_params.rbi +49 -0
- data/rbi/cerca/models/context_search_params.rbi +84 -0
- data/rbi/cerca/models/context_write_params.rbi +71 -0
- data/rbi/cerca/models/credential_provider.rbi +26 -0
- data/rbi/cerca/models/credential_type.rbi +19 -0
- data/rbi/cerca/models/discovered_tool.rbi +156 -0
- data/rbi/cerca/models/effective_configuration.rbi +122 -0
- data/rbi/cerca/models/entry.rbi +53 -0
- data/rbi/cerca/models/entry_summary.rbi +54 -0
- data/rbi/cerca/models/error_response.rbi +32 -0
- data/rbi/cerca/models/event_list_for_agent_params.rbi +115 -0
- data/rbi/cerca/models/event_list_for_fleet_params.rbi +115 -0
- data/rbi/cerca/models/event_list_for_thread_params.rbi +121 -0
- data/rbi/cerca/models/event_stream_for_agent_params.rbi +115 -0
- data/rbi/cerca/models/event_stream_for_fleet_params.rbi +115 -0
- data/rbi/cerca/models/event_stream_for_thread_events_params.rbi +134 -0
- data/rbi/cerca/models/event_stream_for_thread_params.rbi +43 -0
- data/rbi/cerca/models/exec_result.rbi +85 -0
- data/rbi/cerca/models/execution_principal.rbi +82 -0
- data/rbi/cerca/models/fleet.rbi +50 -0
- data/rbi/cerca/models/http_endpoint.rbi +112 -0
- data/rbi/cerca/models/http_tool_definition.rbi +92 -0
- data/rbi/cerca/models/http_tool_execution_policy.rbi +106 -0
- data/rbi/cerca/models/http_tool_source.rbi +117 -0
- data/rbi/cerca/models/json_object.rbi +11 -0
- data/rbi/cerca/models/mcp_tool_execution_policy.rbi +106 -0
- data/rbi/cerca/models/mcp_tool_source.rbi +117 -0
- data/rbi/cerca/models/message.rbi +68 -0
- data/rbi/cerca/models/metadata.rbi +11 -0
- data/rbi/cerca/models/model_descriptor.rbi +92 -0
- data/rbi/cerca/models/model_list_params.rbi +25 -0
- data/rbi/cerca/models/model_list_response.rbi +27 -0
- data/rbi/cerca/models/no_tool_source_auth.rbi +23 -0
- data/rbi/cerca/models/oauth_connect_params.rbi +85 -0
- data/rbi/cerca/models/oauth_connect_response.rbi +67 -0
- data/rbi/cerca/models/oauth_connection_tool_source_auth.rbi +88 -0
- data/rbi/cerca/models/oauth_exchange_config.rbi +185 -0
- data/rbi/cerca/models/oauth_exchange_tool_source_auth.rbi +85 -0
- data/rbi/cerca/models/read_response.rbi +26 -0
- data/rbi/cerca/models/response_normalization_hint.rbi +57 -0
- data/rbi/cerca/models/runtime_webhook_event.rbi +3178 -0
- data/rbi/cerca/models/sandbox_exec_params.rbi +75 -0
- data/rbi/cerca/models/sandbox_read_params.rbi +65 -0
- data/rbi/cerca/models/sandbox_write_params.rbi +48 -0
- data/rbi/cerca/models/sandbox_write_response.rbi +23 -0
- data/rbi/cerca/models/schedule.rbi +123 -0
- data/rbi/cerca/models/schedule_create_params.rbi +111 -0
- data/rbi/cerca/models/schedule_delete_params.rbi +43 -0
- data/rbi/cerca/models/schedule_delete_response.rbi +23 -0
- data/rbi/cerca/models/schedule_list_params.rbi +35 -0
- data/rbi/cerca/models/schedule_list_response.rbi +27 -0
- data/rbi/cerca/models/schedule_trigger_params.rbi +43 -0
- data/rbi/cerca/models/schedule_trigger_response.rbi +26 -0
- data/rbi/cerca/models/schedule_update_params.rbi +132 -0
- data/rbi/cerca/models/search_result.rbi +72 -0
- data/rbi/cerca/models/source_warning.rbi +36 -0
- data/rbi/cerca/models/status.rbi +24 -0
- data/rbi/cerca/models/steer_result.rbi +69 -0
- data/rbi/cerca/models/sub_thread_summary.rbi +130 -0
- data/rbi/cerca/models/subscription_event.rbi +57 -0
- data/rbi/cerca/models/thread.rbi +218 -0
- data/rbi/cerca/models/thread_cancel_params.rbi +43 -0
- data/rbi/cerca/models/thread_close_params.rbi +43 -0
- data/rbi/cerca/models/thread_compact_params.rbi +43 -0
- data/rbi/cerca/models/thread_create_params.rbi +94 -0
- data/rbi/cerca/models/thread_list_params.rbi +87 -0
- data/rbi/cerca/models/thread_retrieve_params.rbi +130 -0
- data/rbi/cerca/models/thread_start_turn_params.rbi +77 -0
- data/rbi/cerca/models/thread_steer_params.rbi +48 -0
- data/rbi/cerca/models/thread_stream_event.rbi +1507 -0
- data/rbi/cerca/models/thread_summary.rbi +99 -0
- data/rbi/cerca/models/token_usage.rbi +28 -0
- data/rbi/cerca/models/tool.rbi +18 -0
- data/rbi/cerca/models/tool_approval_mode.rbi +19 -0
- data/rbi/cerca/models/tool_connection_metadata.rbi +11 -0
- data/rbi/cerca/models/tool_create_params.rbi +286 -0
- data/rbi/cerca/models/tool_delete_params.rbi +43 -0
- data/rbi/cerca/models/tool_descriptor.rbi +110 -0
- data/rbi/cerca/models/tool_list_params.rbi +63 -0
- data/rbi/cerca/models/tool_name.rbi +70 -0
- data/rbi/cerca/models/tool_retrieve_params.rbi +43 -0
- data/rbi/cerca/models/tool_source.rbi +16 -0
- data/rbi/cerca/models/tool_source_auth.rbi +25 -0
- data/rbi/cerca/models/tool_spec.rbi +7 -0
- data/rbi/cerca/models/tool_update_params.rbi +291 -0
- data/rbi/cerca/models/turn.rbi +116 -0
- data/rbi/cerca/models/webhook_create_params.rbi +68 -0
- data/rbi/cerca/models/webhook_delete_params.rbi +43 -0
- data/rbi/cerca/models/webhook_event_type.rbi +56 -0
- data/rbi/cerca/models/webhook_list_params.rbi +65 -0
- data/rbi/cerca/models/webhook_retrieve_params.rbi +43 -0
- data/rbi/cerca/models/webhook_rotate_params.rbi +43 -0
- data/rbi/cerca/models/webhook_subscription.rbi +73 -0
- data/rbi/cerca/models/webhook_subscription_created.rbi +83 -0
- data/rbi/cerca/models/webhook_subscription_event_type.rbi +115 -0
- data/rbi/cerca/models/webhook_test_params.rbi +43 -0
- data/rbi/cerca/models/webhook_test_response.rbi +43 -0
- data/rbi/cerca/models/webhook_update_params.rbi +88 -0
- data/rbi/cerca/models.rbi +277 -0
- data/rbi/cerca/request_options.rbi +55 -0
- data/rbi/cerca/resources/agents.rbi +125 -0
- data/rbi/cerca/resources/approval_grants.rbi +66 -0
- data/rbi/cerca/resources/approval_requests.rbi +58 -0
- data/rbi/cerca/resources/auth.rbi +39 -0
- data/rbi/cerca/resources/connections.rbi +116 -0
- data/rbi/cerca/resources/context.rbi +114 -0
- data/rbi/cerca/resources/events.rbi +188 -0
- data/rbi/cerca/resources/fleets.rbi +12 -0
- data/rbi/cerca/resources/models.rbi +21 -0
- data/rbi/cerca/resources/oauth.rbi +39 -0
- data/rbi/cerca/resources/sandbox.rbi +60 -0
- data/rbi/cerca/resources/schedules.rbi +110 -0
- data/rbi/cerca/resources/threads.rbi +160 -0
- data/rbi/cerca/resources/tools.rbi +87 -0
- data/rbi/cerca/resources/webhooks.rbi +121 -0
- data/rbi/cerca/version.rbi +5 -0
- data/sig/cerca/client.rbs +54 -0
- data/sig/cerca/errors.rbs +117 -0
- data/sig/cerca/file_part.rbs +21 -0
- data/sig/cerca/internal/agents_cursor_page.rbs +15 -0
- data/sig/cerca/internal/approval_requests_cursor_page.rbs +15 -0
- data/sig/cerca/internal/connections_cursor_page.rbs +15 -0
- data/sig/cerca/internal/entries_cursor_page.rbs +15 -0
- data/sig/cerca/internal/events_cursor_page.rbs +15 -0
- data/sig/cerca/internal/fleets_cursor_page.rbs +15 -0
- data/sig/cerca/internal/grants_cursor_page.rbs +15 -0
- data/sig/cerca/internal/results_cursor_page.rbs +15 -0
- data/sig/cerca/internal/sources_cursor_page.rbs +15 -0
- data/sig/cerca/internal/stream.rbs +9 -0
- data/sig/cerca/internal/subscriptions_cursor_page.rbs +15 -0
- data/sig/cerca/internal/threads_cursor_page.rbs +15 -0
- data/sig/cerca/internal/transport/base_client.rbs +133 -0
- data/sig/cerca/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/cerca/internal/type/array_of.rbs +48 -0
- data/sig/cerca/internal/type/base_model.rbs +102 -0
- data/sig/cerca/internal/type/base_page.rbs +24 -0
- data/sig/cerca/internal/type/base_stream.rbs +38 -0
- data/sig/cerca/internal/type/boolean.rbs +26 -0
- data/sig/cerca/internal/type/converter.rbs +79 -0
- data/sig/cerca/internal/type/enum.rbs +32 -0
- data/sig/cerca/internal/type/file_input.rbs +25 -0
- data/sig/cerca/internal/type/hash_of.rbs +48 -0
- data/sig/cerca/internal/type/request_parameters.rbs +17 -0
- data/sig/cerca/internal/type/union.rbs +52 -0
- data/sig/cerca/internal/type/unknown.rbs +26 -0
- data/sig/cerca/internal/util.rbs +199 -0
- data/sig/cerca/internal.rbs +9 -0
- data/sig/cerca/models/agent.rbs +69 -0
- data/sig/cerca/models/agent_create_params.rbs +49 -0
- data/sig/cerca/models/agent_delete_params.rbs +23 -0
- data/sig/cerca/models/agent_delete_response.rbs +13 -0
- data/sig/cerca/models/agent_list_params.rbs +62 -0
- data/sig/cerca/models/agent_list_tools_params.rbs +23 -0
- data/sig/cerca/models/agent_list_tools_response.rbs +29 -0
- data/sig/cerca/models/agent_retrieve_config_params.rbs +23 -0
- data/sig/cerca/models/agent_retrieve_params.rbs +23 -0
- data/sig/cerca/models/agent_summary.rbs +65 -0
- data/sig/cerca/models/agent_update_metadata_params.rbs +28 -0
- data/sig/cerca/models/agent_update_params.rbs +28 -0
- data/sig/cerca/models/api_key_tool_source_auth.rbs +30 -0
- data/sig/cerca/models/approval_grant.rbs +56 -0
- data/sig/cerca/models/approval_grant_delete_for_thread_params.rbs +32 -0
- data/sig/cerca/models/approval_grant_delete_for_thread_response.rbs +13 -0
- data/sig/cerca/models/approval_grant_delete_params.rbs +28 -0
- data/sig/cerca/models/approval_grant_delete_response.rbs +13 -0
- data/sig/cerca/models/approval_grant_list_for_thread_params.rbs +28 -0
- data/sig/cerca/models/approval_grant_list_for_thread_response.rbs +7 -0
- data/sig/cerca/models/approval_grant_list_params.rbs +36 -0
- data/sig/cerca/models/approval_mode.rbs +14 -0
- data/sig/cerca/models/approval_policy.rbs +28 -0
- data/sig/cerca/models/approval_request.rbs +108 -0
- data/sig/cerca/models/approval_request_list_params.rbs +42 -0
- data/sig/cerca/models/approval_request_resolve_params.rbs +73 -0
- data/sig/cerca/models/attached_connection.rbs +28 -0
- data/sig/cerca/models/auth_context_params.rbs +14 -0
- data/sig/cerca/models/auth_context_response.rbs +15 -0
- data/sig/cerca/models/auth_fleets_response.rbs +26 -0
- data/sig/cerca/models/auth_injection.rbs +46 -0
- data/sig/cerca/models/auth_list_fleets_params.rbs +32 -0
- data/sig/cerca/models/compiled_context.rbs +30 -0
- data/sig/cerca/models/configuration.rbs +43 -0
- data/sig/cerca/models/configuration_field_name.rbs +17 -0
- data/sig/cerca/models/connection.rbs +55 -0
- data/sig/cerca/models/connection_attach_params.rbs +40 -0
- data/sig/cerca/models/connection_create_params.rbs +43 -0
- data/sig/cerca/models/connection_delete_params.rbs +49 -0
- data/sig/cerca/models/connection_delete_response.rbs +13 -0
- data/sig/cerca/models/connection_detach_params.rbs +28 -0
- data/sig/cerca/models/connection_detach_response.rbs +13 -0
- data/sig/cerca/models/connection_list_for_agent_params.rbs +23 -0
- data/sig/cerca/models/connection_list_for_agent_response.rbs +30 -0
- data/sig/cerca/models/connection_list_params.rbs +58 -0
- data/sig/cerca/models/connection_owner.rbs +35 -0
- data/sig/cerca/models/content_block.rbs +200 -0
- data/sig/cerca/models/context_delete_params.rbs +28 -0
- data/sig/cerca/models/context_delete_response.rbs +13 -0
- data/sig/cerca/models/context_list_params.rbs +42 -0
- data/sig/cerca/models/context_retrieve_params.rbs +28 -0
- data/sig/cerca/models/context_search_params.rbs +52 -0
- data/sig/cerca/models/context_write_params.rbs +50 -0
- data/sig/cerca/models/credential_provider.rbs +20 -0
- data/sig/cerca/models/credential_type.rbs +14 -0
- data/sig/cerca/models/discovered_tool.rbs +109 -0
- data/sig/cerca/models/effective_configuration.rbs +74 -0
- data/sig/cerca/models/entry.rbs +42 -0
- data/sig/cerca/models/entry_summary.rbs +42 -0
- data/sig/cerca/models/error_response.rbs +17 -0
- data/sig/cerca/models/event_list_for_agent_params.rbs +67 -0
- data/sig/cerca/models/event_list_for_fleet_params.rbs +67 -0
- data/sig/cerca/models/event_list_for_thread_params.rbs +72 -0
- data/sig/cerca/models/event_stream_for_agent_params.rbs +67 -0
- data/sig/cerca/models/event_stream_for_fleet_params.rbs +67 -0
- data/sig/cerca/models/event_stream_for_thread_events_params.rbs +72 -0
- data/sig/cerca/models/event_stream_for_thread_params.rbs +28 -0
- data/sig/cerca/models/exec_result.rbs +61 -0
- data/sig/cerca/models/execution_principal.rbs +44 -0
- data/sig/cerca/models/fleet.rbs +40 -0
- data/sig/cerca/models/http_endpoint.rbs +79 -0
- data/sig/cerca/models/http_tool_definition.rbs +62 -0
- data/sig/cerca/models/http_tool_execution_policy.rbs +57 -0
- data/sig/cerca/models/http_tool_source.rbs +83 -0
- data/sig/cerca/models/json_object.rbs +7 -0
- data/sig/cerca/models/mcp_tool_execution_policy.rbs +57 -0
- data/sig/cerca/models/mcp_tool_source.rbs +83 -0
- data/sig/cerca/models/message.rbs +46 -0
- data/sig/cerca/models/metadata.rbs +7 -0
- data/sig/cerca/models/model_descriptor.rbs +63 -0
- data/sig/cerca/models/model_list_params.rbs +14 -0
- data/sig/cerca/models/model_list_response.rbs +13 -0
- data/sig/cerca/models/no_tool_source_auth.rbs +13 -0
- data/sig/cerca/models/oauth_connect_params.rbs +43 -0
- data/sig/cerca/models/oauth_connect_response.rbs +39 -0
- data/sig/cerca/models/oauth_connection_tool_source_auth.rbs +41 -0
- data/sig/cerca/models/oauth_exchange_config.rbs +124 -0
- data/sig/cerca/models/oauth_exchange_tool_source_auth.rbs +30 -0
- data/sig/cerca/models/read_response.rbs +15 -0
- data/sig/cerca/models/response_normalization_hint.rbs +29 -0
- data/sig/cerca/models/runtime_webhook_event.rbs +1803 -0
- data/sig/cerca/models/sandbox_exec_params.rbs +50 -0
- data/sig/cerca/models/sandbox_read_params.rbs +40 -0
- data/sig/cerca/models/sandbox_write_params.rbs +32 -0
- data/sig/cerca/models/sandbox_write_response.rbs +13 -0
- data/sig/cerca/models/schedule.rbs +90 -0
- data/sig/cerca/models/schedule_create_params.rbs +78 -0
- data/sig/cerca/models/schedule_delete_params.rbs +28 -0
- data/sig/cerca/models/schedule_delete_response.rbs +13 -0
- data/sig/cerca/models/schedule_list_params.rbs +23 -0
- data/sig/cerca/models/schedule_list_response.rbs +13 -0
- data/sig/cerca/models/schedule_trigger_params.rbs +28 -0
- data/sig/cerca/models/schedule_trigger_response.rbs +13 -0
- data/sig/cerca/models/schedule_update_params.rbs +94 -0
- data/sig/cerca/models/search_result.rbs +52 -0
- data/sig/cerca/models/source_warning.rbs +23 -0
- data/sig/cerca/models/status.rbs +16 -0
- data/sig/cerca/models/steer_result.rbs +41 -0
- data/sig/cerca/models/sub_thread_summary.rbs +89 -0
- data/sig/cerca/models/subscription_event.rbs +22 -0
- data/sig/cerca/models/thread.rbs +150 -0
- data/sig/cerca/models/thread_cancel_params.rbs +28 -0
- data/sig/cerca/models/thread_close_params.rbs +28 -0
- data/sig/cerca/models/thread_compact_params.rbs +28 -0
- data/sig/cerca/models/thread_create_params.rbs +61 -0
- data/sig/cerca/models/thread_list_params.rbs +54 -0
- data/sig/cerca/models/thread_retrieve_params.rbs +71 -0
- data/sig/cerca/models/thread_start_turn_params.rbs +50 -0
- data/sig/cerca/models/thread_steer_params.rbs +32 -0
- data/sig/cerca/models/thread_stream_event.rbs +855 -0
- data/sig/cerca/models/thread_summary.rbs +70 -0
- data/sig/cerca/models/token_usage.rbs +15 -0
- data/sig/cerca/models/tool.rbs +11 -0
- data/sig/cerca/models/tool_approval_mode.rbs +14 -0
- data/sig/cerca/models/tool_connection_metadata.rbs +7 -0
- data/sig/cerca/models/tool_create_params.rbs +152 -0
- data/sig/cerca/models/tool_delete_params.rbs +28 -0
- data/sig/cerca/models/tool_descriptor.rbs +68 -0
- data/sig/cerca/models/tool_list_params.rbs +36 -0
- data/sig/cerca/models/tool_name.rbs +86 -0
- data/sig/cerca/models/tool_retrieve_params.rbs +28 -0
- data/sig/cerca/models/tool_source.rbs +11 -0
- data/sig/cerca/models/tool_source_auth.rbs +15 -0
- data/sig/cerca/models/tool_spec.rbs +5 -0
- data/sig/cerca/models/tool_update_params.rbs +160 -0
- data/sig/cerca/models/turn.rbs +87 -0
- data/sig/cerca/models/webhook_create_params.rbs +40 -0
- data/sig/cerca/models/webhook_delete_params.rbs +28 -0
- data/sig/cerca/models/webhook_event_type.rbs +52 -0
- data/sig/cerca/models/webhook_list_params.rbs +36 -0
- data/sig/cerca/models/webhook_retrieve_params.rbs +28 -0
- data/sig/cerca/models/webhook_rotate_params.rbs +28 -0
- data/sig/cerca/models/webhook_subscription.rbs +50 -0
- data/sig/cerca/models/webhook_subscription_created.rbs +55 -0
- data/sig/cerca/models/webhook_subscription_event_type.rbs +50 -0
- data/sig/cerca/models/webhook_test_params.rbs +28 -0
- data/sig/cerca/models/webhook_test_response.rbs +22 -0
- data/sig/cerca/models/webhook_update_params.rbs +54 -0
- data/sig/cerca/models.rbs +267 -0
- data/sig/cerca/request_options.rbs +34 -0
- data/sig/cerca/resources/agents.rbs +55 -0
- data/sig/cerca/resources/approval_grants.rbs +33 -0
- data/sig/cerca/resources/approval_requests.rbs +24 -0
- data/sig/cerca/resources/auth.rbs +17 -0
- data/sig/cerca/resources/connections.rbs +48 -0
- data/sig/cerca/resources/context.rbs +45 -0
- data/sig/cerca/resources/events.rbs +69 -0
- data/sig/cerca/resources/fleets.rbs +7 -0
- data/sig/cerca/resources/models.rbs +11 -0
- data/sig/cerca/resources/oauth.rbs +15 -0
- data/sig/cerca/resources/sandbox.rbs +31 -0
- data/sig/cerca/resources/schedules.rbs +52 -0
- data/sig/cerca/resources/threads.rbs +68 -0
- data/sig/cerca/resources/tools.rbs +39 -0
- data/sig/cerca/resources/webhooks.rbs +54 -0
- data/sig/cerca/version.rbs +3 -0
- metadata +666 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Cerca
|
|
4
|
+
module Models
|
|
5
|
+
class ScheduleUpdateParams < Cerca::Internal::Type::BaseModel
|
|
6
|
+
extend Cerca::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Cerca::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Cerca::ScheduleUpdateParams, Cerca::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :agent_id
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :schedule_id
|
|
19
|
+
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_reader :cron
|
|
22
|
+
|
|
23
|
+
sig { params(cron: String).void }
|
|
24
|
+
attr_writer :cron
|
|
25
|
+
|
|
26
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
27
|
+
attr_reader :enabled
|
|
28
|
+
|
|
29
|
+
sig { params(enabled: T::Boolean).void }
|
|
30
|
+
attr_writer :enabled
|
|
31
|
+
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_reader :instructions
|
|
34
|
+
|
|
35
|
+
sig { params(instructions: String).void }
|
|
36
|
+
attr_writer :instructions
|
|
37
|
+
|
|
38
|
+
sig { returns(T.nilable(String)) }
|
|
39
|
+
attr_reader :message
|
|
40
|
+
|
|
41
|
+
sig { params(message: String).void }
|
|
42
|
+
attr_writer :message
|
|
43
|
+
|
|
44
|
+
sig { returns(T.nilable(String)) }
|
|
45
|
+
attr_reader :model
|
|
46
|
+
|
|
47
|
+
sig { params(model: String).void }
|
|
48
|
+
attr_writer :model
|
|
49
|
+
|
|
50
|
+
sig { returns(T.nilable(String)) }
|
|
51
|
+
attr_reader :name
|
|
52
|
+
|
|
53
|
+
sig { params(name: String).void }
|
|
54
|
+
attr_writer :name
|
|
55
|
+
|
|
56
|
+
sig { returns(T.nilable(Time)) }
|
|
57
|
+
attr_reader :run_at
|
|
58
|
+
|
|
59
|
+
sig { params(run_at: Time).void }
|
|
60
|
+
attr_writer :run_at
|
|
61
|
+
|
|
62
|
+
sig { returns(T.nilable(String)) }
|
|
63
|
+
attr_reader :timezone
|
|
64
|
+
|
|
65
|
+
sig { params(timezone: String).void }
|
|
66
|
+
attr_writer :timezone
|
|
67
|
+
|
|
68
|
+
# Per-schedule tool subset. When updated, these tools can only narrow the agent's
|
|
69
|
+
# effective tools for future scheduled threads.
|
|
70
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
71
|
+
attr_reader :tools
|
|
72
|
+
|
|
73
|
+
sig { params(tools: T::Array[String]).void }
|
|
74
|
+
attr_writer :tools
|
|
75
|
+
|
|
76
|
+
sig do
|
|
77
|
+
params(
|
|
78
|
+
agent_id: String,
|
|
79
|
+
schedule_id: String,
|
|
80
|
+
cron: String,
|
|
81
|
+
enabled: T::Boolean,
|
|
82
|
+
instructions: String,
|
|
83
|
+
message: String,
|
|
84
|
+
model: String,
|
|
85
|
+
name: String,
|
|
86
|
+
run_at: Time,
|
|
87
|
+
timezone: String,
|
|
88
|
+
tools: T::Array[String],
|
|
89
|
+
request_options: Cerca::RequestOptions::OrHash
|
|
90
|
+
).returns(T.attached_class)
|
|
91
|
+
end
|
|
92
|
+
def self.new(
|
|
93
|
+
agent_id:,
|
|
94
|
+
schedule_id:,
|
|
95
|
+
cron: nil,
|
|
96
|
+
enabled: nil,
|
|
97
|
+
instructions: nil,
|
|
98
|
+
message: nil,
|
|
99
|
+
model: nil,
|
|
100
|
+
name: nil,
|
|
101
|
+
run_at: nil,
|
|
102
|
+
timezone: nil,
|
|
103
|
+
# Per-schedule tool subset. When updated, these tools can only narrow the agent's
|
|
104
|
+
# effective tools for future scheduled threads.
|
|
105
|
+
tools: nil,
|
|
106
|
+
request_options: {}
|
|
107
|
+
)
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
sig do
|
|
111
|
+
override.returns(
|
|
112
|
+
{
|
|
113
|
+
agent_id: String,
|
|
114
|
+
schedule_id: String,
|
|
115
|
+
cron: String,
|
|
116
|
+
enabled: T::Boolean,
|
|
117
|
+
instructions: String,
|
|
118
|
+
message: String,
|
|
119
|
+
model: String,
|
|
120
|
+
name: String,
|
|
121
|
+
run_at: Time,
|
|
122
|
+
timezone: String,
|
|
123
|
+
tools: T::Array[String],
|
|
124
|
+
request_options: Cerca::RequestOptions
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
def to_hash
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Cerca
|
|
4
|
+
module Models
|
|
5
|
+
class SearchResult < Cerca::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias { T.any(Cerca::SearchResult, Cerca::Internal::AnyHash) }
|
|
8
|
+
|
|
9
|
+
sig { returns(Float) }
|
|
10
|
+
attr_accessor :byte_length
|
|
11
|
+
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :key
|
|
14
|
+
|
|
15
|
+
sig { returns(Float) }
|
|
16
|
+
attr_accessor :score
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :snippet
|
|
20
|
+
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :updated_at
|
|
23
|
+
|
|
24
|
+
sig { returns(Float) }
|
|
25
|
+
attr_accessor :version
|
|
26
|
+
|
|
27
|
+
sig { returns(T.nilable(String)) }
|
|
28
|
+
attr_reader :mime_type
|
|
29
|
+
|
|
30
|
+
sig { params(mime_type: String).void }
|
|
31
|
+
attr_writer :mime_type
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
byte_length: Float,
|
|
36
|
+
key: String,
|
|
37
|
+
score: Float,
|
|
38
|
+
snippet: String,
|
|
39
|
+
updated_at: String,
|
|
40
|
+
version: Float,
|
|
41
|
+
mime_type: String
|
|
42
|
+
).returns(T.attached_class)
|
|
43
|
+
end
|
|
44
|
+
def self.new(
|
|
45
|
+
byte_length:,
|
|
46
|
+
key:,
|
|
47
|
+
score:,
|
|
48
|
+
snippet:,
|
|
49
|
+
updated_at:,
|
|
50
|
+
version:,
|
|
51
|
+
mime_type: nil
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
override.returns(
|
|
57
|
+
{
|
|
58
|
+
byte_length: Float,
|
|
59
|
+
key: String,
|
|
60
|
+
score: Float,
|
|
61
|
+
snippet: String,
|
|
62
|
+
updated_at: String,
|
|
63
|
+
version: Float,
|
|
64
|
+
mime_type: String
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
def to_hash
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Cerca
|
|
4
|
+
module Models
|
|
5
|
+
class SourceWarning < Cerca::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias { T.any(Cerca::SourceWarning, Cerca::Internal::AnyHash) }
|
|
8
|
+
|
|
9
|
+
sig { returns(String) }
|
|
10
|
+
attr_accessor :message
|
|
11
|
+
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :source
|
|
14
|
+
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_reader :source_id
|
|
17
|
+
|
|
18
|
+
sig { params(source_id: String).void }
|
|
19
|
+
attr_writer :source_id
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(message: String, source: String, source_id: String).returns(
|
|
23
|
+
T.attached_class
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
def self.new(message:, source:, source_id: nil)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
override.returns({ message: String, source: String, source_id: String })
|
|
31
|
+
end
|
|
32
|
+
def to_hash
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Cerca
|
|
4
|
+
module Models
|
|
5
|
+
# `idle` threads can accept a new turn or be closed. `running` threads have an
|
|
6
|
+
# active turn. `awaiting` threads are paused on external input such as approvals.
|
|
7
|
+
# `closed` threads are terminal.
|
|
8
|
+
module Status
|
|
9
|
+
extend Cerca::Internal::Type::Enum
|
|
10
|
+
|
|
11
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Cerca::Status) }
|
|
12
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
13
|
+
|
|
14
|
+
IDLE = T.let(:idle, Cerca::Status::TaggedSymbol)
|
|
15
|
+
RUNNING = T.let(:running, Cerca::Status::TaggedSymbol)
|
|
16
|
+
AWAITING = T.let(:awaiting, Cerca::Status::TaggedSymbol)
|
|
17
|
+
CLOSED = T.let(:closed, Cerca::Status::TaggedSymbol)
|
|
18
|
+
|
|
19
|
+
sig { override.returns(T::Array[Cerca::Status::TaggedSymbol]) }
|
|
20
|
+
def self.values
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Cerca
|
|
4
|
+
module Models
|
|
5
|
+
class SteerResult < Cerca::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias { T.any(Cerca::SteerResult, Cerca::Internal::AnyHash) }
|
|
8
|
+
|
|
9
|
+
sig { returns(Cerca::SteerResult::Status::TaggedSymbol) }
|
|
10
|
+
attr_accessor :status
|
|
11
|
+
|
|
12
|
+
# `idle` threads can accept a new turn or be closed. `running` threads have an
|
|
13
|
+
# active turn. `awaiting` threads are paused on external input such as approvals.
|
|
14
|
+
# `closed` threads are terminal.
|
|
15
|
+
sig { returns(Cerca::Status::TaggedSymbol) }
|
|
16
|
+
attr_accessor :thread_status
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :turn_id
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
status: Cerca::SteerResult::Status::OrSymbol,
|
|
24
|
+
thread_status: Cerca::Status::OrSymbol,
|
|
25
|
+
turn_id: String
|
|
26
|
+
).returns(T.attached_class)
|
|
27
|
+
end
|
|
28
|
+
def self.new(
|
|
29
|
+
status:,
|
|
30
|
+
# `idle` threads can accept a new turn or be closed. `running` threads have an
|
|
31
|
+
# active turn. `awaiting` threads are paused on external input such as approvals.
|
|
32
|
+
# `closed` threads are terminal.
|
|
33
|
+
thread_status:,
|
|
34
|
+
turn_id:
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
override.returns(
|
|
40
|
+
{
|
|
41
|
+
status: Cerca::SteerResult::Status::TaggedSymbol,
|
|
42
|
+
thread_status: Cerca::Status::TaggedSymbol,
|
|
43
|
+
turn_id: String
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
def to_hash
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
module Status
|
|
51
|
+
extend Cerca::Internal::Type::Enum
|
|
52
|
+
|
|
53
|
+
TaggedSymbol =
|
|
54
|
+
T.type_alias { T.all(Symbol, Cerca::SteerResult::Status) }
|
|
55
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
56
|
+
|
|
57
|
+
ENQUEUED = T.let(:enqueued, Cerca::SteerResult::Status::TaggedSymbol)
|
|
58
|
+
TURN_STARTED =
|
|
59
|
+
T.let(:turn_started, Cerca::SteerResult::Status::TaggedSymbol)
|
|
60
|
+
|
|
61
|
+
sig do
|
|
62
|
+
override.returns(T::Array[Cerca::SteerResult::Status::TaggedSymbol])
|
|
63
|
+
end
|
|
64
|
+
def self.values
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Cerca
|
|
4
|
+
module Models
|
|
5
|
+
class SubThreadSummary < Cerca::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Cerca::SubThreadSummary, Cerca::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(String) }
|
|
12
|
+
attr_accessor :id
|
|
13
|
+
|
|
14
|
+
sig { returns(T.nilable(String)) }
|
|
15
|
+
attr_accessor :completed_at
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :created_at
|
|
19
|
+
|
|
20
|
+
sig { returns(Float) }
|
|
21
|
+
attr_accessor :message_count
|
|
22
|
+
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :model
|
|
25
|
+
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_accessor :parent_thread_id
|
|
28
|
+
|
|
29
|
+
sig { returns(T.nilable(String)) }
|
|
30
|
+
attr_accessor :result
|
|
31
|
+
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_accessor :schedule_id
|
|
34
|
+
|
|
35
|
+
sig { returns(T.nilable(Float)) }
|
|
36
|
+
attr_accessor :schedule_seq
|
|
37
|
+
|
|
38
|
+
# `pending` means the parent thread is still waiting on this sub-thread. Other
|
|
39
|
+
# values are the child thread lifecycle state.
|
|
40
|
+
sig { returns(Cerca::SubThreadSummary::State::TaggedSymbol) }
|
|
41
|
+
attr_accessor :state
|
|
42
|
+
|
|
43
|
+
sig { returns(Float) }
|
|
44
|
+
attr_accessor :step_count
|
|
45
|
+
|
|
46
|
+
sig { returns(T.nilable(String)) }
|
|
47
|
+
attr_accessor :tool_use_id
|
|
48
|
+
|
|
49
|
+
sig do
|
|
50
|
+
params(
|
|
51
|
+
id: String,
|
|
52
|
+
completed_at: T.nilable(String),
|
|
53
|
+
created_at: String,
|
|
54
|
+
message_count: Float,
|
|
55
|
+
model: String,
|
|
56
|
+
parent_thread_id: T.nilable(String),
|
|
57
|
+
result: T.nilable(String),
|
|
58
|
+
schedule_id: T.nilable(String),
|
|
59
|
+
schedule_seq: T.nilable(Float),
|
|
60
|
+
state: Cerca::SubThreadSummary::State::OrSymbol,
|
|
61
|
+
step_count: Float,
|
|
62
|
+
tool_use_id: T.nilable(String)
|
|
63
|
+
).returns(T.attached_class)
|
|
64
|
+
end
|
|
65
|
+
def self.new(
|
|
66
|
+
id:,
|
|
67
|
+
completed_at:,
|
|
68
|
+
created_at:,
|
|
69
|
+
message_count:,
|
|
70
|
+
model:,
|
|
71
|
+
parent_thread_id:,
|
|
72
|
+
result:,
|
|
73
|
+
schedule_id:,
|
|
74
|
+
schedule_seq:,
|
|
75
|
+
# `pending` means the parent thread is still waiting on this sub-thread. Other
|
|
76
|
+
# values are the child thread lifecycle state.
|
|
77
|
+
state:,
|
|
78
|
+
step_count:,
|
|
79
|
+
tool_use_id:
|
|
80
|
+
)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
sig do
|
|
84
|
+
override.returns(
|
|
85
|
+
{
|
|
86
|
+
id: String,
|
|
87
|
+
completed_at: T.nilable(String),
|
|
88
|
+
created_at: String,
|
|
89
|
+
message_count: Float,
|
|
90
|
+
model: String,
|
|
91
|
+
parent_thread_id: T.nilable(String),
|
|
92
|
+
result: T.nilable(String),
|
|
93
|
+
schedule_id: T.nilable(String),
|
|
94
|
+
schedule_seq: T.nilable(Float),
|
|
95
|
+
state: Cerca::SubThreadSummary::State::TaggedSymbol,
|
|
96
|
+
step_count: Float,
|
|
97
|
+
tool_use_id: T.nilable(String)
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
def to_hash
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# `pending` means the parent thread is still waiting on this sub-thread. Other
|
|
105
|
+
# values are the child thread lifecycle state.
|
|
106
|
+
module State
|
|
107
|
+
extend Cerca::Internal::Type::Enum
|
|
108
|
+
|
|
109
|
+
TaggedSymbol =
|
|
110
|
+
T.type_alias { T.all(Symbol, Cerca::SubThreadSummary::State) }
|
|
111
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
112
|
+
|
|
113
|
+
PENDING = T.let(:pending, Cerca::SubThreadSummary::State::TaggedSymbol)
|
|
114
|
+
IDLE = T.let(:idle, Cerca::SubThreadSummary::State::TaggedSymbol)
|
|
115
|
+
RUNNING = T.let(:running, Cerca::SubThreadSummary::State::TaggedSymbol)
|
|
116
|
+
AWAITING =
|
|
117
|
+
T.let(:awaiting, Cerca::SubThreadSummary::State::TaggedSymbol)
|
|
118
|
+
CLOSED = T.let(:closed, Cerca::SubThreadSummary::State::TaggedSymbol)
|
|
119
|
+
|
|
120
|
+
sig do
|
|
121
|
+
override.returns(
|
|
122
|
+
T::Array[Cerca::SubThreadSummary::State::TaggedSymbol]
|
|
123
|
+
)
|
|
124
|
+
end
|
|
125
|
+
def self.values
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Cerca
|
|
4
|
+
module Models
|
|
5
|
+
class SubscriptionEvent < Cerca::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Cerca::SubscriptionEvent, Cerca::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(Cerca::RuntimeWebhookEvent::Variants) }
|
|
12
|
+
attr_accessor :event
|
|
13
|
+
|
|
14
|
+
sig { returns(Float) }
|
|
15
|
+
attr_accessor :seq
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(
|
|
19
|
+
event:
|
|
20
|
+
T.any(
|
|
21
|
+
Cerca::RuntimeWebhookEvent::AgentCreatedWebhookEvent::OrHash,
|
|
22
|
+
Cerca::RuntimeWebhookEvent::AgentUpdatedWebhookEvent::OrHash,
|
|
23
|
+
Cerca::RuntimeWebhookEvent::AgentDeletedWebhookEvent::OrHash,
|
|
24
|
+
Cerca::RuntimeWebhookEvent::ThreadCreatedWebhookEvent::OrHash,
|
|
25
|
+
Cerca::RuntimeWebhookEvent::ThreadStatusChangedWebhookEvent::OrHash,
|
|
26
|
+
Cerca::RuntimeWebhookEvent::ThreadCompletedWebhookEvent::OrHash,
|
|
27
|
+
Cerca::RuntimeWebhookEvent::ThreadFailedWebhookEvent::OrHash,
|
|
28
|
+
Cerca::RuntimeWebhookEvent::TurnCreatedWebhookEvent::OrHash,
|
|
29
|
+
Cerca::RuntimeWebhookEvent::TurnCompletedWebhookEvent::OrHash,
|
|
30
|
+
Cerca::RuntimeWebhookEvent::TurnFailedWebhookEvent::OrHash,
|
|
31
|
+
Cerca::RuntimeWebhookEvent::MessageCreatedWebhookEvent::OrHash,
|
|
32
|
+
Cerca::RuntimeWebhookEvent::ApprovalRequestedWebhookEvent::OrHash,
|
|
33
|
+
Cerca::RuntimeWebhookEvent::ApprovalResolvedWebhookEvent::OrHash,
|
|
34
|
+
Cerca::RuntimeWebhookEvent::ApprovalGrantedWebhookEvent::OrHash,
|
|
35
|
+
Cerca::RuntimeWebhookEvent::ScheduleCreatedWebhookEvent::OrHash,
|
|
36
|
+
Cerca::RuntimeWebhookEvent::ScheduleDeletedWebhookEvent::OrHash,
|
|
37
|
+
Cerca::RuntimeWebhookEvent::ScheduleTriggeredWebhookEvent::OrHash,
|
|
38
|
+
Cerca::RuntimeWebhookEvent::ConnectionAttachedWebhookEvent::OrHash,
|
|
39
|
+
Cerca::RuntimeWebhookEvent::ConnectionDetachedWebhookEvent::OrHash,
|
|
40
|
+
Cerca::RuntimeWebhookEvent::WebhookTestWebhookEvent::OrHash
|
|
41
|
+
),
|
|
42
|
+
seq: Float
|
|
43
|
+
).returns(T.attached_class)
|
|
44
|
+
end
|
|
45
|
+
def self.new(event:, seq:)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
sig do
|
|
49
|
+
override.returns(
|
|
50
|
+
{ event: Cerca::RuntimeWebhookEvent::Variants, seq: Float }
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
def to_hash
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|