Skip to content

2026 04 23 api sync#7

Merged
burgaard merged 6 commits into
mainfrom
2026-04-23-api-sync
Apr 24, 2026
Merged

2026 04 23 api sync#7
burgaard merged 6 commits into
mainfrom
2026-04-23-api-sync

Conversation

@burgaard

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 24, 2026 06:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR syncs the Python SDK’s generated client with the latest API schema (2026-04-23), adding new generated models and updating many generated endpoints—most notably changing the x_account_id parameter type from str to UUID.

Changes:

  • Added new generated models/enums for indexing and playground evaluation.
  • Added/updated several generated response wrapper models.
  • Updated many generated API endpoint signatures/docs to use x_account_id: UUID | Unset.

Reviewed changes

Copilot reviewed 156 out of 156 changed files in this pull request and generated no comments.

Show a summary per file
File Description
seclai/_generated/models/source_index_mode.py Add enum for source index mode
seclai/_generated/models/provider_group_response.py Add provider group response model
seclai/_generated/models/prompt_tool_response_headers_type_0.py Add headers map model
seclai/_generated/models/prompt_model_response_payload_schema_type_0.py Add payload schema map model
seclai/_generated/models/playground_create_request_evaluation_mode.py Add playground evaluation mode enum
seclai/_generated/models/playground_create_request_evaluation_complexity.py Add evaluation complexity enum
seclai/_generated/models/list_experiments_api_models_playground_experiments_get_response_list_experiments_api_models_playground_experiments_get.py Add wrapper response model
seclai/_generated/models/get_experiment_api_models_playground_experiments_experiment_id_get_response_get_experiment_api_models_playground_experiments_experiment_id_get.py Add wrapper response model
seclai/_generated/models/create_experiment_api_models_playground_experiments_post_response_create_experiment_api_models_playground_experiments_post.py Add wrapper response model
seclai/_generated/models/cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post_response_cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post.py Add wrapper response model
seclai/_generated/models/agent_definition_response_definition.py Update docstring step type list
seclai/_generated/models/agent_definition_response.py Update docstring step type list
seclai/_generated/api/sources/upload_inline_text_to_source_api_sources_source_connection_id_post.py Type x_account_id as UUID
seclai/_generated/api/sources/update_source_api_sources_source_connection_id_put.py Type x_account_id as UUID
seclai/_generated/api/sources/start_source_embedding_migration_api_sources_source_connection_id_embedding_migration_post.py Type x_account_id as UUID
seclai/_generated/api/sources/get_source_embedding_migration_api_sources_source_connection_id_embedding_migration_get.py Type x_account_id as UUID
seclai/_generated/api/sources/get_source_api_sources_source_connection_id_get.py Type x_account_id as UUID
seclai/_generated/api/sources/delete_source_api_sources_source_connection_id_delete.py Type x_account_id as UUID
seclai/_generated/api/sources/cancel_source_embedding_migration_api_sources_source_connection_id_embedding_migration_cancel_post.py Type x_account_id as UUID
seclai/_generated/api/source_exports/get_source_export_api_sources_source_connection_id_exports_export_id_get.py Type x_account_id as UUID
seclai/_generated/api/source_exports/estimate_source_export_api_sources_source_connection_id_exports_estimate_post.py Type x_account_id as UUID
seclai/_generated/api/source_exports/download_source_export_api_sources_source_connection_id_exports_export_id_download_get.py Type x_account_id as UUID
seclai/_generated/api/source_exports/delete_source_export_api_sources_source_connection_id_exports_export_id_delete.py Type x_account_id as UUID
seclai/_generated/api/source_exports/create_source_export_api_sources_source_connection_id_exports_post.py Type x_account_id as UUID
seclai/_generated/api/source_exports/cancel_source_export_api_sources_source_connection_id_exports_export_id_cancel_post.py Type x_account_id as UUID
seclai/_generated/api/solutions/update_solution_api_solutions_solution_id_patch.py Type x_account_id as UUID
seclai/_generated/api/solutions/unlink_source_connections_api_solutions_solution_id_source_connections_delete.py Type x_account_id as UUID
seclai/_generated/api/solutions/unlink_knowledge_bases_api_solutions_solution_id_knowledge_bases_delete.py Type x_account_id as UUID
seclai/_generated/api/solutions/unlink_agents_api_solutions_solution_id_agents_delete.py Type x_account_id as UUID
seclai/_generated/api/solutions/mark_conversation_turn_api_solutions_solution_id_conversations_conversation_id_patch.py Type x_account_id as UUID
seclai/_generated/api/solutions/list_conversations_api_solutions_solution_id_conversations_get.py Type x_account_id as UUID
seclai/_generated/api/solutions/link_source_connections_api_solutions_solution_id_source_connections_post.py Type x_account_id as UUID
seclai/_generated/api/solutions/link_knowledge_bases_api_solutions_solution_id_knowledge_bases_post.py Type x_account_id as UUID
seclai/_generated/api/solutions/link_agents_api_solutions_solution_id_agents_post.py Type x_account_id as UUID
seclai/_generated/api/solutions/get_solution_api_solutions_solution_id_get.py Type x_account_id as UUID
seclai/_generated/api/solutions/delete_solution_api_solutions_solution_id_delete.py Type x_account_id as UUID
seclai/_generated/api/solutions/create_solution_api_solutions_post.py Type x_account_id as UUID
seclai/_generated/api/solutions/ai_assistant_source_api_solutions_solution_id_ai_assistant_source_post.py Type x_account_id as UUID
seclai/_generated/api/solutions/ai_assistant_knowledge_base_api_solutions_solution_id_ai_assistant_knowledge_base_post.py Type x_account_id as UUID
seclai/_generated/api/solutions/ai_assistant_generate_api_solutions_solution_id_ai_assistant_generate_post.py Type x_account_id as UUID
seclai/_generated/api/solutions/ai_assistant_decline_api_solutions_solution_id_ai_assistant_conversation_id_decline_post.py Type x_account_id as UUID
seclai/_generated/api/solutions/ai_assistant_accept_api_solutions_solution_id_ai_assistant_conversation_id_accept_post.py Type x_account_id as UUID
seclai/_generated/api/solutions/add_conversation_turn_api_solutions_solution_id_conversations_post.py Type x_account_id as UUID
seclai/_generated/api/models/mark_read_api_models_alerts_alert_id_read_patch.py Type x_account_id as UUID
seclai/_generated/api/models/mark_all_read_api_models_alerts_mark_all_read_post.py Type x_account_id as UUID
seclai/_generated/api/memory_banks/update_memory_bank_api_memory_banks_memory_bank_id_put.py Type x_account_id as UUID
seclai/_generated/api/memory_banks/test_compaction_prompt_api_memory_banks_memory_bank_id_test_compaction_post.py Type x_account_id as UUID
seclai/_generated/api/memory_banks/memory_bank_ai_accept_api_memory_banks_ai_assistant_conversation_id_patch.py Type x_account_id as UUID
seclai/_generated/api/memory_banks/list_templates_api_memory_banks_templates_get.py Type x_account_id as UUID
seclai/_generated/api/memory_banks/get_memory_bank_api_memory_banks_memory_bank_id_get.py Type x_account_id as UUID
seclai/_generated/api/memory_banks/delete_memory_bank_source_api_memory_banks_memory_bank_id_source_delete.py Type x_account_id as UUID
seclai/_generated/api/memory_banks/delete_memory_bank_api_memory_banks_memory_bank_id_delete.py Type x_account_id as UUID
seclai/_generated/api/memory_banks/create_memory_bank_api_memory_banks_post.py Type x_account_id as UUID
seclai/_generated/api/knowledge_bases/update_knowledge_base_api_knowledge_bases_knowledge_base_id_put.py Type x_account_id as UUID
seclai/_generated/api/knowledge_bases/get_knowledge_base_api_knowledge_bases_knowledge_base_id_get.py Type x_account_id as UUID
seclai/_generated/api/knowledge_bases/delete_knowledge_base_api_knowledge_bases_knowledge_base_id_delete.py Type x_account_id as UUID
seclai/_generated/api/knowledge_bases/create_knowledge_base_api_knowledge_bases_post.py Type x_account_id as UUID
seclai/_generated/api/governance/governance_ai_generate_api_governance_ai_assistant_post.py Type x_account_id as UUID
seclai/_generated/api/governance/governance_ai_decline_api_governance_ai_assistant_conversation_id_decline_post.py Type x_account_id as UUID
seclai/_generated/api/governance/governance_ai_accept_api_governance_ai_assistant_conversation_id_accept_post.py Type x_account_id as UUID
seclai/_generated/api/contents/replace_content_with_inline_text_api_contents_source_connection_content_version_put.py Type x_account_id as UUID
seclai/_generated/api/contents/delete_content_api_contents_source_connection_content_version_delete.py Type x_account_id as UUID
seclai/_generated/api/alerts/update_organization_preference_api_alerts_organization_preferences_organization_id_alert_type_patch.py Type x_account_id as UUID
seclai/_generated/api/alerts/update_alert_config_api_alerts_configs_config_id_patch.py Type x_account_id as UUID
seclai/_generated/api/alerts/subscribe_to_alert_api_alerts_alert_id_subscribe_post.py Type x_account_id as UUID
seclai/_generated/api/alerts/get_alert_detail_api_alerts_alert_id_get.py Type x_account_id as UUID
seclai/_generated/api/alerts/get_alert_config_api_alerts_configs_config_id_get.py Type x_account_id as UUID
seclai/_generated/api/alerts/delete_alert_config_api_alerts_configs_config_id_delete.py Type x_account_id as UUID
seclai/_generated/api/alerts/create_alert_config_api_alerts_configs_post.py Type x_account_id as UUID
seclai/_generated/api/alerts/change_alert_status_api_alerts_alert_id_status_post.py Type x_account_id as UUID
seclai/_generated/api/alerts/add_alert_comment_api_alerts_alert_id_comments_post.py Type x_account_id as UUID
seclai/_generated/api/ai_assistant/api_ai_source_api_ai_assistant_source_post.py Type x_account_id as UUID
seclai/_generated/api/ai_assistant/api_ai_solution_api_ai_assistant_solution_post.py Type x_account_id as UUID
seclai/_generated/api/ai_assistant/api_ai_memory_bank_api_ai_assistant_memory_bank_post.py Type x_account_id as UUID
seclai/_generated/api/ai_assistant/api_ai_memory_bank_accept_api_ai_assistant_memory_bank_conversation_id_patch.py Type x_account_id as UUID
seclai/_generated/api/ai_assistant/api_ai_knowledge_base_api_ai_assistant_knowledge_base_post.py Type x_account_id as UUID
seclai/_generated/api/ai_assistant/api_ai_feedback_api_ai_assistant_feedback_post.py Type x_account_id as UUID
seclai/_generated/api/ai_assistant/api_ai_decline_api_ai_assistant_conversation_id_decline_post.py Type x_account_id as UUID
seclai/_generated/api/ai_assistant/api_ai_accept_api_ai_assistant_conversation_id_accept_post.py Type x_account_id as UUID
seclai/_generated/api/agents/update_agent_api_agents_agent_id_put.py Type x_account_id as UUID
seclai/_generated/api/agents/search_agent_runs_api_agents_runs_search_post.py Type x_account_id as UUID
seclai/_generated/api/agents/get_agent_metadata_api_agents_agent_id_get.py Type x_account_id as UUID
seclai/_generated/api/agents/generate_step_config_api_agents_agent_id_ai_assistant_step_config_post.py Type x_account_id as UUID
seclai/_generated/api/agents/generate_agent_steps_api_agents_agent_id_ai_assistant_generate_steps_post.py Type x_account_id as UUID
seclai/_generated/api/agents/delete_agent_run_api_agents_runs_run_id_delete.py Type x_account_id as UUID
seclai/_generated/api/agents/delete_agent_api_agents_agent_id_delete.py Type x_account_id as UUID
seclai/_generated/api/agents/create_agent_api_agents_post.py Type x_account_id as UUID
seclai/_generated/api/agents/api_upload_agent_input_api_agents_agent_id_upload_input_post.py Type x_account_id as UUID
seclai/_generated/api/agents/api_get_agent_input_upload_status_api_agents_agent_id_input_uploads_upload_id_get.py Type x_account_id as UUID
seclai/_generated/api/agent_evaluations/update_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_patch.py Type x_account_id as UUID
seclai/_generated/api/agent_evaluations/test_draft_evaluation_api_agents_agent_id_evaluation_criteria_test_draft_post.py Type x_account_id as UUID
seclai/_generated/api/agent_evaluations/list_evaluation_criteria_api_agents_agent_id_evaluation_criteria_get.py Type x_account_id as UUID
seclai/_generated/api/agent_evaluations/get_evaluation_summary_api_agents_evaluation_criteria_criteria_id_summary_get.py Type x_account_id as UUID
seclai/_generated/api/agent_evaluations/get_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_get.py Type x_account_id as UUID
seclai/_generated/api/agent_evaluations/delete_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_delete.py Type x_account_id as UUID
seclai/_generated/api/agent_evaluations/create_evaluation_result_api_agents_evaluation_criteria_criteria_id_results_post.py Type x_account_id as UUID
seclai/_generated/api/agent_evaluations/create_evaluation_criteria_api_agents_agent_id_evaluation_criteria_post.py Type x_account_id as UUID
Comments suppressed due to low confidence (3)

seclai/_generated/api/solutions/create_solution_api_solutions_post.py:22

  • x_account_id is now typed as UUID, but _get_kwargs passes it directly into headers["X-Account-Id"]. httpx headers expect str/bytes, so passing a uuid.UUID can raise a type error at request time. Convert the header value to str(x_account_id) (or keep the parameter typed as str) so runtime behavior matches the new type hint.
    seclai/_generated/api/sources/get_source_api_sources_source_connection_id_get.py:22
  • x_account_id is now typed as UUID, but it is assigned directly into headers["X-Account-Id"]. httpx request headers require str/bytes; passing a UUID can fail at runtime. Convert the header value with str(x_account_id) before inserting into headers (or keep x_account_id typed as str).
    seclai/_generated/api/memory_banks/update_memory_bank_api_memory_banks_memory_bank_id_put.py:24
  • x_account_id is typed as UUID, but _get_kwargs stores it directly in headers["X-Account-Id"]. httpx headers must be str/bytes; using uuid.UUID can raise at request time. Convert to str(x_account_id) when building headers (or change the param back to str) to avoid runtime errors.

@burgaard burgaard merged commit 8b398e4 into main Apr 24, 2026
5 checks passed
@burgaard burgaard deleted the 2026-04-23-api-sync branch April 24, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants