diff --git a/openapi/seclai.openapi.json b/openapi/seclai.openapi.json index 69be258..ecc90b5 100644 --- a/openapi/seclai.openapi.json +++ b/openapi/seclai.openapi.json @@ -7,6 +7,7 @@ "name": "X-Account-Id", "required": false, "schema": { + "format": "uuid", "type": "string" } } @@ -60,7 +61,7 @@ }, "definition": { "additionalProperties": true, - "description": "The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, retrieval, transform, gate, retry, evaluate_step, insight, extract_json, send_email, webhook_call, call_agent, write_metadata, write_content_attachment, load_content_attachment, load_content, display_result, and others.", + "description": "The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, retrieval, transform, gate, retry, evaluate_step, insight, extract_content, streaming_result, send_email, webhook_call, call_agent, write_metadata, write_content_attachment, load_content_attachment, load_content, display_result, and others.", "title": "Definition", "type": "object" }, @@ -2047,6 +2048,17 @@ "description": "Embedding model override.", "title": "Embedding Model" }, + "index_mode": { + "anyOf": [ + { + "$ref": "#/components/schemas/SourceIndexMode" + }, + { + "type": "null" + } + ], + "description": "Index mode for custom_index sources: fast_and_cheap (default), balanced, slow_and_thorough, or custom." + }, "name": { "description": "Source name.", "maxLength": 255, @@ -2105,7 +2117,7 @@ "title": "Retention" }, "source_type": { - "description": "Source type: rss, website, file_uploads, or custom_index.", + "description": "Source type: rss, website, or custom_index. The legacy value 'file_uploads' is accepted as an alias for custom_index.", "title": "Source Type", "type": "string" }, @@ -3917,6 +3929,101 @@ "title": "PendingProcessingCompletedFailedStatus", "type": "string" }, + "PlaygroundCreateRequest": { + "description": "Create a model playground experiment via the public API.", + "properties": { + "evaluation_complexity": { + "default": "medium", + "description": "simple, medium, or complex", + "enum": [ + "simple", + "medium", + "complex" + ], + "title": "Evaluation Complexity", + "type": "string" + }, + "evaluation_mode": { + "default": "manual", + "description": "manual or prompt", + "enum": [ + "manual", + "prompt" + ], + "title": "Evaluation Mode", + "type": "string" + }, + "evaluator_model_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Evaluator model ID when evaluation_mode is prompt.", + "title": "Evaluator Model Id" + }, + "include_step_output_in_evaluation": { + "default": false, + "description": "Whether to include selected step output as evaluator context.", + "title": "Include Step Output In Evaluation", + "type": "boolean" + }, + "json_template": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Optional JSON template for advanced mode.", + "title": "Json Template" + }, + "model_ids": { + "description": "Selected model IDs (1-10).", + "items": { + "type": "string" + }, + "maxItems": 10, + "minItems": 1, + "title": "Model Ids", + "type": "array" + }, + "prompt": { + "description": "Prompt text for the experiment.", + "title": "Prompt", + "type": "string" + }, + "selected_step_output": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Optional step output text for evaluator context.", + "title": "Selected Step Output" + }, + "system_prompt": { + "default": "", + "description": "Optional system prompt.", + "title": "System Prompt", + "type": "string" + } + }, + "required": [ + "model_ids", + "prompt" + ], + "title": "PlaygroundCreateRequest", + "type": "object" + }, "PromptModelAutoUpgradeStrategy": { "enum": [ "none", @@ -3927,6 +4034,110 @@ "title": "PromptModelAutoUpgradeStrategy", "type": "string" }, + "PromptToolResponse": { + "description": "Response model for a prompt tool.", + "properties": { + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "documentation_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Documentation Url" + }, + "example": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Example" + }, + "headers": { + "anyOf": [ + { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Headers" + }, + "id": { + "title": "Id", + "type": "string" + }, + "name": { + "title": "Name", + "type": "string" + }, + "notes": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Notes" + }, + "tool_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Tool Name" + }, + "tool_type": { + "title": "Tool Type", + "type": "string" + }, + "tool_type_pattern": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Tool Type Pattern" + } + }, + "required": [ + "id", + "tool_type", + "name" + ], + "title": "PromptToolResponse", + "type": "object" + }, "ProposedActionResponse": { "description": "A single proposed action.", "properties": { @@ -4261,6 +4472,17 @@ "title": "SourceEmbeddingMigrationResponse", "type": "object" }, + "SourceIndexMode": { + "description": "Embedding quality / cost trade-off preset for custom_index sources.\n\nEach preset controls the default embedding dimensions, chunk size, and\nchunk overlap. The embedding model is always the account-level default\n(currently ``AWS_BEDROCK_AMAZON_NOVA_2_MULTIMODAL``).\n\nPresets:\n FAST_AND_CHEAP: 256 dimensions, 3 000 char chunks, 500 char overlap.\n BALANCED: 384 dimensions, 1 500 char chunks, 300 char overlap.\n SLOW_AND_THOROUGH: 1 024 dimensions, 1 000 char chunks, 200 char overlap.\n CUSTOM: Caller supplies embedding model, dimensions, and chunk config.", + "enum": [ + "fast_and_cheap", + "balanced", + "slow_and_thorough", + "custom" + ], + "title": "SourceIndexMode", + "type": "string" + }, "SourceResponse": { "description": "Response model for source data.", "properties": { @@ -4429,6 +4651,17 @@ "title": "Id", "type": "string" }, + "index_mode": { + "anyOf": [ + { + "$ref": "#/components/schemas/SourceIndexMode" + }, + { + "type": "null" + } + ], + "description": "Index mode for custom_index sources: fast_and_cheap, balanced, slow_and_thorough, or custom." + }, "name": { "description": "Name of the source connection.", "title": "Name", @@ -5449,51 +5682,51 @@ "title": "ValidationError", "type": "object" }, - "routers__api__agents__AgentListResponse": { + "VariantCategoryResponse": { + "description": "Response model for a variant category", "properties": { - "data": { - "description": "List of agents.", - "items": { - "$ref": "#/components/schemas/AgentSummaryResponse" - }, - "title": "Data", - "type": "array" + "category": { + "title": "Category", + "type": "string" }, - "pagination": { - "$ref": "#/components/schemas/PaginationResponse" - } - }, - "required": [ - "data", - "pagination" - ], - "title": "AgentListResponse", - "type": "object" - }, - "routers__api__agents__AgentRunListResponse": { - "properties": { - "data": { - "description": "List of agent runs.", + "configurable": { + "title": "Configurable", + "type": "boolean" + }, + "description": { + "title": "Description", + "type": "string" + }, + "options": { "items": { - "$ref": "#/components/schemas/AgentRunResponse" + "$ref": "#/components/schemas/VariantOptionResponse" }, - "title": "Data", + "title": "Options", "type": "array" }, - "pagination": { - "$ref": "#/components/schemas/PaginationResponse" + "title": { + "title": "Title", + "type": "string" } }, "required": [ - "data", - "pagination" + "category", + "title", + "description", + "configurable", + "options" ], - "title": "AgentRunListResponse", + "title": "VariantCategoryResponse", "type": "object" }, - "routers__api__agents__AgentTraceSearchRequest": { + "VariantOptionResponse": { + "description": "Response model for a variant option", "properties": { - "agent_id": { + "default": { + "title": "Default", + "type": "boolean" + }, + "description": { "anyOf": [ { "type": "string" @@ -5502,81 +5735,252 @@ "type": "null" } ], - "description": "Filter by agent ID.", - "title": "Agent Id" - }, - "query": { - "description": "Search query text.", - "title": "Query", - "type": "string" + "title": "Description" }, - "run_status": { + "input_1h_cache_write_credits_per_1000_tokens": { "anyOf": [ { - "type": "string" + "type": "number" }, { "type": "null" } ], - "description": "Filter by run status.", - "title": "Run Status" + "title": "Input 1H Cache Write Credits Per 1000 Tokens" }, - "step_type": { + "input_5m_cache_write_credits_per_1000_tokens": { "anyOf": [ { - "type": "string" + "type": "number" }, { "type": "null" } ], - "description": "Filter by step type.", - "title": "Step Type" + "title": "Input 5M Cache Write Credits Per 1000 Tokens" }, - "top_n": { - "default": 10, - "description": "Maximum number of results.", - "maximum": 100.0, - "minimum": 1.0, - "title": "Top N", - "type": "integer" - } - }, - "required": [ - "query" - ], - "title": "AgentTraceSearchRequest", - "type": "object" - }, - "routers__api__agents__CreateAgentRequest": { - "properties": { - "agent_template": { + "input_cache_hit_credits_per_1000_tokens": { "anyOf": [ { - "type": "string" + "type": "number" }, { "type": "null" } ], - "description": "Template to initialize the agent from. Values: blank, retrieval_example, simple_qa, summarizer, json_extractor, content_change_notifier, scheduled_report, webhook_pipeline.", - "title": "Agent Template" + "title": "Input Cache Hit Credits Per 1000 Tokens" }, - "description": { + "input_credits_per_1000_tokens": { "anyOf": [ { - "type": "string" + "type": "number" }, { "type": "null" } ], - "description": "Optional description.", - "title": "Description" + "title": "Input Credits Per 1000 Tokens" }, - "name": { - "description": "Name for the new agent.", + "long_context_input_cache_hit_credits_per_1000_tokens": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Long Context Input Cache Hit Credits Per 1000 Tokens" + }, + "long_context_input_credits_per_1000_tokens": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Long Context Input Credits Per 1000 Tokens" + }, + "long_context_output_credits_per_1000_tokens": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Long Context Output Credits Per 1000 Tokens" + }, + "long_context_threshold": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Long Context Threshold" + }, + "output_credits_per_1000_tokens": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Output Credits Per 1000 Tokens" + }, + "title": { + "title": "Title", + "type": "string" + }, + "value": { + "title": "Value", + "type": "string" + } + }, + "required": [ + "value", + "title", + "default" + ], + "title": "VariantOptionResponse", + "type": "object" + }, + "routers__api__agents__AgentListResponse": { + "properties": { + "data": { + "description": "List of agents.", + "items": { + "$ref": "#/components/schemas/AgentSummaryResponse" + }, + "title": "Data", + "type": "array" + }, + "pagination": { + "$ref": "#/components/schemas/PaginationResponse" + } + }, + "required": [ + "data", + "pagination" + ], + "title": "AgentListResponse", + "type": "object" + }, + "routers__api__agents__AgentRunListResponse": { + "properties": { + "data": { + "description": "List of agent runs.", + "items": { + "$ref": "#/components/schemas/AgentRunResponse" + }, + "title": "Data", + "type": "array" + }, + "pagination": { + "$ref": "#/components/schemas/PaginationResponse" + } + }, + "required": [ + "data", + "pagination" + ], + "title": "AgentRunListResponse", + "type": "object" + }, + "routers__api__agents__AgentTraceSearchRequest": { + "properties": { + "agent_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Filter by agent ID.", + "title": "Agent Id" + }, + "query": { + "description": "Search query text.", + "title": "Query", + "type": "string" + }, + "run_status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Filter by run status.", + "title": "Run Status" + }, + "step_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Filter by step type.", + "title": "Step Type" + }, + "top_n": { + "default": 10, + "description": "Maximum number of results.", + "maximum": 100.0, + "minimum": 1.0, + "title": "Top N", + "type": "integer" + } + }, + "required": [ + "query" + ], + "title": "AgentTraceSearchRequest", + "type": "object" + }, + "routers__api__agents__CreateAgentRequest": { + "properties": { + "agent_template": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Template to initialize the agent from. Values: blank, retrieval_example, simple_qa, summarizer, json_extractor, content_change_notifier, scheduled_report, webhook_pipeline.", + "title": "Agent Template" + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Optional description.", + "title": "Description" + }, + "name": { + "description": "Name for the new agent.", "title": "Name", "type": "string" }, @@ -7129,61 +7533,429 @@ "title": "SourceListResponse", "type": "object" }, - "schemas__v1__agent_evaluations__NonManualEvaluationModeStatResponse": { - "description": "Per-mode rollup for evaluation activity.", + "schemas__model_responses__PromptModelResponse": { + "description": "Response model for prompt model data", "properties": { - "failed": { - "title": "Failed", - "type": "integer" - }, - "failure_rate": { - "title": "Failure Rate", - "type": "number" + "default": { + "title": "Default", + "type": "boolean" }, - "flagged": { - "title": "Flagged", - "type": "integer" + "deprecated_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Deprecated At" }, - "mode": { - "title": "Mode", + "description": { + "title": "Description", "type": "string" }, - "pass_rate": { - "title": "Pass Rate", - "type": "number" - }, - "passed": { - "title": "Passed", - "type": "integer" + "enabled": { + "title": "Enabled", + "type": "boolean" }, - "total": { - "title": "Total", - "type": "integer" - } - }, - "required": [ - "mode", - "total", - "passed", - "failed", - "flagged", - "pass_rate", - "failure_rate" - ], - "title": "NonManualEvaluationModeStatResponse", - "type": "object" - }, - "schemas__v1__agent_evaluations__NonManualEvaluationSummaryResponse": { - "description": "Account-level summary for evaluations.", - "properties": { - "by_mode": { - "items": { - "$ref": "#/components/schemas/schemas__v1__agent_evaluations__NonManualEvaluationModeStatResponse" - }, - "title": "By Mode", - "type": "array" + "family": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Family" }, - "failed": { + "family_generation": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Family Generation" + }, + "id": { + "title": "Id", + "type": "string" + }, + "input_1h_cache_write_credits_per_1000_tokens": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Input 1H Cache Write Credits Per 1000 Tokens" + }, + "input_5m_cache_write_credits_per_1000_tokens": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Input 5M Cache Write Credits Per 1000 Tokens" + }, + "input_cache_hit_credits_per_1000_tokens": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Input Cache Hit Credits Per 1000 Tokens" + }, + "input_credits_per_1000_tokens": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Input Credits Per 1000 Tokens" + }, + "is_new": { + "default": false, + "title": "Is New", + "type": "boolean" + }, + "last_used": { + "default": false, + "title": "Last Used", + "type": "boolean" + }, + "max_context_tokens": { + "title": "Max Context Tokens", + "type": "integer" + }, + "max_conversation_length": { + "title": "Max Conversation Length", + "type": "integer" + }, + "max_output_tokens": { + "title": "Max Output Tokens", + "type": "integer" + }, + "model_id": { + "title": "Model Id", + "type": "string" + }, + "name": { + "title": "Name", + "type": "string" + }, + "output_credits_per_1000_tokens": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Output Credits Per 1000 Tokens" + }, + "payload_schema": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "description": "Model-specific JSON schema for advanced prompt_call json_template payloads.", + "title": "Payload Schema" + }, + "payload_schema_source_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Source URL used to derive payload_schema guidance for this model.", + "title": "Payload Schema Source Url" + }, + "provider": { + "title": "Provider", + "type": "string" + }, + "released_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Released At" + }, + "schema_documentation_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Model documentation URL with request/response payload details.", + "title": "Schema Documentation Url" + }, + "schema_notes": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Human-readable notes about request payload compatibility.", + "title": "Schema Notes" + }, + "successor_model_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Successor Model Id" + }, + "sunset_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Sunset At" + }, + "supported_input_media": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Supported Input Media" + }, + "supported_languages": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Supported Languages" + }, + "supports_openai_arguments": { + "default": false, + "title": "Supports Openai Arguments", + "type": "boolean" + }, + "supports_streaming": { + "default": false, + "title": "Supports Streaming", + "type": "boolean" + }, + "supports_structured_output": { + "default": true, + "title": "Supports Structured Output", + "type": "boolean" + }, + "supports_thinking": { + "default": false, + "title": "Supports Thinking", + "type": "boolean" + }, + "supports_tool_use": { + "default": true, + "title": "Supports Tool Use", + "type": "boolean" + }, + "tools_disabled": { + "items": { + "$ref": "#/components/schemas/PromptToolResponse" + }, + "title": "Tools Disabled", + "type": "array" + }, + "tools_enabled": { + "items": { + "$ref": "#/components/schemas/PromptToolResponse" + }, + "title": "Tools Enabled", + "type": "array" + }, + "training_cutoff_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Training Cutoff At" + }, + "url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Url" + }, + "variants": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/VariantCategoryResponse" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Variants" + } + }, + "required": [ + "id", + "model_id", + "name", + "description", + "enabled", + "default", + "provider", + "max_context_tokens", + "max_output_tokens", + "max_conversation_length" + ], + "title": "PromptModelResponse", + "type": "object" + }, + "schemas__model_responses__ProviderGroupResponse": { + "description": "Response model for provider group with models", + "properties": { + "models": { + "items": { + "$ref": "#/components/schemas/schemas__model_responses__PromptModelResponse" + }, + "title": "Models", + "type": "array" + }, + "provider": { + "title": "Provider", + "type": "string" + } + }, + "required": [ + "provider", + "models" + ], + "title": "ProviderGroupResponse", + "type": "object" + }, + "schemas__v1__agent_evaluations__NonManualEvaluationModeStatResponse": { + "description": "Per-mode rollup for evaluation activity.", + "properties": { + "failed": { + "title": "Failed", + "type": "integer" + }, + "failure_rate": { + "title": "Failure Rate", + "type": "number" + }, + "flagged": { + "title": "Flagged", + "type": "integer" + }, + "mode": { + "title": "Mode", + "type": "string" + }, + "pass_rate": { + "title": "Pass Rate", + "type": "number" + }, + "passed": { + "title": "Passed", + "type": "integer" + }, + "total": { + "title": "Total", + "type": "integer" + } + }, + "required": [ + "mode", + "total", + "passed", + "failed", + "flagged", + "pass_rate", + "failure_rate" + ], + "title": "NonManualEvaluationModeStatResponse", + "type": "object" + }, + "schemas__v1__agent_evaluations__NonManualEvaluationSummaryResponse": { + "description": "Account-level summary for evaluations.", + "properties": { + "by_mode": { + "items": { + "$ref": "#/components/schemas/schemas__v1__agent_evaluations__NonManualEvaluationModeStatResponse" + }, + "title": "By Mode", + "type": "array" + }, + "failed": { "title": "Failed", "type": "integer" }, @@ -8457,7 +9229,7 @@ }, "/agents/{agent_id}/definition": { "get": { - "description": "Fetch the current agent definition from the main branch.\n\nThe response includes `change_id` which must be provided when updating the definition (optimistic locking).\n\nThe definition contains the agent's step workflow. Available step types:\n- `prompt_call`: Call an LLM with a prompt template\n- `retrieval`: Search a knowledge base\n- `transform`: Reshape data with a Liquid template\n- `gate`: Evaluate conditions, stop or continue child execution\n- `retry`: Re-execute from a target ancestor step (for quality-control loops; pair with a `gate` step for conditional retrying. Fields: `target_step_id` (ancestor step ID), `max_retries` (1\u201310))\n- `evaluate_step`: Score a selected previous step output and emit JSON with `score`, `passed`, and `pass_threshold` (fields: `target_step_id`, `evaluation_prompt`, `pass_threshold`, optional `evaluation_tier`, optional `expectation_config`)\n- `insight`: Progressively read and analyze large input\n- `extract_json` / `extract_html` / `extract_xml`: Extract structured data\n- `send_email`: Send email with step output\n- `webhook_call`: POST data to an external URL\n- `write_aws_s3_object`: Write output to S3\n- `call_agent`: Invoke another agent\n- `write_metadata`: Write a value to content metadata (for filtering/gates; content-triggered agents only. Fields: `metadata_key`, `content`)\n- `write_content_attachment`: Write a file-backed attachment to content (optionally indexed for retrieval; content-triggered agents only. Fields: `attachment_key`, `content`, `content_type`, `indexed`)\n- `load_content_attachment`: Load a previously written attachment (content-triggered agents only. Fields: `attachment_key`)\n- `load_content`: Load the full text body of a source document (typically used with content-triggered agents; can also load by explicit `content_version_id`. Fields: `content_version_id` optional)\n- `display_result`: Show output to the user\n- `join`: Merge parallel branches\n- `combinator`: Combine multiple inputs\n- `text`: Static text literal\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. You can only access agents belonging to your account.", + "description": "Fetch the current agent definition from the main branch.\n\nThe response includes `change_id` which must be provided when updating the definition (optimistic locking).\n\nThe definition contains the agent's step workflow. Available step types:\n- `prompt_call`: Call an LLM with a prompt template\n- `retrieval`: Search a knowledge base\n- `transform`: Reshape data with a Liquid template\n- `gate`: Evaluate conditions, stop or continue child execution\n- `retry`: Re-execute from a target ancestor step (for quality-control loops; pair with a `gate` step for conditional retrying. Fields: `target_step_id` (ancestor step ID), `max_retries` (1\u201310))\n- `evaluate_step`: Score a selected previous step output and emit JSON with `score`, `passed`, and `pass_threshold` (fields: `target_step_id`, `evaluation_prompt`, `pass_threshold`, optional `evaluation_tier`, optional `expectation_config`)\n- `insight`: Progressively read and analyze large input\n- `extract_content`: Extract structured data (JSON, HTML, XML)\n- `send_email`: Send email with step output\n- `webhook_call`: POST data to an external URL\n- `write_aws_s3_object`: Write output to S3\n- `call_agent`: Invoke another agent\n- `write_metadata`: Write a value to content metadata (for filtering/gates; content-triggered agents only. Fields: `metadata_key`, `content`)\n- `write_content_attachment`: Write a file-backed attachment to content (optionally indexed for retrieval; content-triggered agents only. Fields: `attachment_key`, `content`, `content_type`, `indexed`)\n- `load_content_attachment`: Load a previously written attachment (content-triggered agents only. Fields: `attachment_key`)\n- `load_content`: Load the full text body of a source document (typically used with content-triggered agents; can also load by explicit `content_version_id`. Fields: `content_version_id` optional)\n- `streaming_result`: Stream LLM tokens in real-time via SSE (must be a direct child of `prompt_call`; requires `dynamic_input` trigger; `priority: true` enables real-time streaming)\n- `display_result`: Show output to the user\n- `join`: Merge parallel branches\n- `combinator`: Combine multiple inputs\n- `text`: Static text literal\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. You can only access agents belonging to your account.", "operationId": "get_agent_definition_api_agents__agent_id__definition_get", "parameters": [ { @@ -8501,7 +9273,7 @@ ] }, "put": { - "description": "Update the agent's definition on the main branch.\n\nUses **optimistic locking**: provide `expected_change_id` from the last `GET /api/agents/{agent_id}/definition`. Returns `409 Conflict` if the definition was modified since your last read.\n\nThe definition contains the agent's step workflow. Step types include `prompt_call`, `retrieval`, `transform`, `gate`, `retry`, `evaluate_step`, `insight`, `extract_json`, `extract_html`, `extract_xml`, `send_email`, `webhook_call`, `write_aws_s3_object`, `call_agent`, `write_metadata`, `write_content_attachment`, `load_content_attachment`, `load_content`, `display_result`, `join`, `combinator`, and `text`. Non-composite step types (`display_result`, `join`, `retry`, `evaluate_step`) cannot contain child steps.\n\n**Retry steps** re-execute from a target ancestor step for quality-control loops. Configure with `target_step_id` (ancestor step ID) and `max_retries` (1\u201310). Best practice: place a `gate` step before the retry to make retries conditional.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. You can only update agents belonging to your account.", + "description": "Update the agent's definition on the main branch.\n\nUses **optimistic locking**: provide `expected_change_id` from the last `GET /api/agents/{agent_id}/definition`. Returns `409 Conflict` if the definition was modified since your last read.\n\nThe definition contains the agent's step workflow. Step types include `prompt_call`, `retrieval`, `transform`, `gate`, `retry`, `evaluate_step`, `insight`, `extract_content`, `streaming_result`, `send_email`, `webhook_call`, `write_aws_s3_object`, `call_agent`, `write_metadata`, `write_content_attachment`, `load_content_attachment`, `load_content`, `display_result`, `join`, `combinator`, and `text`. Non-composite step types (`display_result`, `join`, `retry`, `evaluate_step`, `streaming_result`) cannot contain child steps.\n\n**Retry steps** re-execute from a target ancestor step for quality-control loops. Configure with `target_step_id` (ancestor step ID) and `max_retries` (1\u201310). Best practice: place a `gate` step before the retry to make retries conditional.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. You can only update agents belonging to your account.", "operationId": "update_agent_definition_api_agents__agent_id__definition_put", "parameters": [ { @@ -8993,7 +9765,7 @@ }, "/agents/{agent_id}/export": { "get": { - "description": "Export an agent definition as a portable JSON snapshot.\n\nThe response contains the full definition, trigger configuration with schedules, alert configs, evaluation criteria, agent-scoped governance policies, and a resolved dependency manifest that maps every referenced external entity UUID to its human-readable name.\n\nResponse shape:\n- `export_version`: schema version (currently `\"2\"`)\n- `exported_at`: ISO-8601 timestamp\n- `agent`: name, description, schema_version, definition, timestamps\n- `trigger`: trigger type, input template, schedules\n- `alert_configs`: alert type, thresholds, recipients\n- `evaluation_criteria`: evaluation settings per step\n- `governance_policies`: agent-scoped governance policies\n- `dependencies`: knowledge_bases, memory_banks, source_connections, agents, users\n\nQuery params:\n- `download` (default true): when true, sets `Content-Disposition: attachment` so clients treat the response as a file download.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token.\n- When using OAuth, you may target a different organization account with `X-Account-Id`; for API keys, the key's account is always used.\n- You can only export agents belonging to the resolved account.", + "description": "Export an agent definition as a portable JSON snapshot.\n\nThe response contains the full definition, trigger configuration with schedules, alert configs, evaluation criteria, agent-scoped governance policies, and a resolved dependency manifest that maps every referenced external entity UUID to its human-readable name.\n\nResponse shape:\n- `export_version`: schema version (currently `\"2\"`)\n- `exported_at`: ISO-8601 timestamp\n- `agent`: name, description, schema_version, definition, timestamps\n- `trigger`: trigger type, input template, schedules\n- `alert_configs`: alert type, thresholds, recipients\n- `evaluation_criteria`: evaluation settings per step\n- `governance_policies`: agent-scoped governance policies\n- `dependencies`: knowledge_bases, memory_banks, source_connections, agents, users\n\nQuery params:\n- `download` (default true): when true, sets `Content-Disposition: attachment` so clients treat the response as a file download.\n\nAuth & scoping:\n- Requires `X-API-Key`. You can only export agents belonging to your account.", "operationId": "export_agent_api_agents__agent_id__export_get", "parameters": [ { @@ -9195,7 +9967,7 @@ ] }, "post": { - "description": "Start an agent run.\n\nAn *agent* is an automated workflow that can monitor content from your sources, process it with AI, and trigger actions. This endpoint creates a new run and returns a `run_id` you can poll to retrieve status and output.\n\nWhen to use:\n- Use this endpoint for request/response style integrations where polling is acceptable.\n- Use `POST /agents/{agent_id}/runs/stream` if you need real-time progress via SSE.\n\nKey fields:\n- `input`: text input for agents with a `dynamic_input` trigger.\n- `input_upload_id`: alternatively, reference a file previously uploaded via `POST /agents/{agent_id}/upload-input` (mutually exclusive with `input`).\n- `priority`: set true for latency-sensitive, user-facing work.\n- `metadata`: a JSON object that becomes available to agent steps for string substitution.\n\nAfter starting:\n- Poll `GET /agents/runs/{run_id}` until `status` is `completed` or `failed`.\n- Use `include_step_outputs=true` to include per-step outputs, timing, and credits.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. All resources are scoped to the caller's account.", + "description": "Start an agent run.\n\nAn *agent* is an automated workflow that can monitor content from your sources, process it with AI, and trigger actions. This endpoint creates a new run and returns a `run_id` you can poll to retrieve status and output.\n\nWhen to use:\n- Use this endpoint for request/response style integrations where polling is acceptable.\n- Use `POST /agents/{agent_id}/runs/stream` if you need real-time progress via SSE.\n\nKey fields:\n- `input`: text input for agents with a `dynamic_input` trigger.\n- `input_upload_id`: alternatively, reference a file previously uploaded via `POST /agents/{agent_id}/upload-input` (mutually exclusive with `input`).\n- `priority`: set true for latency-sensitive, user-facing work. For agents with a `streaming_result` step, set `priority=true` to enable real-time token streaming; otherwise the run still proceeds, but without live token streaming.\n- `metadata`: a JSON object that becomes available to agent steps for string substitution.\n\nAfter starting:\n- Poll `GET /agents/runs/{run_id}` until `status` is `completed` or `failed`.\n- Use `include_step_outputs=true` to include per-step outputs, timing, and credits.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. All resources are scoped to the caller's account.", "operationId": "run_agent_api_agents__agent_id__runs_post", "parameters": [ { @@ -9232,6 +10004,9 @@ }, "description": "Successful Response" }, + "402": { + "description": "Insufficient credits \u2014 the account has exhausted its credits. The response body is `{\"detail\": {\"error\": \"insufficient_credits\", \"message\": ..., \"account_id\": ...}}`." + }, "422": { "content": { "application/json": { @@ -9251,7 +10026,7 @@ }, "/agents/{agent_id}/runs/stream": { "post": { - "description": "Start a **priority** agent run and stream run events using Server-Sent Events (SSE).\n\nThis is the best option for interactive UIs where you want progress updates as the run executes.\n\nHow it works:\n- The first `init` event contains an `AgentRunResponse` snapshot, including the `run_id`.\n- Subsequent events are forwarded from the run event stream (status changes, step events, etc).\n- The final `done` event contains the terminal snapshot (including `output` and `credits` when available).\n\nInput options (for `dynamic_input` triggers):\n- `input`: text input passed directly.\n- `input_upload_id`: reference a file uploaded via `POST /agents/{agent_id}/upload-input` (mutually exclusive with `input`).\n\nClient guidance:\n- Keep the connection open and handle keepalive comments.\n- On `timeout` or `error`, the payload includes `run_id` so clients can resume by polling `GET /agents/runs/{run_id}`.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. All resources are scoped to the caller's account.", + "description": "Start a **priority** agent run and stream run events using Server-Sent Events (SSE).\n\nThis is the best option for interactive UIs where you want progress updates as the run executes.\n\nHow it works:\n- The first `init` event contains an `AgentRunResponse` snapshot, including the `run_id`.\n- Subsequent events are forwarded from the run event stream (status changes, step events, etc).\n- If the agent contains a `streaming_result` step, `stream_token` events deliver individual LLM tokens (with a `token` field) and a `stream_end` event signals completion.\n- The final `done` event contains the terminal snapshot (including `output` and `credits` when available).\n\nInput options (for `dynamic_input` triggers):\n- `input`: text input passed directly.\n- `input_upload_id`: reference a file uploaded via `POST /agents/{agent_id}/upload-input` (mutually exclusive with `input`).\n\nClient guidance:\n- Keep the connection open and handle keepalive comments.\n- On `timeout` or `error`, the payload includes `run_id` so clients can resume by polling `GET /agents/runs/{run_id}`.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. All resources are scoped to the caller's account.", "operationId": "run_streaming_agent_api_agents__agent_id__runs_stream_post", "parameters": [ { @@ -9292,6 +10067,9 @@ }, "description": "Streams agent run events via Server-Sent Events (SSE); run is always created as priority.\n\nSSE events:\n- `event: init` \u2014 `data` is an `AgentRunResponse` snapshot (includes `run_id`).\n- `event: done` \u2014 `data` is the final `AgentRunResponse` snapshot (includes `output`, `credits`, etc).\n- Other events (e.g. `status`, step events) are forwarded from the run event stream.\n- On `timeout` / `error`, the payload includes `run_id` so clients can fetch status via `GET /api/agents/runs/{run_id}`." }, + "402": { + "description": "Insufficient credits \u2014 the account has exhausted its credits. The response body is `{\"detail\": {\"error\": \"insufficient_credits\", \"message\": ..., \"account_id\": ...}}`." + }, "422": { "content": { "application/json": { @@ -10929,7 +11707,7 @@ }, "/contents/{source_connection_content_version}/upload": { "post": { - "description": "Upload a new file and replace the content backing an existing `SourceConnectionContentVersion`.\n\nThis behaves like a source file upload, but it targets an existing content version ID. This is useful when you want to correct or update an uploaded document while keeping references stable.\n\n**Maximum file size:** 209715200 bytes.\n\n**Supported MIME types:**\n- `application/epub+zip`\n- `application/json`\n- `application/msword`\n- `application/pdf`\n- `application/vnd.ms-excel`\n- `application/vnd.ms-outlook`\n- `application/vnd.ms-powerpoint`\n- `application/vnd.openxmlformats-officedocument.presentationml.presentation`\n- `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`\n- `application/vnd.openxmlformats-officedocument.wordprocessingml.document`\n- `application/xml`\n- `application/zip`\n- `audio/flac`\n- `audio/mp4`\n- `audio/mpeg`\n- `audio/ogg`\n- `audio/wav`\n- `image/bmp`\n- `image/gif`\n- `image/jpeg`\n- `image/png`\n- `image/tiff`\n- `image/webp`\n- `text/csv`\n- `text/html`\n- `text/markdown`\n- `text/plain`\n- `text/x-markdown`\n- `text/xml`\n- `video/mp4`\n- `video/quicktime`\n- `video/x-msvideo`\n\nNotes:\n- If the uploaded file's content type is `application/octet-stream`, the server attempts to infer the type from the file extension.\n- Use `metadata` to attach an arbitrary JSON object of metadata (for example `metadata={\"category\":\"docs\"}`).\n- `title` is a convenience field and is merged into the metadata as `metadata.title` (it does not override an existing `metadata.title`).\n- For backwards compatibility, you can also pass form fields named `metadata_` (for example `metadata_author=...`). These override keys from `metadata`.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. You can only replace content belonging to your account.", + "description": "Upload a new file and replace the content backing an existing `SourceConnectionContentVersion`.\n\nThis behaves like a source file upload, but it targets an existing content version ID. This is useful when you want to correct or update an uploaded document while keeping references stable.\n\n**Maximum file size:** 209715200 bytes.\n\n**Supported MIME types:**\n- `application/epub+zip`\n- `application/json`\n- `application/pdf`\n- `application/vnd.ms-excel`\n- `application/vnd.ms-outlook`\n- `application/vnd.ms-powerpoint`\n- `application/vnd.openxmlformats-officedocument.presentationml.presentation`\n- `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`\n- `application/vnd.openxmlformats-officedocument.wordprocessingml.document`\n- `application/xml`\n- `application/zip`\n- `audio/flac`\n- `audio/mp4`\n- `audio/mpeg`\n- `audio/ogg`\n- `audio/wav`\n- `image/bmp`\n- `image/gif`\n- `image/jpeg`\n- `image/png`\n- `image/tiff`\n- `image/webp`\n- `text/csv`\n- `text/html`\n- `text/markdown`\n- `text/plain`\n- `text/x-markdown`\n- `text/xml`\n- `video/mp4`\n- `video/quicktime`\n- `video/x-msvideo`\n\nNotes:\n- If the uploaded file's content type is `application/octet-stream`, the server attempts to infer the type from the file extension.\n- Use `metadata` to attach an arbitrary JSON object of metadata (for example `metadata={\"category\":\"docs\"}`).\n- `title` is a convenience field and is merged into the metadata as `metadata.title` (it does not override an existing `metadata.title`).\n- For backwards compatibility, you can also pass form fields named `metadata_` (for example `metadata_author=...`). These override keys from `metadata`.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. You can only replace content belonging to your account.", "operationId": "upload_file_to_content_api_contents__source_connection_content_version__upload_post", "parameters": [ { @@ -11468,7 +12246,7 @@ }, "/me": { "get": { - "description": "Returns the authenticated user's personal account ID and a list of organizations they belong to. Each organization entry includes the organization's id, name, and account_id. Useful for CLI tooling that needs to let the user pick an organization context.", + "description": "Returns the authenticated user's personal account ID and a list of organisations they belong to. Each organisation entry includes the organisation's own id, display name, and account_id. Useful for CLI tooling that needs to let the user pick an org context.", "operationId": "get_me_api_me_get", "parameters": [ { @@ -11898,10 +12676,248 @@ ] } }, - "/memory_banks/{memory_bank_id}": { + "/memory_banks/{memory_bank_id}": { + "delete": { + "description": "Soft-delete a memory bank. This action is permanent and cannot be undone.\n\nThe linked content source and all stored conversation memory entries will also be removed.", + "operationId": "delete_memory_bank_api_memory_banks__memory_bank_id__delete", + "parameters": [ + { + "in": "path", + "name": "memory_bank_id", + "required": true, + "schema": { + "title": "Memory Bank Id", + "type": "string" + } + }, + { + "$ref": "#/components/parameters/X-Account-Id" + } + ], + "responses": { + "204": { + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Delete Memory Bank", + "tags": [ + "memory_banks" + ] + }, + "get": { + "description": "Fetch a memory bank by ID.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. You can only access memory banks belonging to your account.", + "operationId": "get_memory_bank_api_memory_banks__memory_bank_id__get", + "parameters": [ + { + "in": "path", + "name": "memory_bank_id", + "required": true, + "schema": { + "title": "Memory Bank Id", + "type": "string" + } + }, + { + "$ref": "#/components/parameters/X-Account-Id" + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemoryBankResponseModel" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Get Memory Bank", + "tags": [ + "memory_banks" + ] + }, + "put": { + "description": "Update a memory bank's configuration. Only provided fields are changed; omitted fields are left unchanged.\n\nNote: the embedding `mode` cannot be changed after creation because it determines the vector dimensions used to store entries.", + "operationId": "update_memory_bank_api_memory_banks__memory_bank_id__put", + "parameters": [ + { + "in": "path", + "name": "memory_bank_id", + "required": true, + "schema": { + "title": "Memory Bank Id", + "type": "string" + } + }, + { + "$ref": "#/components/parameters/X-Account-Id" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateMemoryBankBody" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemoryBankResponseModel" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Update Memory Bank", + "tags": [ + "memory_banks" + ] + } + }, + "/memory_banks/{memory_bank_id}/agents": { + "get": { + "description": "List agents whose current definition references this memory bank.\n\nReturns an array of `{agent_id, agent_name}` objects.", + "operationId": "get_agents_using_bank_api_memory_banks__memory_bank_id__agents_get", + "parameters": [ + { + "in": "path", + "name": "memory_bank_id", + "required": true, + "schema": { + "title": "Memory Bank Id", + "type": "string" + } + }, + { + "$ref": "#/components/parameters/X-Account-Id" + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "items": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "title": "Response Get Agents Using Bank Api Memory Banks Memory Bank Id Agents Get", + "type": "array" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Get Agents Using Bank", + "tags": [ + "memory_banks" + ] + } + }, + "/memory_banks/{memory_bank_id}/compact": { + "post": { + "description": "Trigger an on-demand compaction run for a memory bank.\n\nThe bank must have at least one compaction threshold configured (max_age_days, max_turns, or max_size_tokens). Compaction runs asynchronously \u2014 the response confirms scheduling, not completion.", + "operationId": "compact_memory_bank_api_memory_banks__memory_bank_id__compact_post", + "parameters": [ + { + "in": "path", + "name": "memory_bank_id", + "required": true, + "schema": { + "title": "Memory Bank Id", + "type": "string" + } + }, + { + "$ref": "#/components/parameters/X-Account-Id" + } + ], + "responses": { + "202": { + "content": { + "application/json": { + "schema": { + "additionalProperties": true, + "title": "Response Compact Memory Bank Api Memory Banks Memory Bank Id Compact Post", + "type": "object" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Compact Memory Bank", + "tags": [ + "memory_banks" + ] + } + }, + "/memory_banks/{memory_bank_id}/source": { "delete": { - "description": "Soft-delete a memory bank. This action is permanent and cannot be undone.\n\nThe linked content source and all stored conversation memory entries will also be removed.", - "operationId": "delete_memory_bank_api_memory_banks__memory_bank_id__delete", + "description": "Delete the content source linked to a memory bank, removing all stored memory entries.\n\nA new content source is automatically created on the next write. Use this to reset a bank's data without deleting the bank itself.", + "operationId": "delete_memory_bank_source_api_memory_banks__memory_bank_id__source_delete", "parameters": [ { "in": "path", @@ -11931,14 +12947,16 @@ "description": "Validation Error" } }, - "summary": "Delete Memory Bank", + "summary": "Delete Memory Bank Source", "tags": [ "memory_banks" ] - }, + } + }, + "/memory_banks/{memory_bank_id}/stats": { "get": { - "description": "Fetch a memory bank by ID.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. You can only access memory banks belonging to your account.", - "operationId": "get_memory_bank_api_memory_banks__memory_bank_id__get", + "description": "Return aggregated entry statistics for a memory bank, including total counts, token/age/entries-per-key distributions (avg, p95, min, max), and top conversation keys, group keys, speakers, and tags. Supports time-range filtering via `days`, `start_date`, and `end_date` query parameters.", + "operationId": "get_memory_bank_entry_stats_api_memory_banks__memory_bank_id__stats_get", "parameters": [ { "in": "path", @@ -11949,6 +12967,52 @@ "type": "string" } }, + { + "in": "query", + "name": "days", + "required": false, + "schema": { + "default": 30, + "maximum": 730, + "minimum": 1, + "title": "Days", + "type": "integer" + } + }, + { + "in": "query", + "name": "start_date", + "required": false, + "schema": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Start Date" + } + }, + { + "in": "query", + "name": "end_date", + "required": false, + "schema": { + "anyOf": [ + { + "format": "date", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "End Date" + } + }, { "$ref": "#/components/parameters/X-Account-Id" } @@ -11958,7 +13022,9 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MemoryBankResponseModel" + "additionalProperties": true, + "title": "Response Get Memory Bank Entry Stats Api Memory Banks Memory Bank Id Stats Get", + "type": "object" } } }, @@ -11975,14 +13041,16 @@ "description": "Validation Error" } }, - "summary": "Get Memory Bank", + "summary": "Get Memory Bank Entry Stats", "tags": [ "memory_banks" ] - }, - "put": { - "description": "Update a memory bank's configuration. Only provided fields are changed; omitted fields are left unchanged.\n\nNote: the embedding `mode` cannot be changed after creation because it determines the vector dimensions used to store entries.", - "operationId": "update_memory_bank_api_memory_banks__memory_bank_id__put", + } + }, + "/memory_banks/{memory_bank_id}/test-compaction": { + "post": { + "description": "Test a compaction prompt by running the summarizer and evaluating the result with an LLM-as-judge. Returns original entries, compaction summary, surviving entries, and a structured quality evaluation with verdict, score, and reasoning.", + "operationId": "test_compaction_prompt_api_memory_banks__memory_bank_id__test_compaction_post", "parameters": [ { "in": "path", @@ -12001,7 +13069,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateMemoryBankBody" + "$ref": "#/components/schemas/TestCompactionRequest" } } }, @@ -12012,7 +13080,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MemoryBankResponseModel" + "$ref": "#/components/schemas/CompactionTestResponseModel" } } }, @@ -12029,24 +13097,69 @@ "description": "Validation Error" } }, - "summary": "Update Memory Bank", + "summary": "Test Compaction Prompt", "tags": [ "memory_banks" ] } }, - "/memory_banks/{memory_bank_id}/agents": { + "/models": { "get": { - "description": "List agents whose current definition references this memory bank.\n\nReturns an array of `{agent_id, agent_name}` objects.", - "operationId": "get_agents_using_bank_api_memory_banks__memory_bank_id__agents_get", + "description": "List all enabled LLM models with full details.\n\nReturns models grouped by provider, including capabilities, credit pricing, tool support, variant tiers, and lifecycle status.\n\nOptional query parameters:\n- `provider`: filter by provider (e.g. 'anthropic', 'openai')\n- `supports_tool_use`: filter to models with tool calling support\n- `supports_thinking`: filter to models with extended thinking support\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token.", + "operationId": "list_models_api_models_get", "parameters": [ { - "in": "path", - "name": "memory_bank_id", - "required": true, + "description": "Filter by provider name", + "in": "query", + "name": "provider", + "required": false, "schema": { - "title": "Memory Bank Id", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Filter by provider name", + "title": "Provider" + } + }, + { + "description": "Filter to models that support tool use", + "in": "query", + "name": "supports_tool_use", + "required": false, + "schema": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Filter to models that support tool use", + "title": "Supports Tool Use" + } + }, + { + "description": "Filter to models that support extended thinking", + "in": "query", + "name": "supports_thinking", + "required": false, + "schema": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Filter to models that support extended thinking", + "title": "Supports Thinking" } }, { @@ -12059,94 +13172,189 @@ "application/json": { "schema": { "items": { - "additionalProperties": { - "type": "string" - }, - "type": "object" + "$ref": "#/components/schemas/schemas__model_responses__ProviderGroupResponse" }, - "title": "Response Get Agents Using Bank Api Memory Banks Memory Bank Id Agents Get", + "title": "Response List Models Api Models Get", "type": "array" } } }, "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "List Models", + "tags": [ + "models" + ] + } + }, + "/models/alerts": { + "get": { + "description": "List model lifecycle alerts for the account.\n\nReturns in-app notifications about model deprecations, sunsets, and newer model availability. Supports filtering by agent, unread-only, and pagination.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. Alerts are scoped to the caller's account.", + "operationId": "list_alerts_api_models_alerts_get", + "parameters": [ + { + "description": "Filter alerts to a specific agent UUID.", + "in": "query", + "name": "agent_id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Filter alerts to a specific agent UUID.", + "title": "Agent Id" + } + }, + { + "description": "When true, only return unread alerts.", + "in": "query", + "name": "unread_only", + "required": false, + "schema": { + "default": false, + "description": "When true, only return unread alerts.", + "title": "Unread Only", + "type": "boolean" + } + }, + { + "description": "Maximum number of alerts to return (1-100).", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "default": 50, + "description": "Maximum number of alerts to return (1-100).", + "maximum": 100, + "minimum": 1, + "title": "Limit", + "type": "integer" + } + }, + { + "description": "Pagination offset.", + "in": "query", + "name": "offset", + "required": false, + "schema": { + "default": 0, + "description": "Pagination offset.", + "minimum": 0, + "title": "Offset", + "type": "integer" + } + }, + { + "$ref": "#/components/parameters/X-Account-Id" + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": true, + "title": "Response List Alerts Api Models Alerts Get", + "type": "object" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "List Alerts", + "tags": [ + "models" + ] + } + }, + "/models/alerts/mark-all-read": { + "post": { + "description": "Mark all model lifecycle alerts as read for the account.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. Scoped to the caller's account.", + "operationId": "mark_all_read_api_models_alerts_mark_all_read_post", + "parameters": [ + { + "$ref": "#/components/parameters/X-Account-Id" + } + ], + "responses": { + "204": { + "description": "Successful Response" } }, - "summary": "Get Agents Using Bank", + "summary": "Mark All Read", "tags": [ - "memory_banks" + "models" ] } }, - "/memory_banks/{memory_bank_id}/compact": { - "post": { - "description": "Trigger an on-demand compaction run for a memory bank.\n\nThe bank must have at least one compaction threshold configured (max_age_days, max_turns, or max_size_tokens). Compaction runs asynchronously \u2014 the response confirms scheduling, not completion.", - "operationId": "compact_memory_bank_api_memory_banks__memory_bank_id__compact_post", + "/models/alerts/unread-count": { + "get": { + "description": "Get the count of unread model lifecycle alerts.\n\nUseful for badge indicators in UIs and dashboards.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. Count is scoped to the caller's account.", + "operationId": "get_alert_unread_count_api_models_alerts_unread_count_get", "parameters": [ - { - "in": "path", - "name": "memory_bank_id", - "required": true, - "schema": { - "title": "Memory Bank Id", - "type": "string" - } - }, { "$ref": "#/components/parameters/X-Account-Id" } ], "responses": { - "202": { + "200": { "content": { "application/json": { "schema": { "additionalProperties": true, - "title": "Response Compact Memory Bank Api Memory Banks Memory Bank Id Compact Post", + "title": "Response Get Alert Unread Count Api Models Alerts Unread Count Get", "type": "object" } } }, "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" } }, - "summary": "Compact Memory Bank", + "summary": "Get Alert Unread Count", "tags": [ - "memory_banks" + "models" ] } }, - "/memory_banks/{memory_bank_id}/source": { - "delete": { - "description": "Delete the content source linked to a memory bank, removing all stored memory entries.\n\nA new content source is automatically created on the next write. Use this to reset a bank's data without deleting the bank itself.", - "operationId": "delete_memory_bank_source_api_memory_banks__memory_bank_id__source_delete", + "/models/alerts/{alert_id}/read": { + "patch": { + "description": "Mark a single model lifecycle alert as read (dismissed).\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. The alert must belong to the caller's account.", + "operationId": "mark_read_api_models_alerts__alert_id__read_patch", "parameters": [ { "in": "path", - "name": "memory_bank_id", + "name": "alert_id", "required": true, "schema": { - "title": "Memory Bank Id", + "format": "uuid", + "title": "Alert Id", "type": "string" } }, @@ -12169,32 +13377,25 @@ "description": "Validation Error" } }, - "summary": "Delete Memory Bank Source", + "summary": "Mark Read", "tags": [ - "memory_banks" + "models" ] } }, - "/memory_banks/{memory_bank_id}/stats": { + "/models/playground/experiments": { "get": { - "description": "Return aggregated entry statistics for a memory bank, including total counts, token/age/entries-per-key distributions (avg, p95, min, max), and top conversation keys, group keys, speakers, and tags. Supports time-range filtering via `days`, `start_date`, and `end_date` query parameters.", - "operationId": "get_memory_bank_entry_stats_api_memory_banks__memory_bank_id__stats_get", + "description": "List model playground experiments for the account.\n\nReturns a paginated, time-filtered list of experiments ordered by creation date descending.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. Experiments are scoped to the caller's account.", + "operationId": "list_experiments_api_models_playground_experiments_get", "parameters": [ { - "in": "path", - "name": "memory_bank_id", - "required": true, - "schema": { - "title": "Memory Bank Id", - "type": "string" - } - }, - { + "description": "Look-back window in days.", "in": "query", "name": "days", "required": false, "schema": { "default": 30, + "description": "Look-back window in days.", "maximum": 730, "minimum": 1, "title": "Days", @@ -12202,6 +13403,7 @@ } }, { + "description": "Explicit start date (overrides days).", "in": "query", "name": "start_date", "required": false, @@ -12215,10 +13417,12 @@ "type": "null" } ], + "description": "Explicit start date (overrides days).", "title": "Start Date" } }, { + "description": "Explicit end date (overrides days).", "in": "query", "name": "end_date", "required": false, @@ -12232,9 +13436,37 @@ "type": "null" } ], + "description": "Explicit end date (overrides days).", "title": "End Date" } }, + { + "description": "Page size.", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "default": 20, + "description": "Page size.", + "maximum": 50, + "minimum": 1, + "title": "Limit", + "type": "integer" + } + }, + { + "description": "Pagination offset.", + "in": "query", + "name": "offset", + "required": false, + "schema": { + "default": 0, + "description": "Pagination offset.", + "minimum": 0, + "title": "Offset", + "type": "integer" + } + }, { "$ref": "#/components/parameters/X-Account-Id" } @@ -12245,7 +13477,7 @@ "application/json": { "schema": { "additionalProperties": true, - "title": "Response Get Memory Bank Entry Stats Api Memory Banks Memory Bank Id Stats Get", + "title": "Response List Experiments Api Models Playground Experiments Get", "type": "object" } } @@ -12263,26 +13495,15 @@ "description": "Validation Error" } }, - "summary": "Get Memory Bank Entry Stats", + "summary": "List Experiments", "tags": [ - "memory_banks" + "models" ] - } - }, - "/memory_banks/{memory_bank_id}/test-compaction": { + }, "post": { - "description": "Test a compaction prompt by running the summarizer and evaluating the result with an LLM-as-judge. Returns original entries, compaction summary, surviving entries, and a structured quality evaluation with verdict, score, and reasoning.", - "operationId": "test_compaction_prompt_api_memory_banks__memory_bank_id__test_compaction_post", + "description": "Create and schedule a model playground experiment.\n\nRuns the given prompt against 1-10 models in parallel and optionally evaluates the outputs with an LLM judge.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token.", + "operationId": "create_experiment_api_models_playground_experiments_post", "parameters": [ - { - "in": "path", - "name": "memory_bank_id", - "required": true, - "schema": { - "title": "Memory Bank Id", - "type": "string" - } - }, { "$ref": "#/components/parameters/X-Account-Id" } @@ -12291,7 +13512,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TestCompactionRequest" + "$ref": "#/components/schemas/PlaygroundCreateRequest" } } }, @@ -12302,7 +13523,9 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CompactionTestResponseModel" + "additionalProperties": true, + "title": "Response Create Experiment Api Models Playground Experiments Post", + "type": "object" } } }, @@ -12319,72 +13542,25 @@ "description": "Validation Error" } }, - "summary": "Test Compaction Prompt", + "summary": "Create Experiment", "tags": [ - "memory_banks" + "models" ] } }, - "/models/alerts": { + "/models/playground/experiments/{experiment_id}": { "get": { - "description": "List model lifecycle alerts for the account.\n\nReturns in-app notifications about model deprecations, sunsets, and newer model availability. Supports filtering by agent, unread-only, and pagination.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. Alerts are scoped to the caller's account.", - "operationId": "list_alerts_api_models_alerts_get", + "description": "Get details and results for a specific model playground experiment.\n\nReturns the full experiment payload including prompt, model outputs, and evaluation results (if available).\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. The experiment must belong to the caller's account.", + "operationId": "get_experiment_api_models_playground_experiments__experiment_id__get", "parameters": [ { - "description": "Filter alerts to a specific agent UUID.", - "in": "query", - "name": "agent_id", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Filter alerts to a specific agent UUID.", - "title": "Agent Id" - } - }, - { - "description": "When true, only return unread alerts.", - "in": "query", - "name": "unread_only", - "required": false, - "schema": { - "default": false, - "description": "When true, only return unread alerts.", - "title": "Unread Only", - "type": "boolean" - } - }, - { - "description": "Maximum number of alerts to return (1-100).", - "in": "query", - "name": "limit", - "required": false, - "schema": { - "default": 50, - "description": "Maximum number of alerts to return (1-100).", - "maximum": 100, - "minimum": 1, - "title": "Limit", - "type": "integer" - } - }, - { - "description": "Pagination offset.", - "in": "query", - "name": "offset", - "required": false, + "in": "path", + "name": "experiment_id", + "required": true, "schema": { - "default": 0, - "description": "Pagination offset.", - "minimum": 0, - "title": "Offset", - "type": "integer" + "format": "uuid", + "title": "Experiment Id", + "type": "string" } }, { @@ -12397,7 +13573,7 @@ "application/json": { "schema": { "additionalProperties": true, - "title": "Response List Alerts Api Models Alerts Get", + "title": "Response Get Experiment Api Models Playground Experiments Experiment Id Get", "type": "object" } } @@ -12415,37 +13591,27 @@ "description": "Validation Error" } }, - "summary": "List Alerts", + "summary": "Get Experiment", "tags": [ "models" ] } }, - "/models/alerts/mark-all-read": { + "/models/playground/experiments/{experiment_id}/cancel": { "post": { - "description": "Mark all model lifecycle alerts as read for the account.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. Scoped to the caller's account.", - "operationId": "mark_all_read_api_models_alerts_mark_all_read_post", + "description": "Cancel a running or pending model playground experiment.\n\nSignals running model calls to abort and marks the experiment as canceled.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. The experiment must belong to the caller's account.", + "operationId": "cancel_experiment_endpoint_api_models_playground_experiments__experiment_id__cancel_post", "parameters": [ { - "$ref": "#/components/parameters/X-Account-Id" - } - ], - "responses": { - "204": { - "description": "Successful Response" - } - }, - "summary": "Mark All Read", - "tags": [ - "models" - ] - } - }, - "/models/alerts/unread-count": { - "get": { - "description": "Get the count of unread model lifecycle alerts.\n\nUseful for badge indicators in UIs and dashboards.\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. Count is scoped to the caller's account.", - "operationId": "get_alert_unread_count_api_models_alerts_unread_count_get", - "parameters": [ + "in": "path", + "name": "experiment_id", + "required": true, + "schema": { + "format": "uuid", + "title": "Experiment Id", + "type": "string" + } + }, { "$ref": "#/components/parameters/X-Account-Id" } @@ -12456,32 +13622,41 @@ "application/json": { "schema": { "additionalProperties": true, - "title": "Response Get Alert Unread Count Api Models Alerts Unread Count Get", + "title": "Response Cancel Experiment Endpoint Api Models Playground Experiments Experiment Id Cancel Post", "type": "object" } } }, "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" } }, - "summary": "Get Alert Unread Count", + "summary": "Cancel Experiment Endpoint", "tags": [ "models" ] } }, - "/models/alerts/{alert_id}/read": { - "patch": { - "description": "Mark a single model lifecycle alert as read (dismissed).\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. The alert must belong to the caller's account.", - "operationId": "mark_read_api_models_alerts__alert_id__read_patch", + "/models/{model_id}/details": { + "get": { + "description": "Get detailed information about a specific model.\n\nReturns full model details including capabilities, credit pricing, tool support, variant tiers, and lifecycle status.\n\nThe `model_id` is the model enum identifier (e.g. 'anthropic_claude_opus_4_6').\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token.", + "operationId": "get_model_api_models__model_id__details_get", "parameters": [ { "in": "path", - "name": "alert_id", + "name": "model_id", "required": true, "schema": { - "format": "uuid", - "title": "Alert Id", + "title": "Model Id", "type": "string" } }, @@ -12490,7 +13665,14 @@ } ], "responses": { - "204": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/schemas__model_responses__PromptModelResponse" + } + } + }, "description": "Successful Response" }, "422": { @@ -12504,7 +13686,7 @@ "description": "Validation Error" } }, - "summary": "Mark Read", + "summary": "Get Model", "tags": [ "models" ] @@ -13816,7 +14998,7 @@ }, "/sources": { "post": { - "description": "Create a new content source.\n\nSource types: `rss`, `website`, `file_uploads`, `custom_index`.\n\nFor RSS and website sources, provide the URL. For file upload and custom index sources, the URL is created automatically.", + "description": "Create a new content source.\n\nSource types: `rss`, `website`, `custom_index`.\n\nFor RSS and website sources, provide the URL. For custom index sources, the URL is created automatically.\n\nFor custom_index sources, you can optionally specify an `index_mode`: `fast_and_cheap` (default), `balanced`, `slow_and_thorough`, or `custom`. The legacy `file_uploads` source type is accepted as an alias for `custom_index` with `index_mode=fast_and_cheap`.", "operationId": "create_source_api_sources_post", "parameters": [ { @@ -13866,7 +15048,7 @@ }, "/sources/": { "get": { - "description": "List content sources for your account.\n\nA *source* is where Seclai pulls or receives content from (for example RSS feeds, websites, file uploads, or custom indexes). Sources are the inputs that power your agents and knowledge base workflows.\n\nParameters:\n- Pagination: `page` and `limit`.\n- Sorting: `sort` (created_at/updated_at/name) and `order` (asc/desc).\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. Results are scoped to the caller's account.\n- The optional `account_id` query param is only allowed when it matches the caller's account.", + "description": "List content sources for your account.\n\nA *source* is where Seclai pulls or receives content from \u2014 RSS feeds, websites, or content stores (``custom_index``). Content stores support file uploads and API-driven content ingestion with configurable index modes (``fast_and_cheap``, ``balanced``, ``slow_and_thorough``, or ``custom``).\n\nParameters:\n- Pagination: `page` and `limit`.\n- Sorting: `sort` (created_at/updated_at/name) and `order` (asc/desc).\n\nAuth & scoping:\n- Requires `X-API-Key` header or OAuth Bearer token. Results are scoped to the caller's account.\n- The optional `account_id` query param is only allowed when it matches the caller's account.", "operationId": "list_sources_api_sources__get", "parameters": [ { @@ -14727,7 +15909,7 @@ }, "/sources/{source_connection_id}/upload": { "post": { - "description": "Upload a file to a content source.\n\n**Maximum file size:** 209715200 bytes.\n\n**Supported MIME types:**\n- `application/epub+zip`\n- `application/json`\n- `application/msword`\n- `application/pdf`\n- `application/vnd.ms-excel`\n- `application/vnd.ms-outlook`\n- `application/vnd.ms-powerpoint`\n- `application/vnd.openxmlformats-officedocument.presentationml.presentation`\n- `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`\n- `application/vnd.openxmlformats-officedocument.wordprocessingml.document`\n- `application/xml`\n- `application/zip`\n- `audio/flac`\n- `audio/mp4`\n- `audio/mpeg`\n- `audio/ogg`\n- `audio/wav`\n- `image/bmp`\n- `image/gif`\n- `image/jpeg`\n- `image/png`\n- `image/tiff`\n- `image/webp`\n- `text/csv`\n- `text/html`\n- `text/markdown`\n- `text/plain`\n- `text/x-markdown`\n- `text/xml`\n- `video/mp4`\n- `video/quicktime`\n- `video/x-msvideo`\n\nNotes:\n- If the uploaded file's content type is `application/octet-stream`, the server attempts to infer the type from the file extension.\n- Use `metadata` to attach an arbitrary JSON object of metadata (for example `metadata={\"author\":\"Ada\",\"category\":\"docs\"}`).\n- `title` is a convenience field and is merged into the metadata as `metadata.title` (it does not override an existing `metadata.title`).\n- For backwards compatibility, you can also pass form fields named `metadata_` (for example `metadata_author=...`). These override keys from `metadata`.\n\nResponse:\n- `status` is `uploaded` for a new upload, or `duplicate` when the same file already exists for this source.", + "description": "Upload a file to a content source.\n\n**Maximum file size:** 209715200 bytes.\n\n**Supported MIME types:**\n- `application/epub+zip`\n- `application/json`\n- `application/pdf`\n- `application/vnd.ms-excel`\n- `application/vnd.ms-outlook`\n- `application/vnd.ms-powerpoint`\n- `application/vnd.openxmlformats-officedocument.presentationml.presentation`\n- `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`\n- `application/vnd.openxmlformats-officedocument.wordprocessingml.document`\n- `application/xml`\n- `application/zip`\n- `audio/flac`\n- `audio/mp4`\n- `audio/mpeg`\n- `audio/ogg`\n- `audio/wav`\n- `image/bmp`\n- `image/gif`\n- `image/jpeg`\n- `image/png`\n- `image/tiff`\n- `image/webp`\n- `text/csv`\n- `text/html`\n- `text/markdown`\n- `text/plain`\n- `text/x-markdown`\n- `text/xml`\n- `video/mp4`\n- `video/quicktime`\n- `video/x-msvideo`\n\nNotes:\n- If the uploaded file's content type is `application/octet-stream`, the server attempts to infer the type from the file extension.\n- Use `metadata` to attach an arbitrary JSON object of metadata (for example `metadata={\"author\":\"Ada\",\"category\":\"docs\"}`).\n- `title` is a convenience field and is merged into the metadata as `metadata.title` (it does not override an existing `metadata.title`).\n- For backwards compatibility, you can also pass form fields named `metadata_` (for example `metadata_author=...`). These override keys from `metadata`.\n\nResponse:\n- `status` is `uploaded` for a new upload, or `duplicate` when the same file already exists for this source.", "operationId": "upload_file_to_source_api_sources__source_connection_id__upload_post", "parameters": [ { diff --git a/seclai/_generated/api/agent_evaluations/create_evaluation_criteria_api_agents_agent_id_evaluation_criteria_post.py b/seclai/_generated/api/agent_evaluations/create_evaluation_criteria_api_agents_agent_id_evaluation_criteria_post.py index 70e2e11..ecb7cc2 100644 --- a/seclai/_generated/api/agent_evaluations/create_evaluation_criteria_api_agents_agent_id_evaluation_criteria_post.py +++ b/seclai/_generated/api/agent_evaluations/create_evaluation_criteria_api_agents_agent_id_evaluation_criteria_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( agent_id: str, *, body: CreateEvaluationCriteriaRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: CreateEvaluationCriteriaRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationCriteriaResponse | HTTPValidationError]: """Create Evaluation Criteria @@ -83,7 +84,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateEvaluationCriteriaRequest): Request body for creating an evaluation criteria. The evaluation mode, retry settings, and sample frequency are set at the @@ -115,7 +116,7 @@ def sync( *, client: AuthenticatedClient | Client, body: CreateEvaluationCriteriaRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationCriteriaResponse | HTTPValidationError | None: """Create Evaluation Criteria @@ -126,7 +127,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateEvaluationCriteriaRequest): Request body for creating an evaluation criteria. The evaluation mode, retry settings, and sample frequency are set at the @@ -153,7 +154,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: CreateEvaluationCriteriaRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationCriteriaResponse | HTTPValidationError]: """Create Evaluation Criteria @@ -164,7 +165,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateEvaluationCriteriaRequest): Request body for creating an evaluation criteria. The evaluation mode, retry settings, and sample frequency are set at the @@ -194,7 +195,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: CreateEvaluationCriteriaRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationCriteriaResponse | HTTPValidationError | None: """Create Evaluation Criteria @@ -205,7 +206,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateEvaluationCriteriaRequest): Request body for creating an evaluation criteria. The evaluation mode, retry settings, and sample frequency are set at the diff --git a/seclai/_generated/api/agent_evaluations/create_evaluation_result_api_agents_evaluation_criteria_criteria_id_results_post.py b/seclai/_generated/api/agent_evaluations/create_evaluation_result_api_agents_evaluation_criteria_criteria_id_results_post.py index b50797e..bfdbb66 100644 --- a/seclai/_generated/api/agent_evaluations/create_evaluation_result_api_agents_evaluation_criteria_criteria_id_results_post.py +++ b/seclai/_generated/api/agent_evaluations/create_evaluation_result_api_agents_evaluation_criteria_criteria_id_results_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( criteria_id: str, *, body: CreateEvaluationResultRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: CreateEvaluationResultRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationResultResponse | HTTPValidationError]: """Create Evaluation Result @@ -84,7 +85,7 @@ def sync_detailed( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateEvaluationResultRequest): Request body for recording an evaluation result. Raises: @@ -113,7 +114,7 @@ def sync( *, client: AuthenticatedClient | Client, body: CreateEvaluationResultRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationResultResponse | HTTPValidationError | None: """Create Evaluation Result @@ -125,7 +126,7 @@ def sync( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateEvaluationResultRequest): Request body for recording an evaluation result. Raises: @@ -149,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: CreateEvaluationResultRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationResultResponse | HTTPValidationError]: """Create Evaluation Result @@ -161,7 +162,7 @@ async def asyncio_detailed( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateEvaluationResultRequest): Request body for recording an evaluation result. Raises: @@ -188,7 +189,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: CreateEvaluationResultRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationResultResponse | HTTPValidationError | None: """Create Evaluation Result @@ -200,7 +201,7 @@ async def asyncio( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateEvaluationResultRequest): Request body for recording an evaluation result. Raises: diff --git a/seclai/_generated/api/agent_evaluations/delete_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_delete.py b/seclai/_generated/api/agent_evaluations/delete_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_delete.py index 817438c..a5c1c26 100644 --- a/seclai/_generated/api/agent_evaluations/delete_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_delete.py +++ b/seclai/_generated/api/agent_evaluations/delete_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_delete.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any, cast from urllib.parse import quote +from uuid import UUID import httpx @@ -13,7 +14,7 @@ def _get_kwargs( criteria_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -63,7 +64,7 @@ def sync_detailed( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete Evaluation Criteria @@ -74,7 +75,7 @@ def sync_detailed( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -100,7 +101,7 @@ def sync( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete Evaluation Criteria @@ -111,7 +112,7 @@ def sync( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -132,7 +133,7 @@ async def asyncio_detailed( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete Evaluation Criteria @@ -143,7 +144,7 @@ async def asyncio_detailed( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -167,7 +168,7 @@ async def asyncio( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete Evaluation Criteria @@ -178,7 +179,7 @@ async def asyncio( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agent_evaluations/get_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_get.py b/seclai/_generated/api/agent_evaluations/get_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_get.py index 3c2afa6..aa062f8 100644 --- a/seclai/_generated/api/agent_evaluations/get_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_get.py +++ b/seclai/_generated/api/agent_evaluations/get_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( criteria_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -65,7 +66,7 @@ def sync_detailed( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationCriteriaResponse | HTTPValidationError]: """Get Evaluation Criteria @@ -76,7 +77,7 @@ def sync_detailed( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -102,7 +103,7 @@ def sync( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationCriteriaResponse | HTTPValidationError | None: """Get Evaluation Criteria @@ -113,7 +114,7 @@ def sync( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -134,7 +135,7 @@ async def asyncio_detailed( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationCriteriaResponse | HTTPValidationError]: """Get Evaluation Criteria @@ -145,7 +146,7 @@ async def asyncio_detailed( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -169,7 +170,7 @@ async def asyncio( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationCriteriaResponse | HTTPValidationError | None: """Get Evaluation Criteria @@ -180,7 +181,7 @@ async def asyncio( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agent_evaluations/get_evaluation_summary_api_agents_evaluation_criteria_criteria_id_summary_get.py b/seclai/_generated/api/agent_evaluations/get_evaluation_summary_api_agents_evaluation_criteria_criteria_id_summary_get.py index 3d9bbf9..98e5f27 100644 --- a/seclai/_generated/api/agent_evaluations/get_evaluation_summary_api_agents_evaluation_criteria_criteria_id_summary_get.py +++ b/seclai/_generated/api/agent_evaluations/get_evaluation_summary_api_agents_evaluation_criteria_criteria_id_summary_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( criteria_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -65,7 +66,7 @@ def sync_detailed( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationResultSummaryResponse | HTTPValidationError]: """Get Evaluation Summary @@ -76,7 +77,7 @@ def sync_detailed( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -102,7 +103,7 @@ def sync( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationResultSummaryResponse | HTTPValidationError | None: """Get Evaluation Summary @@ -113,7 +114,7 @@ def sync( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -134,7 +135,7 @@ async def asyncio_detailed( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationResultSummaryResponse | HTTPValidationError]: """Get Evaluation Summary @@ -145,7 +146,7 @@ async def asyncio_detailed( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -169,7 +170,7 @@ async def asyncio( criteria_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationResultSummaryResponse | HTTPValidationError | None: """Get Evaluation Summary @@ -180,7 +181,7 @@ async def asyncio( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agent_evaluations/get_non_manual_evaluation_summary_api_agents_evaluation_results_non_manual_summary_get.py b/seclai/_generated/api/agent_evaluations/get_non_manual_evaluation_summary_api_agents_evaluation_results_non_manual_summary_get.py index 31f6ef4..1ac2c80 100644 --- a/seclai/_generated/api/agent_evaluations/get_non_manual_evaluation_summary_api_agents_evaluation_results_non_manual_summary_get.py +++ b/seclai/_generated/api/agent_evaluations/get_non_manual_evaluation_summary_api_agents_evaluation_results_non_manual_summary_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -17,7 +18,7 @@ def _get_kwargs( days: int | Unset = 30, start_date: None | str | Unset = UNSET, end_date: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -89,7 +90,7 @@ def sync_detailed( days: int | Unset = 30, start_date: None | str | Unset = UNSET, end_date: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | NonManualEvaluationSummaryResponse]: """Get Non Manual Evaluation Summary @@ -102,7 +103,7 @@ def sync_detailed( days (int | Unset): Default: 30. start_date (None | str | Unset): end_date (None | str | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -132,7 +133,7 @@ def sync( days: int | Unset = 30, start_date: None | str | Unset = UNSET, end_date: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | NonManualEvaluationSummaryResponse | None: """Get Non Manual Evaluation Summary @@ -145,7 +146,7 @@ def sync( days (int | Unset): Default: 30. start_date (None | str | Unset): end_date (None | str | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +171,7 @@ async def asyncio_detailed( days: int | Unset = 30, start_date: None | str | Unset = UNSET, end_date: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | NonManualEvaluationSummaryResponse]: """Get Non Manual Evaluation Summary @@ -183,7 +184,7 @@ async def asyncio_detailed( days (int | Unset): Default: 30. start_date (None | str | Unset): end_date (None | str | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -211,7 +212,7 @@ async def asyncio( days: int | Unset = 30, start_date: None | str | Unset = UNSET, end_date: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | NonManualEvaluationSummaryResponse | None: """Get Non Manual Evaluation Summary @@ -224,7 +225,7 @@ async def asyncio( days (int | Unset): Default: 30. start_date (None | str | Unset): end_date (None | str | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agent_evaluations/list_agent_evaluation_results_api_agents_agent_id_evaluation_results_get.py b/seclai/_generated/api/agent_evaluations/list_agent_evaluation_results_api_agents_agent_id_evaluation_results_get.py index 194b68e..ffdc855 100644 --- a/seclai/_generated/api/agent_evaluations/list_agent_evaluation_results_api_agents_agent_id_evaluation_results_get.py +++ b/seclai/_generated/api/agent_evaluations/list_agent_evaluation_results_api_agents_agent_id_evaluation_results_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -23,7 +24,7 @@ def _get_kwargs( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -122,7 +123,7 @@ def sync_detailed( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationResultWithCriteriaListResponse | HTTPValidationError]: """List Agent Evaluation Results @@ -140,7 +141,7 @@ def sync_detailed( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -180,7 +181,7 @@ def sync( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationResultWithCriteriaListResponse | HTTPValidationError | None: """List Agent Evaluation Results @@ -198,7 +199,7 @@ def sync( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -233,7 +234,7 @@ async def asyncio_detailed( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationResultWithCriteriaListResponse | HTTPValidationError]: """List Agent Evaluation Results @@ -251,7 +252,7 @@ async def asyncio_detailed( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -289,7 +290,7 @@ async def asyncio( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationResultWithCriteriaListResponse | HTTPValidationError | None: """List Agent Evaluation Results @@ -307,7 +308,7 @@ async def asyncio( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agent_evaluations/list_compatible_runs_api_agents_evaluation_criteria_criteria_id_compatible_runs_get.py b/seclai/_generated/api/agent_evaluations/list_compatible_runs_api_agents_evaluation_criteria_criteria_id_compatible_runs_get.py index d66514d..8b3a9de 100644 --- a/seclai/_generated/api/agent_evaluations/list_compatible_runs_api_agents_evaluation_criteria_criteria_id_compatible_runs_get.py +++ b/seclai/_generated/api/agent_evaluations/list_compatible_runs_api_agents_evaluation_criteria_criteria_id_compatible_runs_get.py @@ -2,6 +2,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -18,7 +19,7 @@ def _get_kwargs( page: int | Unset = 1, limit: int | Unset = 20, started_after: datetime.datetime | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -90,7 +91,7 @@ def sync_detailed( page: int | Unset = 1, limit: int | Unset = 20, started_after: datetime.datetime | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[CompatibleRunListResponse | HTTPValidationError]: """List Compatible Runs @@ -104,7 +105,7 @@ def sync_detailed( page (int | Unset): Default: 1. limit (int | Unset): Default: 20. started_after (datetime.datetime | None | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -136,7 +137,7 @@ def sync( page: int | Unset = 1, limit: int | Unset = 20, started_after: datetime.datetime | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> CompatibleRunListResponse | HTTPValidationError | None: """List Compatible Runs @@ -150,7 +151,7 @@ def sync( page (int | Unset): Default: 1. limit (int | Unset): Default: 20. started_after (datetime.datetime | None | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -177,7 +178,7 @@ async def asyncio_detailed( page: int | Unset = 1, limit: int | Unset = 20, started_after: datetime.datetime | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[CompatibleRunListResponse | HTTPValidationError]: """List Compatible Runs @@ -191,7 +192,7 @@ async def asyncio_detailed( page (int | Unset): Default: 1. limit (int | Unset): Default: 20. started_after (datetime.datetime | None | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -221,7 +222,7 @@ async def asyncio( page: int | Unset = 1, limit: int | Unset = 20, started_after: datetime.datetime | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> CompatibleRunListResponse | HTTPValidationError | None: """List Compatible Runs @@ -235,7 +236,7 @@ async def asyncio( page (int | Unset): Default: 1. limit (int | Unset): Default: 20. started_after (datetime.datetime | None | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agent_evaluations/list_evaluation_criteria_api_agents_agent_id_evaluation_criteria_get.py b/seclai/_generated/api/agent_evaluations/list_evaluation_criteria_api_agents_agent_id_evaluation_criteria_get.py index 59dda3d..47f489d 100644 --- a/seclai/_generated/api/agent_evaluations/list_evaluation_criteria_api_agents_agent_id_evaluation_criteria_get.py +++ b/seclai/_generated/api/agent_evaluations/list_evaluation_criteria_api_agents_agent_id_evaluation_criteria_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( agent_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | list[EvaluationCriteriaResponse]]: """List Evaluation Criteria @@ -84,7 +85,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -110,7 +111,7 @@ def sync( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | list[EvaluationCriteriaResponse] | None: """List Evaluation Criteria @@ -122,7 +123,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -143,7 +144,7 @@ async def asyncio_detailed( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | list[EvaluationCriteriaResponse]]: """List Evaluation Criteria @@ -155,7 +156,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -179,7 +180,7 @@ async def asyncio( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | list[EvaluationCriteriaResponse] | None: """List Evaluation Criteria @@ -191,7 +192,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agent_evaluations/list_evaluation_results_api_agents_evaluation_criteria_criteria_id_results_get.py b/seclai/_generated/api/agent_evaluations/list_evaluation_results_api_agents_evaluation_criteria_criteria_id_results_get.py index 80f4271..3f7989f 100644 --- a/seclai/_generated/api/agent_evaluations/list_evaluation_results_api_agents_evaluation_criteria_criteria_id_results_get.py +++ b/seclai/_generated/api/agent_evaluations/list_evaluation_results_api_agents_evaluation_criteria_criteria_id_results_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -20,7 +21,7 @@ def _get_kwargs( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -109,7 +110,7 @@ def sync_detailed( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationResultListResponse | HTTPValidationError]: """List Evaluation Results @@ -127,7 +128,7 @@ def sync_detailed( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -165,7 +166,7 @@ def sync( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationResultListResponse | HTTPValidationError | None: """List Evaluation Results @@ -183,7 +184,7 @@ def sync( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -216,7 +217,7 @@ async def asyncio_detailed( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationResultListResponse | HTTPValidationError]: """List Evaluation Results @@ -234,7 +235,7 @@ async def asyncio_detailed( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -270,7 +271,7 @@ async def asyncio( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationResultListResponse | HTTPValidationError | None: """List Evaluation Results @@ -288,7 +289,7 @@ async def asyncio( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agent_evaluations/list_evaluation_runs_api_agents_agent_id_evaluation_runs_get.py b/seclai/_generated/api/agent_evaluations/list_evaluation_runs_api_agents_agent_id_evaluation_runs_get.py index 88beaff..27b49c7 100644 --- a/seclai/_generated/api/agent_evaluations/list_evaluation_runs_api_agents_agent_id_evaluation_runs_get.py +++ b/seclai/_generated/api/agent_evaluations/list_evaluation_runs_api_agents_agent_id_evaluation_runs_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -22,7 +23,7 @@ def _get_kwargs( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -116,7 +117,7 @@ def sync_detailed( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationRunSummaryListResponse | HTTPValidationError]: """List Evaluation Runs @@ -133,7 +134,7 @@ def sync_detailed( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -171,7 +172,7 @@ def sync( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationRunSummaryListResponse | HTTPValidationError | None: """List Evaluation Runs @@ -188,7 +189,7 @@ def sync( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -221,7 +222,7 @@ async def asyncio_detailed( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationRunSummaryListResponse | HTTPValidationError]: """List Evaluation Runs @@ -238,7 +239,7 @@ async def asyncio_detailed( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -274,7 +275,7 @@ async def asyncio( time_to: None | str | Unset = UNSET, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationRunSummaryListResponse | HTTPValidationError | None: """List Evaluation Runs @@ -291,7 +292,7 @@ async def asyncio( time_to (None | str | Unset): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agent_evaluations/list_run_evaluation_results_api_agents_agent_id_runs_run_id_evaluation_results_get.py b/seclai/_generated/api/agent_evaluations/list_run_evaluation_results_api_agents_agent_id_runs_run_id_evaluation_results_get.py index ba4dfb7..af58dc6 100644 --- a/seclai/_generated/api/agent_evaluations/list_run_evaluation_results_api_agents_agent_id_runs_run_id_evaluation_results_get.py +++ b/seclai/_generated/api/agent_evaluations/list_run_evaluation_results_api_agents_agent_id_runs_run_id_evaluation_results_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -17,7 +18,7 @@ def _get_kwargs( agent_id: str, run_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -77,7 +78,7 @@ def sync_detailed( run_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | list[EvaluationResultWithCriteriaResponse]]: """List Run Evaluation Results @@ -89,7 +90,7 @@ def sync_detailed( Args: agent_id (str): run_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -117,7 +118,7 @@ def sync( run_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | list[EvaluationResultWithCriteriaResponse] | None: """List Run Evaluation Results @@ -129,7 +130,7 @@ def sync( Args: agent_id (str): run_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -152,7 +153,7 @@ async def asyncio_detailed( run_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | list[EvaluationResultWithCriteriaResponse]]: """List Run Evaluation Results @@ -164,7 +165,7 @@ async def asyncio_detailed( Args: agent_id (str): run_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -190,7 +191,7 @@ async def asyncio( run_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | list[EvaluationResultWithCriteriaResponse] | None: """List Run Evaluation Results @@ -202,7 +203,7 @@ async def asyncio( Args: agent_id (str): run_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agent_evaluations/test_draft_evaluation_api_agents_agent_id_evaluation_criteria_test_draft_post.py b/seclai/_generated/api/agent_evaluations/test_draft_evaluation_api_agents_agent_id_evaluation_criteria_test_draft_post.py index 436014b..0da5842 100644 --- a/seclai/_generated/api/agent_evaluations/test_draft_evaluation_api_agents_agent_id_evaluation_criteria_test_draft_post.py +++ b/seclai/_generated/api/agent_evaluations/test_draft_evaluation_api_agents_agent_id_evaluation_criteria_test_draft_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( agent_id: str, *, body: TestDraftEvaluationRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: TestDraftEvaluationRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | TestDraftEvaluationResponse]: """Test Draft Evaluation @@ -84,7 +85,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (TestDraftEvaluationRequest): Request body for ephemeral (non-persisted) evaluation testing. @@ -117,7 +118,7 @@ def sync( *, client: AuthenticatedClient | Client, body: TestDraftEvaluationRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | TestDraftEvaluationResponse | None: """Test Draft Evaluation @@ -129,7 +130,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (TestDraftEvaluationRequest): Request body for ephemeral (non-persisted) evaluation testing. @@ -157,7 +158,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: TestDraftEvaluationRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | TestDraftEvaluationResponse]: """Test Draft Evaluation @@ -169,7 +170,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (TestDraftEvaluationRequest): Request body for ephemeral (non-persisted) evaluation testing. @@ -200,7 +201,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: TestDraftEvaluationRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | TestDraftEvaluationResponse | None: """Test Draft Evaluation @@ -212,7 +213,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (TestDraftEvaluationRequest): Request body for ephemeral (non-persisted) evaluation testing. diff --git a/seclai/_generated/api/agent_evaluations/update_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_patch.py b/seclai/_generated/api/agent_evaluations/update_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_patch.py index 466797f..1dd9224 100644 --- a/seclai/_generated/api/agent_evaluations/update_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_patch.py +++ b/seclai/_generated/api/agent_evaluations/update_evaluation_criteria_api_agents_evaluation_criteria_criteria_id_patch.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( criteria_id: str, *, body: UpdateEvaluationCriteriaRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UpdateEvaluationCriteriaRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationCriteriaResponse | HTTPValidationError]: """Update Evaluation Criteria @@ -84,7 +85,7 @@ def sync_detailed( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateEvaluationCriteriaRequest): Request body for updating an evaluation criteria. Retry settings and sample frequency are set at the agent level. @@ -115,7 +116,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UpdateEvaluationCriteriaRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationCriteriaResponse | HTTPValidationError | None: """Update Evaluation Criteria @@ -127,7 +128,7 @@ def sync( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateEvaluationCriteriaRequest): Request body for updating an evaluation criteria. Retry settings and sample frequency are set at the agent level. @@ -153,7 +154,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UpdateEvaluationCriteriaRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EvaluationCriteriaResponse | HTTPValidationError]: """Update Evaluation Criteria @@ -165,7 +166,7 @@ async def asyncio_detailed( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateEvaluationCriteriaRequest): Request body for updating an evaluation criteria. Retry settings and sample frequency are set at the agent level. @@ -194,7 +195,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UpdateEvaluationCriteriaRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EvaluationCriteriaResponse | HTTPValidationError | None: """Update Evaluation Criteria @@ -206,7 +207,7 @@ async def asyncio( Args: criteria_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateEvaluationCriteriaRequest): Request body for updating an evaluation criteria. Retry settings and sample frequency are set at the agent level. diff --git a/seclai/_generated/api/agents/api_get_agent_input_upload_status_api_agents_agent_id_input_uploads_upload_id_get.py b/seclai/_generated/api/agents/api_get_agent_input_upload_status_api_agents_agent_id_input_uploads_upload_id_get.py index 5dcd3e7..cdac5b6 100644 --- a/seclai/_generated/api/agents/api_get_agent_input_upload_status_api_agents_agent_id_input_uploads_upload_id_get.py +++ b/seclai/_generated/api/agents/api_get_agent_input_upload_status_api_agents_agent_id_input_uploads_upload_id_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -15,7 +16,7 @@ def _get_kwargs( agent_id: str, upload_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -68,7 +69,7 @@ def sync_detailed( upload_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | UploadAgentInputApiResponse]: """Get upload status @@ -83,7 +84,7 @@ def sync_detailed( Args: agent_id (str): upload_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -111,7 +112,7 @@ def sync( upload_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | UploadAgentInputApiResponse | None: """Get upload status @@ -126,7 +127,7 @@ def sync( Args: agent_id (str): upload_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -149,7 +150,7 @@ async def asyncio_detailed( upload_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | UploadAgentInputApiResponse]: """Get upload status @@ -164,7 +165,7 @@ async def asyncio_detailed( Args: agent_id (str): upload_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -190,7 +191,7 @@ async def asyncio( upload_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | UploadAgentInputApiResponse | None: """Get upload status @@ -205,7 +206,7 @@ async def asyncio( Args: agent_id (str): upload_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agents/api_upload_agent_input_api_agents_agent_id_upload_input_post.py b/seclai/_generated/api/agents/api_upload_agent_input_api_agents_agent_id_upload_input_post.py index 661601e..862c9b3 100644 --- a/seclai/_generated/api/agents/api_upload_agent_input_api_agents_agent_id_upload_input_post.py +++ b/seclai/_generated/api/agents/api_upload_agent_input_api_agents_agent_id_upload_input_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( agent_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -65,7 +66,7 @@ def sync_detailed( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | UploadAgentInputApiResponse]: """Upload file input @@ -89,7 +90,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,7 @@ def sync( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | UploadAgentInputApiResponse | None: """Upload file input @@ -139,7 +140,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -160,7 +161,7 @@ async def asyncio_detailed( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | UploadAgentInputApiResponse]: """Upload file input @@ -184,7 +185,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -208,7 +209,7 @@ async def asyncio( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | UploadAgentInputApiResponse | None: """Upload file input @@ -232,7 +233,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agents/create_agent_api_agents_post.py b/seclai/_generated/api/agents/create_agent_api_agents_post.py index e9f3b75..cb5a220 100644 --- a/seclai/_generated/api/agents/create_agent_api_agents_post.py +++ b/seclai/_generated/api/agents/create_agent_api_agents_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any, cast +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: CreateAgentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -71,7 +72,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: CreateAgentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentSummaryResponse | Any | HTTPValidationError]: """Create an agent @@ -90,7 +91,7 @@ def sync_detailed( - Requires `X-API-Key` header or OAuth Bearer token. Agent is created in the caller's account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateAgentRequest): Raises: @@ -117,7 +118,7 @@ def sync( *, client: AuthenticatedClient | Client, body: CreateAgentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentSummaryResponse | Any | HTTPValidationError | None: """Create an agent @@ -136,7 +137,7 @@ def sync( - Requires `X-API-Key` header or OAuth Bearer token. Agent is created in the caller's account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateAgentRequest): Raises: @@ -158,7 +159,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: CreateAgentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentSummaryResponse | Any | HTTPValidationError]: """Create an agent @@ -177,7 +178,7 @@ async def asyncio_detailed( - Requires `X-API-Key` header or OAuth Bearer token. Agent is created in the caller's account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateAgentRequest): Raises: @@ -202,7 +203,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: CreateAgentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentSummaryResponse | Any | HTTPValidationError | None: """Create an agent @@ -221,7 +222,7 @@ async def asyncio( - Requires `X-API-Key` header or OAuth Bearer token. Agent is created in the caller's account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateAgentRequest): Raises: diff --git a/seclai/_generated/api/agents/delete_agent_api_agents_agent_id_delete.py b/seclai/_generated/api/agents/delete_agent_api_agents_agent_id_delete.py index 80f597d..010abb5 100644 --- a/seclai/_generated/api/agents/delete_agent_api_agents_agent_id_delete.py +++ b/seclai/_generated/api/agents/delete_agent_api_agents_agent_id_delete.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any, cast from urllib.parse import quote +from uuid import UUID import httpx @@ -13,7 +14,7 @@ def _get_kwargs( agent_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -63,7 +64,7 @@ def sync_detailed( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete an agent @@ -75,7 +76,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -101,7 +102,7 @@ def sync( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete an agent @@ -113,7 +114,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -134,7 +135,7 @@ async def asyncio_detailed( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete an agent @@ -146,7 +147,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +171,7 @@ async def asyncio( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete an agent @@ -182,7 +183,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agents/delete_agent_run_api_agents_runs_run_id_delete.py b/seclai/_generated/api/agents/delete_agent_run_api_agents_runs_run_id_delete.py index 8533bf2..3f918ae 100644 --- a/seclai/_generated/api/agents/delete_agent_run_api_agents_runs_run_id_delete.py +++ b/seclai/_generated/api/agents/delete_agent_run_api_agents_runs_run_id_delete.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( run_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -65,7 +66,7 @@ def sync_detailed( run_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentRunResponse | HTTPValidationError]: """Cancel an agent run @@ -79,7 +80,7 @@ def sync_detailed( Args: run_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -105,7 +106,7 @@ def sync( run_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentRunResponse | HTTPValidationError | None: """Cancel an agent run @@ -119,7 +120,7 @@ def sync( Args: run_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -140,7 +141,7 @@ async def asyncio_detailed( run_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentRunResponse | HTTPValidationError]: """Cancel an agent run @@ -154,7 +155,7 @@ async def asyncio_detailed( Args: run_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -178,7 +179,7 @@ async def asyncio( run_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentRunResponse | HTTPValidationError | None: """Cancel an agent run @@ -192,7 +193,7 @@ async def asyncio( Args: run_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agents/export_agent_api_agents_agent_id_export_get.py b/seclai/_generated/api/agents/export_agent_api_agents_agent_id_export_get.py index a68ab98..c9af997 100644 --- a/seclai/_generated/api/agents/export_agent_api_agents_agent_id_export_get.py +++ b/seclai/_generated/api/agents/export_agent_api_agents_agent_id_export_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -15,7 +16,7 @@ def _get_kwargs( agent_id: str, *, download: bool | Unset = True, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -74,7 +75,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, download: bool | Unset = True, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentExportResponse | HTTPValidationError]: r"""Export agent definition @@ -99,15 +100,12 @@ def sync_detailed( response as a file download. Auth & scoping: - - Requires `X-API-Key` header or OAuth Bearer token. - - When using OAuth, you may target a different organization account with `X-Account-Id`; for API - keys, the key's account is always used. - - You can only export agents belonging to the resolved account. + - Requires `X-API-Key`. You can only export agents belonging to your account. Args: agent_id (str): download (bool | Unset): Return as file download Default: True. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -135,7 +133,7 @@ def sync( *, client: AuthenticatedClient | Client, download: bool | Unset = True, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentExportResponse | HTTPValidationError | None: r"""Export agent definition @@ -160,15 +158,12 @@ def sync( response as a file download. Auth & scoping: - - Requires `X-API-Key` header or OAuth Bearer token. - - When using OAuth, you may target a different organization account with `X-Account-Id`; for API - keys, the key's account is always used. - - You can only export agents belonging to the resolved account. + - Requires `X-API-Key`. You can only export agents belonging to your account. Args: agent_id (str): download (bool | Unset): Return as file download Default: True. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -191,7 +186,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, download: bool | Unset = True, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentExportResponse | HTTPValidationError]: r"""Export agent definition @@ -216,15 +211,12 @@ async def asyncio_detailed( response as a file download. Auth & scoping: - - Requires `X-API-Key` header or OAuth Bearer token. - - When using OAuth, you may target a different organization account with `X-Account-Id`; for API - keys, the key's account is always used. - - You can only export agents belonging to the resolved account. + - Requires `X-API-Key`. You can only export agents belonging to your account. Args: agent_id (str): download (bool | Unset): Return as file download Default: True. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -250,7 +242,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, download: bool | Unset = True, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentExportResponse | HTTPValidationError | None: r"""Export agent definition @@ -275,15 +267,12 @@ async def asyncio( response as a file download. Auth & scoping: - - Requires `X-API-Key` header or OAuth Bearer token. - - When using OAuth, you may target a different organization account with `X-Account-Id`; for API - keys, the key's account is always used. - - You can only export agents belonging to the resolved account. + - Requires `X-API-Key`. You can only export agents belonging to your account. Args: agent_id (str): download (bool | Unset): Return as file download Default: True. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agents/generate_agent_steps_api_agents_agent_id_ai_assistant_generate_steps_post.py b/seclai/_generated/api/agents/generate_agent_steps_api_agents_agent_id_ai_assistant_generate_steps_post.py index 9d3c5ac..e0b2ea3 100644 --- a/seclai/_generated/api/agents/generate_agent_steps_api_agents_agent_id_ai_assistant_generate_steps_post.py +++ b/seclai/_generated/api/agents/generate_agent_steps_api_agents_agent_id_ai_assistant_generate_steps_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( agent_id: str, *, body: GenerateAgentStepsRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: GenerateAgentStepsRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[GenerateAgentStepsResponse | HTTPValidationError]: """Generate agent workflow @@ -88,7 +89,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GenerateAgentStepsRequest): Raises: @@ -117,7 +118,7 @@ def sync( *, client: AuthenticatedClient | Client, body: GenerateAgentStepsRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> GenerateAgentStepsResponse | HTTPValidationError | None: """Generate agent workflow @@ -133,7 +134,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GenerateAgentStepsRequest): Raises: @@ -157,7 +158,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: GenerateAgentStepsRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[GenerateAgentStepsResponse | HTTPValidationError]: """Generate agent workflow @@ -173,7 +174,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GenerateAgentStepsRequest): Raises: @@ -200,7 +201,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: GenerateAgentStepsRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> GenerateAgentStepsResponse | HTTPValidationError | None: """Generate agent workflow @@ -216,7 +217,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GenerateAgentStepsRequest): Raises: diff --git a/seclai/_generated/api/agents/generate_step_config_api_agents_agent_id_ai_assistant_step_config_post.py b/seclai/_generated/api/agents/generate_step_config_api_agents_agent_id_ai_assistant_step_config_post.py index f63e34f..aa8d1ac 100644 --- a/seclai/_generated/api/agents/generate_step_config_api_agents_agent_id_ai_assistant_step_config_post.py +++ b/seclai/_generated/api/agents/generate_step_config_api_agents_agent_id_ai_assistant_step_config_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( agent_id: str, *, body: GenerateStepConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: GenerateStepConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[GenerateStepConfigResponse | HTTPValidationError]: """Generate step configuration @@ -88,7 +89,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GenerateStepConfigRequest): Raises: @@ -117,7 +118,7 @@ def sync( *, client: AuthenticatedClient | Client, body: GenerateStepConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> GenerateStepConfigResponse | HTTPValidationError | None: """Generate step configuration @@ -133,7 +134,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GenerateStepConfigRequest): Raises: @@ -157,7 +158,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: GenerateStepConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[GenerateStepConfigResponse | HTTPValidationError]: """Generate step configuration @@ -173,7 +174,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GenerateStepConfigRequest): Raises: @@ -200,7 +201,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: GenerateStepConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> GenerateStepConfigResponse | HTTPValidationError | None: """Generate step configuration @@ -216,7 +217,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GenerateStepConfigRequest): Raises: diff --git a/seclai/_generated/api/agents/get_agent_definition_api_agents_agent_id_definition_get.py b/seclai/_generated/api/agents/get_agent_definition_api_agents_agent_id_definition_get.py index b3dc7cf..9eb2075 100644 --- a/seclai/_generated/api/agents/get_agent_definition_api_agents_agent_id_definition_get.py +++ b/seclai/_generated/api/agents/get_agent_definition_api_agents_agent_id_definition_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( agent_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -65,7 +66,7 @@ def sync_detailed( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentDefinitionResponse | HTTPValidationError]: """Get agent definition @@ -85,7 +86,7 @@ def sync_detailed( `pass_threshold` (fields: `target_step_id`, `evaluation_prompt`, `pass_threshold`, optional `evaluation_tier`, optional `expectation_config`) - `insight`: Progressively read and analyze large input - - `extract_json` / `extract_html` / `extract_xml`: Extract structured data + - `extract_content`: Extract structured data (JSON, HTML, XML) - `send_email`: Send email with step output - `webhook_call`: POST data to an external URL - `write_aws_s3_object`: Write output to S3 @@ -100,6 +101,8 @@ def sync_detailed( - `load_content`: Load the full text body of a source document (typically used with content- triggered agents; can also load by explicit `content_version_id`. Fields: `content_version_id` optional) + - `streaming_result`: Stream LLM tokens in real-time via SSE (must be a direct child of + `prompt_call`; requires `dynamic_input` trigger; `priority: true` enables real-time streaming) - `display_result`: Show output to the user - `join`: Merge parallel branches - `combinator`: Combine multiple inputs @@ -111,7 +114,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -137,7 +140,7 @@ def sync( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentDefinitionResponse | HTTPValidationError | None: """Get agent definition @@ -157,7 +160,7 @@ def sync( `pass_threshold` (fields: `target_step_id`, `evaluation_prompt`, `pass_threshold`, optional `evaluation_tier`, optional `expectation_config`) - `insight`: Progressively read and analyze large input - - `extract_json` / `extract_html` / `extract_xml`: Extract structured data + - `extract_content`: Extract structured data (JSON, HTML, XML) - `send_email`: Send email with step output - `webhook_call`: POST data to an external URL - `write_aws_s3_object`: Write output to S3 @@ -172,6 +175,8 @@ def sync( - `load_content`: Load the full text body of a source document (typically used with content- triggered agents; can also load by explicit `content_version_id`. Fields: `content_version_id` optional) + - `streaming_result`: Stream LLM tokens in real-time via SSE (must be a direct child of + `prompt_call`; requires `dynamic_input` trigger; `priority: true` enables real-time streaming) - `display_result`: Show output to the user - `join`: Merge parallel branches - `combinator`: Combine multiple inputs @@ -183,7 +188,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -204,7 +209,7 @@ async def asyncio_detailed( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentDefinitionResponse | HTTPValidationError]: """Get agent definition @@ -224,7 +229,7 @@ async def asyncio_detailed( `pass_threshold` (fields: `target_step_id`, `evaluation_prompt`, `pass_threshold`, optional `evaluation_tier`, optional `expectation_config`) - `insight`: Progressively read and analyze large input - - `extract_json` / `extract_html` / `extract_xml`: Extract structured data + - `extract_content`: Extract structured data (JSON, HTML, XML) - `send_email`: Send email with step output - `webhook_call`: POST data to an external URL - `write_aws_s3_object`: Write output to S3 @@ -239,6 +244,8 @@ async def asyncio_detailed( - `load_content`: Load the full text body of a source document (typically used with content- triggered agents; can also load by explicit `content_version_id`. Fields: `content_version_id` optional) + - `streaming_result`: Stream LLM tokens in real-time via SSE (must be a direct child of + `prompt_call`; requires `dynamic_input` trigger; `priority: true` enables real-time streaming) - `display_result`: Show output to the user - `join`: Merge parallel branches - `combinator`: Combine multiple inputs @@ -250,7 +257,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -274,7 +281,7 @@ async def asyncio( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentDefinitionResponse | HTTPValidationError | None: """Get agent definition @@ -294,7 +301,7 @@ async def asyncio( `pass_threshold` (fields: `target_step_id`, `evaluation_prompt`, `pass_threshold`, optional `evaluation_tier`, optional `expectation_config`) - `insight`: Progressively read and analyze large input - - `extract_json` / `extract_html` / `extract_xml`: Extract structured data + - `extract_content`: Extract structured data (JSON, HTML, XML) - `send_email`: Send email with step output - `webhook_call`: POST data to an external URL - `write_aws_s3_object`: Write output to S3 @@ -309,6 +316,8 @@ async def asyncio( - `load_content`: Load the full text body of a source document (typically used with content- triggered agents; can also load by explicit `content_version_id`. Fields: `content_version_id` optional) + - `streaming_result`: Stream LLM tokens in real-time via SSE (must be a direct child of + `prompt_call`; requires `dynamic_input` trigger; `priority: true` enables real-time streaming) - `display_result`: Show output to the user - `join`: Merge parallel branches - `combinator`: Combine multiple inputs @@ -320,7 +329,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agents/get_agent_metadata_api_agents_agent_id_get.py b/seclai/_generated/api/agents/get_agent_metadata_api_agents_agent_id_get.py index 058402c..87ed5f4 100644 --- a/seclai/_generated/api/agents/get_agent_metadata_api_agents_agent_id_get.py +++ b/seclai/_generated/api/agents/get_agent_metadata_api_agents_agent_id_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( agent_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -65,7 +66,7 @@ def sync_detailed( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentSummaryResponse | HTTPValidationError]: """Get an agent @@ -77,7 +78,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -103,7 +104,7 @@ def sync( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentSummaryResponse | HTTPValidationError | None: """Get an agent @@ -115,7 +116,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -136,7 +137,7 @@ async def asyncio_detailed( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentSummaryResponse | HTTPValidationError]: """Get an agent @@ -148,7 +149,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -172,7 +173,7 @@ async def asyncio( agent_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentSummaryResponse | HTTPValidationError | None: """Get an agent @@ -184,7 +185,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agents/get_agent_run_api_agents_runs_run_id_get.py b/seclai/_generated/api/agents/get_agent_run_api_agents_runs_run_id_get.py index 7c05fd8..39e04c9 100644 --- a/seclai/_generated/api/agents/get_agent_run_api_agents_runs_run_id_get.py +++ b/seclai/_generated/api/agents/get_agent_run_api_agents_runs_run_id_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -15,7 +16,7 @@ def _get_kwargs( run_id: str, *, include_step_outputs: bool | Unset = False, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -74,7 +75,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, include_step_outputs: bool | Unset = False, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentRunResponse | HTTPValidationError]: """Get an agent run @@ -92,7 +93,7 @@ def sync_detailed( run_id (str): include_step_outputs (bool | Unset): If true, include per-step outputs with timing, durations, and credits. Default: False. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +121,7 @@ def sync( *, client: AuthenticatedClient | Client, include_step_outputs: bool | Unset = False, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentRunResponse | HTTPValidationError | None: """Get an agent run @@ -138,7 +139,7 @@ def sync( run_id (str): include_step_outputs (bool | Unset): If true, include per-step outputs with timing, durations, and credits. Default: False. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -161,7 +162,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, include_step_outputs: bool | Unset = False, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentRunResponse | HTTPValidationError]: """Get an agent run @@ -179,7 +180,7 @@ async def asyncio_detailed( run_id (str): include_step_outputs (bool | Unset): If true, include per-step outputs with timing, durations, and credits. Default: False. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -205,7 +206,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, include_step_outputs: bool | Unset = False, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentRunResponse | HTTPValidationError | None: """Get an agent run @@ -223,7 +224,7 @@ async def asyncio( run_id (str): include_step_outputs (bool | Unset): If true, include per-step outputs with timing, durations, and credits. Default: False. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agents/get_ai_conversation_history_api_agents_agent_id_ai_assistant_conversations_get.py b/seclai/_generated/api/agents/get_ai_conversation_history_api_agents_agent_id_ai_assistant_conversations_get.py index 0a2538e..71ca602 100644 --- a/seclai/_generated/api/agents/get_ai_conversation_history_api_agents_agent_id_ai_assistant_conversations_get.py +++ b/seclai/_generated/api/agents/get_ai_conversation_history_api_agents_agent_id_ai_assistant_conversations_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -18,7 +19,7 @@ def _get_kwargs( step_id: None | str | Unset = UNSET, limit: int | Unset = 10, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -91,7 +92,7 @@ def sync_detailed( step_id: None | str | Unset = UNSET, limit: int | Unset = 10, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiConversationHistoryResponse | HTTPValidationError]: """Get AI conversation history @@ -111,7 +112,7 @@ def sync_detailed( step_id (None | str | Unset): Step ID to filter by. limit (int | Unset): Max turns to return. Default: 10. offset (int | Unset): Number of recent turns to skip. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -145,7 +146,7 @@ def sync( step_id: None | str | Unset = UNSET, limit: int | Unset = 10, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiConversationHistoryResponse | HTTPValidationError | None: """Get AI conversation history @@ -165,7 +166,7 @@ def sync( step_id (None | str | Unset): Step ID to filter by. limit (int | Unset): Max turns to return. Default: 10. offset (int | Unset): Number of recent turns to skip. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -194,7 +195,7 @@ async def asyncio_detailed( step_id: None | str | Unset = UNSET, limit: int | Unset = 10, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiConversationHistoryResponse | HTTPValidationError]: """Get AI conversation history @@ -214,7 +215,7 @@ async def asyncio_detailed( step_id (None | str | Unset): Step ID to filter by. limit (int | Unset): Max turns to return. Default: 10. offset (int | Unset): Number of recent turns to skip. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -246,7 +247,7 @@ async def asyncio( step_id: None | str | Unset = UNSET, limit: int | Unset = 10, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiConversationHistoryResponse | HTTPValidationError | None: """Get AI conversation history @@ -266,7 +267,7 @@ async def asyncio( step_id (None | str | Unset): Step ID to filter by. limit (int | Unset): Max turns to return. Default: 10. offset (int | Unset): Number of recent turns to skip. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agents/list_agent_runs_api_agents_agent_id_runs_get.py b/seclai/_generated/api/agents/list_agent_runs_api_agents_agent_id_runs_get.py index 830d623..d13efa7 100644 --- a/seclai/_generated/api/agents/list_agent_runs_api_agents_agent_id_runs_get.py +++ b/seclai/_generated/api/agents/list_agent_runs_api_agents_agent_id_runs_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -20,7 +21,7 @@ def _get_kwargs( page: int | Unset = 1, limit: int | Unset = 50, status: None | PendingProcessingCompletedFailedStatus | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -92,7 +93,7 @@ def sync_detailed( page: int | Unset = 1, limit: int | Unset = 50, status: None | PendingProcessingCompletedFailedStatus | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentRunListResponse | HTTPValidationError]: """List agent runs @@ -114,7 +115,7 @@ def sync_detailed( page (int | Unset): Page number Default: 1. limit (int | Unset): Items per page Default: 50. status (None | PendingProcessingCompletedFailedStatus | Unset): Filter runs by status - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +147,7 @@ def sync( page: int | Unset = 1, limit: int | Unset = 50, status: None | PendingProcessingCompletedFailedStatus | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentRunListResponse | HTTPValidationError | None: """List agent runs @@ -168,7 +169,7 @@ def sync( page (int | Unset): Page number Default: 1. limit (int | Unset): Items per page Default: 50. status (None | PendingProcessingCompletedFailedStatus | Unset): Filter runs by status - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -195,7 +196,7 @@ async def asyncio_detailed( page: int | Unset = 1, limit: int | Unset = 50, status: None | PendingProcessingCompletedFailedStatus | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentRunListResponse | HTTPValidationError]: """List agent runs @@ -217,7 +218,7 @@ async def asyncio_detailed( page (int | Unset): Page number Default: 1. limit (int | Unset): Items per page Default: 50. status (None | PendingProcessingCompletedFailedStatus | Unset): Filter runs by status - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -247,7 +248,7 @@ async def asyncio( page: int | Unset = 1, limit: int | Unset = 50, status: None | PendingProcessingCompletedFailedStatus | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentRunListResponse | HTTPValidationError | None: """List agent runs @@ -269,7 +270,7 @@ async def asyncio( page (int | Unset): Page number Default: 1. limit (int | Unset): Items per page Default: 50. status (None | PendingProcessingCompletedFailedStatus | Unset): Filter runs by status - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agents/list_agents_api_agents_get.py b/seclai/_generated/api/agents/list_agents_api_agents_get.py index ee37bc0..09644b0 100644 --- a/seclai/_generated/api/agents/list_agents_api_agents_get.py +++ b/seclai/_generated/api/agents/list_agents_api_agents_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +74,7 @@ def sync_detailed( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentListResponse | HTTPValidationError]: """List agents @@ -86,7 +87,7 @@ def sync_detailed( Args: page (int | Unset): Page number Default: 1. limit (int | Unset): Items per page Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -114,7 +115,7 @@ def sync( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentListResponse | HTTPValidationError | None: """List agents @@ -127,7 +128,7 @@ def sync( Args: page (int | Unset): Page number Default: 1. limit (int | Unset): Items per page Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +151,7 @@ async def asyncio_detailed( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentListResponse | HTTPValidationError]: """List agents @@ -163,7 +164,7 @@ async def asyncio_detailed( Args: page (int | Unset): Page number Default: 1. limit (int | Unset): Items per page Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -189,7 +190,7 @@ async def asyncio( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentListResponse | HTTPValidationError | None: """List agents @@ -202,7 +203,7 @@ async def asyncio( Args: page (int | Unset): Page number Default: 1. limit (int | Unset): Items per page Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/agents/mark_ai_suggestion_api_agents_agent_id_ai_assistant_conversation_id_patch.py b/seclai/_generated/api/agents/mark_ai_suggestion_api_agents_agent_id_ai_assistant_conversation_id_patch.py index ccd61a4..7bfcf2c 100644 --- a/seclai/_generated/api/agents/mark_ai_suggestion_api_agents_agent_id_ai_assistant_conversation_id_patch.py +++ b/seclai/_generated/api/agents/mark_ai_suggestion_api_agents_agent_id_ai_assistant_conversation_id_patch.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -19,7 +20,7 @@ def _get_kwargs( conversation_id: str, *, body: MarkAiSuggestionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -86,7 +87,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: MarkAiSuggestionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | MarkAiSuggestionApiAgentsAgentIdAiAssistantConversationIdPatchResponseMarkAiSuggestionApiAgentsAgentIdAiAssistantConversationIdPatch @@ -105,7 +106,7 @@ def sync_detailed( Args: agent_id (str): conversation_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MarkAiSuggestionRequest): Raises: @@ -136,7 +137,7 @@ def sync( *, client: AuthenticatedClient | Client, body: MarkAiSuggestionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | MarkAiSuggestionApiAgentsAgentIdAiAssistantConversationIdPatchResponseMarkAiSuggestionApiAgentsAgentIdAiAssistantConversationIdPatch @@ -156,7 +157,7 @@ def sync( Args: agent_id (str): conversation_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MarkAiSuggestionRequest): Raises: @@ -182,7 +183,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: MarkAiSuggestionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | MarkAiSuggestionApiAgentsAgentIdAiAssistantConversationIdPatchResponseMarkAiSuggestionApiAgentsAgentIdAiAssistantConversationIdPatch @@ -201,7 +202,7 @@ async def asyncio_detailed( Args: agent_id (str): conversation_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MarkAiSuggestionRequest): Raises: @@ -230,7 +231,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: MarkAiSuggestionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | MarkAiSuggestionApiAgentsAgentIdAiAssistantConversationIdPatchResponseMarkAiSuggestionApiAgentsAgentIdAiAssistantConversationIdPatch @@ -250,7 +251,7 @@ async def asyncio( Args: agent_id (str): conversation_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MarkAiSuggestionRequest): Raises: diff --git a/seclai/_generated/api/agents/run_agent_api_agents_agent_id_runs_post.py b/seclai/_generated/api/agents/run_agent_api_agents_agent_id_runs_post.py index bc87ede..168ee04 100644 --- a/seclai/_generated/api/agents/run_agent_api_agents_agent_id_runs_post.py +++ b/seclai/_generated/api/agents/run_agent_api_agents_agent_id_runs_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus -from typing import Any +from typing import Any, cast from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( agent_id: str, *, body: AgentRunRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -39,12 +40,16 @@ def _get_kwargs( def _parse_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> AgentRunResponse | HTTPValidationError | None: +) -> AgentRunResponse | Any | HTTPValidationError | None: if response.status_code == 200: response_200 = AgentRunResponse.from_dict(response.json()) return response_200 + if response.status_code == 402: + response_402 = cast(Any, None) + return response_402 + if response.status_code == 422: response_422 = HTTPValidationError.from_dict(response.json()) @@ -58,7 +63,7 @@ def _parse_response( def _build_response( *, client: AuthenticatedClient | Client, response: httpx.Response -) -> Response[AgentRunResponse | HTTPValidationError]: +) -> Response[AgentRunResponse | Any | HTTPValidationError]: return Response( status_code=HTTPStatus(response.status_code), content=response.content, @@ -72,8 +77,8 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AgentRunRequest, - x_account_id: str | Unset = UNSET, -) -> Response[AgentRunResponse | HTTPValidationError]: + x_account_id: UUID | Unset = UNSET, +) -> Response[AgentRunResponse | Any | HTTPValidationError]: """Run an agent Start an agent run. @@ -90,7 +95,9 @@ def sync_detailed( - `input`: text input for agents with a `dynamic_input` trigger. - `input_upload_id`: alternatively, reference a file previously uploaded via `POST /agents/{agent_id}/upload-input` (mutually exclusive with `input`). - - `priority`: set true for latency-sensitive, user-facing work. + - `priority`: set true for latency-sensitive, user-facing work. For agents with a `streaming_result` + step, set `priority=true` to enable real-time token streaming; otherwise the run still proceeds, but + without live token streaming. - `metadata`: a JSON object that becomes available to agent steps for string substitution. After starting: @@ -103,7 +110,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentRunRequest): Raises: @@ -111,7 +118,7 @@ def sync_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[AgentRunResponse | HTTPValidationError] + Response[AgentRunResponse | Any | HTTPValidationError] """ kwargs = _get_kwargs( @@ -132,8 +139,8 @@ def sync( *, client: AuthenticatedClient | Client, body: AgentRunRequest, - x_account_id: str | Unset = UNSET, -) -> AgentRunResponse | HTTPValidationError | None: + x_account_id: UUID | Unset = UNSET, +) -> AgentRunResponse | Any | HTTPValidationError | None: """Run an agent Start an agent run. @@ -150,7 +157,9 @@ def sync( - `input`: text input for agents with a `dynamic_input` trigger. - `input_upload_id`: alternatively, reference a file previously uploaded via `POST /agents/{agent_id}/upload-input` (mutually exclusive with `input`). - - `priority`: set true for latency-sensitive, user-facing work. + - `priority`: set true for latency-sensitive, user-facing work. For agents with a `streaming_result` + step, set `priority=true` to enable real-time token streaming; otherwise the run still proceeds, but + without live token streaming. - `metadata`: a JSON object that becomes available to agent steps for string substitution. After starting: @@ -163,7 +172,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentRunRequest): Raises: @@ -171,7 +180,7 @@ def sync( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - AgentRunResponse | HTTPValidationError + AgentRunResponse | Any | HTTPValidationError """ return sync_detailed( @@ -187,8 +196,8 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AgentRunRequest, - x_account_id: str | Unset = UNSET, -) -> Response[AgentRunResponse | HTTPValidationError]: + x_account_id: UUID | Unset = UNSET, +) -> Response[AgentRunResponse | Any | HTTPValidationError]: """Run an agent Start an agent run. @@ -205,7 +214,9 @@ async def asyncio_detailed( - `input`: text input for agents with a `dynamic_input` trigger. - `input_upload_id`: alternatively, reference a file previously uploaded via `POST /agents/{agent_id}/upload-input` (mutually exclusive with `input`). - - `priority`: set true for latency-sensitive, user-facing work. + - `priority`: set true for latency-sensitive, user-facing work. For agents with a `streaming_result` + step, set `priority=true` to enable real-time token streaming; otherwise the run still proceeds, but + without live token streaming. - `metadata`: a JSON object that becomes available to agent steps for string substitution. After starting: @@ -218,7 +229,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentRunRequest): Raises: @@ -226,7 +237,7 @@ async def asyncio_detailed( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - Response[AgentRunResponse | HTTPValidationError] + Response[AgentRunResponse | Any | HTTPValidationError] """ kwargs = _get_kwargs( @@ -245,8 +256,8 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AgentRunRequest, - x_account_id: str | Unset = UNSET, -) -> AgentRunResponse | HTTPValidationError | None: + x_account_id: UUID | Unset = UNSET, +) -> AgentRunResponse | Any | HTTPValidationError | None: """Run an agent Start an agent run. @@ -263,7 +274,9 @@ async def asyncio( - `input`: text input for agents with a `dynamic_input` trigger. - `input_upload_id`: alternatively, reference a file previously uploaded via `POST /agents/{agent_id}/upload-input` (mutually exclusive with `input`). - - `priority`: set true for latency-sensitive, user-facing work. + - `priority`: set true for latency-sensitive, user-facing work. For agents with a `streaming_result` + step, set `priority=true` to enable real-time token streaming; otherwise the run still proceeds, but + without live token streaming. - `metadata`: a JSON object that becomes available to agent steps for string substitution. After starting: @@ -276,7 +289,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentRunRequest): Raises: @@ -284,7 +297,7 @@ async def asyncio( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - AgentRunResponse | HTTPValidationError + AgentRunResponse | Any | HTTPValidationError """ return ( diff --git a/seclai/_generated/api/agents/run_streaming_agent_api_agents_agent_id_runs_stream_post.py b/seclai/_generated/api/agents/run_streaming_agent_api_agents_agent_id_runs_stream_post.py index 2fd0b7a..9b12bfb 100644 --- a/seclai/_generated/api/agents/run_streaming_agent_api_agents_agent_id_runs_stream_post.py +++ b/seclai/_generated/api/agents/run_streaming_agent_api_agents_agent_id_runs_stream_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus -from typing import Any +from typing import Any, cast from urllib.parse import quote +from uuid import UUID import httpx @@ -15,7 +16,7 @@ def _get_kwargs( agent_id: str, *, body: AgentRunStreamRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -43,6 +44,10 @@ def _parse_response( response_200 = response.json() return response_200 + if response.status_code == 402: + response_402 = cast(Any, None) + return response_402 + if response.status_code == 422: response_422 = HTTPValidationError.from_dict(response.json()) @@ -70,7 +75,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AgentRunStreamRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Run an agent (stream events) @@ -81,6 +86,8 @@ def sync_detailed( How it works: - The first `init` event contains an `AgentRunResponse` snapshot, including the `run_id`. - Subsequent events are forwarded from the run event stream (status changes, step events, etc). + - If the agent contains a `streaming_result` step, `stream_token` events deliver individual LLM + tokens (with a `token` field) and a `stream_end` event signals completion. - The final `done` event contains the terminal snapshot (including `output` and `credits` when available). @@ -100,7 +107,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentRunStreamRequest): Raises: @@ -129,7 +136,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AgentRunStreamRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Run an agent (stream events) @@ -140,6 +147,8 @@ def sync( How it works: - The first `init` event contains an `AgentRunResponse` snapshot, including the `run_id`. - Subsequent events are forwarded from the run event stream (status changes, step events, etc). + - If the agent contains a `streaming_result` step, `stream_token` events deliver individual LLM + tokens (with a `token` field) and a `stream_end` event signals completion. - The final `done` event contains the terminal snapshot (including `output` and `credits` when available). @@ -159,7 +168,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentRunStreamRequest): Raises: @@ -183,7 +192,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AgentRunStreamRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Run an agent (stream events) @@ -194,6 +203,8 @@ async def asyncio_detailed( How it works: - The first `init` event contains an `AgentRunResponse` snapshot, including the `run_id`. - Subsequent events are forwarded from the run event stream (status changes, step events, etc). + - If the agent contains a `streaming_result` step, `stream_token` events deliver individual LLM + tokens (with a `token` field) and a `stream_end` event signals completion. - The final `done` event contains the terminal snapshot (including `output` and `credits` when available). @@ -213,7 +224,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentRunStreamRequest): Raises: @@ -240,7 +251,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AgentRunStreamRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Run an agent (stream events) @@ -251,6 +262,8 @@ async def asyncio( How it works: - The first `init` event contains an `AgentRunResponse` snapshot, including the `run_id`. - Subsequent events are forwarded from the run event stream (status changes, step events, etc). + - If the agent contains a `streaming_result` step, `stream_token` events deliver individual LLM + tokens (with a `token` field) and a `stream_end` event signals completion. - The final `done` event contains the terminal snapshot (including `output` and `credits` when available). @@ -270,7 +283,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentRunStreamRequest): Raises: diff --git a/seclai/_generated/api/agents/search_agent_runs_api_agents_runs_search_post.py b/seclai/_generated/api/agents/search_agent_runs_api_agents_runs_search_post.py index 153199f..898f6a6 100644 --- a/seclai/_generated/api/agents/search_agent_runs_api_agents_runs_search_post.py +++ b/seclai/_generated/api/agents/search_agent_runs_api_agents_runs_search_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: AgentTraceSearchRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +68,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AgentTraceSearchRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentTraceSearchResponse | HTTPValidationError]: """Search agent traces @@ -83,7 +84,7 @@ def sync_detailed( - Requires `X-API-Key` header or OAuth Bearer token. Searches only within your account's traces. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentTraceSearchRequest): Raises: @@ -110,7 +111,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AgentTraceSearchRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentTraceSearchResponse | HTTPValidationError | None: """Search agent traces @@ -126,7 +127,7 @@ def sync( - Requires `X-API-Key` header or OAuth Bearer token. Searches only within your account's traces. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentTraceSearchRequest): Raises: @@ -148,7 +149,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AgentTraceSearchRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentTraceSearchResponse | HTTPValidationError]: """Search agent traces @@ -164,7 +165,7 @@ async def asyncio_detailed( - Requires `X-API-Key` header or OAuth Bearer token. Searches only within your account's traces. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentTraceSearchRequest): Raises: @@ -189,7 +190,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AgentTraceSearchRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentTraceSearchResponse | HTTPValidationError | None: """Search agent traces @@ -205,7 +206,7 @@ async def asyncio( - Requires `X-API-Key` header or OAuth Bearer token. Searches only within your account's traces. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AgentTraceSearchRequest): Raises: diff --git a/seclai/_generated/api/agents/update_agent_api_agents_agent_id_put.py b/seclai/_generated/api/agents/update_agent_api_agents_agent_id_put.py index e743aa0..ab510c4 100644 --- a/seclai/_generated/api/agents/update_agent_api_agents_agent_id_put.py +++ b/seclai/_generated/api/agents/update_agent_api_agents_agent_id_put.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( agent_id: str, *, body: UpdateAgentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UpdateAgentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentSummaryResponse | HTTPValidationError]: """Update agent metadata @@ -95,7 +96,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAgentRequest): Raises: @@ -124,7 +125,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UpdateAgentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentSummaryResponse | HTTPValidationError | None: """Update agent metadata @@ -147,7 +148,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAgentRequest): Raises: @@ -171,7 +172,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UpdateAgentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentSummaryResponse | HTTPValidationError]: """Update agent metadata @@ -194,7 +195,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAgentRequest): Raises: @@ -221,7 +222,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UpdateAgentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentSummaryResponse | HTTPValidationError | None: """Update agent metadata @@ -244,7 +245,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAgentRequest): Raises: diff --git a/seclai/_generated/api/agents/update_agent_definition_api_agents_agent_id_definition_put.py b/seclai/_generated/api/agents/update_agent_definition_api_agents_agent_id_definition_put.py index 7efeb94..a299b71 100644 --- a/seclai/_generated/api/agents/update_agent_definition_api_agents_agent_id_definition_put.py +++ b/seclai/_generated/api/agents/update_agent_definition_api_agents_agent_id_definition_put.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( agent_id: str, *, body: UpdateAgentDefinitionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UpdateAgentDefinitionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentDefinitionResponse | HTTPValidationError]: """Update agent definition @@ -83,11 +84,11 @@ def sync_detailed( last read. The definition contains the agent's step workflow. Step types include `prompt_call`, `retrieval`, - `transform`, `gate`, `retry`, `evaluate_step`, `insight`, `extract_json`, `extract_html`, - `extract_xml`, `send_email`, `webhook_call`, `write_aws_s3_object`, `call_agent`, `write_metadata`, + `transform`, `gate`, `retry`, `evaluate_step`, `insight`, `extract_content`, `streaming_result`, + `send_email`, `webhook_call`, `write_aws_s3_object`, `call_agent`, `write_metadata`, `write_content_attachment`, `load_content_attachment`, `load_content`, `display_result`, `join`, `combinator`, and `text`. Non-composite step types (`display_result`, `join`, `retry`, - `evaluate_step`) cannot contain child steps. + `evaluate_step`, `streaming_result`) cannot contain child steps. **Retry steps** re-execute from a target ancestor step for quality-control loops. Configure with `target_step_id` (ancestor step ID) and `max_retries` (1–10). Best practice: place a `gate` step @@ -99,7 +100,7 @@ def sync_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAgentDefinitionRequest): Raises: @@ -128,7 +129,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UpdateAgentDefinitionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentDefinitionResponse | HTTPValidationError | None: """Update agent definition @@ -139,11 +140,11 @@ def sync( last read. The definition contains the agent's step workflow. Step types include `prompt_call`, `retrieval`, - `transform`, `gate`, `retry`, `evaluate_step`, `insight`, `extract_json`, `extract_html`, - `extract_xml`, `send_email`, `webhook_call`, `write_aws_s3_object`, `call_agent`, `write_metadata`, + `transform`, `gate`, `retry`, `evaluate_step`, `insight`, `extract_content`, `streaming_result`, + `send_email`, `webhook_call`, `write_aws_s3_object`, `call_agent`, `write_metadata`, `write_content_attachment`, `load_content_attachment`, `load_content`, `display_result`, `join`, `combinator`, and `text`. Non-composite step types (`display_result`, `join`, `retry`, - `evaluate_step`) cannot contain child steps. + `evaluate_step`, `streaming_result`) cannot contain child steps. **Retry steps** re-execute from a target ancestor step for quality-control loops. Configure with `target_step_id` (ancestor step ID) and `max_retries` (1–10). Best practice: place a `gate` step @@ -155,7 +156,7 @@ def sync( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAgentDefinitionRequest): Raises: @@ -179,7 +180,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UpdateAgentDefinitionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AgentDefinitionResponse | HTTPValidationError]: """Update agent definition @@ -190,11 +191,11 @@ async def asyncio_detailed( last read. The definition contains the agent's step workflow. Step types include `prompt_call`, `retrieval`, - `transform`, `gate`, `retry`, `evaluate_step`, `insight`, `extract_json`, `extract_html`, - `extract_xml`, `send_email`, `webhook_call`, `write_aws_s3_object`, `call_agent`, `write_metadata`, + `transform`, `gate`, `retry`, `evaluate_step`, `insight`, `extract_content`, `streaming_result`, + `send_email`, `webhook_call`, `write_aws_s3_object`, `call_agent`, `write_metadata`, `write_content_attachment`, `load_content_attachment`, `load_content`, `display_result`, `join`, `combinator`, and `text`. Non-composite step types (`display_result`, `join`, `retry`, - `evaluate_step`) cannot contain child steps. + `evaluate_step`, `streaming_result`) cannot contain child steps. **Retry steps** re-execute from a target ancestor step for quality-control loops. Configure with `target_step_id` (ancestor step ID) and `max_retries` (1–10). Best practice: place a `gate` step @@ -206,7 +207,7 @@ async def asyncio_detailed( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAgentDefinitionRequest): Raises: @@ -233,7 +234,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UpdateAgentDefinitionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AgentDefinitionResponse | HTTPValidationError | None: """Update agent definition @@ -244,11 +245,11 @@ async def asyncio( last read. The definition contains the agent's step workflow. Step types include `prompt_call`, `retrieval`, - `transform`, `gate`, `retry`, `evaluate_step`, `insight`, `extract_json`, `extract_html`, - `extract_xml`, `send_email`, `webhook_call`, `write_aws_s3_object`, `call_agent`, `write_metadata`, + `transform`, `gate`, `retry`, `evaluate_step`, `insight`, `extract_content`, `streaming_result`, + `send_email`, `webhook_call`, `write_aws_s3_object`, `call_agent`, `write_metadata`, `write_content_attachment`, `load_content_attachment`, `load_content`, `display_result`, `join`, `combinator`, and `text`. Non-composite step types (`display_result`, `join`, `retry`, - `evaluate_step`) cannot contain child steps. + `evaluate_step`, `streaming_result`) cannot contain child steps. **Retry steps** re-execute from a target ancestor step for quality-control loops. Configure with `target_step_id` (ancestor step ID) and `max_retries` (1–10). Best practice: place a `gate` step @@ -260,7 +261,7 @@ async def asyncio( Args: agent_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAgentDefinitionRequest): Raises: diff --git a/seclai/_generated/api/ai_assistant/api_ai_accept_api_ai_assistant_conversation_id_accept_post.py b/seclai/_generated/api/ai_assistant/api_ai_accept_api_ai_assistant_conversation_id_accept_post.py index 346f61a..7682d0c 100644 --- a/seclai/_generated/api/ai_assistant/api_ai_accept_api_ai_assistant_conversation_id_accept_post.py +++ b/seclai/_generated/api/ai_assistant/api_ai_accept_api_ai_assistant_conversation_id_accept_post.py @@ -17,7 +17,7 @@ def _get_kwargs( conversation_id: UUID, *, body: AiAssistantAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantAcceptResponse | HTTPValidationError]: """Accept and execute a standalone plan @@ -84,7 +84,7 @@ def sync_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantAcceptRequest): Request body for accepting a proposed plan. Raises: @@ -113,7 +113,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AiAssistantAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantAcceptResponse | HTTPValidationError | None: """Accept and execute a standalone plan @@ -124,7 +124,7 @@ def sync( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantAcceptRequest): Request body for accepting a proposed plan. Raises: @@ -148,7 +148,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantAcceptResponse | HTTPValidationError]: """Accept and execute a standalone plan @@ -159,7 +159,7 @@ async def asyncio_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantAcceptRequest): Request body for accepting a proposed plan. Raises: @@ -186,7 +186,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AiAssistantAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantAcceptResponse | HTTPValidationError | None: """Accept and execute a standalone plan @@ -197,7 +197,7 @@ async def asyncio( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantAcceptRequest): Request body for accepting a proposed plan. Raises: diff --git a/seclai/_generated/api/ai_assistant/api_ai_decline_api_ai_assistant_conversation_id_decline_post.py b/seclai/_generated/api/ai_assistant/api_ai_decline_api_ai_assistant_conversation_id_decline_post.py index 5ac92c4..1c7ec9d 100644 --- a/seclai/_generated/api/ai_assistant/api_ai_decline_api_ai_assistant_conversation_id_decline_post.py +++ b/seclai/_generated/api/ai_assistant/api_ai_decline_api_ai_assistant_conversation_id_decline_post.py @@ -14,7 +14,7 @@ def _get_kwargs( conversation_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -64,7 +64,7 @@ def sync_detailed( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Decline a standalone plan @@ -75,7 +75,7 @@ def sync_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -101,7 +101,7 @@ def sync( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Decline a standalone plan @@ -112,7 +112,7 @@ def sync( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -133,7 +133,7 @@ async def asyncio_detailed( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Decline a standalone plan @@ -144,7 +144,7 @@ async def asyncio_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Decline a standalone plan @@ -179,7 +179,7 @@ async def asyncio( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/ai_assistant/api_ai_feedback_api_ai_assistant_feedback_post.py b/seclai/_generated/api/ai_assistant/api_ai_feedback_api_ai_assistant_feedback_post.py index 45f222e..7f9d224 100644 --- a/seclai/_generated/api/ai_assistant/api_ai_feedback_api_ai_assistant_feedback_post.py +++ b/seclai/_generated/api/ai_assistant/api_ai_feedback_api_ai_assistant_feedback_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: AiAssistantFeedbackRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +68,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantFeedbackRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantFeedbackResponse | HTTPValidationError]: """Submit AI assistant feedback @@ -77,7 +78,7 @@ def sync_detailed( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantFeedbackRequest): Request body for submitting AI assistant feedback. Raises: @@ -104,7 +105,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AiAssistantFeedbackRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantFeedbackResponse | HTTPValidationError | None: """Submit AI assistant feedback @@ -114,7 +115,7 @@ def sync( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantFeedbackRequest): Request body for submitting AI assistant feedback. Raises: @@ -136,7 +137,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantFeedbackRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantFeedbackResponse | HTTPValidationError]: """Submit AI assistant feedback @@ -146,7 +147,7 @@ async def asyncio_detailed( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantFeedbackRequest): Request body for submitting AI assistant feedback. Raises: @@ -171,7 +172,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AiAssistantFeedbackRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantFeedbackResponse | HTTPValidationError | None: """Submit AI assistant feedback @@ -181,7 +182,7 @@ async def asyncio( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantFeedbackRequest): Request body for submitting AI assistant feedback. Raises: diff --git a/seclai/_generated/api/ai_assistant/api_ai_knowledge_base_api_ai_assistant_knowledge_base_post.py b/seclai/_generated/api/ai_assistant/api_ai_knowledge_base_api_ai_assistant_knowledge_base_post.py index 3d25770..a7fc46a 100644 --- a/seclai/_generated/api/ai_assistant/api_ai_knowledge_base_api_ai_assistant_knowledge_base_post.py +++ b/seclai/_generated/api/ai_assistant/api_ai_knowledge_base_api_ai_assistant_knowledge_base_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +68,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate a knowledge base plan (standalone) @@ -77,7 +78,7 @@ def sync_detailed( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -104,7 +105,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate a knowledge base plan (standalone) @@ -114,7 +115,7 @@ def sync( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -136,7 +137,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate a knowledge base plan (standalone) @@ -146,7 +147,7 @@ async def asyncio_detailed( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -171,7 +172,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate a knowledge base plan (standalone) @@ -181,7 +182,7 @@ async def asyncio( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: diff --git a/seclai/_generated/api/ai_assistant/api_ai_memory_bank_accept_api_ai_assistant_memory_bank_conversation_id_patch.py b/seclai/_generated/api/ai_assistant/api_ai_memory_bank_accept_api_ai_assistant_memory_bank_conversation_id_patch.py index feebb72..9ee2f8b 100644 --- a/seclai/_generated/api/ai_assistant/api_ai_memory_bank_accept_api_ai_assistant_memory_bank_conversation_id_patch.py +++ b/seclai/_generated/api/ai_assistant/api_ai_memory_bank_accept_api_ai_assistant_memory_bank_conversation_id_patch.py @@ -19,7 +19,7 @@ def _get_kwargs( conversation_id: UUID, *, body: MemoryBankAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -84,7 +84,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: MemoryBankAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ ApiAiMemoryBankAcceptApiAiAssistantMemoryBankConversationIdPatchResponseApiAiMemoryBankAcceptApiAiAssistantMemoryBankConversationIdPatch | HTTPValidationError @@ -99,7 +99,7 @@ def sync_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAcceptRequest): Accept or decline a memory bank AI suggestion. Raises: @@ -128,7 +128,7 @@ def sync( *, client: AuthenticatedClient | Client, body: MemoryBankAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( ApiAiMemoryBankAcceptApiAiAssistantMemoryBankConversationIdPatchResponseApiAiMemoryBankAcceptApiAiAssistantMemoryBankConversationIdPatch | HTTPValidationError @@ -144,7 +144,7 @@ def sync( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAcceptRequest): Accept or decline a memory bank AI suggestion. Raises: @@ -168,7 +168,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: MemoryBankAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ ApiAiMemoryBankAcceptApiAiAssistantMemoryBankConversationIdPatchResponseApiAiMemoryBankAcceptApiAiAssistantMemoryBankConversationIdPatch | HTTPValidationError @@ -183,7 +183,7 @@ async def asyncio_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAcceptRequest): Accept or decline a memory bank AI suggestion. Raises: @@ -210,7 +210,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: MemoryBankAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( ApiAiMemoryBankAcceptApiAiAssistantMemoryBankConversationIdPatchResponseApiAiMemoryBankAcceptApiAiAssistantMemoryBankConversationIdPatch | HTTPValidationError @@ -226,7 +226,7 @@ async def asyncio( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAcceptRequest): Accept or decline a memory bank AI suggestion. Raises: diff --git a/seclai/_generated/api/ai_assistant/api_ai_memory_bank_api_ai_assistant_memory_bank_post.py b/seclai/_generated/api/ai_assistant/api_ai_memory_bank_api_ai_assistant_memory_bank_post.py index d986a31..6749b12 100644 --- a/seclai/_generated/api/ai_assistant/api_ai_memory_bank_api_ai_assistant_memory_bank_post.py +++ b/seclai/_generated/api/ai_assistant/api_ai_memory_bank_api_ai_assistant_memory_bank_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: MemoryBankAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +68,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: MemoryBankAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBankAiAssistantResponse]: """Generate a memory bank configuration (standalone) @@ -77,7 +78,7 @@ def sync_detailed( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAiAssistantRequest): Request body for the memory bank AI assistant. Raises: @@ -104,7 +105,7 @@ def sync( *, client: AuthenticatedClient | Client, body: MemoryBankAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBankAiAssistantResponse | None: """Generate a memory bank configuration (standalone) @@ -114,7 +115,7 @@ def sync( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAiAssistantRequest): Request body for the memory bank AI assistant. Raises: @@ -136,7 +137,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: MemoryBankAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBankAiAssistantResponse]: """Generate a memory bank configuration (standalone) @@ -146,7 +147,7 @@ async def asyncio_detailed( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAiAssistantRequest): Request body for the memory bank AI assistant. Raises: @@ -171,7 +172,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: MemoryBankAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBankAiAssistantResponse | None: """Generate a memory bank configuration (standalone) @@ -181,7 +182,7 @@ async def asyncio( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAiAssistantRequest): Request body for the memory bank AI assistant. Raises: diff --git a/seclai/_generated/api/ai_assistant/api_ai_memory_bank_history_api_ai_assistant_memory_bank_last_conversation_get.py b/seclai/_generated/api/ai_assistant/api_ai_memory_bank_history_api_ai_assistant_memory_bank_last_conversation_get.py index 9974d84..8ee783e 100644 --- a/seclai/_generated/api/ai_assistant/api_ai_memory_bank_history_api_ai_assistant_memory_bank_last_conversation_get.py +++ b/seclai/_generated/api/ai_assistant/api_ai_memory_bank_history_api_ai_assistant_memory_bank_last_conversation_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( *, limit: int | Unset = 5, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -75,7 +76,7 @@ def sync_detailed( client: AuthenticatedClient | Client, limit: int | Unset = 5, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBankLastConversationResponse]: """Fetch memory bank AI conversation history @@ -88,7 +89,7 @@ def sync_detailed( Args: limit (int | Unset): Max turns. Default: 5. offset (int | Unset): Skip count. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -116,7 +117,7 @@ def sync( client: AuthenticatedClient | Client, limit: int | Unset = 5, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBankLastConversationResponse | None: """Fetch memory bank AI conversation history @@ -129,7 +130,7 @@ def sync( Args: limit (int | Unset): Max turns. Default: 5. offset (int | Unset): Skip count. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -152,7 +153,7 @@ async def asyncio_detailed( client: AuthenticatedClient | Client, limit: int | Unset = 5, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBankLastConversationResponse]: """Fetch memory bank AI conversation history @@ -165,7 +166,7 @@ async def asyncio_detailed( Args: limit (int | Unset): Max turns. Default: 5. offset (int | Unset): Skip count. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -191,7 +192,7 @@ async def asyncio( client: AuthenticatedClient | Client, limit: int | Unset = 5, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBankLastConversationResponse | None: """Fetch memory bank AI conversation history @@ -204,7 +205,7 @@ async def asyncio( Args: limit (int | Unset): Max turns. Default: 5. offset (int | Unset): Skip count. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/ai_assistant/api_ai_solution_api_ai_assistant_solution_post.py b/seclai/_generated/api/ai_assistant/api_ai_solution_api_ai_assistant_solution_post.py index 00e2da9..ec42383 100644 --- a/seclai/_generated/api/ai_assistant/api_ai_solution_api_ai_assistant_solution_post.py +++ b/seclai/_generated/api/ai_assistant/api_ai_solution_api_ai_assistant_solution_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +68,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate a solution plan (standalone) @@ -77,7 +78,7 @@ def sync_detailed( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -104,7 +105,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate a solution plan (standalone) @@ -114,7 +115,7 @@ def sync( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -136,7 +137,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate a solution plan (standalone) @@ -146,7 +147,7 @@ async def asyncio_detailed( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -171,7 +172,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate a solution plan (standalone) @@ -181,7 +182,7 @@ async def asyncio( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: diff --git a/seclai/_generated/api/ai_assistant/api_ai_source_api_ai_assistant_source_post.py b/seclai/_generated/api/ai_assistant/api_ai_source_api_ai_assistant_source_post.py index 7700f96..57c697b 100644 --- a/seclai/_generated/api/ai_assistant/api_ai_source_api_ai_assistant_source_post.py +++ b/seclai/_generated/api/ai_assistant/api_ai_source_api_ai_assistant_source_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +68,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate a source plan (standalone) @@ -77,7 +78,7 @@ def sync_detailed( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -104,7 +105,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate a source plan (standalone) @@ -114,7 +115,7 @@ def sync( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -136,7 +137,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate a source plan (standalone) @@ -146,7 +147,7 @@ async def asyncio_detailed( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -171,7 +172,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate a source plan (standalone) @@ -181,7 +182,7 @@ async def asyncio( Auth: requires ``X-API-Key`` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: diff --git a/seclai/_generated/api/alerts/add_alert_comment_api_alerts_alert_id_comments_post.py b/seclai/_generated/api/alerts/add_alert_comment_api_alerts_alert_id_comments_post.py index 943d7c4..856a512 100644 --- a/seclai/_generated/api/alerts/add_alert_comment_api_alerts_alert_id_comments_post.py +++ b/seclai/_generated/api/alerts/add_alert_comment_api_alerts_alert_id_comments_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -18,7 +19,7 @@ def _get_kwargs( alert_id: str, *, body: AddCommentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -83,7 +84,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AddCommentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ AddAlertCommentApiAlertsAlertIdCommentsPostResponseAddAlertCommentApiAlertsAlertIdCommentsPost | HTTPValidationError @@ -98,7 +99,7 @@ def sync_detailed( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AddCommentRequest): Raises: @@ -127,7 +128,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AddCommentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( AddAlertCommentApiAlertsAlertIdCommentsPostResponseAddAlertCommentApiAlertsAlertIdCommentsPost | HTTPValidationError @@ -143,7 +144,7 @@ def sync( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AddCommentRequest): Raises: @@ -167,7 +168,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AddCommentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ AddAlertCommentApiAlertsAlertIdCommentsPostResponseAddAlertCommentApiAlertsAlertIdCommentsPost | HTTPValidationError @@ -182,7 +183,7 @@ async def asyncio_detailed( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AddCommentRequest): Raises: @@ -209,7 +210,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AddCommentRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( AddAlertCommentApiAlertsAlertIdCommentsPostResponseAddAlertCommentApiAlertsAlertIdCommentsPost | HTTPValidationError @@ -225,7 +226,7 @@ async def asyncio( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AddCommentRequest): Raises: diff --git a/seclai/_generated/api/alerts/change_alert_status_api_alerts_alert_id_status_post.py b/seclai/_generated/api/alerts/change_alert_status_api_alerts_alert_id_status_post.py index d327a1d..b641349 100644 --- a/seclai/_generated/api/alerts/change_alert_status_api_alerts_alert_id_status_post.py +++ b/seclai/_generated/api/alerts/change_alert_status_api_alerts_alert_id_status_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -18,7 +19,7 @@ def _get_kwargs( alert_id: str, *, body: ChangeStatusRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -83,7 +84,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: ChangeStatusRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ ChangeAlertStatusApiAlertsAlertIdStatusPostResponseChangeAlertStatusApiAlertsAlertIdStatusPost | HTTPValidationError @@ -97,7 +98,7 @@ def sync_detailed( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (ChangeStatusRequest): Raises: @@ -126,7 +127,7 @@ def sync( *, client: AuthenticatedClient | Client, body: ChangeStatusRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( ChangeAlertStatusApiAlertsAlertIdStatusPostResponseChangeAlertStatusApiAlertsAlertIdStatusPost | HTTPValidationError @@ -141,7 +142,7 @@ def sync( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (ChangeStatusRequest): Raises: @@ -165,7 +166,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: ChangeStatusRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ ChangeAlertStatusApiAlertsAlertIdStatusPostResponseChangeAlertStatusApiAlertsAlertIdStatusPost | HTTPValidationError @@ -179,7 +180,7 @@ async def asyncio_detailed( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (ChangeStatusRequest): Raises: @@ -206,7 +207,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: ChangeStatusRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( ChangeAlertStatusApiAlertsAlertIdStatusPostResponseChangeAlertStatusApiAlertsAlertIdStatusPost | HTTPValidationError @@ -221,7 +222,7 @@ async def asyncio( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (ChangeStatusRequest): Raises: diff --git a/seclai/_generated/api/alerts/create_alert_config_api_alerts_configs_post.py b/seclai/_generated/api/alerts/create_alert_config_api_alerts_configs_post.py index fbf4b5e..8de8ea1 100644 --- a/seclai/_generated/api/alerts/create_alert_config_api_alerts_configs_post.py +++ b/seclai/_generated/api/alerts/create_alert_config_api_alerts_configs_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( *, body: CreateAlertConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -78,7 +79,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: CreateAlertConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ CreateAlertConfigApiAlertsConfigsPostResponseCreateAlertConfigApiAlertsConfigsPost | HTTPValidationError @@ -100,7 +101,7 @@ def sync_detailed( - Requires `X-API-Key` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateAlertConfigRequest): Raises: @@ -127,7 +128,7 @@ def sync( *, client: AuthenticatedClient | Client, body: CreateAlertConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( CreateAlertConfigApiAlertsConfigsPostResponseCreateAlertConfigApiAlertsConfigsPost | HTTPValidationError @@ -150,7 +151,7 @@ def sync( - Requires `X-API-Key` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateAlertConfigRequest): Raises: @@ -172,7 +173,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: CreateAlertConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ CreateAlertConfigApiAlertsConfigsPostResponseCreateAlertConfigApiAlertsConfigsPost | HTTPValidationError @@ -194,7 +195,7 @@ async def asyncio_detailed( - Requires `X-API-Key` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateAlertConfigRequest): Raises: @@ -219,7 +220,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: CreateAlertConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( CreateAlertConfigApiAlertsConfigsPostResponseCreateAlertConfigApiAlertsConfigsPost | HTTPValidationError @@ -242,7 +243,7 @@ async def asyncio( - Requires `X-API-Key` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateAlertConfigRequest): Raises: diff --git a/seclai/_generated/api/alerts/delete_alert_config_api_alerts_configs_config_id_delete.py b/seclai/_generated/api/alerts/delete_alert_config_api_alerts_configs_config_id_delete.py index 5a1af0e..989c142 100644 --- a/seclai/_generated/api/alerts/delete_alert_config_api_alerts_configs_config_id_delete.py +++ b/seclai/_generated/api/alerts/delete_alert_config_api_alerts_configs_config_id_delete.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any, cast from urllib.parse import quote +from uuid import UUID import httpx @@ -13,7 +14,7 @@ def _get_kwargs( config_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -63,7 +64,7 @@ def sync_detailed( config_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete alert config @@ -75,7 +76,7 @@ def sync_detailed( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -101,7 +102,7 @@ def sync( config_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete alert config @@ -113,7 +114,7 @@ def sync( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -134,7 +135,7 @@ async def asyncio_detailed( config_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete alert config @@ -146,7 +147,7 @@ async def asyncio_detailed( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +171,7 @@ async def asyncio( config_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete alert config @@ -182,7 +183,7 @@ async def asyncio( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/alerts/get_alert_config_api_alerts_configs_config_id_get.py b/seclai/_generated/api/alerts/get_alert_config_api_alerts_configs_config_id_get.py index 58c371f..e58e6b7 100644 --- a/seclai/_generated/api/alerts/get_alert_config_api_alerts_configs_config_id_get.py +++ b/seclai/_generated/api/alerts/get_alert_config_api_alerts_configs_config_id_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( config_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -76,7 +77,7 @@ def sync_detailed( config_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ GetAlertConfigApiAlertsConfigsConfigIdGetResponseGetAlertConfigApiAlertsConfigsConfigIdGet | HTTPValidationError @@ -93,7 +94,7 @@ def sync_detailed( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -119,7 +120,7 @@ def sync( config_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( GetAlertConfigApiAlertsConfigsConfigIdGetResponseGetAlertConfigApiAlertsConfigsConfigIdGet | HTTPValidationError @@ -137,7 +138,7 @@ def sync( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -158,7 +159,7 @@ async def asyncio_detailed( config_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ GetAlertConfigApiAlertsConfigsConfigIdGetResponseGetAlertConfigApiAlertsConfigsConfigIdGet | HTTPValidationError @@ -175,7 +176,7 @@ async def asyncio_detailed( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -199,7 +200,7 @@ async def asyncio( config_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( GetAlertConfigApiAlertsConfigsConfigIdGetResponseGetAlertConfigApiAlertsConfigsConfigIdGet | HTTPValidationError @@ -217,7 +218,7 @@ async def asyncio( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/alerts/get_alert_detail_api_alerts_alert_id_get.py b/seclai/_generated/api/alerts/get_alert_detail_api_alerts_alert_id_get.py index 6c07a35..281e16c 100644 --- a/seclai/_generated/api/alerts/get_alert_detail_api_alerts_alert_id_get.py +++ b/seclai/_generated/api/alerts/get_alert_detail_api_alerts_alert_id_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( alert_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -76,7 +77,7 @@ def sync_detailed( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ GetAlertDetailApiAlertsAlertIdGetResponseGetAlertDetailApiAlertsAlertIdGet | HTTPValidationError @@ -90,7 +91,7 @@ def sync_detailed( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -116,7 +117,7 @@ def sync( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( GetAlertDetailApiAlertsAlertIdGetResponseGetAlertDetailApiAlertsAlertIdGet | HTTPValidationError @@ -131,7 +132,7 @@ def sync( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -152,7 +153,7 @@ async def asyncio_detailed( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ GetAlertDetailApiAlertsAlertIdGetResponseGetAlertDetailApiAlertsAlertIdGet | HTTPValidationError @@ -166,7 +167,7 @@ async def asyncio_detailed( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -190,7 +191,7 @@ async def asyncio( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( GetAlertDetailApiAlertsAlertIdGetResponseGetAlertDetailApiAlertsAlertIdGet | HTTPValidationError @@ -205,7 +206,7 @@ async def asyncio( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/alerts/list_alert_configs_api_alerts_configs_get.py b/seclai/_generated/api/alerts/list_alert_configs_api_alerts_configs_get.py index 7405dbc..7bd8d04 100644 --- a/seclai/_generated/api/alerts/list_alert_configs_api_alerts_configs_get.py +++ b/seclai/_generated/api/alerts/list_alert_configs_api_alerts_configs_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -17,7 +18,7 @@ def _get_kwargs( agent_id: None | str | Unset = UNSET, source_connection_id: None | str | Unset = UNSET, scope: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -103,7 +104,7 @@ def sync_detailed( agent_id: None | str | Unset = UNSET, source_connection_id: None | str | Unset = UNSET, scope: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | ListAlertConfigsApiAlertsConfigsGetResponseListAlertConfigsApiAlertsConfigsGet @@ -129,7 +130,7 @@ def sync_detailed( agent_id (None | str | Unset): Filter by agent ID source_connection_id (None | str | Unset): Filter by source connection ID scope (None | str | Unset): Set to 'source' to list account-level source alert configs - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -159,7 +160,7 @@ def sync( agent_id: None | str | Unset = UNSET, source_connection_id: None | str | Unset = UNSET, scope: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | ListAlertConfigsApiAlertsConfigsGetResponseListAlertConfigsApiAlertsConfigsGet @@ -186,7 +187,7 @@ def sync( agent_id (None | str | Unset): Filter by agent ID source_connection_id (None | str | Unset): Filter by source connection ID scope (None | str | Unset): Set to 'source' to list account-level source alert configs - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -211,7 +212,7 @@ async def asyncio_detailed( agent_id: None | str | Unset = UNSET, source_connection_id: None | str | Unset = UNSET, scope: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | ListAlertConfigsApiAlertsConfigsGetResponseListAlertConfigsApiAlertsConfigsGet @@ -237,7 +238,7 @@ async def asyncio_detailed( agent_id (None | str | Unset): Filter by agent ID source_connection_id (None | str | Unset): Filter by source connection ID scope (None | str | Unset): Set to 'source' to list account-level source alert configs - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -265,7 +266,7 @@ async def asyncio( agent_id: None | str | Unset = UNSET, source_connection_id: None | str | Unset = UNSET, scope: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | ListAlertConfigsApiAlertsConfigsGetResponseListAlertConfigsApiAlertsConfigsGet @@ -292,7 +293,7 @@ async def asyncio( agent_id (None | str | Unset): Filter by agent ID source_connection_id (None | str | Unset): Filter by source connection ID scope (None | str | Unset): Set to 'source' to list account-level source alert configs - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/alerts/list_alerts_api_alerts_get.py b/seclai/_generated/api/alerts/list_alerts_api_alerts_get.py index b32e11b..130a142 100644 --- a/seclai/_generated/api/alerts/list_alerts_api_alerts_get.py +++ b/seclai/_generated/api/alerts/list_alerts_api_alerts_get.py @@ -1,6 +1,7 @@ import datetime from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -22,7 +23,7 @@ def _get_kwargs( source_connection_id: None | str | Unset = UNSET, time_from: datetime.datetime | None | Unset = UNSET, time_to: datetime.datetime | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -129,7 +130,7 @@ def sync_detailed( source_connection_id: None | str | Unset = UNSET, time_from: datetime.datetime | None | Unset = UNSET, time_to: datetime.datetime | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | ListAlertsApiAlertsGetResponseListAlertsApiAlertsGet ]: @@ -154,7 +155,7 @@ def sync_detailed( source_connection_id (None | str | Unset): Filter by source connection ID time_from (datetime.datetime | None | Unset): From (ISO 8601) time_to (datetime.datetime | None | Unset): To (ISO 8601) - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -192,7 +193,7 @@ def sync( source_connection_id: None | str | Unset = UNSET, time_from: datetime.datetime | None | Unset = UNSET, time_to: datetime.datetime | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | ListAlertsApiAlertsGetResponseListAlertsApiAlertsGet | None: """List alerts @@ -215,7 +216,7 @@ def sync( source_connection_id (None | str | Unset): Filter by source connection ID time_from (datetime.datetime | None | Unset): From (ISO 8601) time_to (datetime.datetime | None | Unset): To (ISO 8601) - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -248,7 +249,7 @@ async def asyncio_detailed( source_connection_id: None | str | Unset = UNSET, time_from: datetime.datetime | None | Unset = UNSET, time_to: datetime.datetime | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | ListAlertsApiAlertsGetResponseListAlertsApiAlertsGet ]: @@ -273,7 +274,7 @@ async def asyncio_detailed( source_connection_id (None | str | Unset): Filter by source connection ID time_from (datetime.datetime | None | Unset): From (ISO 8601) time_to (datetime.datetime | None | Unset): To (ISO 8601) - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -309,7 +310,7 @@ async def asyncio( source_connection_id: None | str | Unset = UNSET, time_from: datetime.datetime | None | Unset = UNSET, time_to: datetime.datetime | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | ListAlertsApiAlertsGetResponseListAlertsApiAlertsGet | None: """List alerts @@ -332,7 +333,7 @@ async def asyncio( source_connection_id (None | str | Unset): Filter by source connection ID time_from (datetime.datetime | None | Unset): From (ISO 8601) time_to (datetime.datetime | None | Unset): To (ISO 8601) - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/alerts/list_organization_preferences_api_alerts_organization_preferences_list_get.py b/seclai/_generated/api/alerts/list_organization_preferences_api_alerts_organization_preferences_list_get.py index 58a43da..0e029d5 100644 --- a/seclai/_generated/api/alerts/list_organization_preferences_api_alerts_organization_preferences_list_get.py +++ b/seclai/_generated/api/alerts/list_organization_preferences_api_alerts_organization_preferences_list_get.py @@ -17,7 +17,7 @@ def _get_kwargs( *, organization_id: None | Unset | UUID = UNSET, include_defaults: bool | Unset = False, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -85,7 +85,7 @@ def sync_detailed( client: AuthenticatedClient | Client, organization_id: None | Unset | UUID = UNSET, include_defaults: bool | Unset = False, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | OrganizationAlertPreferenceListResponse]: """List organization alert delivery preferences @@ -102,7 +102,7 @@ def sync_detailed( organization_id (None | Unset | UUID): Optional organization filter include_defaults (bool | Unset): Include default subscribed entries for all alert types Default: False. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -130,7 +130,7 @@ def sync( client: AuthenticatedClient | Client, organization_id: None | Unset | UUID = UNSET, include_defaults: bool | Unset = False, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | OrganizationAlertPreferenceListResponse | None: """List organization alert delivery preferences @@ -147,7 +147,7 @@ def sync( organization_id (None | Unset | UUID): Optional organization filter include_defaults (bool | Unset): Include default subscribed entries for all alert types Default: False. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +170,7 @@ async def asyncio_detailed( client: AuthenticatedClient | Client, organization_id: None | Unset | UUID = UNSET, include_defaults: bool | Unset = False, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | OrganizationAlertPreferenceListResponse]: """List organization alert delivery preferences @@ -187,7 +187,7 @@ async def asyncio_detailed( organization_id (None | Unset | UUID): Optional organization filter include_defaults (bool | Unset): Include default subscribed entries for all alert types Default: False. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -213,7 +213,7 @@ async def asyncio( client: AuthenticatedClient | Client, organization_id: None | Unset | UUID = UNSET, include_defaults: bool | Unset = False, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | OrganizationAlertPreferenceListResponse | None: """List organization alert delivery preferences @@ -230,7 +230,7 @@ async def asyncio( organization_id (None | Unset | UUID): Optional organization filter include_defaults (bool | Unset): Include default subscribed entries for all alert types Default: False. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/alerts/subscribe_to_alert_api_alerts_alert_id_subscribe_post.py b/seclai/_generated/api/alerts/subscribe_to_alert_api_alerts_alert_id_subscribe_post.py index e16fcc0..10f17ec 100644 --- a/seclai/_generated/api/alerts/subscribe_to_alert_api_alerts_alert_id_subscribe_post.py +++ b/seclai/_generated/api/alerts/subscribe_to_alert_api_alerts_alert_id_subscribe_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( alert_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -76,7 +77,7 @@ def sync_detailed( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | SubscribeToAlertApiAlertsAlertIdSubscribePostResponseSubscribeToAlertApiAlertsAlertIdSubscribePost @@ -91,7 +92,7 @@ def sync_detailed( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -117,7 +118,7 @@ def sync( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | SubscribeToAlertApiAlertsAlertIdSubscribePostResponseSubscribeToAlertApiAlertsAlertIdSubscribePost @@ -133,7 +134,7 @@ def sync( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -154,7 +155,7 @@ async def asyncio_detailed( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | SubscribeToAlertApiAlertsAlertIdSubscribePostResponseSubscribeToAlertApiAlertsAlertIdSubscribePost @@ -169,7 +170,7 @@ async def asyncio_detailed( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -193,7 +194,7 @@ async def asyncio( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | SubscribeToAlertApiAlertsAlertIdSubscribePostResponseSubscribeToAlertApiAlertsAlertIdSubscribePost @@ -209,7 +210,7 @@ async def asyncio( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/alerts/unsubscribe_from_alert_api_alerts_alert_id_unsubscribe_post.py b/seclai/_generated/api/alerts/unsubscribe_from_alert_api_alerts_alert_id_unsubscribe_post.py index 5688f64..b7a1026 100644 --- a/seclai/_generated/api/alerts/unsubscribe_from_alert_api_alerts_alert_id_unsubscribe_post.py +++ b/seclai/_generated/api/alerts/unsubscribe_from_alert_api_alerts_alert_id_unsubscribe_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( alert_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -76,7 +77,7 @@ def sync_detailed( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | UnsubscribeFromAlertApiAlertsAlertIdUnsubscribePostResponseUnsubscribeFromAlertApiAlertsAlertIdUnsubscribePost @@ -91,7 +92,7 @@ def sync_detailed( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -117,7 +118,7 @@ def sync( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | UnsubscribeFromAlertApiAlertsAlertIdUnsubscribePostResponseUnsubscribeFromAlertApiAlertsAlertIdUnsubscribePost @@ -133,7 +134,7 @@ def sync( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -154,7 +155,7 @@ async def asyncio_detailed( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | UnsubscribeFromAlertApiAlertsAlertIdUnsubscribePostResponseUnsubscribeFromAlertApiAlertsAlertIdUnsubscribePost @@ -169,7 +170,7 @@ async def asyncio_detailed( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -193,7 +194,7 @@ async def asyncio( alert_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | UnsubscribeFromAlertApiAlertsAlertIdUnsubscribePostResponseUnsubscribeFromAlertApiAlertsAlertIdUnsubscribePost @@ -209,7 +210,7 @@ async def asyncio( Args: alert_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/alerts/update_alert_config_api_alerts_configs_config_id_patch.py b/seclai/_generated/api/alerts/update_alert_config_api_alerts_configs_config_id_patch.py index b43c36a..745d665 100644 --- a/seclai/_generated/api/alerts/update_alert_config_api_alerts_configs_config_id_patch.py +++ b/seclai/_generated/api/alerts/update_alert_config_api_alerts_configs_config_id_patch.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -18,7 +19,7 @@ def _get_kwargs( config_id: str, *, body: UpdateAlertConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -83,7 +84,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UpdateAlertConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | UpdateAlertConfigApiAlertsConfigsConfigIdPatchResponseUpdateAlertConfigApiAlertsConfigsConfigIdPatch @@ -97,7 +98,7 @@ def sync_detailed( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAlertConfigRequest): Raises: @@ -126,7 +127,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UpdateAlertConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | UpdateAlertConfigApiAlertsConfigsConfigIdPatchResponseUpdateAlertConfigApiAlertsConfigsConfigIdPatch @@ -141,7 +142,7 @@ def sync( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAlertConfigRequest): Raises: @@ -165,7 +166,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UpdateAlertConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | UpdateAlertConfigApiAlertsConfigsConfigIdPatchResponseUpdateAlertConfigApiAlertsConfigsConfigIdPatch @@ -179,7 +180,7 @@ async def asyncio_detailed( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAlertConfigRequest): Raises: @@ -206,7 +207,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UpdateAlertConfigRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | UpdateAlertConfigApiAlertsConfigsConfigIdPatchResponseUpdateAlertConfigApiAlertsConfigsConfigIdPatch @@ -221,7 +222,7 @@ async def asyncio( Args: config_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateAlertConfigRequest): Raises: diff --git a/seclai/_generated/api/alerts/update_organization_preference_api_alerts_organization_preferences_organization_id_alert_type_patch.py b/seclai/_generated/api/alerts/update_organization_preference_api_alerts_organization_preferences_organization_id_alert_type_patch.py index d5fd227..1a6244c 100644 --- a/seclai/_generated/api/alerts/update_organization_preference_api_alerts_organization_preferences_organization_id_alert_type_patch.py +++ b/seclai/_generated/api/alerts/update_organization_preference_api_alerts_organization_preferences_organization_id_alert_type_patch.py @@ -22,7 +22,7 @@ def _get_kwargs( alert_type: str, *, body: UpdateOrganizationAlertPreferenceRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -80,7 +80,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UpdateOrganizationAlertPreferenceRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | OrganizationAlertPreferenceResponse]: """Update organization alert delivery preference @@ -96,7 +96,7 @@ def sync_detailed( Args: organization_id (UUID): alert_type (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateOrganizationAlertPreferenceRequest): Raises: @@ -127,7 +127,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UpdateOrganizationAlertPreferenceRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | OrganizationAlertPreferenceResponse | None: """Update organization alert delivery preference @@ -143,7 +143,7 @@ def sync( Args: organization_id (UUID): alert_type (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateOrganizationAlertPreferenceRequest): Raises: @@ -169,7 +169,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UpdateOrganizationAlertPreferenceRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | OrganizationAlertPreferenceResponse]: """Update organization alert delivery preference @@ -185,7 +185,7 @@ async def asyncio_detailed( Args: organization_id (UUID): alert_type (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateOrganizationAlertPreferenceRequest): Raises: @@ -214,7 +214,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UpdateOrganizationAlertPreferenceRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | OrganizationAlertPreferenceResponse | None: """Update organization alert delivery preference @@ -230,7 +230,7 @@ async def asyncio( Args: organization_id (UUID): alert_type (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateOrganizationAlertPreferenceRequest): Raises: diff --git a/seclai/_generated/api/contents/delete_content_api_contents_source_connection_content_version_delete.py b/seclai/_generated/api/contents/delete_content_api_contents_source_connection_content_version_delete.py index 4e8f21e..86481c3 100644 --- a/seclai/_generated/api/contents/delete_content_api_contents_source_connection_content_version_delete.py +++ b/seclai/_generated/api/contents/delete_content_api_contents_source_connection_content_version_delete.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any, cast from urllib.parse import quote +from uuid import UUID import httpx @@ -13,7 +14,7 @@ def _get_kwargs( source_connection_content_version: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -65,7 +66,7 @@ def sync_detailed( source_connection_content_version: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete content @@ -80,7 +81,7 @@ def sync_detailed( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -106,7 +107,7 @@ def sync( source_connection_content_version: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete content @@ -121,7 +122,7 @@ def sync( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -142,7 +143,7 @@ async def asyncio_detailed( source_connection_content_version: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete content @@ -157,7 +158,7 @@ async def asyncio_detailed( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -181,7 +182,7 @@ async def asyncio( source_connection_content_version: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete content @@ -196,7 +197,7 @@ async def asyncio( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/contents/get_content_detail_api_contents_source_connection_content_version_get.py b/seclai/_generated/api/contents/get_content_detail_api_contents_source_connection_content_version_get.py index 7db6e0d..d2891b6 100644 --- a/seclai/_generated/api/contents/get_content_detail_api_contents_source_connection_content_version_get.py +++ b/seclai/_generated/api/contents/get_content_detail_api_contents_source_connection_content_version_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( *, start: int | Unset = 0, end: int | Unset = 5000, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -80,7 +81,7 @@ def sync_detailed( client: AuthenticatedClient | Client, start: int | Unset = 0, end: int | Unset = 5000, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ContentDetailResponse | HTTPValidationError]: """Get content details @@ -102,7 +103,7 @@ def sync_detailed( source_connection_content_version (str): start (int | Unset): Default: 0. end (int | Unset): Default: 5000. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -132,7 +133,7 @@ def sync( client: AuthenticatedClient | Client, start: int | Unset = 0, end: int | Unset = 5000, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ContentDetailResponse | HTTPValidationError | None: """Get content details @@ -154,7 +155,7 @@ def sync( source_connection_content_version (str): start (int | Unset): Default: 0. end (int | Unset): Default: 5000. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -179,7 +180,7 @@ async def asyncio_detailed( client: AuthenticatedClient | Client, start: int | Unset = 0, end: int | Unset = 5000, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ContentDetailResponse | HTTPValidationError]: """Get content details @@ -201,7 +202,7 @@ async def asyncio_detailed( source_connection_content_version (str): start (int | Unset): Default: 0. end (int | Unset): Default: 5000. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -229,7 +230,7 @@ async def asyncio( client: AuthenticatedClient | Client, start: int | Unset = 0, end: int | Unset = 5000, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ContentDetailResponse | HTTPValidationError | None: """Get content details @@ -251,7 +252,7 @@ async def asyncio( source_connection_content_version (str): start (int | Unset): Default: 0. end (int | Unset): Default: 5000. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/contents/list_content_embeddings_api_contents_source_connection_content_version_embeddings_get.py b/seclai/_generated/api/contents/list_content_embeddings_api_contents_source_connection_content_version_embeddings_get.py index 0628395..7b2757c 100644 --- a/seclai/_generated/api/contents/list_content_embeddings_api_contents_source_connection_content_version_embeddings_get.py +++ b/seclai/_generated/api/contents/list_content_embeddings_api_contents_source_connection_content_version_embeddings_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( *, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -80,7 +81,7 @@ def sync_detailed( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ContentEmbeddingsListResponse | HTTPValidationError]: """List content embeddings @@ -97,7 +98,7 @@ def sync_detailed( source_connection_content_version (str): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -127,7 +128,7 @@ def sync( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ContentEmbeddingsListResponse | HTTPValidationError | None: """List content embeddings @@ -144,7 +145,7 @@ def sync( source_connection_content_version (str): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -169,7 +170,7 @@ async def asyncio_detailed( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ContentEmbeddingsListResponse | HTTPValidationError]: """List content embeddings @@ -186,7 +187,7 @@ async def asyncio_detailed( source_connection_content_version (str): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -214,7 +215,7 @@ async def asyncio( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ContentEmbeddingsListResponse | HTTPValidationError | None: """List content embeddings @@ -231,7 +232,7 @@ async def asyncio( source_connection_content_version (str): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/contents/replace_content_with_inline_text_api_contents_source_connection_content_version_put.py b/seclai/_generated/api/contents/replace_content_with_inline_text_api_contents_source_connection_content_version_put.py index 214d65c..8844fdd 100644 --- a/seclai/_generated/api/contents/replace_content_with_inline_text_api_contents_source_connection_content_version_put.py +++ b/seclai/_generated/api/contents/replace_content_with_inline_text_api_contents_source_connection_content_version_put.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( source_connection_content_version: str, *, body: InlineTextReplaceRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -74,7 +75,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: InlineTextReplaceRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[FileUploadResponse | HTTPValidationError]: """Replace a content version with inline text @@ -98,7 +99,7 @@ def sync_detailed( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (InlineTextReplaceRequest): Request model for inline text content replacement. Raises: @@ -127,7 +128,7 @@ def sync( *, client: AuthenticatedClient | Client, body: InlineTextReplaceRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> FileUploadResponse | HTTPValidationError | None: """Replace a content version with inline text @@ -151,7 +152,7 @@ def sync( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (InlineTextReplaceRequest): Request model for inline text content replacement. Raises: @@ -175,7 +176,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: InlineTextReplaceRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[FileUploadResponse | HTTPValidationError]: """Replace a content version with inline text @@ -199,7 +200,7 @@ async def asyncio_detailed( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (InlineTextReplaceRequest): Request model for inline text content replacement. Raises: @@ -226,7 +227,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: InlineTextReplaceRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> FileUploadResponse | HTTPValidationError | None: """Replace a content version with inline text @@ -250,7 +251,7 @@ async def asyncio( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (InlineTextReplaceRequest): Request model for inline text content replacement. Raises: diff --git a/seclai/_generated/api/contents/upload_file_to_content_api_contents_source_connection_content_version_upload_post.py b/seclai/_generated/api/contents/upload_file_to_content_api_contents_source_connection_content_version_upload_post.py index c9d18d8..596b7a1 100644 --- a/seclai/_generated/api/contents/upload_file_to_content_api_contents_source_connection_content_version_upload_post.py +++ b/seclai/_generated/api/contents/upload_file_to_content_api_contents_source_connection_content_version_upload_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -18,7 +19,7 @@ def _get_kwargs( source_connection_content_version: str, *, body: BodyUploadFileToContentApiContentsSourceConnectionContentVersionUploadPost, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -74,7 +75,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: BodyUploadFileToContentApiContentsSourceConnectionContentVersionUploadPost, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[FileUploadResponse | HTTPValidationError]: r"""Replace a content version with a new upload @@ -88,7 +89,6 @@ def sync_detailed( **Supported MIME types:** - `application/epub+zip` - `application/json` - - `application/msword` - `application/pdf` - `application/vnd.ms-excel` - `application/vnd.ms-outlook` @@ -135,7 +135,7 @@ def sync_detailed( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (BodyUploadFileToContentApiContentsSourceConnectionContentVersionUploadPost): Raises: @@ -164,7 +164,7 @@ def sync( *, client: AuthenticatedClient | Client, body: BodyUploadFileToContentApiContentsSourceConnectionContentVersionUploadPost, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> FileUploadResponse | HTTPValidationError | None: r"""Replace a content version with a new upload @@ -178,7 +178,6 @@ def sync( **Supported MIME types:** - `application/epub+zip` - `application/json` - - `application/msword` - `application/pdf` - `application/vnd.ms-excel` - `application/vnd.ms-outlook` @@ -225,7 +224,7 @@ def sync( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (BodyUploadFileToContentApiContentsSourceConnectionContentVersionUploadPost): Raises: @@ -249,7 +248,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: BodyUploadFileToContentApiContentsSourceConnectionContentVersionUploadPost, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[FileUploadResponse | HTTPValidationError]: r"""Replace a content version with a new upload @@ -263,7 +262,6 @@ async def asyncio_detailed( **Supported MIME types:** - `application/epub+zip` - `application/json` - - `application/msword` - `application/pdf` - `application/vnd.ms-excel` - `application/vnd.ms-outlook` @@ -310,7 +308,7 @@ async def asyncio_detailed( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (BodyUploadFileToContentApiContentsSourceConnectionContentVersionUploadPost): Raises: @@ -337,7 +335,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: BodyUploadFileToContentApiContentsSourceConnectionContentVersionUploadPost, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> FileUploadResponse | HTTPValidationError | None: r"""Replace a content version with a new upload @@ -351,7 +349,6 @@ async def asyncio( **Supported MIME types:** - `application/epub+zip` - `application/json` - - `application/msword` - `application/pdf` - `application/vnd.ms-excel` - `application/vnd.ms-outlook` @@ -398,7 +395,7 @@ async def asyncio( Args: source_connection_content_version (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (BodyUploadFileToContentApiContentsSourceConnectionContentVersionUploadPost): Raises: diff --git a/seclai/_generated/api/governance/governance_ai_accept_api_governance_ai_assistant_conversation_id_accept_post.py b/seclai/_generated/api/governance/governance_ai_accept_api_governance_ai_assistant_conversation_id_accept_post.py index 59948d8..f3691e0 100644 --- a/seclai/_generated/api/governance/governance_ai_accept_api_governance_ai_assistant_conversation_id_accept_post.py +++ b/seclai/_generated/api/governance/governance_ai_accept_api_governance_ai_assistant_conversation_id_accept_post.py @@ -15,7 +15,7 @@ def _get_kwargs( conversation_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -74,7 +74,7 @@ def sync_detailed( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | GovernanceAiAcceptResponse | HTTPValidationError]: """Accept a governance plan @@ -85,7 +85,7 @@ def sync_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -111,7 +111,7 @@ def sync( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | GovernanceAiAcceptResponse | HTTPValidationError | None: """Accept a governance plan @@ -122,7 +122,7 @@ def sync( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -143,7 +143,7 @@ async def asyncio_detailed( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | GovernanceAiAcceptResponse | HTTPValidationError]: """Accept a governance plan @@ -154,7 +154,7 @@ async def asyncio_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -178,7 +178,7 @@ async def asyncio( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | GovernanceAiAcceptResponse | HTTPValidationError | None: """Accept a governance plan @@ -189,7 +189,7 @@ async def asyncio( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/governance/governance_ai_decline_api_governance_ai_assistant_conversation_id_decline_post.py b/seclai/_generated/api/governance/governance_ai_decline_api_governance_ai_assistant_conversation_id_decline_post.py index cd43b86..8c94324 100644 --- a/seclai/_generated/api/governance/governance_ai_decline_api_governance_ai_assistant_conversation_id_decline_post.py +++ b/seclai/_generated/api/governance/governance_ai_decline_api_governance_ai_assistant_conversation_id_decline_post.py @@ -14,7 +14,7 @@ def _get_kwargs( conversation_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +72,7 @@ def sync_detailed( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Decline a governance plan @@ -83,7 +83,7 @@ def sync_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -109,7 +109,7 @@ def sync( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Decline a governance plan @@ -120,7 +120,7 @@ def sync( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +141,7 @@ async def asyncio_detailed( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Decline a governance plan @@ -152,7 +152,7 @@ async def asyncio_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -176,7 +176,7 @@ async def asyncio( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Decline a governance plan @@ -187,7 +187,7 @@ async def asyncio( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/governance/governance_ai_generate_api_governance_ai_assistant_post.py b/seclai/_generated/api/governance/governance_ai_generate_api_governance_ai_assistant_post.py index 114ab3f..93570fa 100644 --- a/seclai/_generated/api/governance/governance_ai_generate_api_governance_ai_assistant_post.py +++ b/seclai/_generated/api/governance/governance_ai_generate_api_governance_ai_assistant_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any, cast +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: GovernanceAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -75,7 +76,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: GovernanceAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | GovernanceAiAssistantResponse | HTTPValidationError]: """Generate a governance plan @@ -85,7 +86,7 @@ def sync_detailed( Auth: requires `X-API-Key` header or OAuth Bearer token with governance access. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GovernanceAiAssistantRequest): Request body for the governance AI assistant. Raises: @@ -112,7 +113,7 @@ def sync( *, client: AuthenticatedClient | Client, body: GovernanceAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | GovernanceAiAssistantResponse | HTTPValidationError | None: """Generate a governance plan @@ -122,7 +123,7 @@ def sync( Auth: requires `X-API-Key` header or OAuth Bearer token with governance access. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GovernanceAiAssistantRequest): Request body for the governance AI assistant. Raises: @@ -144,7 +145,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: GovernanceAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | GovernanceAiAssistantResponse | HTTPValidationError]: """Generate a governance plan @@ -154,7 +155,7 @@ async def asyncio_detailed( Auth: requires `X-API-Key` header or OAuth Bearer token with governance access. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GovernanceAiAssistantRequest): Request body for the governance AI assistant. Raises: @@ -179,7 +180,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: GovernanceAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | GovernanceAiAssistantResponse | HTTPValidationError | None: """Generate a governance plan @@ -189,7 +190,7 @@ async def asyncio( Auth: requires `X-API-Key` header or OAuth Bearer token with governance access. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (GovernanceAiAssistantRequest): Request body for the governance AI assistant. Raises: diff --git a/seclai/_generated/api/governance/list_governance_ai_conversations_api_governance_ai_assistant_conversations_get.py b/seclai/_generated/api/governance/list_governance_ai_conversations_api_governance_ai_assistant_conversations_get.py index 1b46f70..cef3677 100644 --- a/seclai/_generated/api/governance/list_governance_ai_conversations_api_governance_ai_assistant_conversations_get.py +++ b/seclai/_generated/api/governance/list_governance_ai_conversations_api_governance_ai_assistant_conversations_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any, cast +from uuid import UUID import httpx @@ -13,7 +14,7 @@ def _get_kwargs( *, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -80,7 +81,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError | list[GovernanceConversationResponse]]: """List AI assistant conversations @@ -90,7 +91,7 @@ def sync_detailed( Args: limit (int | Unset): Number of conversations. Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -116,7 +117,7 @@ def sync( *, client: AuthenticatedClient | Client, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | list[GovernanceConversationResponse] | None: """List AI assistant conversations @@ -126,7 +127,7 @@ def sync( Args: limit (int | Unset): Number of conversations. Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -147,7 +148,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError | list[GovernanceConversationResponse]]: """List AI assistant conversations @@ -157,7 +158,7 @@ async def asyncio_detailed( Args: limit (int | Unset): Number of conversations. Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -181,7 +182,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | list[GovernanceConversationResponse] | None: """List AI assistant conversations @@ -191,7 +192,7 @@ async def asyncio( Args: limit (int | Unset): Number of conversations. Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/identity/get_me_api_me_get.py b/seclai/_generated/api/identity/get_me_api_me_get.py index da0549a..4847303 100644 --- a/seclai/_generated/api/identity/get_me_api_me_get.py +++ b/seclai/_generated/api/identity/get_me_api_me_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -11,7 +12,7 @@ def _get_kwargs( *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -54,16 +55,16 @@ def _build_response( def sync_detailed( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[MeResponse]: """Get current user identity - Returns the authenticated user's personal account ID and a list of organizations they belong to. - Each organization entry includes the organization's id, name, and account_id. Useful for CLI tooling - that needs to let the user pick an organization context. + Returns the authenticated user's personal account ID and a list of organisations they belong to. + Each organisation entry includes the organisation's own id, display name, and account_id. Useful + for CLI tooling that needs to let the user pick an org context. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -87,16 +88,16 @@ def sync_detailed( def sync( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> MeResponse | None: """Get current user identity - Returns the authenticated user's personal account ID and a list of organizations they belong to. - Each organization entry includes the organization's id, name, and account_id. Useful for CLI tooling - that needs to let the user pick an organization context. + Returns the authenticated user's personal account ID and a list of organisations they belong to. + Each organisation entry includes the organisation's own id, display name, and account_id. Useful + for CLI tooling that needs to let the user pick an org context. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,16 +116,16 @@ def sync( async def asyncio_detailed( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[MeResponse]: """Get current user identity - Returns the authenticated user's personal account ID and a list of organizations they belong to. - Each organization entry includes the organization's id, name, and account_id. Useful for CLI tooling - that needs to let the user pick an organization context. + Returns the authenticated user's personal account ID and a list of organisations they belong to. + Each organisation entry includes the organisation's own id, display name, and account_id. Useful + for CLI tooling that needs to let the user pick an org context. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,16 +147,16 @@ async def asyncio_detailed( async def asyncio( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> MeResponse | None: """Get current user identity - Returns the authenticated user's personal account ID and a list of organizations they belong to. - Each organization entry includes the organization's id, name, and account_id. Useful for CLI tooling - that needs to let the user pick an organization context. + Returns the authenticated user's personal account ID and a list of organisations they belong to. + Each organisation entry includes the organisation's own id, display name, and account_id. Useful + for CLI tooling that needs to let the user pick an org context. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/knowledge_bases/create_knowledge_base_api_knowledge_bases_post.py b/seclai/_generated/api/knowledge_bases/create_knowledge_base_api_knowledge_bases_post.py index 6393085..6ed772e 100644 --- a/seclai/_generated/api/knowledge_bases/create_knowledge_base_api_knowledge_bases_post.py +++ b/seclai/_generated/api/knowledge_bases/create_knowledge_base_api_knowledge_bases_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any, cast +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: CreateKnowledgeBaseBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -71,7 +72,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: CreateKnowledgeBaseBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError | KnowledgeBase]: """Create Knowledge Base @@ -80,7 +81,7 @@ def sync_detailed( At least one `source_id` is required. The source connections must belong to the same account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateKnowledgeBaseBody): Request body for creating a knowledge base. Raises: @@ -107,7 +108,7 @@ def sync( *, client: AuthenticatedClient | Client, body: CreateKnowledgeBaseBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | KnowledgeBase | None: """Create Knowledge Base @@ -116,7 +117,7 @@ def sync( At least one `source_id` is required. The source connections must belong to the same account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateKnowledgeBaseBody): Request body for creating a knowledge base. Raises: @@ -138,7 +139,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: CreateKnowledgeBaseBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError | KnowledgeBase]: """Create Knowledge Base @@ -147,7 +148,7 @@ async def asyncio_detailed( At least one `source_id` is required. The source connections must belong to the same account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateKnowledgeBaseBody): Request body for creating a knowledge base. Raises: @@ -172,7 +173,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: CreateKnowledgeBaseBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | KnowledgeBase | None: """Create Knowledge Base @@ -181,7 +182,7 @@ async def asyncio( At least one `source_id` is required. The source connections must belong to the same account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateKnowledgeBaseBody): Request body for creating a knowledge base. Raises: diff --git a/seclai/_generated/api/knowledge_bases/delete_knowledge_base_api_knowledge_bases_knowledge_base_id_delete.py b/seclai/_generated/api/knowledge_bases/delete_knowledge_base_api_knowledge_bases_knowledge_base_id_delete.py index 67b24f2..39702c1 100644 --- a/seclai/_generated/api/knowledge_bases/delete_knowledge_base_api_knowledge_bases_knowledge_base_id_delete.py +++ b/seclai/_generated/api/knowledge_bases/delete_knowledge_base_api_knowledge_bases_knowledge_base_id_delete.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any, cast from urllib.parse import quote +from uuid import UUID import httpx @@ -13,7 +14,7 @@ def _get_kwargs( knowledge_base_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -63,7 +64,7 @@ def sync_detailed( knowledge_base_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete Knowledge Base @@ -74,7 +75,7 @@ def sync_detailed( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -100,7 +101,7 @@ def sync( knowledge_base_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete Knowledge Base @@ -111,7 +112,7 @@ def sync( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -132,7 +133,7 @@ async def asyncio_detailed( knowledge_base_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete Knowledge Base @@ -143,7 +144,7 @@ async def asyncio_detailed( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -167,7 +168,7 @@ async def asyncio( knowledge_base_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete Knowledge Base @@ -178,7 +179,7 @@ async def asyncio( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/knowledge_bases/get_knowledge_base_api_knowledge_bases_knowledge_base_id_get.py b/seclai/_generated/api/knowledge_bases/get_knowledge_base_api_knowledge_bases_knowledge_base_id_get.py index ccb7aa1..a7f9821 100644 --- a/seclai/_generated/api/knowledge_bases/get_knowledge_base_api_knowledge_bases_knowledge_base_id_get.py +++ b/seclai/_generated/api/knowledge_bases/get_knowledge_base_api_knowledge_bases_knowledge_base_id_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( knowledge_base_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -65,7 +66,7 @@ def sync_detailed( knowledge_base_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | KnowledgeBase]: """Get Knowledge Base @@ -77,7 +78,7 @@ def sync_detailed( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -103,7 +104,7 @@ def sync( knowledge_base_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | KnowledgeBase | None: """Get Knowledge Base @@ -115,7 +116,7 @@ def sync( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -136,7 +137,7 @@ async def asyncio_detailed( knowledge_base_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | KnowledgeBase]: """Get Knowledge Base @@ -148,7 +149,7 @@ async def asyncio_detailed( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -172,7 +173,7 @@ async def asyncio( knowledge_base_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | KnowledgeBase | None: """Get Knowledge Base @@ -184,7 +185,7 @@ async def asyncio( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/knowledge_bases/list_knowledge_bases_api_knowledge_bases_get.py b/seclai/_generated/api/knowledge_bases/list_knowledge_bases_api_knowledge_bases_get.py index 01c3aab..8243a6d 100644 --- a/seclai/_generated/api/knowledge_bases/list_knowledge_bases_api_knowledge_bases_get.py +++ b/seclai/_generated/api/knowledge_bases/list_knowledge_bases_api_knowledge_bases_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( limit: int | Unset = 20, sort: str | Unset = "created_at", order: str | Unset = "desc", - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -81,7 +82,7 @@ def sync_detailed( limit: int | Unset = 20, sort: str | Unset = "created_at", order: str | Unset = "desc", - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | KnowledgeBaseListResponseModel]: """List Knowledge Bases @@ -97,7 +98,7 @@ def sync_detailed( sort (str | Unset): Sort field. One of: created_at, updated_at, name. Default: 'created_at'. order (str | Unset): Sort direction: asc or desc. Default: 'desc'. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -129,7 +130,7 @@ def sync( limit: int | Unset = 20, sort: str | Unset = "created_at", order: str | Unset = "desc", - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | KnowledgeBaseListResponseModel | None: """List Knowledge Bases @@ -145,7 +146,7 @@ def sync( sort (str | Unset): Sort field. One of: created_at, updated_at, name. Default: 'created_at'. order (str | Unset): Sort direction: asc or desc. Default: 'desc'. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -172,7 +173,7 @@ async def asyncio_detailed( limit: int | Unset = 20, sort: str | Unset = "created_at", order: str | Unset = "desc", - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | KnowledgeBaseListResponseModel]: """List Knowledge Bases @@ -188,7 +189,7 @@ async def asyncio_detailed( sort (str | Unset): Sort field. One of: created_at, updated_at, name. Default: 'created_at'. order (str | Unset): Sort direction: asc or desc. Default: 'desc'. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -218,7 +219,7 @@ async def asyncio( limit: int | Unset = 20, sort: str | Unset = "created_at", order: str | Unset = "desc", - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | KnowledgeBaseListResponseModel | None: """List Knowledge Bases @@ -234,7 +235,7 @@ async def asyncio( sort (str | Unset): Sort field. One of: created_at, updated_at, name. Default: 'created_at'. order (str | Unset): Sort direction: asc or desc. Default: 'desc'. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/knowledge_bases/update_knowledge_base_api_knowledge_bases_knowledge_base_id_put.py b/seclai/_generated/api/knowledge_bases/update_knowledge_base_api_knowledge_bases_knowledge_base_id_put.py index 8776170..f8d1bca 100644 --- a/seclai/_generated/api/knowledge_bases/update_knowledge_base_api_knowledge_bases_knowledge_base_id_put.py +++ b/seclai/_generated/api/knowledge_bases/update_knowledge_base_api_knowledge_bases_knowledge_base_id_put.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( knowledge_base_id: str, *, body: UpdateKnowledgeBaseBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UpdateKnowledgeBaseBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | KnowledgeBase]: """Update Knowledge Base @@ -85,7 +86,7 @@ def sync_detailed( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateKnowledgeBaseBody): Request body for updating a knowledge base. Raises: @@ -114,7 +115,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UpdateKnowledgeBaseBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | KnowledgeBase | None: """Update Knowledge Base @@ -127,7 +128,7 @@ def sync( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateKnowledgeBaseBody): Request body for updating a knowledge base. Raises: @@ -151,7 +152,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UpdateKnowledgeBaseBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | KnowledgeBase]: """Update Knowledge Base @@ -164,7 +165,7 @@ async def asyncio_detailed( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateKnowledgeBaseBody): Request body for updating a knowledge base. Raises: @@ -191,7 +192,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UpdateKnowledgeBaseBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | KnowledgeBase | None: """Update Knowledge Base @@ -204,7 +205,7 @@ async def asyncio( Args: knowledge_base_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateKnowledgeBaseBody): Request body for updating a knowledge base. Raises: diff --git a/seclai/_generated/api/memory_banks/compact_memory_bank_api_memory_banks_memory_bank_id_compact_post.py b/seclai/_generated/api/memory_banks/compact_memory_bank_api_memory_banks_memory_bank_id_compact_post.py index a708a63..5bdb43a 100644 --- a/seclai/_generated/api/memory_banks/compact_memory_bank_api_memory_banks_memory_bank_id_compact_post.py +++ b/seclai/_generated/api/memory_banks/compact_memory_bank_api_memory_banks_memory_bank_id_compact_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( memory_bank_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -76,7 +77,7 @@ def sync_detailed( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ CompactMemoryBankApiMemoryBanksMemoryBankIdCompactPostResponseCompactMemoryBankApiMemoryBanksMemoryBankIdCompactPost | HTTPValidationError @@ -90,7 +91,7 @@ def sync_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -116,7 +117,7 @@ def sync( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( CompactMemoryBankApiMemoryBanksMemoryBankIdCompactPostResponseCompactMemoryBankApiMemoryBanksMemoryBankIdCompactPost | HTTPValidationError @@ -131,7 +132,7 @@ def sync( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -152,7 +153,7 @@ async def asyncio_detailed( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ CompactMemoryBankApiMemoryBanksMemoryBankIdCompactPostResponseCompactMemoryBankApiMemoryBanksMemoryBankIdCompactPost | HTTPValidationError @@ -166,7 +167,7 @@ async def asyncio_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -190,7 +191,7 @@ async def asyncio( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( CompactMemoryBankApiMemoryBanksMemoryBankIdCompactPostResponseCompactMemoryBankApiMemoryBanksMemoryBankIdCompactPost | HTTPValidationError @@ -205,7 +206,7 @@ async def asyncio( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/memory_banks/create_memory_bank_api_memory_banks_post.py b/seclai/_generated/api/memory_banks/create_memory_bank_api_memory_banks_post.py index a9e077b..486f347 100644 --- a/seclai/_generated/api/memory_banks/create_memory_bank_api_memory_banks_post.py +++ b/seclai/_generated/api/memory_banks/create_memory_bank_api_memory_banks_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: CreateMemoryBankBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +68,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: CreateMemoryBankBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBank]: """Create Memory Bank @@ -77,7 +78,7 @@ def sync_detailed( (supply your own embedding params). Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateMemoryBankBody): Request body for creating a memory bank. Raises: @@ -104,7 +105,7 @@ def sync( *, client: AuthenticatedClient | Client, body: CreateMemoryBankBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBank | None: """Create Memory Bank @@ -114,7 +115,7 @@ def sync( (supply your own embedding params). Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateMemoryBankBody): Request body for creating a memory bank. Raises: @@ -136,7 +137,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: CreateMemoryBankBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBank]: """Create Memory Bank @@ -146,7 +147,7 @@ async def asyncio_detailed( (supply your own embedding params). Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateMemoryBankBody): Request body for creating a memory bank. Raises: @@ -171,7 +172,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: CreateMemoryBankBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBank | None: """Create Memory Bank @@ -181,7 +182,7 @@ async def asyncio( (supply your own embedding params). Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateMemoryBankBody): Request body for creating a memory bank. Raises: diff --git a/seclai/_generated/api/memory_banks/delete_memory_bank_api_memory_banks_memory_bank_id_delete.py b/seclai/_generated/api/memory_banks/delete_memory_bank_api_memory_banks_memory_bank_id_delete.py index 70f4e04..811e36e 100644 --- a/seclai/_generated/api/memory_banks/delete_memory_bank_api_memory_banks_memory_bank_id_delete.py +++ b/seclai/_generated/api/memory_banks/delete_memory_bank_api_memory_banks_memory_bank_id_delete.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any, cast from urllib.parse import quote +from uuid import UUID import httpx @@ -13,7 +14,7 @@ def _get_kwargs( memory_bank_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -63,7 +64,7 @@ def sync_detailed( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete Memory Bank @@ -73,7 +74,7 @@ def sync_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -99,7 +100,7 @@ def sync( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete Memory Bank @@ -109,7 +110,7 @@ def sync( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -130,7 +131,7 @@ async def asyncio_detailed( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete Memory Bank @@ -140,7 +141,7 @@ async def asyncio_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -164,7 +165,7 @@ async def asyncio( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete Memory Bank @@ -174,7 +175,7 @@ async def asyncio( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/memory_banks/delete_memory_bank_source_api_memory_banks_memory_bank_id_source_delete.py b/seclai/_generated/api/memory_banks/delete_memory_bank_source_api_memory_banks_memory_bank_id_source_delete.py index 0d110e2..d7266e8 100644 --- a/seclai/_generated/api/memory_banks/delete_memory_bank_source_api_memory_banks_memory_bank_id_source_delete.py +++ b/seclai/_generated/api/memory_banks/delete_memory_bank_source_api_memory_banks_memory_bank_id_source_delete.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any, cast from urllib.parse import quote +from uuid import UUID import httpx @@ -13,7 +14,7 @@ def _get_kwargs( memory_bank_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -63,7 +64,7 @@ def sync_detailed( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete Memory Bank Source @@ -74,7 +75,7 @@ def sync_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -100,7 +101,7 @@ def sync( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete Memory Bank Source @@ -111,7 +112,7 @@ def sync( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -132,7 +133,7 @@ async def asyncio_detailed( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete Memory Bank Source @@ -143,7 +144,7 @@ async def asyncio_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -167,7 +168,7 @@ async def asyncio( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete Memory Bank Source @@ -178,7 +179,7 @@ async def asyncio( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/memory_banks/get_agents_using_bank_api_memory_banks_memory_bank_id_agents_get.py b/seclai/_generated/api/memory_banks/get_agents_using_bank_api_memory_banks_memory_bank_id_agents_get.py index b078a89..95d39e5 100644 --- a/seclai/_generated/api/memory_banks/get_agents_using_bank_api_memory_banks_memory_bank_id_agents_get.py +++ b/seclai/_generated/api/memory_banks/get_agents_using_bank_api_memory_banks_memory_bank_id_agents_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( memory_bank_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -81,7 +82,7 @@ def sync_detailed( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | list[GetAgentsUsingBankApiMemoryBanksMemoryBankIdAgentsGetResponse200Item] @@ -94,7 +95,7 @@ def sync_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +121,7 @@ def sync( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | list[GetAgentsUsingBankApiMemoryBanksMemoryBankIdAgentsGetResponse200Item] @@ -134,7 +135,7 @@ def sync( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -155,7 +156,7 @@ async def asyncio_detailed( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | list[GetAgentsUsingBankApiMemoryBanksMemoryBankIdAgentsGetResponse200Item] @@ -168,7 +169,7 @@ async def asyncio_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -192,7 +193,7 @@ async def asyncio( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | list[GetAgentsUsingBankApiMemoryBanksMemoryBankIdAgentsGetResponse200Item] @@ -206,7 +207,7 @@ async def asyncio( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/memory_banks/get_memory_bank_api_memory_banks_memory_bank_id_get.py b/seclai/_generated/api/memory_banks/get_memory_bank_api_memory_banks_memory_bank_id_get.py index 16d1b6c..59ac95d 100644 --- a/seclai/_generated/api/memory_banks/get_memory_bank_api_memory_banks_memory_bank_id_get.py +++ b/seclai/_generated/api/memory_banks/get_memory_bank_api_memory_banks_memory_bank_id_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( memory_bank_id: str, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -65,7 +66,7 @@ def sync_detailed( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBank]: """Get Memory Bank @@ -77,7 +78,7 @@ def sync_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -103,7 +104,7 @@ def sync( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBank | None: """Get Memory Bank @@ -115,7 +116,7 @@ def sync( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -136,7 +137,7 @@ async def asyncio_detailed( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBank]: """Get Memory Bank @@ -148,7 +149,7 @@ async def asyncio_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -172,7 +173,7 @@ async def asyncio( memory_bank_id: str, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBank | None: """Get Memory Bank @@ -184,7 +185,7 @@ async def asyncio( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/memory_banks/get_memory_bank_entry_stats_api_memory_banks_memory_bank_id_stats_get.py b/seclai/_generated/api/memory_banks/get_memory_bank_entry_stats_api_memory_banks_memory_bank_id_stats_get.py index 756396e..db2e9bf 100644 --- a/seclai/_generated/api/memory_banks/get_memory_bank_entry_stats_api_memory_banks_memory_bank_id_stats_get.py +++ b/seclai/_generated/api/memory_banks/get_memory_bank_entry_stats_api_memory_banks_memory_bank_id_stats_get.py @@ -2,6 +2,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -20,7 +21,7 @@ def _get_kwargs( days: int | Unset = 30, start_date: datetime.date | None | Unset = UNSET, end_date: datetime.date | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -108,7 +109,7 @@ def sync_detailed( days: int | Unset = 30, start_date: datetime.date | None | Unset = UNSET, end_date: datetime.date | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ GetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGetResponseGetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGet | HTTPValidationError @@ -124,7 +125,7 @@ def sync_detailed( days (int | Unset): Default: 30. start_date (datetime.date | None | Unset): end_date (datetime.date | None | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -156,7 +157,7 @@ def sync( days: int | Unset = 30, start_date: datetime.date | None | Unset = UNSET, end_date: datetime.date | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( GetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGetResponseGetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGet | HTTPValidationError @@ -173,7 +174,7 @@ def sync( days (int | Unset): Default: 30. start_date (datetime.date | None | Unset): end_date (datetime.date | None | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -200,7 +201,7 @@ async def asyncio_detailed( days: int | Unset = 30, start_date: datetime.date | None | Unset = UNSET, end_date: datetime.date | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ GetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGetResponseGetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGet | HTTPValidationError @@ -216,7 +217,7 @@ async def asyncio_detailed( days (int | Unset): Default: 30. start_date (datetime.date | None | Unset): end_date (datetime.date | None | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -246,7 +247,7 @@ async def asyncio( days: int | Unset = 30, start_date: datetime.date | None | Unset = UNSET, end_date: datetime.date | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( GetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGetResponseGetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGet | HTTPValidationError @@ -263,7 +264,7 @@ async def asyncio( days (int | Unset): Default: 30. start_date (datetime.date | None | Unset): end_date (datetime.date | None | Unset): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/memory_banks/list_memory_banks_api_memory_banks_get.py b/seclai/_generated/api/memory_banks/list_memory_banks_api_memory_banks_get.py index f544c58..5f2d0f7 100644 --- a/seclai/_generated/api/memory_banks/list_memory_banks_api_memory_banks_get.py +++ b/seclai/_generated/api/memory_banks/list_memory_banks_api_memory_banks_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -17,7 +18,7 @@ def _get_kwargs( sort: str | Unset = "created_at", order: str | Unset = "desc", type_: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -90,7 +91,7 @@ def sync_detailed( sort: str | Unset = "created_at", order: str | Unset = "desc", type_: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBankListResponseModel]: """List Memory Banks @@ -107,7 +108,7 @@ def sync_detailed( 'created_at'. order (str | Unset): Sort direction: asc or desc. Default: 'desc'. type_ (None | str | Unset): Filter by bank type: conversation or general. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +142,7 @@ def sync( sort: str | Unset = "created_at", order: str | Unset = "desc", type_: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBankListResponseModel | None: """List Memory Banks @@ -158,7 +159,7 @@ def sync( 'created_at'. order (str | Unset): Sort direction: asc or desc. Default: 'desc'. type_ (None | str | Unset): Filter by bank type: conversation or general. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -187,7 +188,7 @@ async def asyncio_detailed( sort: str | Unset = "created_at", order: str | Unset = "desc", type_: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBankListResponseModel]: """List Memory Banks @@ -204,7 +205,7 @@ async def asyncio_detailed( 'created_at'. order (str | Unset): Sort direction: asc or desc. Default: 'desc'. type_ (None | str | Unset): Filter by bank type: conversation or general. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -236,7 +237,7 @@ async def asyncio( sort: str | Unset = "created_at", order: str | Unset = "desc", type_: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBankListResponseModel | None: """List Memory Banks @@ -253,7 +254,7 @@ async def asyncio( 'created_at'. order (str | Unset): Sort direction: asc or desc. Default: 'desc'. type_ (None | str | Unset): Filter by bank type: conversation or general. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/memory_banks/list_templates_api_memory_banks_templates_get.py b/seclai/_generated/api/memory_banks/list_templates_api_memory_banks_templates_get.py index a8fcfd2..ae046c0 100644 --- a/seclai/_generated/api/memory_banks/list_templates_api_memory_banks_templates_get.py +++ b/seclai/_generated/api/memory_banks/list_templates_api_memory_banks_templates_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -13,7 +14,7 @@ def _get_kwargs( *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -65,7 +66,7 @@ def _build_response( def sync_detailed( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[list[ListTemplatesApiMemoryBanksTemplatesGetResponse200Item]]: """List Templates @@ -75,7 +76,7 @@ def sync_detailed( be used directly with the create endpoint. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -99,7 +100,7 @@ def sync_detailed( def sync( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> list[ListTemplatesApiMemoryBanksTemplatesGetResponse200Item] | None: """List Templates @@ -109,7 +110,7 @@ def sync( be used directly with the create endpoint. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -128,7 +129,7 @@ def sync( async def asyncio_detailed( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[list[ListTemplatesApiMemoryBanksTemplatesGetResponse200Item]]: """List Templates @@ -138,7 +139,7 @@ async def asyncio_detailed( be used directly with the create endpoint. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -160,7 +161,7 @@ async def asyncio_detailed( async def asyncio( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> list[ListTemplatesApiMemoryBanksTemplatesGetResponse200Item] | None: """List Templates @@ -170,7 +171,7 @@ async def asyncio( be used directly with the create endpoint. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/memory_banks/memory_bank_ai_accept_api_memory_banks_ai_assistant_conversation_id_patch.py b/seclai/_generated/api/memory_banks/memory_bank_ai_accept_api_memory_banks_ai_assistant_conversation_id_patch.py index 8c4ca8e..a20bcc8 100644 --- a/seclai/_generated/api/memory_banks/memory_bank_ai_accept_api_memory_banks_ai_assistant_conversation_id_patch.py +++ b/seclai/_generated/api/memory_banks/memory_bank_ai_accept_api_memory_banks_ai_assistant_conversation_id_patch.py @@ -19,7 +19,7 @@ def _get_kwargs( conversation_id: UUID, *, body: MemoryBankAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -84,7 +84,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: MemoryBankAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | MemoryBankAiAcceptApiMemoryBanksAiAssistantConversationIdPatchResponseMemoryBankAiAcceptApiMemoryBanksAiAssistantConversationIdPatch @@ -99,7 +99,7 @@ def sync_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAcceptRequest): Accept or decline a memory bank AI suggestion. Raises: @@ -128,7 +128,7 @@ def sync( *, client: AuthenticatedClient | Client, body: MemoryBankAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | MemoryBankAiAcceptApiMemoryBanksAiAssistantConversationIdPatchResponseMemoryBankAiAcceptApiMemoryBanksAiAssistantConversationIdPatch @@ -144,7 +144,7 @@ def sync( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAcceptRequest): Accept or decline a memory bank AI suggestion. Raises: @@ -168,7 +168,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: MemoryBankAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | MemoryBankAiAcceptApiMemoryBanksAiAssistantConversationIdPatchResponseMemoryBankAiAcceptApiMemoryBanksAiAssistantConversationIdPatch @@ -183,7 +183,7 @@ async def asyncio_detailed( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAcceptRequest): Accept or decline a memory bank AI suggestion. Raises: @@ -210,7 +210,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: MemoryBankAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | MemoryBankAiAcceptApiMemoryBanksAiAssistantConversationIdPatchResponseMemoryBankAiAcceptApiMemoryBanksAiAssistantConversationIdPatch @@ -226,7 +226,7 @@ async def asyncio( Args: conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAcceptRequest): Accept or decline a memory bank AI suggestion. Raises: diff --git a/seclai/_generated/api/memory_banks/memory_bank_ai_generate_api_memory_banks_ai_assistant_post.py b/seclai/_generated/api/memory_banks/memory_bank_ai_generate_api_memory_banks_ai_assistant_post.py index 9e3947b..757ba72 100644 --- a/seclai/_generated/api/memory_banks/memory_bank_ai_generate_api_memory_banks_ai_assistant_post.py +++ b/seclai/_generated/api/memory_banks/memory_bank_ai_generate_api_memory_banks_ai_assistant_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any, cast +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: MemoryBankAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -71,7 +72,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: MemoryBankAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError | MemoryBankAiAssistantResponse]: """Generate a memory bank configuration @@ -81,7 +82,7 @@ def sync_detailed( Auth: requires `X-API-Key` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAiAssistantRequest): Request body for the memory bank AI assistant. Raises: @@ -108,7 +109,7 @@ def sync( *, client: AuthenticatedClient | Client, body: MemoryBankAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | MemoryBankAiAssistantResponse | None: """Generate a memory bank configuration @@ -118,7 +119,7 @@ def sync( Auth: requires `X-API-Key` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAiAssistantRequest): Request body for the memory bank AI assistant. Raises: @@ -140,7 +141,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: MemoryBankAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError | MemoryBankAiAssistantResponse]: """Generate a memory bank configuration @@ -150,7 +151,7 @@ async def asyncio_detailed( Auth: requires `X-API-Key` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAiAssistantRequest): Request body for the memory bank AI assistant. Raises: @@ -175,7 +176,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: MemoryBankAiAssistantRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | MemoryBankAiAssistantResponse | None: """Generate a memory bank configuration @@ -185,7 +186,7 @@ async def asyncio( Auth: requires `X-API-Key` header or OAuth Bearer token. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MemoryBankAiAssistantRequest): Request body for the memory bank AI assistant. Raises: diff --git a/seclai/_generated/api/memory_banks/memory_bank_ai_last_conversation_api_memory_banks_ai_assistant_last_conversation_get.py b/seclai/_generated/api/memory_banks/memory_bank_ai_last_conversation_api_memory_banks_ai_assistant_last_conversation_get.py index 03feedb..c0917d8 100644 --- a/seclai/_generated/api/memory_banks/memory_bank_ai_last_conversation_api_memory_banks_ai_assistant_last_conversation_get.py +++ b/seclai/_generated/api/memory_banks/memory_bank_ai_last_conversation_api_memory_banks_ai_assistant_last_conversation_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( *, limit: int | Unset = 5, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -75,7 +76,7 @@ def sync_detailed( client: AuthenticatedClient | Client, limit: int | Unset = 5, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBankLastConversationResponse]: """Fetch memory bank AI conversation history @@ -87,7 +88,7 @@ def sync_detailed( Args: limit (int | Unset): Max turns to return. Default: 5. offset (int | Unset): Number of most-recent turns to skip. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,7 @@ def sync( client: AuthenticatedClient | Client, limit: int | Unset = 5, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBankLastConversationResponse | None: """Fetch memory bank AI conversation history @@ -127,7 +128,7 @@ def sync( Args: limit (int | Unset): Max turns to return. Default: 5. offset (int | Unset): Number of most-recent turns to skip. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +151,7 @@ async def asyncio_detailed( client: AuthenticatedClient | Client, limit: int | Unset = 5, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBankLastConversationResponse]: """Fetch memory bank AI conversation history @@ -162,7 +163,7 @@ async def asyncio_detailed( Args: limit (int | Unset): Max turns to return. Default: 5. offset (int | Unset): Number of most-recent turns to skip. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -188,7 +189,7 @@ async def asyncio( client: AuthenticatedClient | Client, limit: int | Unset = 5, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBankLastConversationResponse | None: """Fetch memory bank AI conversation history @@ -200,7 +201,7 @@ async def asyncio( Args: limit (int | Unset): Max turns to return. Default: 5. offset (int | Unset): Number of most-recent turns to skip. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/memory_banks/test_compaction_prompt_api_memory_banks_memory_bank_id_test_compaction_post.py b/seclai/_generated/api/memory_banks/test_compaction_prompt_api_memory_banks_memory_bank_id_test_compaction_post.py index e560fed..4fdd40a 100644 --- a/seclai/_generated/api/memory_banks/test_compaction_prompt_api_memory_banks_memory_bank_id_test_compaction_post.py +++ b/seclai/_generated/api/memory_banks/test_compaction_prompt_api_memory_banks_memory_bank_id_test_compaction_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( memory_bank_id: str, *, body: TestCompactionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: TestCompactionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[CompactionTestResponseModel | HTTPValidationError]: """Test Compaction Prompt @@ -82,7 +83,7 @@ def sync_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (TestCompactionRequest): Request body for testing a compaction prompt against an existing bank. @@ -123,7 +124,7 @@ def sync( *, client: AuthenticatedClient | Client, body: TestCompactionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> CompactionTestResponseModel | HTTPValidationError | None: """Test Compaction Prompt @@ -133,7 +134,7 @@ def sync( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (TestCompactionRequest): Request body for testing a compaction prompt against an existing bank. @@ -169,7 +170,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: TestCompactionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[CompactionTestResponseModel | HTTPValidationError]: """Test Compaction Prompt @@ -179,7 +180,7 @@ async def asyncio_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (TestCompactionRequest): Request body for testing a compaction prompt against an existing bank. @@ -218,7 +219,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: TestCompactionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> CompactionTestResponseModel | HTTPValidationError | None: """Test Compaction Prompt @@ -228,7 +229,7 @@ async def asyncio( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (TestCompactionRequest): Request body for testing a compaction prompt against an existing bank. diff --git a/seclai/_generated/api/memory_banks/test_compaction_prompt_standalone_api_memory_banks_test_compaction_post.py b/seclai/_generated/api/memory_banks/test_compaction_prompt_standalone_api_memory_banks_test_compaction_post.py index 32c5a1f..3f3d7cd 100644 --- a/seclai/_generated/api/memory_banks/test_compaction_prompt_standalone_api_memory_banks_test_compaction_post.py +++ b/seclai/_generated/api/memory_banks/test_compaction_prompt_standalone_api_memory_banks_test_compaction_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: StandaloneTestCompactionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +68,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: StandaloneTestCompactionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[CompactionTestResponseModel | HTTPValidationError]: """Test Compaction Prompt Standalone @@ -76,7 +77,7 @@ def sync_detailed( with verdict, score, and reasoning. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (StandaloneTestCompactionRequest): Request body for testing a compaction prompt *without* an existing bank. @@ -109,7 +110,7 @@ def sync( *, client: AuthenticatedClient | Client, body: StandaloneTestCompactionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> CompactionTestResponseModel | HTTPValidationError | None: """Test Compaction Prompt Standalone @@ -118,7 +119,7 @@ def sync( with verdict, score, and reasoning. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (StandaloneTestCompactionRequest): Request body for testing a compaction prompt *without* an existing bank. @@ -146,7 +147,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: StandaloneTestCompactionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[CompactionTestResponseModel | HTTPValidationError]: """Test Compaction Prompt Standalone @@ -155,7 +156,7 @@ async def asyncio_detailed( with verdict, score, and reasoning. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (StandaloneTestCompactionRequest): Request body for testing a compaction prompt *without* an existing bank. @@ -186,7 +187,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: StandaloneTestCompactionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> CompactionTestResponseModel | HTTPValidationError | None: """Test Compaction Prompt Standalone @@ -195,7 +196,7 @@ async def asyncio( with verdict, score, and reasoning. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (StandaloneTestCompactionRequest): Request body for testing a compaction prompt *without* an existing bank. diff --git a/seclai/_generated/api/memory_banks/update_memory_bank_api_memory_banks_memory_bank_id_put.py b/seclai/_generated/api/memory_banks/update_memory_bank_api_memory_banks_memory_bank_id_put.py index 7d7e79c..ae10219 100644 --- a/seclai/_generated/api/memory_banks/update_memory_bank_api_memory_banks_memory_bank_id_put.py +++ b/seclai/_generated/api/memory_banks/update_memory_bank_api_memory_banks_memory_bank_id_put.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -16,7 +17,7 @@ def _get_kwargs( memory_bank_id: str, *, body: UpdateMemoryBankBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -72,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UpdateMemoryBankBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBank]: """Update Memory Bank @@ -84,7 +85,7 @@ def sync_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateMemoryBankBody): Request body for updating a memory bank. Omitted fields are left unchanged. To **clear** a field back to null, @@ -116,7 +117,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UpdateMemoryBankBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBank | None: """Update Memory Bank @@ -128,7 +129,7 @@ def sync( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateMemoryBankBody): Request body for updating a memory bank. Omitted fields are left unchanged. To **clear** a field back to null, @@ -155,7 +156,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UpdateMemoryBankBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | MemoryBank]: """Update Memory Bank @@ -167,7 +168,7 @@ async def asyncio_detailed( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateMemoryBankBody): Request body for updating a memory bank. Omitted fields are left unchanged. To **clear** a field back to null, @@ -197,7 +198,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UpdateMemoryBankBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | MemoryBank | None: """Update Memory Bank @@ -209,7 +210,7 @@ async def asyncio( Args: memory_bank_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateMemoryBankBody): Request body for updating a memory bank. Omitted fields are left unchanged. To **clear** a field back to null, diff --git a/seclai/_generated/api/models/cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post.py b/seclai/_generated/api/models/cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post.py new file mode 100644 index 0000000..91e6189 --- /dev/null +++ b/seclai/_generated/api/models/cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post.py @@ -0,0 +1,237 @@ +from http import HTTPStatus +from typing import Any +from urllib.parse import quote +from uuid import UUID + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post_response_cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post import ( + CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost, +) +from ...models.http_validation_error import HTTPValidationError +from ...types import UNSET, Response, Unset + + +def _get_kwargs( + experiment_id: UUID, + *, + x_account_id: UUID | Unset = UNSET, +) -> dict[str, Any]: + headers: dict[str, Any] = {} + if not isinstance(x_account_id, Unset): + headers["X-Account-Id"] = x_account_id + + _kwargs: dict[str, Any] = { + "method": "post", + "url": "/models/playground/experiments/{experiment_id}/cancel".format( + experiment_id=quote(str(experiment_id), safe=""), + ), + } + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> ( + CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost + | HTTPValidationError + | None +): + if response.status_code == 200: + response_200 = CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost.from_dict( + response.json() + ) + + return response_200 + + if response.status_code == 422: + response_422 = HTTPValidationError.from_dict(response.json()) + + return response_422 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[ + CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost + | HTTPValidationError +]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + experiment_id: UUID, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> Response[ + CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost + | HTTPValidationError +]: + """Cancel Experiment Endpoint + + Cancel a running or pending model playground experiment. + + Signals running model calls to abort and marks the experiment as canceled. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. The experiment must belong to the caller's + account. + + Args: + experiment_id (UUID): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost | HTTPValidationError] + """ + + kwargs = _get_kwargs( + experiment_id=experiment_id, + x_account_id=x_account_id, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + experiment_id: UUID, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> ( + CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost + | HTTPValidationError + | None +): + """Cancel Experiment Endpoint + + Cancel a running or pending model playground experiment. + + Signals running model calls to abort and marks the experiment as canceled. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. The experiment must belong to the caller's + account. + + Args: + experiment_id (UUID): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost | HTTPValidationError + """ + + return sync_detailed( + experiment_id=experiment_id, + client=client, + x_account_id=x_account_id, + ).parsed + + +async def asyncio_detailed( + experiment_id: UUID, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> Response[ + CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost + | HTTPValidationError +]: + """Cancel Experiment Endpoint + + Cancel a running or pending model playground experiment. + + Signals running model calls to abort and marks the experiment as canceled. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. The experiment must belong to the caller's + account. + + Args: + experiment_id (UUID): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost | HTTPValidationError] + """ + + kwargs = _get_kwargs( + experiment_id=experiment_id, + x_account_id=x_account_id, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + experiment_id: UUID, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> ( + CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost + | HTTPValidationError + | None +): + """Cancel Experiment Endpoint + + Cancel a running or pending model playground experiment. + + Signals running model calls to abort and marks the experiment as canceled. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. The experiment must belong to the caller's + account. + + Args: + experiment_id (UUID): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost | HTTPValidationError + """ + + return ( + await asyncio_detailed( + experiment_id=experiment_id, + client=client, + x_account_id=x_account_id, + ) + ).parsed diff --git a/seclai/_generated/api/models/create_experiment_api_models_playground_experiments_post.py b/seclai/_generated/api/models/create_experiment_api_models_playground_experiments_post.py new file mode 100644 index 0000000..6cbf5f3 --- /dev/null +++ b/seclai/_generated/api/models/create_experiment_api_models_playground_experiments_post.py @@ -0,0 +1,239 @@ +from http import HTTPStatus +from typing import Any +from uuid import UUID + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.create_experiment_api_models_playground_experiments_post_response_create_experiment_api_models_playground_experiments_post import ( + CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost, +) +from ...models.http_validation_error import HTTPValidationError +from ...models.playground_create_request import PlaygroundCreateRequest +from ...types import UNSET, Response, Unset + + +def _get_kwargs( + *, + body: PlaygroundCreateRequest, + x_account_id: UUID | Unset = UNSET, +) -> dict[str, Any]: + headers: dict[str, Any] = {} + if not isinstance(x_account_id, Unset): + headers["X-Account-Id"] = x_account_id + + _kwargs: dict[str, Any] = { + "method": "post", + "url": "/models/playground/experiments", + } + + _kwargs["json"] = body.to_dict() + + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> ( + CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost + | HTTPValidationError + | None +): + if response.status_code == 200: + response_200 = CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost.from_dict( + response.json() + ) + + return response_200 + + if response.status_code == 422: + response_422 = HTTPValidationError.from_dict(response.json()) + + return response_422 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[ + CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost + | HTTPValidationError +]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient | Client, + body: PlaygroundCreateRequest, + x_account_id: UUID | Unset = UNSET, +) -> Response[ + CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost + | HTTPValidationError +]: + """Create Experiment + + Create and schedule a model playground experiment. + + Runs the given prompt against 1-10 models in parallel and optionally evaluates the outputs with an + LLM judge. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + x_account_id (UUID | Unset): + body (PlaygroundCreateRequest): Create a model playground experiment via the public API. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost | HTTPValidationError] + """ + + kwargs = _get_kwargs( + body=body, + x_account_id=x_account_id, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient | Client, + body: PlaygroundCreateRequest, + x_account_id: UUID | Unset = UNSET, +) -> ( + CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost + | HTTPValidationError + | None +): + """Create Experiment + + Create and schedule a model playground experiment. + + Runs the given prompt against 1-10 models in parallel and optionally evaluates the outputs with an + LLM judge. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + x_account_id (UUID | Unset): + body (PlaygroundCreateRequest): Create a model playground experiment via the public API. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost | HTTPValidationError + """ + + return sync_detailed( + client=client, + body=body, + x_account_id=x_account_id, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient | Client, + body: PlaygroundCreateRequest, + x_account_id: UUID | Unset = UNSET, +) -> Response[ + CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost + | HTTPValidationError +]: + """Create Experiment + + Create and schedule a model playground experiment. + + Runs the given prompt against 1-10 models in parallel and optionally evaluates the outputs with an + LLM judge. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + x_account_id (UUID | Unset): + body (PlaygroundCreateRequest): Create a model playground experiment via the public API. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost | HTTPValidationError] + """ + + kwargs = _get_kwargs( + body=body, + x_account_id=x_account_id, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient | Client, + body: PlaygroundCreateRequest, + x_account_id: UUID | Unset = UNSET, +) -> ( + CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost + | HTTPValidationError + | None +): + """Create Experiment + + Create and schedule a model playground experiment. + + Runs the given prompt against 1-10 models in parallel and optionally evaluates the outputs with an + LLM judge. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + x_account_id (UUID | Unset): + body (PlaygroundCreateRequest): Create a model playground experiment via the public API. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost | HTTPValidationError + """ + + return ( + await asyncio_detailed( + client=client, + body=body, + x_account_id=x_account_id, + ) + ).parsed diff --git a/seclai/_generated/api/models/get_alert_unread_count_api_models_alerts_unread_count_get.py b/seclai/_generated/api/models/get_alert_unread_count_api_models_alerts_unread_count_get.py index f171cfc..f5e3484 100644 --- a/seclai/_generated/api/models/get_alert_unread_count_api_models_alerts_unread_count_get.py +++ b/seclai/_generated/api/models/get_alert_unread_count_api_models_alerts_unread_count_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -13,7 +14,7 @@ def _get_kwargs( *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -63,7 +64,7 @@ def _build_response( def sync_detailed( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ GetAlertUnreadCountApiModelsAlertsUnreadCountGetResponseGetAlertUnreadCountApiModelsAlertsUnreadCountGet ]: @@ -77,7 +78,7 @@ def sync_detailed( - Requires `X-API-Key` header or OAuth Bearer token. Count is scoped to the caller's account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -101,7 +102,7 @@ def sync_detailed( def sync( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( GetAlertUnreadCountApiModelsAlertsUnreadCountGetResponseGetAlertUnreadCountApiModelsAlertsUnreadCountGet | None @@ -116,7 +117,7 @@ def sync( - Requires `X-API-Key` header or OAuth Bearer token. Count is scoped to the caller's account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -135,7 +136,7 @@ def sync( async def asyncio_detailed( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ GetAlertUnreadCountApiModelsAlertsUnreadCountGetResponseGetAlertUnreadCountApiModelsAlertsUnreadCountGet ]: @@ -149,7 +150,7 @@ async def asyncio_detailed( - Requires `X-API-Key` header or OAuth Bearer token. Count is scoped to the caller's account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -171,7 +172,7 @@ async def asyncio_detailed( async def asyncio( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( GetAlertUnreadCountApiModelsAlertsUnreadCountGetResponseGetAlertUnreadCountApiModelsAlertsUnreadCountGet | None @@ -186,7 +187,7 @@ async def asyncio( - Requires `X-API-Key` header or OAuth Bearer token. Count is scoped to the caller's account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/models/get_experiment_api_models_playground_experiments_experiment_id_get.py b/seclai/_generated/api/models/get_experiment_api_models_playground_experiments_experiment_id_get.py new file mode 100644 index 0000000..7070185 --- /dev/null +++ b/seclai/_generated/api/models/get_experiment_api_models_playground_experiments_experiment_id_get.py @@ -0,0 +1,241 @@ +from http import HTTPStatus +from typing import Any +from urllib.parse import quote +from uuid import UUID + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.get_experiment_api_models_playground_experiments_experiment_id_get_response_get_experiment_api_models_playground_experiments_experiment_id_get import ( + GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet, +) +from ...models.http_validation_error import HTTPValidationError +from ...types import UNSET, Response, Unset + + +def _get_kwargs( + experiment_id: UUID, + *, + x_account_id: UUID | Unset = UNSET, +) -> dict[str, Any]: + headers: dict[str, Any] = {} + if not isinstance(x_account_id, Unset): + headers["X-Account-Id"] = x_account_id + + _kwargs: dict[str, Any] = { + "method": "get", + "url": "/models/playground/experiments/{experiment_id}".format( + experiment_id=quote(str(experiment_id), safe=""), + ), + } + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> ( + GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet + | HTTPValidationError + | None +): + if response.status_code == 200: + response_200 = GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet.from_dict( + response.json() + ) + + return response_200 + + if response.status_code == 422: + response_422 = HTTPValidationError.from_dict(response.json()) + + return response_422 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[ + GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet + | HTTPValidationError +]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + experiment_id: UUID, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> Response[ + GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet + | HTTPValidationError +]: + """Get Experiment + + Get details and results for a specific model playground experiment. + + Returns the full experiment payload including prompt, model outputs, and evaluation results (if + available). + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. The experiment must belong to the caller's + account. + + Args: + experiment_id (UUID): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet | HTTPValidationError] + """ + + kwargs = _get_kwargs( + experiment_id=experiment_id, + x_account_id=x_account_id, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + experiment_id: UUID, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> ( + GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet + | HTTPValidationError + | None +): + """Get Experiment + + Get details and results for a specific model playground experiment. + + Returns the full experiment payload including prompt, model outputs, and evaluation results (if + available). + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. The experiment must belong to the caller's + account. + + Args: + experiment_id (UUID): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet | HTTPValidationError + """ + + return sync_detailed( + experiment_id=experiment_id, + client=client, + x_account_id=x_account_id, + ).parsed + + +async def asyncio_detailed( + experiment_id: UUID, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> Response[ + GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet + | HTTPValidationError +]: + """Get Experiment + + Get details and results for a specific model playground experiment. + + Returns the full experiment payload including prompt, model outputs, and evaluation results (if + available). + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. The experiment must belong to the caller's + account. + + Args: + experiment_id (UUID): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet | HTTPValidationError] + """ + + kwargs = _get_kwargs( + experiment_id=experiment_id, + x_account_id=x_account_id, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + experiment_id: UUID, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> ( + GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet + | HTTPValidationError + | None +): + """Get Experiment + + Get details and results for a specific model playground experiment. + + Returns the full experiment payload including prompt, model outputs, and evaluation results (if + available). + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. The experiment must belong to the caller's + account. + + Args: + experiment_id (UUID): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet | HTTPValidationError + """ + + return ( + await asyncio_detailed( + experiment_id=experiment_id, + client=client, + x_account_id=x_account_id, + ) + ).parsed diff --git a/seclai/_generated/api/models/get_model_api_models_model_id_details_get.py b/seclai/_generated/api/models/get_model_api_models_model_id_details_get.py new file mode 100644 index 0000000..06ff2da --- /dev/null +++ b/seclai/_generated/api/models/get_model_api_models_model_id_details_get.py @@ -0,0 +1,220 @@ +from http import HTTPStatus +from typing import Any +from urllib.parse import quote +from uuid import UUID + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.http_validation_error import HTTPValidationError +from ...models.prompt_model_response import PromptModelResponse +from ...types import UNSET, Response, Unset + + +def _get_kwargs( + model_id: str, + *, + x_account_id: UUID | Unset = UNSET, +) -> dict[str, Any]: + headers: dict[str, Any] = {} + if not isinstance(x_account_id, Unset): + headers["X-Account-Id"] = x_account_id + + _kwargs: dict[str, Any] = { + "method": "get", + "url": "/models/{model_id}/details".format( + model_id=quote(str(model_id), safe=""), + ), + } + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> HTTPValidationError | PromptModelResponse | None: + if response.status_code == 200: + response_200 = PromptModelResponse.from_dict(response.json()) + + return response_200 + + if response.status_code == 422: + response_422 = HTTPValidationError.from_dict(response.json()) + + return response_422 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[HTTPValidationError | PromptModelResponse]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + model_id: str, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> Response[HTTPValidationError | PromptModelResponse]: + """Get Model + + Get detailed information about a specific model. + + Returns full model details including capabilities, credit pricing, tool support, variant tiers, and + lifecycle status. + + The `model_id` is the model enum identifier (e.g. 'anthropic_claude_opus_4_6'). + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + model_id (str): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[HTTPValidationError | PromptModelResponse] + """ + + kwargs = _get_kwargs( + model_id=model_id, + x_account_id=x_account_id, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + model_id: str, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> HTTPValidationError | PromptModelResponse | None: + """Get Model + + Get detailed information about a specific model. + + Returns full model details including capabilities, credit pricing, tool support, variant tiers, and + lifecycle status. + + The `model_id` is the model enum identifier (e.g. 'anthropic_claude_opus_4_6'). + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + model_id (str): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + HTTPValidationError | PromptModelResponse + """ + + return sync_detailed( + model_id=model_id, + client=client, + x_account_id=x_account_id, + ).parsed + + +async def asyncio_detailed( + model_id: str, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> Response[HTTPValidationError | PromptModelResponse]: + """Get Model + + Get detailed information about a specific model. + + Returns full model details including capabilities, credit pricing, tool support, variant tiers, and + lifecycle status. + + The `model_id` is the model enum identifier (e.g. 'anthropic_claude_opus_4_6'). + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + model_id (str): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[HTTPValidationError | PromptModelResponse] + """ + + kwargs = _get_kwargs( + model_id=model_id, + x_account_id=x_account_id, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + model_id: str, + *, + client: AuthenticatedClient | Client, + x_account_id: UUID | Unset = UNSET, +) -> HTTPValidationError | PromptModelResponse | None: + """Get Model + + Get detailed information about a specific model. + + Returns full model details including capabilities, credit pricing, tool support, variant tiers, and + lifecycle status. + + The `model_id` is the model enum identifier (e.g. 'anthropic_claude_opus_4_6'). + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + model_id (str): + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + HTTPValidationError | PromptModelResponse + """ + + return ( + await asyncio_detailed( + model_id=model_id, + client=client, + x_account_id=x_account_id, + ) + ).parsed diff --git a/seclai/_generated/api/models/get_recommendations_api_models_model_id_recommendations_get.py b/seclai/_generated/api/models/get_recommendations_api_models_model_id_recommendations_get.py index 8060daf..f1181a9 100644 --- a/seclai/_generated/api/models/get_recommendations_api_models_model_id_recommendations_get.py +++ b/seclai/_generated/api/models/get_recommendations_api_models_model_id_recommendations_get.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -21,7 +22,7 @@ def _get_kwargs( require_thinking: bool | None | Unset = UNSET, min_context_tokens: int | None | Unset = UNSET, min_output_tokens: int | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -126,7 +127,7 @@ def sync_detailed( require_thinking: bool | None | Unset = UNSET, min_context_tokens: int | None | Unset = UNSET, min_output_tokens: int | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ GetRecommendationsApiModelsModelIdRecommendationsGetResponseGetRecommendationsApiModelsModelIdRecommendationsGet | HTTPValidationError @@ -150,7 +151,7 @@ def sync_detailed( thinking/reasoning. min_context_tokens (int | None | Unset): Minimum context window size in tokens. min_output_tokens (int | None | Unset): Minimum output token limit. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -186,7 +187,7 @@ def sync( require_thinking: bool | None | Unset = UNSET, min_context_tokens: int | None | Unset = UNSET, min_output_tokens: int | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( GetRecommendationsApiModelsModelIdRecommendationsGetResponseGetRecommendationsApiModelsModelIdRecommendationsGet | HTTPValidationError @@ -211,7 +212,7 @@ def sync( thinking/reasoning. min_context_tokens (int | None | Unset): Minimum context window size in tokens. min_output_tokens (int | None | Unset): Minimum output token limit. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -242,7 +243,7 @@ async def asyncio_detailed( require_thinking: bool | None | Unset = UNSET, min_context_tokens: int | None | Unset = UNSET, min_output_tokens: int | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ GetRecommendationsApiModelsModelIdRecommendationsGetResponseGetRecommendationsApiModelsModelIdRecommendationsGet | HTTPValidationError @@ -266,7 +267,7 @@ async def asyncio_detailed( thinking/reasoning. min_context_tokens (int | None | Unset): Minimum context window size in tokens. min_output_tokens (int | None | Unset): Minimum output token limit. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -300,7 +301,7 @@ async def asyncio( require_thinking: bool | None | Unset = UNSET, min_context_tokens: int | None | Unset = UNSET, min_output_tokens: int | None | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( GetRecommendationsApiModelsModelIdRecommendationsGetResponseGetRecommendationsApiModelsModelIdRecommendationsGet | HTTPValidationError @@ -325,7 +326,7 @@ async def asyncio( thinking/reasoning. min_context_tokens (int | None | Unset): Minimum context window size in tokens. min_output_tokens (int | None | Unset): Minimum output token limit. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/models/list_alerts_api_models_alerts_get.py b/seclai/_generated/api/models/list_alerts_api_models_alerts_get.py index aba278b..03b28e0 100644 --- a/seclai/_generated/api/models/list_alerts_api_models_alerts_get.py +++ b/seclai/_generated/api/models/list_alerts_api_models_alerts_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -18,7 +19,7 @@ def _get_kwargs( unread_only: bool | Unset = False, limit: int | Unset = 50, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -99,7 +100,7 @@ def sync_detailed( unread_only: bool | Unset = False, limit: int | Unset = 50, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | ListAlertsApiModelsAlertsGetResponseListAlertsApiModelsAlertsGet @@ -119,7 +120,7 @@ def sync_detailed( unread_only (bool | Unset): When true, only return unread alerts. Default: False. limit (int | Unset): Maximum number of alerts to return (1-100). Default: 50. offset (int | Unset): Pagination offset. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -151,7 +152,7 @@ def sync( unread_only: bool | Unset = False, limit: int | Unset = 50, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | ListAlertsApiModelsAlertsGetResponseListAlertsApiModelsAlertsGet @@ -172,7 +173,7 @@ def sync( unread_only (bool | Unset): When true, only return unread alerts. Default: False. limit (int | Unset): Maximum number of alerts to return (1-100). Default: 50. offset (int | Unset): Pagination offset. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -199,7 +200,7 @@ async def asyncio_detailed( unread_only: bool | Unset = False, limit: int | Unset = 50, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ HTTPValidationError | ListAlertsApiModelsAlertsGetResponseListAlertsApiModelsAlertsGet @@ -219,7 +220,7 @@ async def asyncio_detailed( unread_only (bool | Unset): When true, only return unread alerts. Default: False. limit (int | Unset): Maximum number of alerts to return (1-100). Default: 50. offset (int | Unset): Pagination offset. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -249,7 +250,7 @@ async def asyncio( unread_only: bool | Unset = False, limit: int | Unset = 50, offset: int | Unset = 0, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ( HTTPValidationError | ListAlertsApiModelsAlertsGetResponseListAlertsApiModelsAlertsGet @@ -270,7 +271,7 @@ async def asyncio( unread_only (bool | Unset): When true, only return unread alerts. Default: False. limit (int | Unset): Maximum number of alerts to return (1-100). Default: 50. offset (int | Unset): Pagination offset. Default: 0. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/models/list_experiments_api_models_playground_experiments_get.py b/seclai/_generated/api/models/list_experiments_api_models_playground_experiments_get.py new file mode 100644 index 0000000..1350df8 --- /dev/null +++ b/seclai/_generated/api/models/list_experiments_api_models_playground_experiments_get.py @@ -0,0 +1,312 @@ +import datetime +from http import HTTPStatus +from typing import Any +from uuid import UUID + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.http_validation_error import HTTPValidationError +from ...models.list_experiments_api_models_playground_experiments_get_response_list_experiments_api_models_playground_experiments_get import ( + ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet, +) +from ...types import UNSET, Response, Unset + + +def _get_kwargs( + *, + days: int | Unset = 30, + start_date: datetime.date | None | Unset = UNSET, + end_date: datetime.date | None | Unset = UNSET, + limit: int | Unset = 20, + offset: int | Unset = 0, + x_account_id: UUID | Unset = UNSET, +) -> dict[str, Any]: + headers: dict[str, Any] = {} + if not isinstance(x_account_id, Unset): + headers["X-Account-Id"] = x_account_id + + params: dict[str, Any] = {} + + params["days"] = days + + json_start_date: None | str | Unset + if isinstance(start_date, Unset): + json_start_date = UNSET + elif isinstance(start_date, datetime.date): + json_start_date = start_date.isoformat() + else: + json_start_date = start_date + params["start_date"] = json_start_date + + json_end_date: None | str | Unset + if isinstance(end_date, Unset): + json_end_date = UNSET + elif isinstance(end_date, datetime.date): + json_end_date = end_date.isoformat() + else: + json_end_date = end_date + params["end_date"] = json_end_date + + params["limit"] = limit + + params["offset"] = offset + + params = {k: v for k, v in params.items() if v is not UNSET and v is not None} + + _kwargs: dict[str, Any] = { + "method": "get", + "url": "/models/playground/experiments", + "params": params, + } + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> ( + HTTPValidationError + | ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet + | None +): + if response.status_code == 200: + response_200 = ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet.from_dict( + response.json() + ) + + return response_200 + + if response.status_code == 422: + response_422 = HTTPValidationError.from_dict(response.json()) + + return response_422 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[ + HTTPValidationError + | ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet +]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient | Client, + days: int | Unset = 30, + start_date: datetime.date | None | Unset = UNSET, + end_date: datetime.date | None | Unset = UNSET, + limit: int | Unset = 20, + offset: int | Unset = 0, + x_account_id: UUID | Unset = UNSET, +) -> Response[ + HTTPValidationError + | ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet +]: + """List Experiments + + List model playground experiments for the account. + + Returns a paginated, time-filtered list of experiments ordered by creation date descending. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. Experiments are scoped to the caller's account. + + Args: + days (int | Unset): Look-back window in days. Default: 30. + start_date (datetime.date | None | Unset): Explicit start date (overrides days). + end_date (datetime.date | None | Unset): Explicit end date (overrides days). + limit (int | Unset): Page size. Default: 20. + offset (int | Unset): Pagination offset. Default: 0. + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[HTTPValidationError | ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet] + """ + + kwargs = _get_kwargs( + days=days, + start_date=start_date, + end_date=end_date, + limit=limit, + offset=offset, + x_account_id=x_account_id, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient | Client, + days: int | Unset = 30, + start_date: datetime.date | None | Unset = UNSET, + end_date: datetime.date | None | Unset = UNSET, + limit: int | Unset = 20, + offset: int | Unset = 0, + x_account_id: UUID | Unset = UNSET, +) -> ( + HTTPValidationError + | ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet + | None +): + """List Experiments + + List model playground experiments for the account. + + Returns a paginated, time-filtered list of experiments ordered by creation date descending. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. Experiments are scoped to the caller's account. + + Args: + days (int | Unset): Look-back window in days. Default: 30. + start_date (datetime.date | None | Unset): Explicit start date (overrides days). + end_date (datetime.date | None | Unset): Explicit end date (overrides days). + limit (int | Unset): Page size. Default: 20. + offset (int | Unset): Pagination offset. Default: 0. + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + HTTPValidationError | ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet + """ + + return sync_detailed( + client=client, + days=days, + start_date=start_date, + end_date=end_date, + limit=limit, + offset=offset, + x_account_id=x_account_id, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient | Client, + days: int | Unset = 30, + start_date: datetime.date | None | Unset = UNSET, + end_date: datetime.date | None | Unset = UNSET, + limit: int | Unset = 20, + offset: int | Unset = 0, + x_account_id: UUID | Unset = UNSET, +) -> Response[ + HTTPValidationError + | ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet +]: + """List Experiments + + List model playground experiments for the account. + + Returns a paginated, time-filtered list of experiments ordered by creation date descending. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. Experiments are scoped to the caller's account. + + Args: + days (int | Unset): Look-back window in days. Default: 30. + start_date (datetime.date | None | Unset): Explicit start date (overrides days). + end_date (datetime.date | None | Unset): Explicit end date (overrides days). + limit (int | Unset): Page size. Default: 20. + offset (int | Unset): Pagination offset. Default: 0. + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[HTTPValidationError | ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet] + """ + + kwargs = _get_kwargs( + days=days, + start_date=start_date, + end_date=end_date, + limit=limit, + offset=offset, + x_account_id=x_account_id, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient | Client, + days: int | Unset = 30, + start_date: datetime.date | None | Unset = UNSET, + end_date: datetime.date | None | Unset = UNSET, + limit: int | Unset = 20, + offset: int | Unset = 0, + x_account_id: UUID | Unset = UNSET, +) -> ( + HTTPValidationError + | ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet + | None +): + """List Experiments + + List model playground experiments for the account. + + Returns a paginated, time-filtered list of experiments ordered by creation date descending. + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. Experiments are scoped to the caller's account. + + Args: + days (int | Unset): Look-back window in days. Default: 30. + start_date (datetime.date | None | Unset): Explicit start date (overrides days). + end_date (datetime.date | None | Unset): Explicit end date (overrides days). + limit (int | Unset): Page size. Default: 20. + offset (int | Unset): Pagination offset. Default: 0. + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + HTTPValidationError | ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet + """ + + return ( + await asyncio_detailed( + client=client, + days=days, + start_date=start_date, + end_date=end_date, + limit=limit, + offset=offset, + x_account_id=x_account_id, + ) + ).parsed diff --git a/seclai/_generated/api/models/list_models_api_models_get.py b/seclai/_generated/api/models/list_models_api_models_get.py new file mode 100644 index 0000000..2d6092d --- /dev/null +++ b/seclai/_generated/api/models/list_models_api_models_get.py @@ -0,0 +1,286 @@ +from http import HTTPStatus +from typing import Any +from uuid import UUID + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.http_validation_error import HTTPValidationError +from ...models.provider_group_response import ProviderGroupResponse +from ...types import UNSET, Response, Unset + + +def _get_kwargs( + *, + provider: None | str | Unset = UNSET, + supports_tool_use: bool | None | Unset = UNSET, + supports_thinking: bool | None | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, +) -> dict[str, Any]: + headers: dict[str, Any] = {} + if not isinstance(x_account_id, Unset): + headers["X-Account-Id"] = x_account_id + + params: dict[str, Any] = {} + + json_provider: None | str | Unset + if isinstance(provider, Unset): + json_provider = UNSET + else: + json_provider = provider + params["provider"] = json_provider + + json_supports_tool_use: bool | None | Unset + if isinstance(supports_tool_use, Unset): + json_supports_tool_use = UNSET + else: + json_supports_tool_use = supports_tool_use + params["supports_tool_use"] = json_supports_tool_use + + json_supports_thinking: bool | None | Unset + if isinstance(supports_thinking, Unset): + json_supports_thinking = UNSET + else: + json_supports_thinking = supports_thinking + params["supports_thinking"] = json_supports_thinking + + params = {k: v for k, v in params.items() if v is not UNSET and v is not None} + + _kwargs: dict[str, Any] = { + "method": "get", + "url": "/models", + "params": params, + } + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> HTTPValidationError | list[ProviderGroupResponse] | None: + if response.status_code == 200: + response_200 = [] + _response_200 = response.json() + for response_200_item_data in _response_200: + response_200_item = ProviderGroupResponse.from_dict(response_200_item_data) + + response_200.append(response_200_item) + + return response_200 + + if response.status_code == 422: + response_422 = HTTPValidationError.from_dict(response.json()) + + return response_422 + + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: AuthenticatedClient | Client, response: httpx.Response +) -> Response[HTTPValidationError | list[ProviderGroupResponse]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient | Client, + provider: None | str | Unset = UNSET, + supports_tool_use: bool | None | Unset = UNSET, + supports_thinking: bool | None | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, +) -> Response[HTTPValidationError | list[ProviderGroupResponse]]: + """List Models + + List all enabled LLM models with full details. + + Returns models grouped by provider, including capabilities, credit pricing, tool support, variant + tiers, and lifecycle status. + + Optional query parameters: + - `provider`: filter by provider (e.g. 'anthropic', 'openai') + - `supports_tool_use`: filter to models with tool calling support + - `supports_thinking`: filter to models with extended thinking support + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + provider (None | str | Unset): Filter by provider name + supports_tool_use (bool | None | Unset): Filter to models that support tool use + supports_thinking (bool | None | Unset): Filter to models that support extended thinking + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[HTTPValidationError | list[ProviderGroupResponse]] + """ + + kwargs = _get_kwargs( + provider=provider, + supports_tool_use=supports_tool_use, + supports_thinking=supports_thinking, + x_account_id=x_account_id, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient | Client, + provider: None | str | Unset = UNSET, + supports_tool_use: bool | None | Unset = UNSET, + supports_thinking: bool | None | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, +) -> HTTPValidationError | list[ProviderGroupResponse] | None: + """List Models + + List all enabled LLM models with full details. + + Returns models grouped by provider, including capabilities, credit pricing, tool support, variant + tiers, and lifecycle status. + + Optional query parameters: + - `provider`: filter by provider (e.g. 'anthropic', 'openai') + - `supports_tool_use`: filter to models with tool calling support + - `supports_thinking`: filter to models with extended thinking support + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + provider (None | str | Unset): Filter by provider name + supports_tool_use (bool | None | Unset): Filter to models that support tool use + supports_thinking (bool | None | Unset): Filter to models that support extended thinking + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + HTTPValidationError | list[ProviderGroupResponse] + """ + + return sync_detailed( + client=client, + provider=provider, + supports_tool_use=supports_tool_use, + supports_thinking=supports_thinking, + x_account_id=x_account_id, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient | Client, + provider: None | str | Unset = UNSET, + supports_tool_use: bool | None | Unset = UNSET, + supports_thinking: bool | None | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, +) -> Response[HTTPValidationError | list[ProviderGroupResponse]]: + """List Models + + List all enabled LLM models with full details. + + Returns models grouped by provider, including capabilities, credit pricing, tool support, variant + tiers, and lifecycle status. + + Optional query parameters: + - `provider`: filter by provider (e.g. 'anthropic', 'openai') + - `supports_tool_use`: filter to models with tool calling support + - `supports_thinking`: filter to models with extended thinking support + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + provider (None | str | Unset): Filter by provider name + supports_tool_use (bool | None | Unset): Filter to models that support tool use + supports_thinking (bool | None | Unset): Filter to models that support extended thinking + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[HTTPValidationError | list[ProviderGroupResponse]] + """ + + kwargs = _get_kwargs( + provider=provider, + supports_tool_use=supports_tool_use, + supports_thinking=supports_thinking, + x_account_id=x_account_id, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient | Client, + provider: None | str | Unset = UNSET, + supports_tool_use: bool | None | Unset = UNSET, + supports_thinking: bool | None | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, +) -> HTTPValidationError | list[ProviderGroupResponse] | None: + """List Models + + List all enabled LLM models with full details. + + Returns models grouped by provider, including capabilities, credit pricing, tool support, variant + tiers, and lifecycle status. + + Optional query parameters: + - `provider`: filter by provider (e.g. 'anthropic', 'openai') + - `supports_tool_use`: filter to models with tool calling support + - `supports_thinking`: filter to models with extended thinking support + + Auth & scoping: + - Requires `X-API-Key` header or OAuth Bearer token. + + Args: + provider (None | str | Unset): Filter by provider name + supports_tool_use (bool | None | Unset): Filter to models that support tool use + supports_thinking (bool | None | Unset): Filter to models that support extended thinking + x_account_id (UUID | Unset): + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + HTTPValidationError | list[ProviderGroupResponse] + """ + + return ( + await asyncio_detailed( + client=client, + provider=provider, + supports_tool_use=supports_tool_use, + supports_thinking=supports_thinking, + x_account_id=x_account_id, + ) + ).parsed diff --git a/seclai/_generated/api/models/mark_all_read_api_models_alerts_mark_all_read_post.py b/seclai/_generated/api/models/mark_all_read_api_models_alerts_mark_all_read_post.py index fe546b3..0fef990 100644 --- a/seclai/_generated/api/models/mark_all_read_api_models_alerts_mark_all_read_post.py +++ b/seclai/_generated/api/models/mark_all_read_api_models_alerts_mark_all_read_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -10,7 +11,7 @@ def _get_kwargs( *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -51,7 +52,7 @@ def _build_response( def sync_detailed( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any]: """Mark All Read @@ -61,7 +62,7 @@ def sync_detailed( - Requires `X-API-Key` header or OAuth Bearer token. Scoped to the caller's account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -85,7 +86,7 @@ def sync_detailed( async def asyncio_detailed( *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any]: """Mark All Read @@ -95,7 +96,7 @@ async def asyncio_detailed( - Requires `X-API-Key` header or OAuth Bearer token. Scoped to the caller's account. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/models/mark_read_api_models_alerts_alert_id_read_patch.py b/seclai/_generated/api/models/mark_read_api_models_alerts_alert_id_read_patch.py index 8914566..7213d7d 100644 --- a/seclai/_generated/api/models/mark_read_api_models_alerts_alert_id_read_patch.py +++ b/seclai/_generated/api/models/mark_read_api_models_alerts_alert_id_read_patch.py @@ -14,7 +14,7 @@ def _get_kwargs( alert_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -64,7 +64,7 @@ def sync_detailed( alert_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Mark Read @@ -75,7 +75,7 @@ def sync_detailed( Args: alert_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -101,7 +101,7 @@ def sync( alert_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Mark Read @@ -112,7 +112,7 @@ def sync( Args: alert_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -133,7 +133,7 @@ async def asyncio_detailed( alert_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Mark Read @@ -144,7 +144,7 @@ async def asyncio_detailed( Args: alert_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( alert_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Mark Read @@ -179,7 +179,7 @@ async def asyncio( Args: alert_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/search/search_api_search_get.py b/seclai/_generated/api/search/search_api_search_get.py index 462bd65..c5141cf 100644 --- a/seclai/_generated/api/search/search_api_search_get.py +++ b/seclai/_generated/api/search/search_api_search_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -17,7 +18,7 @@ def _get_kwargs( q: str, limit: int | Unset = 10, entity_type: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -86,7 +87,7 @@ def sync_detailed( q: str, limit: int | Unset = 10, entity_type: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SearchApiSearchGetResponseSearchApiSearchGet]: """Search resources @@ -101,7 +102,7 @@ def sync_detailed( limit (int | Unset): Maximum results Default: 10. entity_type (None | str | Unset): Optional entity type filter (e.g. 'agent', 'knowledge_base') - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -131,7 +132,7 @@ def sync( q: str, limit: int | Unset = 10, entity_type: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SearchApiSearchGetResponseSearchApiSearchGet | None: """Search resources @@ -146,7 +147,7 @@ def sync( limit (int | Unset): Maximum results Default: 10. entity_type (None | str | Unset): Optional entity type filter (e.g. 'agent', 'knowledge_base') - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -171,7 +172,7 @@ async def asyncio_detailed( q: str, limit: int | Unset = 10, entity_type: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SearchApiSearchGetResponseSearchApiSearchGet]: """Search resources @@ -186,7 +187,7 @@ async def asyncio_detailed( limit (int | Unset): Maximum results Default: 10. entity_type (None | str | Unset): Optional entity type filter (e.g. 'agent', 'knowledge_base') - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -214,7 +215,7 @@ async def asyncio( q: str, limit: int | Unset = 10, entity_type: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SearchApiSearchGetResponseSearchApiSearchGet | None: """Search resources @@ -229,7 +230,7 @@ async def asyncio( limit (int | Unset): Maximum results Default: 10. entity_type (None | str | Unset): Optional entity type filter (e.g. 'agent', 'knowledge_base') - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/solutions/add_conversation_turn_api_solutions_solution_id_conversations_post.py b/seclai/_generated/api/solutions/add_conversation_turn_api_solutions_solution_id_conversations_post.py index c08c183..7a199d9 100644 --- a/seclai/_generated/api/solutions/add_conversation_turn_api_solutions_solution_id_conversations_post.py +++ b/seclai/_generated/api/solutions/add_conversation_turn_api_solutions_solution_id_conversations_post.py @@ -17,7 +17,7 @@ def _get_kwargs( solution_id: UUID, *, body: AddConversationTurnRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AddConversationTurnRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionConversationResponse]: """Add conversation turn @@ -84,7 +84,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AddConversationTurnRequest): Raises: @@ -113,7 +113,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AddConversationTurnRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionConversationResponse | None: """Add conversation turn @@ -124,7 +124,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AddConversationTurnRequest): Raises: @@ -148,7 +148,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AddConversationTurnRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionConversationResponse]: """Add conversation turn @@ -159,7 +159,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AddConversationTurnRequest): Raises: @@ -186,7 +186,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AddConversationTurnRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionConversationResponse | None: """Add conversation turn @@ -197,7 +197,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AddConversationTurnRequest): Raises: diff --git a/seclai/_generated/api/solutions/ai_assistant_accept_api_solutions_solution_id_ai_assistant_conversation_id_accept_post.py b/seclai/_generated/api/solutions/ai_assistant_accept_api_solutions_solution_id_ai_assistant_conversation_id_accept_post.py index 45f1753..a363a40 100644 --- a/seclai/_generated/api/solutions/ai_assistant_accept_api_solutions_solution_id_ai_assistant_conversation_id_accept_post.py +++ b/seclai/_generated/api/solutions/ai_assistant_accept_api_solutions_solution_id_ai_assistant_conversation_id_accept_post.py @@ -18,7 +18,7 @@ def _get_kwargs( conversation_id: UUID, *, body: AiAssistantAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -76,7 +76,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantAcceptResponse | HTTPValidationError]: """Accept plan @@ -89,7 +89,7 @@ def sync_detailed( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantAcceptRequest): Request body for accepting a proposed plan. Raises: @@ -120,7 +120,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AiAssistantAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantAcceptResponse | HTTPValidationError | None: """Accept plan @@ -133,7 +133,7 @@ def sync( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantAcceptRequest): Request body for accepting a proposed plan. Raises: @@ -159,7 +159,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantAcceptResponse | HTTPValidationError]: """Accept plan @@ -172,7 +172,7 @@ async def asyncio_detailed( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantAcceptRequest): Request body for accepting a proposed plan. Raises: @@ -201,7 +201,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AiAssistantAcceptRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantAcceptResponse | HTTPValidationError | None: """Accept plan @@ -214,7 +214,7 @@ async def asyncio( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantAcceptRequest): Request body for accepting a proposed plan. Raises: diff --git a/seclai/_generated/api/solutions/ai_assistant_decline_api_solutions_solution_id_ai_assistant_conversation_id_decline_post.py b/seclai/_generated/api/solutions/ai_assistant_decline_api_solutions_solution_id_ai_assistant_conversation_id_decline_post.py index 96ce7c5..2f0824a 100644 --- a/seclai/_generated/api/solutions/ai_assistant_decline_api_solutions_solution_id_ai_assistant_conversation_id_decline_post.py +++ b/seclai/_generated/api/solutions/ai_assistant_decline_api_solutions_solution_id_ai_assistant_conversation_id_decline_post.py @@ -15,7 +15,7 @@ def _get_kwargs( solution_id: UUID, conversation_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +67,7 @@ def sync_detailed( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Decline plan @@ -79,7 +79,7 @@ def sync_detailed( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -107,7 +107,7 @@ def sync( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Decline plan @@ -119,7 +119,7 @@ def sync( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -142,7 +142,7 @@ async def asyncio_detailed( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Decline plan @@ -154,7 +154,7 @@ async def asyncio_detailed( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -180,7 +180,7 @@ async def asyncio( conversation_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Decline plan @@ -192,7 +192,7 @@ async def asyncio( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/solutions/ai_assistant_generate_api_solutions_solution_id_ai_assistant_generate_post.py b/seclai/_generated/api/solutions/ai_assistant_generate_api_solutions_solution_id_ai_assistant_generate_post.py index 82a8c2a..a62bd04 100644 --- a/seclai/_generated/api/solutions/ai_assistant_generate_api_solutions_solution_id_ai_assistant_generate_post.py +++ b/seclai/_generated/api/solutions/ai_assistant_generate_api_solutions_solution_id_ai_assistant_generate_post.py @@ -17,7 +17,7 @@ def _get_kwargs( solution_id: UUID, *, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate solution plan @@ -87,7 +87,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -116,7 +116,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate solution plan @@ -130,7 +130,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -154,7 +154,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate solution plan @@ -168,7 +168,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -195,7 +195,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate solution plan @@ -209,7 +209,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: diff --git a/seclai/_generated/api/solutions/ai_assistant_knowledge_base_api_solutions_solution_id_ai_assistant_knowledge_base_post.py b/seclai/_generated/api/solutions/ai_assistant_knowledge_base_api_solutions_solution_id_ai_assistant_knowledge_base_post.py index 9940f65..3025e81 100644 --- a/seclai/_generated/api/solutions/ai_assistant_knowledge_base_api_solutions_solution_id_ai_assistant_knowledge_base_post.py +++ b/seclai/_generated/api/solutions/ai_assistant_knowledge_base_api_solutions_solution_id_ai_assistant_knowledge_base_post.py @@ -17,7 +17,7 @@ def _get_kwargs( solution_id: UUID, *, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate knowledge base plan @@ -85,7 +85,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -114,7 +114,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate knowledge base plan @@ -126,7 +126,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate knowledge base plan @@ -162,7 +162,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -189,7 +189,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate knowledge base plan @@ -201,7 +201,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: diff --git a/seclai/_generated/api/solutions/ai_assistant_source_api_solutions_solution_id_ai_assistant_source_post.py b/seclai/_generated/api/solutions/ai_assistant_source_api_solutions_solution_id_ai_assistant_source_post.py index 72021a8..44a632d 100644 --- a/seclai/_generated/api/solutions/ai_assistant_source_api_solutions_solution_id_ai_assistant_source_post.py +++ b/seclai/_generated/api/solutions/ai_assistant_source_api_solutions_solution_id_ai_assistant_source_post.py @@ -17,7 +17,7 @@ def _get_kwargs( solution_id: UUID, *, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate source plan @@ -85,7 +85,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -114,7 +114,7 @@ def sync( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate source plan @@ -126,7 +126,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -150,7 +150,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[AiAssistantGenerateResponse | HTTPValidationError]: """Generate source plan @@ -162,7 +162,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: @@ -189,7 +189,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: AiAssistantGenerateRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> AiAssistantGenerateResponse | HTTPValidationError | None: """Generate source plan @@ -201,7 +201,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (AiAssistantGenerateRequest): Request body for AI assistant generate endpoints. Raises: diff --git a/seclai/_generated/api/solutions/create_solution_api_solutions_post.py b/seclai/_generated/api/solutions/create_solution_api_solutions_post.py index d8a64a5..9eb0fd1 100644 --- a/seclai/_generated/api/solutions/create_solution_api_solutions_post.py +++ b/seclai/_generated/api/solutions/create_solution_api_solutions_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: CreateSolutionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +68,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: CreateSolutionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Create a solution @@ -77,7 +78,7 @@ def sync_detailed( `name` and optional `description` in the request body. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateSolutionRequest): Request model for creating a new solution Raises: @@ -104,7 +105,7 @@ def sync( *, client: AuthenticatedClient | Client, body: CreateSolutionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Create a solution @@ -114,7 +115,7 @@ def sync( `name` and optional `description` in the request body. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateSolutionRequest): Request model for creating a new solution Raises: @@ -136,7 +137,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: CreateSolutionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Create a solution @@ -146,7 +147,7 @@ async def asyncio_detailed( `name` and optional `description` in the request body. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateSolutionRequest): Request model for creating a new solution Raises: @@ -171,7 +172,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: CreateSolutionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Create a solution @@ -181,7 +182,7 @@ async def asyncio( `name` and optional `description` in the request body. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateSolutionRequest): Request model for creating a new solution Raises: diff --git a/seclai/_generated/api/solutions/delete_solution_api_solutions_solution_id_delete.py b/seclai/_generated/api/solutions/delete_solution_api_solutions_solution_id_delete.py index b04be6e..8c5dd1e 100644 --- a/seclai/_generated/api/solutions/delete_solution_api_solutions_solution_id_delete.py +++ b/seclai/_generated/api/solutions/delete_solution_api_solutions_solution_id_delete.py @@ -14,7 +14,7 @@ def _get_kwargs( solution_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -64,7 +64,7 @@ def sync_detailed( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete a solution @@ -75,7 +75,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -101,7 +101,7 @@ def sync( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete a solution @@ -112,7 +112,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -133,7 +133,7 @@ async def asyncio_detailed( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete a solution @@ -144,7 +144,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete a solution @@ -179,7 +179,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/solutions/get_solution_api_solutions_solution_id_get.py b/seclai/_generated/api/solutions/get_solution_api_solutions_solution_id_get.py index a4ead97..1005901 100644 --- a/seclai/_generated/api/solutions/get_solution_api_solutions_solution_id_get.py +++ b/seclai/_generated/api/solutions/get_solution_api_solutions_solution_id_get.py @@ -15,7 +15,7 @@ def _get_kwargs( solution_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -66,7 +66,7 @@ def sync_detailed( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Get a solution @@ -76,7 +76,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -102,7 +102,7 @@ def sync( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Get a solution @@ -112,7 +112,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -133,7 +133,7 @@ async def asyncio_detailed( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Get a solution @@ -143,7 +143,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -167,7 +167,7 @@ async def asyncio( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Get a solution @@ -177,7 +177,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/solutions/link_agents_api_solutions_solution_id_agents_post.py b/seclai/_generated/api/solutions/link_agents_api_solutions_solution_id_agents_post.py index 8f3f728..01519c7 100644 --- a/seclai/_generated/api/solutions/link_agents_api_solutions_solution_id_agents_post.py +++ b/seclai/_generated/api/solutions/link_agents_api_solutions_solution_id_agents_post.py @@ -17,7 +17,7 @@ def _get_kwargs( solution_id: UUID, *, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Link agents @@ -84,7 +84,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: @@ -113,7 +113,7 @@ def sync( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Link agents @@ -124,7 +124,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: @@ -148,7 +148,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Link agents @@ -159,7 +159,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: @@ -186,7 +186,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Link agents @@ -197,7 +197,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: diff --git a/seclai/_generated/api/solutions/link_knowledge_bases_api_solutions_solution_id_knowledge_bases_post.py b/seclai/_generated/api/solutions/link_knowledge_bases_api_solutions_solution_id_knowledge_bases_post.py index c4a1e8d..2368faa 100644 --- a/seclai/_generated/api/solutions/link_knowledge_bases_api_solutions_solution_id_knowledge_bases_post.py +++ b/seclai/_generated/api/solutions/link_knowledge_bases_api_solutions_solution_id_knowledge_bases_post.py @@ -17,7 +17,7 @@ def _get_kwargs( solution_id: UUID, *, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Link knowledge bases @@ -84,7 +84,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: @@ -113,7 +113,7 @@ def sync( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Link knowledge bases @@ -124,7 +124,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: @@ -148,7 +148,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Link knowledge bases @@ -159,7 +159,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: @@ -186,7 +186,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Link knowledge bases @@ -197,7 +197,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: diff --git a/seclai/_generated/api/solutions/link_source_connections_api_solutions_solution_id_source_connections_post.py b/seclai/_generated/api/solutions/link_source_connections_api_solutions_solution_id_source_connections_post.py index 2d16047..7ca44ac 100644 --- a/seclai/_generated/api/solutions/link_source_connections_api_solutions_solution_id_source_connections_post.py +++ b/seclai/_generated/api/solutions/link_source_connections_api_solutions_solution_id_source_connections_post.py @@ -17,7 +17,7 @@ def _get_kwargs( solution_id: UUID, *, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Link source connections @@ -84,7 +84,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: @@ -113,7 +113,7 @@ def sync( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Link source connections @@ -124,7 +124,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: @@ -148,7 +148,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Link source connections @@ -159,7 +159,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: @@ -186,7 +186,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: LinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Link source connections @@ -197,7 +197,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (LinkResourcesRequest): Raises: diff --git a/seclai/_generated/api/solutions/list_conversations_api_solutions_solution_id_conversations_get.py b/seclai/_generated/api/solutions/list_conversations_api_solutions_solution_id_conversations_get.py index a9741cd..b81c1ed 100644 --- a/seclai/_generated/api/solutions/list_conversations_api_solutions_solution_id_conversations_get.py +++ b/seclai/_generated/api/solutions/list_conversations_api_solutions_solution_id_conversations_get.py @@ -15,7 +15,7 @@ def _get_kwargs( solution_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | list[SolutionConversationResponse]]: """List conversations @@ -84,7 +84,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -110,7 +110,7 @@ def sync( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | list[SolutionConversationResponse] | None: """List conversations @@ -121,7 +121,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -142,7 +142,7 @@ async def asyncio_detailed( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | list[SolutionConversationResponse]]: """List conversations @@ -153,7 +153,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -177,7 +177,7 @@ async def asyncio( solution_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | list[SolutionConversationResponse] | None: """List conversations @@ -188,7 +188,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/solutions/list_solutions_api_solutions_get.py b/seclai/_generated/api/solutions/list_solutions_api_solutions_get.py index 92885b6..aca83ce 100644 --- a/seclai/_generated/api/solutions/list_solutions_api_solutions_get.py +++ b/seclai/_generated/api/solutions/list_solutions_api_solutions_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -17,7 +18,7 @@ def _get_kwargs( sort: str | Unset = "created_at", order: str | Unset = "desc", search: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -90,7 +91,7 @@ def sync_detailed( sort: str | Unset = "created_at", order: str | Unset = "desc", search: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionListResponse]: """List solutions @@ -113,7 +114,7 @@ def sync_detailed( sort (str | Unset): Sort field Default: 'created_at'. order (str | Unset): Sort order Default: 'desc'. search (None | str | Unset): Filter by solution name (case-insensitive partial match) - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -147,7 +148,7 @@ def sync( sort: str | Unset = "created_at", order: str | Unset = "desc", search: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionListResponse | None: """List solutions @@ -170,7 +171,7 @@ def sync( sort (str | Unset): Sort field Default: 'created_at'. order (str | Unset): Sort order Default: 'desc'. search (None | str | Unset): Filter by solution name (case-insensitive partial match) - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -199,7 +200,7 @@ async def asyncio_detailed( sort: str | Unset = "created_at", order: str | Unset = "desc", search: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionListResponse]: """List solutions @@ -222,7 +223,7 @@ async def asyncio_detailed( sort (str | Unset): Sort field Default: 'created_at'. order (str | Unset): Sort order Default: 'desc'. search (None | str | Unset): Filter by solution name (case-insensitive partial match) - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -254,7 +255,7 @@ async def asyncio( sort: str | Unset = "created_at", order: str | Unset = "desc", search: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionListResponse | None: """List solutions @@ -277,7 +278,7 @@ async def asyncio( sort (str | Unset): Sort field Default: 'created_at'. order (str | Unset): Sort order Default: 'desc'. search (None | str | Unset): Filter by solution name (case-insensitive partial match) - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/solutions/mark_conversation_turn_api_solutions_solution_id_conversations_conversation_id_patch.py b/seclai/_generated/api/solutions/mark_conversation_turn_api_solutions_solution_id_conversations_conversation_id_patch.py index f419c30..1ea1bd7 100644 --- a/seclai/_generated/api/solutions/mark_conversation_turn_api_solutions_solution_id_conversations_conversation_id_patch.py +++ b/seclai/_generated/api/solutions/mark_conversation_turn_api_solutions_solution_id_conversations_conversation_id_patch.py @@ -17,7 +17,7 @@ def _get_kwargs( conversation_id: UUID, *, body: MarkConversationTurnRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -74,7 +74,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: MarkConversationTurnRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Mark conversation turn @@ -86,7 +86,7 @@ def sync_detailed( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MarkConversationTurnRequest): Raises: @@ -117,7 +117,7 @@ def sync( *, client: AuthenticatedClient | Client, body: MarkConversationTurnRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Mark conversation turn @@ -129,7 +129,7 @@ def sync( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MarkConversationTurnRequest): Raises: @@ -155,7 +155,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: MarkConversationTurnRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Mark conversation turn @@ -167,7 +167,7 @@ async def asyncio_detailed( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MarkConversationTurnRequest): Raises: @@ -196,7 +196,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: MarkConversationTurnRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Mark conversation turn @@ -208,7 +208,7 @@ async def asyncio( Args: solution_id (UUID): conversation_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (MarkConversationTurnRequest): Raises: diff --git a/seclai/_generated/api/solutions/unlink_agents_api_solutions_solution_id_agents_delete.py b/seclai/_generated/api/solutions/unlink_agents_api_solutions_solution_id_agents_delete.py index c9f26bf..7ec31d8 100644 --- a/seclai/_generated/api/solutions/unlink_agents_api_solutions_solution_id_agents_delete.py +++ b/seclai/_generated/api/solutions/unlink_agents_api_solutions_solution_id_agents_delete.py @@ -17,7 +17,7 @@ def _get_kwargs( solution_id: UUID, *, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Unlink agents @@ -84,7 +84,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: @@ -113,7 +113,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Unlink agents @@ -124,7 +124,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: @@ -148,7 +148,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Unlink agents @@ -159,7 +159,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: @@ -186,7 +186,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Unlink agents @@ -197,7 +197,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: diff --git a/seclai/_generated/api/solutions/unlink_knowledge_bases_api_solutions_solution_id_knowledge_bases_delete.py b/seclai/_generated/api/solutions/unlink_knowledge_bases_api_solutions_solution_id_knowledge_bases_delete.py index 2a9e74c..2604ed1 100644 --- a/seclai/_generated/api/solutions/unlink_knowledge_bases_api_solutions_solution_id_knowledge_bases_delete.py +++ b/seclai/_generated/api/solutions/unlink_knowledge_bases_api_solutions_solution_id_knowledge_bases_delete.py @@ -17,7 +17,7 @@ def _get_kwargs( solution_id: UUID, *, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Unlink knowledge bases @@ -84,7 +84,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: @@ -113,7 +113,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Unlink knowledge bases @@ -124,7 +124,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: @@ -148,7 +148,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Unlink knowledge bases @@ -159,7 +159,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: @@ -186,7 +186,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Unlink knowledge bases @@ -197,7 +197,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: diff --git a/seclai/_generated/api/solutions/unlink_source_connections_api_solutions_solution_id_source_connections_delete.py b/seclai/_generated/api/solutions/unlink_source_connections_api_solutions_solution_id_source_connections_delete.py index c92040b..2f621fb 100644 --- a/seclai/_generated/api/solutions/unlink_source_connections_api_solutions_solution_id_source_connections_delete.py +++ b/seclai/_generated/api/solutions/unlink_source_connections_api_solutions_solution_id_source_connections_delete.py @@ -17,7 +17,7 @@ def _get_kwargs( solution_id: UUID, *, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Unlink source connections @@ -84,7 +84,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: @@ -113,7 +113,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Unlink source connections @@ -124,7 +124,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: @@ -148,7 +148,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Unlink source connections @@ -159,7 +159,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: @@ -186,7 +186,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UnlinkResourcesRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Unlink source connections @@ -197,7 +197,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UnlinkResourcesRequest): Raises: diff --git a/seclai/_generated/api/solutions/update_solution_api_solutions_solution_id_patch.py b/seclai/_generated/api/solutions/update_solution_api_solutions_solution_id_patch.py index 366728e..b8f4f02 100644 --- a/seclai/_generated/api/solutions/update_solution_api_solutions_solution_id_patch.py +++ b/seclai/_generated/api/solutions/update_solution_api_solutions_solution_id_patch.py @@ -17,7 +17,7 @@ def _get_kwargs( solution_id: UUID, *, body: UpdateSolutionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UpdateSolutionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Update a solution @@ -83,7 +83,7 @@ def sync_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateSolutionRequest): Request model for updating a solution Raises: @@ -112,7 +112,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UpdateSolutionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Update a solution @@ -122,7 +122,7 @@ def sync( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateSolutionRequest): Request model for updating a solution Raises: @@ -146,7 +146,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UpdateSolutionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SolutionResponse]: """Update a solution @@ -156,7 +156,7 @@ async def asyncio_detailed( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateSolutionRequest): Request model for updating a solution Raises: @@ -183,7 +183,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UpdateSolutionRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SolutionResponse | None: """Update a solution @@ -193,7 +193,7 @@ async def asyncio( Args: solution_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateSolutionRequest): Request model for updating a solution Raises: diff --git a/seclai/_generated/api/source_exports/cancel_source_export_api_sources_source_connection_id_exports_export_id_cancel_post.py b/seclai/_generated/api/source_exports/cancel_source_export_api_sources_source_connection_id_exports_export_id_cancel_post.py index 6effaab..163210a 100644 --- a/seclai/_generated/api/source_exports/cancel_source_export_api_sources_source_connection_id_exports_export_id_cancel_post.py +++ b/seclai/_generated/api/source_exports/cancel_source_export_api_sources_source_connection_id_exports_export_id_cancel_post.py @@ -16,7 +16,7 @@ def _get_kwargs( source_connection_id: UUID, export_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -69,7 +69,7 @@ def sync_detailed( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ExportResponse | HTTPValidationError]: """Cancel export @@ -79,7 +79,7 @@ def sync_detailed( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -107,7 +107,7 @@ def sync( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ExportResponse | HTTPValidationError | None: """Cancel export @@ -117,7 +117,7 @@ def sync( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -140,7 +140,7 @@ async def asyncio_detailed( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ExportResponse | HTTPValidationError]: """Cancel export @@ -150,7 +150,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -176,7 +176,7 @@ async def asyncio( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ExportResponse | HTTPValidationError | None: """Cancel export @@ -186,7 +186,7 @@ async def asyncio( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/source_exports/create_source_export_api_sources_source_connection_id_exports_post.py b/seclai/_generated/api/source_exports/create_source_export_api_sources_source_connection_id_exports_post.py index 22ce26f..4bfa044 100644 --- a/seclai/_generated/api/source_exports/create_source_export_api_sources_source_connection_id_exports_post.py +++ b/seclai/_generated/api/source_exports/create_source_export_api_sources_source_connection_id_exports_post.py @@ -17,7 +17,7 @@ def _get_kwargs( source_connection_id: UUID, *, body: CreateExportRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: CreateExportRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ExportResponse | HTTPValidationError]: """Create export @@ -82,7 +82,7 @@ def sync_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateExportRequest): Parameters for creating a new export job. Raises: @@ -111,7 +111,7 @@ def sync( *, client: AuthenticatedClient | Client, body: CreateExportRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ExportResponse | HTTPValidationError | None: """Create export @@ -120,7 +120,7 @@ def sync( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateExportRequest): Parameters for creating a new export job. Raises: @@ -144,7 +144,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: CreateExportRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ExportResponse | HTTPValidationError]: """Create export @@ -153,7 +153,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateExportRequest): Parameters for creating a new export job. Raises: @@ -180,7 +180,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: CreateExportRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ExportResponse | HTTPValidationError | None: """Create export @@ -189,7 +189,7 @@ async def asyncio( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateExportRequest): Parameters for creating a new export job. Raises: diff --git a/seclai/_generated/api/source_exports/delete_source_export_api_sources_source_connection_id_exports_export_id_delete.py b/seclai/_generated/api/source_exports/delete_source_export_api_sources_source_connection_id_exports_export_id_delete.py index c588362..325ed17 100644 --- a/seclai/_generated/api/source_exports/delete_source_export_api_sources_source_connection_id_exports_export_id_delete.py +++ b/seclai/_generated/api/source_exports/delete_source_export_api_sources_source_connection_id_exports_export_id_delete.py @@ -15,7 +15,7 @@ def _get_kwargs( source_connection_id: UUID, export_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +67,7 @@ def sync_detailed( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete export @@ -77,7 +77,7 @@ def sync_detailed( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -105,7 +105,7 @@ def sync( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete export @@ -115,7 +115,7 @@ def sync( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -138,7 +138,7 @@ async def asyncio_detailed( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete export @@ -148,7 +148,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -174,7 +174,7 @@ async def asyncio( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete export @@ -184,7 +184,7 @@ async def asyncio( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/source_exports/download_source_export_api_sources_source_connection_id_exports_export_id_download_get.py b/seclai/_generated/api/source_exports/download_source_export_api_sources_source_connection_id_exports_export_id_download_get.py index c532c62..a19961a 100644 --- a/seclai/_generated/api/source_exports/download_source_export_api_sources_source_connection_id_exports_export_id_download_get.py +++ b/seclai/_generated/api/source_exports/download_source_export_api_sources_source_connection_id_exports_export_id_download_get.py @@ -15,7 +15,7 @@ def _get_kwargs( source_connection_id: UUID, export_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +67,7 @@ def sync_detailed( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Download export @@ -78,7 +78,7 @@ def sync_detailed( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -106,7 +106,7 @@ def sync( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Download export @@ -117,7 +117,7 @@ def sync( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -140,7 +140,7 @@ async def asyncio_detailed( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Download export @@ -151,7 +151,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -177,7 +177,7 @@ async def asyncio( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Download export @@ -188,7 +188,7 @@ async def asyncio( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/source_exports/estimate_source_export_api_sources_source_connection_id_exports_estimate_post.py b/seclai/_generated/api/source_exports/estimate_source_export_api_sources_source_connection_id_exports_estimate_post.py index f841827..6484d80 100644 --- a/seclai/_generated/api/source_exports/estimate_source_export_api_sources_source_connection_id_exports_estimate_post.py +++ b/seclai/_generated/api/source_exports/estimate_source_export_api_sources_source_connection_id_exports_estimate_post.py @@ -17,7 +17,7 @@ def _get_kwargs( source_connection_id: UUID, *, body: EstimateExportRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: EstimateExportRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EstimateExportResponse | HTTPValidationError]: """Estimate export size @@ -82,7 +82,7 @@ def sync_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (EstimateExportRequest): Parameters for estimating export size. Raises: @@ -111,7 +111,7 @@ def sync( *, client: AuthenticatedClient | Client, body: EstimateExportRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EstimateExportResponse | HTTPValidationError | None: """Estimate export size @@ -120,7 +120,7 @@ def sync( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (EstimateExportRequest): Parameters for estimating export size. Raises: @@ -144,7 +144,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: EstimateExportRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[EstimateExportResponse | HTTPValidationError]: """Estimate export size @@ -153,7 +153,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (EstimateExportRequest): Parameters for estimating export size. Raises: @@ -180,7 +180,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: EstimateExportRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> EstimateExportResponse | HTTPValidationError | None: """Estimate export size @@ -189,7 +189,7 @@ async def asyncio( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (EstimateExportRequest): Parameters for estimating export size. Raises: diff --git a/seclai/_generated/api/source_exports/get_source_export_api_sources_source_connection_id_exports_export_id_get.py b/seclai/_generated/api/source_exports/get_source_export_api_sources_source_connection_id_exports_export_id_get.py index 5abfcfc..5644d4d 100644 --- a/seclai/_generated/api/source_exports/get_source_export_api_sources_source_connection_id_exports_export_id_get.py +++ b/seclai/_generated/api/source_exports/get_source_export_api_sources_source_connection_id_exports_export_id_get.py @@ -16,7 +16,7 @@ def _get_kwargs( source_connection_id: UUID, export_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -69,7 +69,7 @@ def sync_detailed( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ExportResponse | HTTPValidationError]: """Get export status @@ -79,7 +79,7 @@ def sync_detailed( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -107,7 +107,7 @@ def sync( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ExportResponse | HTTPValidationError | None: """Get export status @@ -117,7 +117,7 @@ def sync( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -140,7 +140,7 @@ async def asyncio_detailed( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ExportResponse | HTTPValidationError]: """Get export status @@ -150,7 +150,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -176,7 +176,7 @@ async def asyncio( export_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ExportResponse | HTTPValidationError | None: """Get export status @@ -186,7 +186,7 @@ async def asyncio( Args: source_connection_id (UUID): export_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/source_exports/list_source_exports_api_sources_source_connection_id_exports_get.py b/seclai/_generated/api/source_exports/list_source_exports_api_sources_source_connection_id_exports_get.py index 48f916a..4df2a02 100644 --- a/seclai/_generated/api/source_exports/list_source_exports_api_sources_source_connection_id_exports_get.py +++ b/seclai/_generated/api/source_exports/list_source_exports_api_sources_source_connection_id_exports_get.py @@ -17,7 +17,7 @@ def _get_kwargs( *, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -79,7 +79,7 @@ def sync_detailed( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ExportListResponse | HTTPValidationError]: """List exports @@ -91,7 +91,7 @@ def sync_detailed( source_connection_id (UUID): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +121,7 @@ def sync( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ExportListResponse | HTTPValidationError | None: """List exports @@ -133,7 +133,7 @@ def sync( source_connection_id (UUID): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -158,7 +158,7 @@ async def asyncio_detailed( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[ExportListResponse | HTTPValidationError]: """List exports @@ -170,7 +170,7 @@ async def asyncio_detailed( source_connection_id (UUID): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -198,7 +198,7 @@ async def asyncio( client: AuthenticatedClient | Client, page: int | Unset = 1, limit: int | Unset = 20, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> ExportListResponse | HTTPValidationError | None: """List exports @@ -210,7 +210,7 @@ async def asyncio( source_connection_id (UUID): page (int | Unset): Default: 1. limit (int | Unset): Default: 20. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/sources/cancel_source_embedding_migration_api_sources_source_connection_id_embedding_migration_cancel_post.py b/seclai/_generated/api/sources/cancel_source_embedding_migration_api_sources_source_connection_id_embedding_migration_cancel_post.py index 920fbe3..38667ae 100644 --- a/seclai/_generated/api/sources/cancel_source_embedding_migration_api_sources_source_connection_id_embedding_migration_cancel_post.py +++ b/seclai/_generated/api/sources/cancel_source_embedding_migration_api_sources_source_connection_id_embedding_migration_cancel_post.py @@ -17,7 +17,7 @@ def _get_kwargs( source_connection_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -68,7 +68,7 @@ def sync_detailed( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SourceEmbeddingMigrationResponse]: """Cancel Source Embedding Migration @@ -78,7 +78,7 @@ def sync_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -104,7 +104,7 @@ def sync( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SourceEmbeddingMigrationResponse | None: """Cancel Source Embedding Migration @@ -114,7 +114,7 @@ def sync( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -135,7 +135,7 @@ async def asyncio_detailed( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SourceEmbeddingMigrationResponse]: """Cancel Source Embedding Migration @@ -145,7 +145,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -169,7 +169,7 @@ async def asyncio( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SourceEmbeddingMigrationResponse | None: """Cancel Source Embedding Migration @@ -179,7 +179,7 @@ async def asyncio( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/sources/create_source_api_sources_post.py b/seclai/_generated/api/sources/create_source_api_sources_post.py index 2fa7cd9..2a54360 100644 --- a/seclai/_generated/api/sources/create_source_api_sources_post.py +++ b/seclai/_generated/api/sources/create_source_api_sources_post.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any, cast +from uuid import UUID import httpx @@ -14,7 +15,7 @@ def _get_kwargs( *, body: CreateSourceBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -71,19 +72,23 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: CreateSourceBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError | SourceResponse]: """Create Source Create a new content source. - Source types: `rss`, `website`, `file_uploads`, `custom_index`. + Source types: `rss`, `website`, `custom_index`. - For RSS and website sources, provide the URL. For file upload and custom index sources, the URL is - created automatically. + For RSS and website sources, provide the URL. For custom index sources, the URL is created + automatically. + + For custom_index sources, you can optionally specify an `index_mode`: `fast_and_cheap` (default), + `balanced`, `slow_and_thorough`, or `custom`. The legacy `file_uploads` source type is accepted as + an alias for `custom_index` with `index_mode=fast_and_cheap`. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateSourceBody): Request body for creating a content source. Raises: @@ -110,19 +115,23 @@ def sync( *, client: AuthenticatedClient | Client, body: CreateSourceBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | SourceResponse | None: """Create Source Create a new content source. - Source types: `rss`, `website`, `file_uploads`, `custom_index`. + Source types: `rss`, `website`, `custom_index`. + + For RSS and website sources, provide the URL. For custom index sources, the URL is created + automatically. - For RSS and website sources, provide the URL. For file upload and custom index sources, the URL is - created automatically. + For custom_index sources, you can optionally specify an `index_mode`: `fast_and_cheap` (default), + `balanced`, `slow_and_thorough`, or `custom`. The legacy `file_uploads` source type is accepted as + an alias for `custom_index` with `index_mode=fast_and_cheap`. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateSourceBody): Request body for creating a content source. Raises: @@ -144,19 +153,23 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: CreateSourceBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError | SourceResponse]: """Create Source Create a new content source. - Source types: `rss`, `website`, `file_uploads`, `custom_index`. + Source types: `rss`, `website`, `custom_index`. - For RSS and website sources, provide the URL. For file upload and custom index sources, the URL is - created automatically. + For RSS and website sources, provide the URL. For custom index sources, the URL is created + automatically. + + For custom_index sources, you can optionally specify an `index_mode`: `fast_and_cheap` (default), + `balanced`, `slow_and_thorough`, or `custom`. The legacy `file_uploads` source type is accepted as + an alias for `custom_index` with `index_mode=fast_and_cheap`. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateSourceBody): Request body for creating a content source. Raises: @@ -181,19 +194,23 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: CreateSourceBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | SourceResponse | None: """Create Source Create a new content source. - Source types: `rss`, `website`, `file_uploads`, `custom_index`. + Source types: `rss`, `website`, `custom_index`. + + For RSS and website sources, provide the URL. For custom index sources, the URL is created + automatically. - For RSS and website sources, provide the URL. For file upload and custom index sources, the URL is - created automatically. + For custom_index sources, you can optionally specify an `index_mode`: `fast_and_cheap` (default), + `balanced`, `slow_and_thorough`, or `custom`. The legacy `file_uploads` source type is accepted as + an alias for `custom_index` with `index_mode=fast_and_cheap`. Args: - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (CreateSourceBody): Request body for creating a content source. Raises: diff --git a/seclai/_generated/api/sources/delete_source_api_sources_source_connection_id_delete.py b/seclai/_generated/api/sources/delete_source_api_sources_source_connection_id_delete.py index 3e19f2c..be1625f 100644 --- a/seclai/_generated/api/sources/delete_source_api_sources_source_connection_id_delete.py +++ b/seclai/_generated/api/sources/delete_source_api_sources_source_connection_id_delete.py @@ -14,7 +14,7 @@ def _get_kwargs( source_connection_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -64,7 +64,7 @@ def sync_detailed( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete Source @@ -75,7 +75,7 @@ def sync_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -101,7 +101,7 @@ def sync( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete Source @@ -112,7 +112,7 @@ def sync( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -133,7 +133,7 @@ async def asyncio_detailed( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError]: """Delete Source @@ -144,7 +144,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | None: """Delete Source @@ -179,7 +179,7 @@ async def asyncio( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/sources/get_source_api_sources_source_connection_id_get.py b/seclai/_generated/api/sources/get_source_api_sources_source_connection_id_get.py index 03b3ef7..eb971be 100644 --- a/seclai/_generated/api/sources/get_source_api_sources_source_connection_id_get.py +++ b/seclai/_generated/api/sources/get_source_api_sources_source_connection_id_get.py @@ -15,7 +15,7 @@ def _get_kwargs( source_connection_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -66,7 +66,7 @@ def sync_detailed( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SourceResponse]: """Get Source @@ -78,7 +78,7 @@ def sync_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -104,7 +104,7 @@ def sync( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SourceResponse | None: """Get Source @@ -116,7 +116,7 @@ def sync( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -137,7 +137,7 @@ async def asyncio_detailed( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SourceResponse]: """Get Source @@ -149,7 +149,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -173,7 +173,7 @@ async def asyncio( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SourceResponse | None: """Get Source @@ -185,7 +185,7 @@ async def asyncio( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/sources/get_source_embedding_migration_api_sources_source_connection_id_embedding_migration_get.py b/seclai/_generated/api/sources/get_source_embedding_migration_api_sources_source_connection_id_embedding_migration_get.py index 0e3207d..6e36376 100644 --- a/seclai/_generated/api/sources/get_source_embedding_migration_api_sources_source_connection_id_embedding_migration_get.py +++ b/seclai/_generated/api/sources/get_source_embedding_migration_api_sources_source_connection_id_embedding_migration_get.py @@ -17,7 +17,7 @@ def _get_kwargs( source_connection_id: UUID, *, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -84,7 +84,7 @@ def sync_detailed( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | None | SourceEmbeddingMigrationResponse]: """Get Source Embedding Migration @@ -94,7 +94,7 @@ def sync_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +120,7 @@ def sync( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | None | SourceEmbeddingMigrationResponse | None: """Get Source Embedding Migration @@ -130,7 +130,7 @@ def sync( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -151,7 +151,7 @@ async def asyncio_detailed( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | None | SourceEmbeddingMigrationResponse]: """Get Source Embedding Migration @@ -161,7 +161,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -185,7 +185,7 @@ async def asyncio( source_connection_id: UUID, *, client: AuthenticatedClient | Client, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | None | SourceEmbeddingMigrationResponse | None: """Get Source Embedding Migration @@ -195,7 +195,7 @@ async def asyncio( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/sources/list_sources_api_sources_get.py b/seclai/_generated/api/sources/list_sources_api_sources_get.py index 0b62cad..989e651 100644 --- a/seclai/_generated/api/sources/list_sources_api_sources_get.py +++ b/seclai/_generated/api/sources/list_sources_api_sources_get.py @@ -1,5 +1,6 @@ from http import HTTPStatus from typing import Any +from uuid import UUID import httpx @@ -17,7 +18,7 @@ def _get_kwargs( sort: str | Unset = "created_at", order: str | Unset = "desc", account_id: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -90,15 +91,15 @@ def sync_detailed( sort: str | Unset = "created_at", order: str | Unset = "desc", account_id: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SourceListResponse]: """List sources List content sources for your account. - A *source* is where Seclai pulls or receives content from (for example RSS feeds, websites, file - uploads, or custom indexes). Sources are the inputs that power your agents and knowledge base - workflows. + A *source* is where Seclai pulls or receives content from — RSS feeds, websites, or content stores + (``custom_index``). Content stores support file uploads and API-driven content ingestion with + configurable index modes (``fast_and_cheap``, ``balanced``, ``slow_and_thorough``, or ``custom``). Parameters: - Pagination: `page` and `limit`. @@ -115,7 +116,7 @@ def sync_detailed( order (str | Unset): Sort order Default: 'desc'. account_id (None | str | Unset): List sources for the given account. Defaults to the caller's account. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -149,15 +150,15 @@ def sync( sort: str | Unset = "created_at", order: str | Unset = "desc", account_id: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SourceListResponse | None: """List sources List content sources for your account. - A *source* is where Seclai pulls or receives content from (for example RSS feeds, websites, file - uploads, or custom indexes). Sources are the inputs that power your agents and knowledge base - workflows. + A *source* is where Seclai pulls or receives content from — RSS feeds, websites, or content stores + (``custom_index``). Content stores support file uploads and API-driven content ingestion with + configurable index modes (``fast_and_cheap``, ``balanced``, ``slow_and_thorough``, or ``custom``). Parameters: - Pagination: `page` and `limit`. @@ -174,7 +175,7 @@ def sync( order (str | Unset): Sort order Default: 'desc'. account_id (None | str | Unset): List sources for the given account. Defaults to the caller's account. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -203,15 +204,15 @@ async def asyncio_detailed( sort: str | Unset = "created_at", order: str | Unset = "desc", account_id: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SourceListResponse]: """List sources List content sources for your account. - A *source* is where Seclai pulls or receives content from (for example RSS feeds, websites, file - uploads, or custom indexes). Sources are the inputs that power your agents and knowledge base - workflows. + A *source* is where Seclai pulls or receives content from — RSS feeds, websites, or content stores + (``custom_index``). Content stores support file uploads and API-driven content ingestion with + configurable index modes (``fast_and_cheap``, ``balanced``, ``slow_and_thorough``, or ``custom``). Parameters: - Pagination: `page` and `limit`. @@ -228,7 +229,7 @@ async def asyncio_detailed( order (str | Unset): Sort order Default: 'desc'. account_id (None | str | Unset): List sources for the given account. Defaults to the caller's account. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -260,15 +261,15 @@ async def asyncio( sort: str | Unset = "created_at", order: str | Unset = "desc", account_id: None | str | Unset = UNSET, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SourceListResponse | None: """List sources List content sources for your account. - A *source* is where Seclai pulls or receives content from (for example RSS feeds, websites, file - uploads, or custom indexes). Sources are the inputs that power your agents and knowledge base - workflows. + A *source* is where Seclai pulls or receives content from — RSS feeds, websites, or content stores + (``custom_index``). Content stores support file uploads and API-driven content ingestion with + configurable index modes (``fast_and_cheap``, ``balanced``, ``slow_and_thorough``, or ``custom``). Parameters: - Pagination: `page` and `limit`. @@ -285,7 +286,7 @@ async def asyncio( order (str | Unset): Sort order Default: 'desc'. account_id (None | str | Unset): List sources for the given account. Defaults to the caller's account. - x_account_id (str | Unset): + x_account_id (UUID | Unset): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/seclai/_generated/api/sources/start_source_embedding_migration_api_sources_source_connection_id_embedding_migration_post.py b/seclai/_generated/api/sources/start_source_embedding_migration_api_sources_source_connection_id_embedding_migration_post.py index 924bd74..9477289 100644 --- a/seclai/_generated/api/sources/start_source_embedding_migration_api_sources_source_connection_id_embedding_migration_post.py +++ b/seclai/_generated/api/sources/start_source_embedding_migration_api_sources_source_connection_id_embedding_migration_post.py @@ -21,7 +21,7 @@ def _get_kwargs( source_connection_id: UUID, *, body: StartSourceEmbeddingMigrationRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -81,7 +81,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: StartSourceEmbeddingMigrationRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError | SourceEmbeddingMigrationResponse]: """Start Source Embedding Migration @@ -101,7 +101,7 @@ def sync_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (StartSourceEmbeddingMigrationRequest): Request payload to start a source embedding migration. @@ -131,7 +131,7 @@ def sync( *, client: AuthenticatedClient | Client, body: StartSourceEmbeddingMigrationRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | SourceEmbeddingMigrationResponse | None: """Start Source Embedding Migration @@ -151,7 +151,7 @@ def sync( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (StartSourceEmbeddingMigrationRequest): Request payload to start a source embedding migration. @@ -176,7 +176,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: StartSourceEmbeddingMigrationRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[Any | HTTPValidationError | SourceEmbeddingMigrationResponse]: """Start Source Embedding Migration @@ -196,7 +196,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (StartSourceEmbeddingMigrationRequest): Request payload to start a source embedding migration. @@ -224,7 +224,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: StartSourceEmbeddingMigrationRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Any | HTTPValidationError | SourceEmbeddingMigrationResponse | None: """Start Source Embedding Migration @@ -244,7 +244,7 @@ async def asyncio( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (StartSourceEmbeddingMigrationRequest): Request payload to start a source embedding migration. diff --git a/seclai/_generated/api/sources/update_source_api_sources_source_connection_id_put.py b/seclai/_generated/api/sources/update_source_api_sources_source_connection_id_put.py index d8931d5..77f5ba9 100644 --- a/seclai/_generated/api/sources/update_source_api_sources_source_connection_id_put.py +++ b/seclai/_generated/api/sources/update_source_api_sources_source_connection_id_put.py @@ -17,7 +17,7 @@ def _get_kwargs( source_connection_id: UUID, *, body: UpdateSourceBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -73,7 +73,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: UpdateSourceBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SourceResponse]: """Update Source @@ -84,7 +84,7 @@ def sync_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateSourceBody): Request body for updating a content source. Raises: @@ -113,7 +113,7 @@ def sync( *, client: AuthenticatedClient | Client, body: UpdateSourceBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SourceResponse | None: """Update Source @@ -124,7 +124,7 @@ def sync( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateSourceBody): Request body for updating a content source. Raises: @@ -148,7 +148,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: UpdateSourceBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError | SourceResponse]: """Update Source @@ -159,7 +159,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateSourceBody): Request body for updating a content source. Raises: @@ -186,7 +186,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: UpdateSourceBody, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | SourceResponse | None: """Update Source @@ -197,7 +197,7 @@ async def asyncio( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (UpdateSourceBody): Request body for updating a content source. Raises: diff --git a/seclai/_generated/api/sources/upload_file_to_source_api_sources_source_connection_id_upload_post.py b/seclai/_generated/api/sources/upload_file_to_source_api_sources_source_connection_id_upload_post.py index b1f4e32..56b7c9e 100644 --- a/seclai/_generated/api/sources/upload_file_to_source_api_sources_source_connection_id_upload_post.py +++ b/seclai/_generated/api/sources/upload_file_to_source_api_sources_source_connection_id_upload_post.py @@ -1,6 +1,7 @@ from http import HTTPStatus from typing import Any from urllib.parse import quote +from uuid import UUID import httpx @@ -17,7 +18,7 @@ def _get_kwargs( source_connection_id: str, *, body: BodyUploadFileToSourceApiSourcesSourceConnectionIdUploadPost, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -66,7 +67,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: BodyUploadFileToSourceApiSourcesSourceConnectionIdUploadPost, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError]: r"""Upload a file to a content source @@ -77,7 +78,6 @@ def sync_detailed( **Supported MIME types:** - `application/epub+zip` - `application/json` - - `application/msword` - `application/pdf` - `application/vnd.ms-excel` - `application/vnd.ms-outlook` @@ -124,7 +124,7 @@ def sync_detailed( Args: source_connection_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (BodyUploadFileToSourceApiSourcesSourceConnectionIdUploadPost): Raises: @@ -153,7 +153,7 @@ def sync( *, client: AuthenticatedClient | Client, body: BodyUploadFileToSourceApiSourcesSourceConnectionIdUploadPost, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | None: r"""Upload a file to a content source @@ -164,7 +164,6 @@ def sync( **Supported MIME types:** - `application/epub+zip` - `application/json` - - `application/msword` - `application/pdf` - `application/vnd.ms-excel` - `application/vnd.ms-outlook` @@ -211,7 +210,7 @@ def sync( Args: source_connection_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (BodyUploadFileToSourceApiSourcesSourceConnectionIdUploadPost): Raises: @@ -235,7 +234,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: BodyUploadFileToSourceApiSourcesSourceConnectionIdUploadPost, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError]: r"""Upload a file to a content source @@ -246,7 +245,6 @@ async def asyncio_detailed( **Supported MIME types:** - `application/epub+zip` - `application/json` - - `application/msword` - `application/pdf` - `application/vnd.ms-excel` - `application/vnd.ms-outlook` @@ -293,7 +291,7 @@ async def asyncio_detailed( Args: source_connection_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (BodyUploadFileToSourceApiSourcesSourceConnectionIdUploadPost): Raises: @@ -320,7 +318,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: BodyUploadFileToSourceApiSourcesSourceConnectionIdUploadPost, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | None: r"""Upload a file to a content source @@ -331,7 +329,6 @@ async def asyncio( **Supported MIME types:** - `application/epub+zip` - `application/json` - - `application/msword` - `application/pdf` - `application/vnd.ms-excel` - `application/vnd.ms-outlook` @@ -378,7 +375,7 @@ async def asyncio( Args: source_connection_id (str): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (BodyUploadFileToSourceApiSourcesSourceConnectionIdUploadPost): Raises: diff --git a/seclai/_generated/api/sources/upload_inline_text_to_source_api_sources_source_connection_id_post.py b/seclai/_generated/api/sources/upload_inline_text_to_source_api_sources_source_connection_id_post.py index 825f51a..1f5d697 100644 --- a/seclai/_generated/api/sources/upload_inline_text_to_source_api_sources_source_connection_id_post.py +++ b/seclai/_generated/api/sources/upload_inline_text_to_source_api_sources_source_connection_id_post.py @@ -16,7 +16,7 @@ def _get_kwargs( source_connection_id: UUID, *, body: InlineTextUploadRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> dict[str, Any]: headers: dict[str, Any] = {} if not isinstance(x_account_id, Unset): @@ -67,7 +67,7 @@ def sync_detailed( *, client: AuthenticatedClient | Client, body: InlineTextUploadRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError]: """Upload inline text to a content source @@ -91,7 +91,7 @@ def sync_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (InlineTextUploadRequest): Request model for inline text uploads. Raises: @@ -120,7 +120,7 @@ def sync( *, client: AuthenticatedClient | Client, body: InlineTextUploadRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | None: """Upload inline text to a content source @@ -144,7 +144,7 @@ def sync( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (InlineTextUploadRequest): Request model for inline text uploads. Raises: @@ -168,7 +168,7 @@ async def asyncio_detailed( *, client: AuthenticatedClient | Client, body: InlineTextUploadRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> Response[HTTPValidationError]: """Upload inline text to a content source @@ -192,7 +192,7 @@ async def asyncio_detailed( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (InlineTextUploadRequest): Request model for inline text uploads. Raises: @@ -219,7 +219,7 @@ async def asyncio( *, client: AuthenticatedClient | Client, body: InlineTextUploadRequest, - x_account_id: str | Unset = UNSET, + x_account_id: UUID | Unset = UNSET, ) -> HTTPValidationError | None: """Upload inline text to a content source @@ -243,7 +243,7 @@ async def asyncio( Args: source_connection_id (UUID): - x_account_id (str | Unset): + x_account_id (UUID | Unset): body (InlineTextUploadRequest): Request model for inline text uploads. Raises: diff --git a/seclai/_generated/models/__init__.py b/seclai/_generated/models/__init__.py index 79fb21f..ffc2995 100644 --- a/seclai/_generated/models/__init__.py +++ b/seclai/_generated/models/__init__.py @@ -69,6 +69,9 @@ from .body_upload_file_to_source_api_sources_source_connection_id_upload_post import ( BodyUploadFileToSourceApiSourcesSourceConnectionIdUploadPost, ) +from .cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post_response_cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post import ( + CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost, +) from .change_alert_status_api_alerts_alert_id_status_post_response_change_alert_status_api_alerts_alert_id_status_post import ( ChangeAlertStatusApiAlertsAlertIdStatusPostResponseChangeAlertStatusApiAlertsAlertIdStatusPost, ) @@ -102,6 +105,9 @@ from .create_evaluation_result_request_details_type_0 import ( CreateEvaluationResultRequestDetailsType0, ) +from .create_experiment_api_models_playground_experiments_post_response_create_experiment_api_models_playground_experiments_post import ( + CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost, +) from .create_export_request import CreateExportRequest from .create_export_request_metadata_filter_type_0 import ( CreateExportRequestMetadataFilterType0, @@ -181,6 +187,9 @@ from .get_alert_unread_count_api_models_alerts_unread_count_get_response_get_alert_unread_count_api_models_alerts_unread_count_get import ( GetAlertUnreadCountApiModelsAlertsUnreadCountGetResponseGetAlertUnreadCountApiModelsAlertsUnreadCountGet, ) +from .get_experiment_api_models_playground_experiments_experiment_id_get_response_get_experiment_api_models_playground_experiments_experiment_id_get import ( + GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet, +) from .get_memory_bank_entry_stats_api_memory_banks_memory_bank_id_stats_get_response_get_memory_bank_entry_stats_api_memory_banks_memory_bank_id_stats_get import ( GetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGetResponseGetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGet, ) @@ -215,6 +224,9 @@ from .list_alerts_api_models_alerts_get_response_list_alerts_api_models_alerts_get import ( ListAlertsApiModelsAlertsGetResponseListAlertsApiModelsAlertsGet, ) +from .list_experiments_api_models_playground_experiments_get_response_list_experiments_api_models_playground_experiments_get import ( + ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet, +) from .list_templates_api_memory_banks_templates_get_response_200_item import ( ListTemplatesApiMemoryBanksTemplatesGetResponse200Item, ) @@ -254,11 +266,25 @@ from .pending_processing_completed_failed_status import ( PendingProcessingCompletedFailedStatus, ) +from .playground_create_request import PlaygroundCreateRequest +from .playground_create_request_evaluation_complexity import ( + PlaygroundCreateRequestEvaluationComplexity, +) +from .playground_create_request_evaluation_mode import ( + PlaygroundCreateRequestEvaluationMode, +) from .prompt_model_auto_upgrade_strategy import PromptModelAutoUpgradeStrategy +from .prompt_model_response import PromptModelResponse +from .prompt_model_response_payload_schema_type_0 import ( + PromptModelResponsePayloadSchemaType0, +) +from .prompt_tool_response import PromptToolResponse +from .prompt_tool_response_headers_type_0 import PromptToolResponseHeadersType0 from .proposed_action_response import ProposedActionResponse from .proposed_action_response_params import ProposedActionResponseParams from .proposed_policy_action_response import ProposedPolicyActionResponse from .proposed_policy_action_response_params import ProposedPolicyActionResponseParams +from .provider_group_response import ProviderGroupResponse from .search_api_search_get_response_search_api_search_get import ( SearchApiSearchGetResponseSearchApiSearchGet, ) @@ -274,6 +300,7 @@ from .solution_summary_response import SolutionSummaryResponse from .source_connection_response_model import SourceConnectionResponseModel from .source_embedding_migration_response import SourceEmbeddingMigrationResponse +from .source_index_mode import SourceIndexMode from .source_list_response import SourceListResponse from .source_response import SourceResponse from .standalone_test_compaction_request import StandaloneTestCompactionRequest @@ -321,6 +348,8 @@ from .update_source_body import UpdateSourceBody from .upload_agent_input_api_response import UploadAgentInputApiResponse from .validation_error import ValidationError +from .variant_category_response import VariantCategoryResponse +from .variant_option_response import VariantOptionResponse __all__ = ( "AddAlertCommentApiAlertsAlertIdCommentsPostResponseAddAlertCommentApiAlertsAlertIdCommentsPost", @@ -366,6 +395,7 @@ "AppliedActionResponse", "BodyUploadFileToContentApiContentsSourceConnectionContentVersionUploadPost", "BodyUploadFileToSourceApiSourcesSourceConnectionIdUploadPost", + "CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost", "ChangeAlertStatusApiAlertsAlertIdStatusPostResponseChangeAlertStatusApiAlertsAlertIdStatusPost", "ChangeStatusRequest", "CompactionEvaluationModel", @@ -385,6 +415,7 @@ "CreateEvaluationCriteriaRequestExpectationConfigType0", "CreateEvaluationResultRequest", "CreateEvaluationResultRequestDetailsType0", + "CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost", "CreateExportRequest", "CreateExportRequestMetadataFilterType0", "CreateKnowledgeBaseBody", @@ -428,6 +459,7 @@ "GetAlertConfigApiAlertsConfigsConfigIdGetResponseGetAlertConfigApiAlertsConfigsConfigIdGet", "GetAlertDetailApiAlertsAlertIdGetResponseGetAlertDetailApiAlertsAlertIdGet", "GetAlertUnreadCountApiModelsAlertsUnreadCountGetResponseGetAlertUnreadCountApiModelsAlertsUnreadCountGet", + "GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet", "GetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGetResponseGetMemoryBankEntryStatsApiMemoryBanksMemoryBankIdStatsGet", "GetRecommendationsApiModelsModelIdRecommendationsGetResponseGetRecommendationsApiModelsModelIdRecommendationsGet", "GovernanceAiAcceptResponse", @@ -446,6 +478,7 @@ "ListAlertConfigsApiAlertsConfigsGetResponseListAlertConfigsApiAlertsConfigsGet", "ListAlertsApiAlertsGetResponseListAlertsApiAlertsGet", "ListAlertsApiModelsAlertsGetResponseListAlertsApiModelsAlertsGet", + "ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet", "ListTemplatesApiMemoryBanksTemplatesGetResponse200Item", "MarkAiSuggestionApiAgentsAgentIdAiAssistantConversationIdPatchResponseMarkAiSuggestionApiAgentsAgentIdAiAssistantConversationIdPatch", "MarkAiSuggestionRequest", @@ -469,11 +502,19 @@ "OrganizationInfoResponse", "PaginationResponse", "PendingProcessingCompletedFailedStatus", + "PlaygroundCreateRequest", + "PlaygroundCreateRequestEvaluationComplexity", + "PlaygroundCreateRequestEvaluationMode", "PromptModelAutoUpgradeStrategy", + "PromptModelResponse", + "PromptModelResponsePayloadSchemaType0", + "PromptToolResponse", + "PromptToolResponseHeadersType0", "ProposedActionResponse", "ProposedActionResponseParams", "ProposedPolicyActionResponse", "ProposedPolicyActionResponseParams", + "ProviderGroupResponse", "SearchApiSearchGetResponseSearchApiSearchGet", "SolutionAgentResponse", "SolutionConversationResponse", @@ -485,6 +526,7 @@ "SolutionSummaryResponse", "SourceConnectionResponseModel", "SourceEmbeddingMigrationResponse", + "SourceIndexMode", "SourceListResponse", "SourceResponse", "StandaloneTestCompactionRequest", @@ -512,4 +554,6 @@ "UpdateSourceBody", "UploadAgentInputApiResponse", "ValidationError", + "VariantCategoryResponse", + "VariantOptionResponse", ) diff --git a/seclai/_generated/models/agent_definition_response.py b/seclai/_generated/models/agent_definition_response.py index 507c360..f094be4 100644 --- a/seclai/_generated/models/agent_definition_response.py +++ b/seclai/_generated/models/agent_definition_response.py @@ -27,8 +27,8 @@ class AgentDefinitionResponse: change_id (str): Current change ID (use as expected_change_id when updating). definition (AgentDefinitionResponseDefinition): The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, retrieval, transform, gate, retry, evaluate_step, insight, - extract_json, send_email, webhook_call, call_agent, write_metadata, write_content_attachment, - load_content_attachment, load_content, display_result, and others. + extract_content, streaming_result, send_email, webhook_call, call_agent, write_metadata, + write_content_attachment, load_content_attachment, load_content, display_result, and others. schema_version (str): Agent schema version. warnings (list[AgentDefinitionResponseWarningsType0Item] | None | Unset): Validation warnings, if any. """ diff --git a/seclai/_generated/models/agent_definition_response_definition.py b/seclai/_generated/models/agent_definition_response_definition.py index ce24474..c84c270 100644 --- a/seclai/_generated/models/agent_definition_response_definition.py +++ b/seclai/_generated/models/agent_definition_response_definition.py @@ -12,8 +12,9 @@ @_attrs_define class AgentDefinitionResponseDefinition: """The agent definition containing name, description, tags, and step workflow tree. Step types include prompt_call, - retrieval, transform, gate, retry, evaluate_step, insight, extract_json, send_email, webhook_call, call_agent, - write_metadata, write_content_attachment, load_content_attachment, load_content, display_result, and others. + retrieval, transform, gate, retry, evaluate_step, insight, extract_content, streaming_result, send_email, + webhook_call, call_agent, write_metadata, write_content_attachment, load_content_attachment, load_content, + display_result, and others. """ diff --git a/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 b/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 new file mode 100644 index 0000000..6ae941f --- /dev/null +++ b/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 @@ -0,0 +1,53 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar( + "T", + bound="CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost", +) + + +@_attrs_define +class CancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPostResponseCancelExperimentEndpointApiModelsPlaygroundExperimentsExperimentIdCancelPost: + """ """ + + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post_response_cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post = ( + cls() + ) + + cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post_response_cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post.additional_properties = ( + d + ) + return cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post_response_cancel_experiment_endpoint_api_models_playground_experiments_experiment_id_cancel_post + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/_generated/models/create_experiment_api_models_playground_experiments_post_response_create_experiment_api_models_playground_experiments_post.py b/seclai/_generated/models/create_experiment_api_models_playground_experiments_post_response_create_experiment_api_models_playground_experiments_post.py new file mode 100644 index 0000000..8e7ec3a --- /dev/null +++ b/seclai/_generated/models/create_experiment_api_models_playground_experiments_post_response_create_experiment_api_models_playground_experiments_post.py @@ -0,0 +1,53 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar( + "T", + bound="CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost", +) + + +@_attrs_define +class CreateExperimentApiModelsPlaygroundExperimentsPostResponseCreateExperimentApiModelsPlaygroundExperimentsPost: + """ """ + + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + create_experiment_api_models_playground_experiments_post_response_create_experiment_api_models_playground_experiments_post = ( + cls() + ) + + create_experiment_api_models_playground_experiments_post_response_create_experiment_api_models_playground_experiments_post.additional_properties = ( + d + ) + return create_experiment_api_models_playground_experiments_post_response_create_experiment_api_models_playground_experiments_post + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/_generated/models/create_source_body.py b/seclai/_generated/models/create_source_body.py index 21a9479..04164f5 100644 --- a/seclai/_generated/models/create_source_body.py +++ b/seclai/_generated/models/create_source_body.py @@ -6,6 +6,7 @@ from attrs import define as _attrs_define from attrs import field as _attrs_field +from ..models.source_index_mode import SourceIndexMode from ..types import UNSET, Unset T = TypeVar("T", bound="CreateSourceBody") @@ -17,12 +18,15 @@ class CreateSourceBody: Attributes: name (str): Source name. - source_type (str): Source type: rss, website, file_uploads, or custom_index. + source_type (str): Source type: rss, website, or custom_index. The legacy value 'file_uploads' is accepted as an + alias for custom_index. chunk_overlap (int | None | Unset): Chunk overlap for content processing. chunk_size (int | None | Unset): Chunk size for content processing. content_filter (None | str | Unset): Content filter type. dimensions (int | None | Unset): Embedding dimensions override. embedding_model (None | str | Unset): Embedding model override. + index_mode (None | SourceIndexMode | Unset): Index mode for custom_index sources: fast_and_cheap (default), + balanced, slow_and_thorough, or custom. polling (None | str | Unset): Polling interval (e.g. hourly, daily). polling_action (None | str | Unset): Polling action. polling_max_items (int | None | Unset): Max items per poll. @@ -37,6 +41,7 @@ class CreateSourceBody: content_filter: None | str | Unset = UNSET dimensions: int | None | Unset = UNSET embedding_model: None | str | Unset = UNSET + index_mode: None | SourceIndexMode | Unset = UNSET polling: None | str | Unset = UNSET polling_action: None | str | Unset = UNSET polling_max_items: int | None | Unset = UNSET @@ -79,6 +84,14 @@ def to_dict(self) -> dict[str, Any]: else: embedding_model = self.embedding_model + index_mode: None | str | Unset + if isinstance(self.index_mode, Unset): + index_mode = UNSET + elif isinstance(self.index_mode, SourceIndexMode): + index_mode = self.index_mode.value + else: + index_mode = self.index_mode + polling: None | str | Unset if isinstance(self.polling, Unset): polling = UNSET @@ -127,6 +140,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["dimensions"] = dimensions if embedding_model is not UNSET: field_dict["embedding_model"] = embedding_model + if index_mode is not UNSET: + field_dict["index_mode"] = index_mode if polling is not UNSET: field_dict["polling"] = polling if polling_action is not UNSET: @@ -192,6 +207,23 @@ def _parse_embedding_model(data: object) -> None | str | Unset: embedding_model = _parse_embedding_model(d.pop("embedding_model", UNSET)) + def _parse_index_mode(data: object) -> None | SourceIndexMode | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + try: + if not isinstance(data, str): + raise TypeError() + index_mode_type_0 = SourceIndexMode(data) + + return index_mode_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(None | SourceIndexMode | Unset, data) + + index_mode = _parse_index_mode(d.pop("index_mode", UNSET)) + def _parse_polling(data: object) -> None | str | Unset: if data is None: return data @@ -245,6 +277,7 @@ def _parse_url_id(data: object) -> None | str | Unset: content_filter=content_filter, dimensions=dimensions, embedding_model=embedding_model, + index_mode=index_mode, polling=polling, polling_action=polling_action, polling_max_items=polling_max_items, diff --git a/seclai/_generated/models/get_experiment_api_models_playground_experiments_experiment_id_get_response_get_experiment_api_models_playground_experiments_experiment_id_get.py b/seclai/_generated/models/get_experiment_api_models_playground_experiments_experiment_id_get_response_get_experiment_api_models_playground_experiments_experiment_id_get.py new file mode 100644 index 0000000..11d74b2 --- /dev/null +++ b/seclai/_generated/models/get_experiment_api_models_playground_experiments_experiment_id_get_response_get_experiment_api_models_playground_experiments_experiment_id_get.py @@ -0,0 +1,53 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar( + "T", + bound="GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet", +) + + +@_attrs_define +class GetExperimentApiModelsPlaygroundExperimentsExperimentIdGetResponseGetExperimentApiModelsPlaygroundExperimentsExperimentIdGet: + """ """ + + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + get_experiment_api_models_playground_experiments_experiment_id_get_response_get_experiment_api_models_playground_experiments_experiment_id_get = ( + cls() + ) + + get_experiment_api_models_playground_experiments_experiment_id_get_response_get_experiment_api_models_playground_experiments_experiment_id_get.additional_properties = ( + d + ) + return get_experiment_api_models_playground_experiments_experiment_id_get_response_get_experiment_api_models_playground_experiments_experiment_id_get + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/_generated/models/list_experiments_api_models_playground_experiments_get_response_list_experiments_api_models_playground_experiments_get.py b/seclai/_generated/models/list_experiments_api_models_playground_experiments_get_response_list_experiments_api_models_playground_experiments_get.py new file mode 100644 index 0000000..5aad479 --- /dev/null +++ b/seclai/_generated/models/list_experiments_api_models_playground_experiments_get_response_list_experiments_api_models_playground_experiments_get.py @@ -0,0 +1,53 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar( + "T", + bound="ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet", +) + + +@_attrs_define +class ListExperimentsApiModelsPlaygroundExperimentsGetResponseListExperimentsApiModelsPlaygroundExperimentsGet: + """ """ + + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + list_experiments_api_models_playground_experiments_get_response_list_experiments_api_models_playground_experiments_get = ( + cls() + ) + + list_experiments_api_models_playground_experiments_get_response_list_experiments_api_models_playground_experiments_get.additional_properties = ( + d + ) + return list_experiments_api_models_playground_experiments_get_response_list_experiments_api_models_playground_experiments_get + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/_generated/models/playground_create_request.py b/seclai/_generated/models/playground_create_request.py new file mode 100644 index 0000000..f94c14e --- /dev/null +++ b/seclai/_generated/models/playground_create_request.py @@ -0,0 +1,205 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..models.playground_create_request_evaluation_complexity import ( + PlaygroundCreateRequestEvaluationComplexity, +) +from ..models.playground_create_request_evaluation_mode import ( + PlaygroundCreateRequestEvaluationMode, +) +from ..types import UNSET, Unset + +T = TypeVar("T", bound="PlaygroundCreateRequest") + + +@_attrs_define +class PlaygroundCreateRequest: + """Create a model playground experiment via the public API. + + Attributes: + model_ids (list[str]): Selected model IDs (1-10). + prompt (str): Prompt text for the experiment. + evaluation_complexity (PlaygroundCreateRequestEvaluationComplexity | Unset): simple, medium, or complex Default: + PlaygroundCreateRequestEvaluationComplexity.MEDIUM. + evaluation_mode (PlaygroundCreateRequestEvaluationMode | Unset): manual or prompt Default: + PlaygroundCreateRequestEvaluationMode.MANUAL. + evaluator_model_id (None | str | Unset): Evaluator model ID when evaluation_mode is prompt. + include_step_output_in_evaluation (bool | Unset): Whether to include selected step output as evaluator context. + Default: False. + json_template (None | str | Unset): Optional JSON template for advanced mode. + selected_step_output (None | str | Unset): Optional step output text for evaluator context. + system_prompt (str | Unset): Optional system prompt. Default: ''. + """ + + model_ids: list[str] + prompt: str + evaluation_complexity: PlaygroundCreateRequestEvaluationComplexity | Unset = ( + PlaygroundCreateRequestEvaluationComplexity.MEDIUM + ) + evaluation_mode: PlaygroundCreateRequestEvaluationMode | Unset = ( + PlaygroundCreateRequestEvaluationMode.MANUAL + ) + evaluator_model_id: None | str | Unset = UNSET + include_step_output_in_evaluation: bool | Unset = False + json_template: None | str | Unset = UNSET + selected_step_output: None | str | Unset = UNSET + system_prompt: str | Unset = "" + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + model_ids = self.model_ids + + prompt = self.prompt + + evaluation_complexity: str | Unset = UNSET + if not isinstance(self.evaluation_complexity, Unset): + evaluation_complexity = self.evaluation_complexity.value + + evaluation_mode: str | Unset = UNSET + if not isinstance(self.evaluation_mode, Unset): + evaluation_mode = self.evaluation_mode.value + + evaluator_model_id: None | str | Unset + if isinstance(self.evaluator_model_id, Unset): + evaluator_model_id = UNSET + else: + evaluator_model_id = self.evaluator_model_id + + include_step_output_in_evaluation = self.include_step_output_in_evaluation + + json_template: None | str | Unset + if isinstance(self.json_template, Unset): + json_template = UNSET + else: + json_template = self.json_template + + selected_step_output: None | str | Unset + if isinstance(self.selected_step_output, Unset): + selected_step_output = UNSET + else: + selected_step_output = self.selected_step_output + + system_prompt = self.system_prompt + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "model_ids": model_ids, + "prompt": prompt, + } + ) + if evaluation_complexity is not UNSET: + field_dict["evaluation_complexity"] = evaluation_complexity + if evaluation_mode is not UNSET: + field_dict["evaluation_mode"] = evaluation_mode + if evaluator_model_id is not UNSET: + field_dict["evaluator_model_id"] = evaluator_model_id + if include_step_output_in_evaluation is not UNSET: + field_dict["include_step_output_in_evaluation"] = ( + include_step_output_in_evaluation + ) + if json_template is not UNSET: + field_dict["json_template"] = json_template + if selected_step_output is not UNSET: + field_dict["selected_step_output"] = selected_step_output + if system_prompt is not UNSET: + field_dict["system_prompt"] = system_prompt + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + model_ids = cast(list[str], d.pop("model_ids")) + + prompt = d.pop("prompt") + + _evaluation_complexity = d.pop("evaluation_complexity", UNSET) + evaluation_complexity: PlaygroundCreateRequestEvaluationComplexity | Unset + if isinstance(_evaluation_complexity, Unset): + evaluation_complexity = UNSET + else: + evaluation_complexity = PlaygroundCreateRequestEvaluationComplexity( + _evaluation_complexity + ) + + _evaluation_mode = d.pop("evaluation_mode", UNSET) + evaluation_mode: PlaygroundCreateRequestEvaluationMode | Unset + if isinstance(_evaluation_mode, Unset): + evaluation_mode = UNSET + else: + evaluation_mode = PlaygroundCreateRequestEvaluationMode(_evaluation_mode) + + def _parse_evaluator_model_id(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + evaluator_model_id = _parse_evaluator_model_id( + d.pop("evaluator_model_id", UNSET) + ) + + include_step_output_in_evaluation = d.pop( + "include_step_output_in_evaluation", UNSET + ) + + def _parse_json_template(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + json_template = _parse_json_template(d.pop("json_template", UNSET)) + + def _parse_selected_step_output(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + selected_step_output = _parse_selected_step_output( + d.pop("selected_step_output", UNSET) + ) + + system_prompt = d.pop("system_prompt", UNSET) + + playground_create_request = cls( + model_ids=model_ids, + prompt=prompt, + evaluation_complexity=evaluation_complexity, + evaluation_mode=evaluation_mode, + evaluator_model_id=evaluator_model_id, + include_step_output_in_evaluation=include_step_output_in_evaluation, + json_template=json_template, + selected_step_output=selected_step_output, + system_prompt=system_prompt, + ) + + playground_create_request.additional_properties = d + return playground_create_request + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/_generated/models/playground_create_request_evaluation_complexity.py b/seclai/_generated/models/playground_create_request_evaluation_complexity.py new file mode 100644 index 0000000..6d02650 --- /dev/null +++ b/seclai/_generated/models/playground_create_request_evaluation_complexity.py @@ -0,0 +1,10 @@ +from enum import Enum + + +class PlaygroundCreateRequestEvaluationComplexity(str, Enum): + COMPLEX = "complex" + MEDIUM = "medium" + SIMPLE = "simple" + + def __str__(self) -> str: + return str(self.value) diff --git a/seclai/_generated/models/playground_create_request_evaluation_mode.py b/seclai/_generated/models/playground_create_request_evaluation_mode.py new file mode 100644 index 0000000..dd698fb --- /dev/null +++ b/seclai/_generated/models/playground_create_request_evaluation_mode.py @@ -0,0 +1,9 @@ +from enum import Enum + + +class PlaygroundCreateRequestEvaluationMode(str, Enum): + MANUAL = "manual" + PROMPT = "prompt" + + def __str__(self) -> str: + return str(self.value) diff --git a/seclai/_generated/models/prompt_model_response.py b/seclai/_generated/models/prompt_model_response.py new file mode 100644 index 0000000..111d80f --- /dev/null +++ b/seclai/_generated/models/prompt_model_response.py @@ -0,0 +1,814 @@ +from __future__ import annotations + +import datetime +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field +from dateutil.parser import isoparse + +from ..types import UNSET, Unset + +if TYPE_CHECKING: + from ..models.prompt_model_response_payload_schema_type_0 import ( + PromptModelResponsePayloadSchemaType0, + ) + from ..models.prompt_tool_response import PromptToolResponse + from ..models.variant_category_response import VariantCategoryResponse + + +T = TypeVar("T", bound="PromptModelResponse") + + +@_attrs_define +class PromptModelResponse: + """Response model for prompt model data + + Attributes: + default (bool): + description (str): + enabled (bool): + id (str): + max_context_tokens (int): + max_conversation_length (int): + max_output_tokens (int): + model_id (str): + name (str): + provider (str): + deprecated_at (datetime.datetime | None | Unset): + family (None | str | Unset): + family_generation (float | None | Unset): + input_1h_cache_write_credits_per_1000_tokens (float | None | Unset): + input_5m_cache_write_credits_per_1000_tokens (float | None | Unset): + input_cache_hit_credits_per_1000_tokens (float | None | Unset): + input_credits_per_1000_tokens (float | None | Unset): + is_new (bool | Unset): Default: False. + last_used (bool | Unset): Default: False. + output_credits_per_1000_tokens (float | None | Unset): + payload_schema (None | PromptModelResponsePayloadSchemaType0 | Unset): Model-specific JSON schema for advanced + prompt_call json_template payloads. + payload_schema_source_url (None | str | Unset): Source URL used to derive payload_schema guidance for this + model. + released_at (datetime.datetime | None | Unset): + schema_documentation_url (None | str | Unset): Model documentation URL with request/response payload details. + schema_notes (None | str | Unset): Human-readable notes about request payload compatibility. + successor_model_id (None | str | Unset): + sunset_at (datetime.datetime | None | Unset): + supported_input_media (list[str] | None | Unset): + supported_languages (list[str] | None | Unset): + supports_openai_arguments (bool | Unset): Default: False. + supports_streaming (bool | Unset): Default: False. + supports_structured_output (bool | Unset): Default: True. + supports_thinking (bool | Unset): Default: False. + supports_tool_use (bool | Unset): Default: True. + tools_disabled (list[PromptToolResponse] | Unset): + tools_enabled (list[PromptToolResponse] | Unset): + training_cutoff_at (datetime.datetime | None | Unset): + url (None | str | Unset): + variants (list[VariantCategoryResponse] | None | Unset): + """ + + default: bool + description: str + enabled: bool + id: str + max_context_tokens: int + max_conversation_length: int + max_output_tokens: int + model_id: str + name: str + provider: str + deprecated_at: datetime.datetime | None | Unset = UNSET + family: None | str | Unset = UNSET + family_generation: float | None | Unset = UNSET + input_1h_cache_write_credits_per_1000_tokens: float | None | Unset = UNSET + input_5m_cache_write_credits_per_1000_tokens: float | None | Unset = UNSET + input_cache_hit_credits_per_1000_tokens: float | None | Unset = UNSET + input_credits_per_1000_tokens: float | None | Unset = UNSET + is_new: bool | Unset = False + last_used: bool | Unset = False + output_credits_per_1000_tokens: float | None | Unset = UNSET + payload_schema: None | PromptModelResponsePayloadSchemaType0 | Unset = UNSET + payload_schema_source_url: None | str | Unset = UNSET + released_at: datetime.datetime | None | Unset = UNSET + schema_documentation_url: None | str | Unset = UNSET + schema_notes: None | str | Unset = UNSET + successor_model_id: None | str | Unset = UNSET + sunset_at: datetime.datetime | None | Unset = UNSET + supported_input_media: list[str] | None | Unset = UNSET + supported_languages: list[str] | None | Unset = UNSET + supports_openai_arguments: bool | Unset = False + supports_streaming: bool | Unset = False + supports_structured_output: bool | Unset = True + supports_thinking: bool | Unset = False + supports_tool_use: bool | Unset = True + tools_disabled: list[PromptToolResponse] | Unset = UNSET + tools_enabled: list[PromptToolResponse] | Unset = UNSET + training_cutoff_at: datetime.datetime | None | Unset = UNSET + url: None | str | Unset = UNSET + variants: list[VariantCategoryResponse] | None | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + from ..models.prompt_model_response_payload_schema_type_0 import ( + PromptModelResponsePayloadSchemaType0, + ) + + default = self.default + + description = self.description + + enabled = self.enabled + + id = self.id + + max_context_tokens = self.max_context_tokens + + max_conversation_length = self.max_conversation_length + + max_output_tokens = self.max_output_tokens + + model_id = self.model_id + + name = self.name + + provider = self.provider + + deprecated_at: None | str | Unset + if isinstance(self.deprecated_at, Unset): + deprecated_at = UNSET + elif isinstance(self.deprecated_at, datetime.datetime): + deprecated_at = self.deprecated_at.isoformat() + else: + deprecated_at = self.deprecated_at + + family: None | str | Unset + if isinstance(self.family, Unset): + family = UNSET + else: + family = self.family + + family_generation: float | None | Unset + if isinstance(self.family_generation, Unset): + family_generation = UNSET + else: + family_generation = self.family_generation + + input_1h_cache_write_credits_per_1000_tokens: float | None | Unset + if isinstance(self.input_1h_cache_write_credits_per_1000_tokens, Unset): + input_1h_cache_write_credits_per_1000_tokens = UNSET + else: + input_1h_cache_write_credits_per_1000_tokens = ( + self.input_1h_cache_write_credits_per_1000_tokens + ) + + input_5m_cache_write_credits_per_1000_tokens: float | None | Unset + if isinstance(self.input_5m_cache_write_credits_per_1000_tokens, Unset): + input_5m_cache_write_credits_per_1000_tokens = UNSET + else: + input_5m_cache_write_credits_per_1000_tokens = ( + self.input_5m_cache_write_credits_per_1000_tokens + ) + + input_cache_hit_credits_per_1000_tokens: float | None | Unset + if isinstance(self.input_cache_hit_credits_per_1000_tokens, Unset): + input_cache_hit_credits_per_1000_tokens = UNSET + else: + input_cache_hit_credits_per_1000_tokens = ( + self.input_cache_hit_credits_per_1000_tokens + ) + + input_credits_per_1000_tokens: float | None | Unset + if isinstance(self.input_credits_per_1000_tokens, Unset): + input_credits_per_1000_tokens = UNSET + else: + input_credits_per_1000_tokens = self.input_credits_per_1000_tokens + + is_new = self.is_new + + last_used = self.last_used + + output_credits_per_1000_tokens: float | None | Unset + if isinstance(self.output_credits_per_1000_tokens, Unset): + output_credits_per_1000_tokens = UNSET + else: + output_credits_per_1000_tokens = self.output_credits_per_1000_tokens + + payload_schema: dict[str, Any] | None | Unset + if isinstance(self.payload_schema, Unset): + payload_schema = UNSET + elif isinstance(self.payload_schema, PromptModelResponsePayloadSchemaType0): + payload_schema = self.payload_schema.to_dict() + else: + payload_schema = self.payload_schema + + payload_schema_source_url: None | str | Unset + if isinstance(self.payload_schema_source_url, Unset): + payload_schema_source_url = UNSET + else: + payload_schema_source_url = self.payload_schema_source_url + + released_at: None | str | Unset + if isinstance(self.released_at, Unset): + released_at = UNSET + elif isinstance(self.released_at, datetime.datetime): + released_at = self.released_at.isoformat() + else: + released_at = self.released_at + + schema_documentation_url: None | str | Unset + if isinstance(self.schema_documentation_url, Unset): + schema_documentation_url = UNSET + else: + schema_documentation_url = self.schema_documentation_url + + schema_notes: None | str | Unset + if isinstance(self.schema_notes, Unset): + schema_notes = UNSET + else: + schema_notes = self.schema_notes + + successor_model_id: None | str | Unset + if isinstance(self.successor_model_id, Unset): + successor_model_id = UNSET + else: + successor_model_id = self.successor_model_id + + sunset_at: None | str | Unset + if isinstance(self.sunset_at, Unset): + sunset_at = UNSET + elif isinstance(self.sunset_at, datetime.datetime): + sunset_at = self.sunset_at.isoformat() + else: + sunset_at = self.sunset_at + + supported_input_media: list[str] | None | Unset + if isinstance(self.supported_input_media, Unset): + supported_input_media = UNSET + elif isinstance(self.supported_input_media, list): + supported_input_media = self.supported_input_media + + else: + supported_input_media = self.supported_input_media + + supported_languages: list[str] | None | Unset + if isinstance(self.supported_languages, Unset): + supported_languages = UNSET + elif isinstance(self.supported_languages, list): + supported_languages = self.supported_languages + + else: + supported_languages = self.supported_languages + + supports_openai_arguments = self.supports_openai_arguments + + supports_streaming = self.supports_streaming + + supports_structured_output = self.supports_structured_output + + supports_thinking = self.supports_thinking + + supports_tool_use = self.supports_tool_use + + tools_disabled: list[dict[str, Any]] | Unset = UNSET + if not isinstance(self.tools_disabled, Unset): + tools_disabled = [] + for tools_disabled_item_data in self.tools_disabled: + tools_disabled_item = tools_disabled_item_data.to_dict() + tools_disabled.append(tools_disabled_item) + + tools_enabled: list[dict[str, Any]] | Unset = UNSET + if not isinstance(self.tools_enabled, Unset): + tools_enabled = [] + for tools_enabled_item_data in self.tools_enabled: + tools_enabled_item = tools_enabled_item_data.to_dict() + tools_enabled.append(tools_enabled_item) + + training_cutoff_at: None | str | Unset + if isinstance(self.training_cutoff_at, Unset): + training_cutoff_at = UNSET + elif isinstance(self.training_cutoff_at, datetime.datetime): + training_cutoff_at = self.training_cutoff_at.isoformat() + else: + training_cutoff_at = self.training_cutoff_at + + url: None | str | Unset + if isinstance(self.url, Unset): + url = UNSET + else: + url = self.url + + variants: list[dict[str, Any]] | None | Unset + if isinstance(self.variants, Unset): + variants = UNSET + elif isinstance(self.variants, list): + variants = [] + for variants_type_0_item_data in self.variants: + variants_type_0_item = variants_type_0_item_data.to_dict() + variants.append(variants_type_0_item) + + else: + variants = self.variants + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "default": default, + "description": description, + "enabled": enabled, + "id": id, + "max_context_tokens": max_context_tokens, + "max_conversation_length": max_conversation_length, + "max_output_tokens": max_output_tokens, + "model_id": model_id, + "name": name, + "provider": provider, + } + ) + if deprecated_at is not UNSET: + field_dict["deprecated_at"] = deprecated_at + if family is not UNSET: + field_dict["family"] = family + if family_generation is not UNSET: + field_dict["family_generation"] = family_generation + if input_1h_cache_write_credits_per_1000_tokens is not UNSET: + field_dict["input_1h_cache_write_credits_per_1000_tokens"] = ( + input_1h_cache_write_credits_per_1000_tokens + ) + if input_5m_cache_write_credits_per_1000_tokens is not UNSET: + field_dict["input_5m_cache_write_credits_per_1000_tokens"] = ( + input_5m_cache_write_credits_per_1000_tokens + ) + if input_cache_hit_credits_per_1000_tokens is not UNSET: + field_dict["input_cache_hit_credits_per_1000_tokens"] = ( + input_cache_hit_credits_per_1000_tokens + ) + if input_credits_per_1000_tokens is not UNSET: + field_dict["input_credits_per_1000_tokens"] = input_credits_per_1000_tokens + if is_new is not UNSET: + field_dict["is_new"] = is_new + if last_used is not UNSET: + field_dict["last_used"] = last_used + if output_credits_per_1000_tokens is not UNSET: + field_dict["output_credits_per_1000_tokens"] = ( + output_credits_per_1000_tokens + ) + if payload_schema is not UNSET: + field_dict["payload_schema"] = payload_schema + if payload_schema_source_url is not UNSET: + field_dict["payload_schema_source_url"] = payload_schema_source_url + if released_at is not UNSET: + field_dict["released_at"] = released_at + if schema_documentation_url is not UNSET: + field_dict["schema_documentation_url"] = schema_documentation_url + if schema_notes is not UNSET: + field_dict["schema_notes"] = schema_notes + if successor_model_id is not UNSET: + field_dict["successor_model_id"] = successor_model_id + if sunset_at is not UNSET: + field_dict["sunset_at"] = sunset_at + if supported_input_media is not UNSET: + field_dict["supported_input_media"] = supported_input_media + if supported_languages is not UNSET: + field_dict["supported_languages"] = supported_languages + if supports_openai_arguments is not UNSET: + field_dict["supports_openai_arguments"] = supports_openai_arguments + if supports_streaming is not UNSET: + field_dict["supports_streaming"] = supports_streaming + if supports_structured_output is not UNSET: + field_dict["supports_structured_output"] = supports_structured_output + if supports_thinking is not UNSET: + field_dict["supports_thinking"] = supports_thinking + if supports_tool_use is not UNSET: + field_dict["supports_tool_use"] = supports_tool_use + if tools_disabled is not UNSET: + field_dict["tools_disabled"] = tools_disabled + if tools_enabled is not UNSET: + field_dict["tools_enabled"] = tools_enabled + if training_cutoff_at is not UNSET: + field_dict["training_cutoff_at"] = training_cutoff_at + if url is not UNSET: + field_dict["url"] = url + if variants is not UNSET: + field_dict["variants"] = variants + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.prompt_model_response_payload_schema_type_0 import ( + PromptModelResponsePayloadSchemaType0, + ) + from ..models.prompt_tool_response import PromptToolResponse + from ..models.variant_category_response import VariantCategoryResponse + + d = dict(src_dict) + default = d.pop("default") + + description = d.pop("description") + + enabled = d.pop("enabled") + + id = d.pop("id") + + max_context_tokens = d.pop("max_context_tokens") + + max_conversation_length = d.pop("max_conversation_length") + + max_output_tokens = d.pop("max_output_tokens") + + model_id = d.pop("model_id") + + name = d.pop("name") + + provider = d.pop("provider") + + def _parse_deprecated_at(data: object) -> datetime.datetime | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + try: + if not isinstance(data, str): + raise TypeError() + deprecated_at_type_0 = isoparse(data) + + return deprecated_at_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(datetime.datetime | None | Unset, data) + + deprecated_at = _parse_deprecated_at(d.pop("deprecated_at", UNSET)) + + def _parse_family(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + family = _parse_family(d.pop("family", UNSET)) + + def _parse_family_generation(data: object) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + family_generation = _parse_family_generation(d.pop("family_generation", UNSET)) + + def _parse_input_1h_cache_write_credits_per_1000_tokens( + data: object, + ) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + input_1h_cache_write_credits_per_1000_tokens = ( + _parse_input_1h_cache_write_credits_per_1000_tokens( + d.pop("input_1h_cache_write_credits_per_1000_tokens", UNSET) + ) + ) + + def _parse_input_5m_cache_write_credits_per_1000_tokens( + data: object, + ) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + input_5m_cache_write_credits_per_1000_tokens = ( + _parse_input_5m_cache_write_credits_per_1000_tokens( + d.pop("input_5m_cache_write_credits_per_1000_tokens", UNSET) + ) + ) + + def _parse_input_cache_hit_credits_per_1000_tokens( + data: object, + ) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + input_cache_hit_credits_per_1000_tokens = ( + _parse_input_cache_hit_credits_per_1000_tokens( + d.pop("input_cache_hit_credits_per_1000_tokens", UNSET) + ) + ) + + def _parse_input_credits_per_1000_tokens(data: object) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + input_credits_per_1000_tokens = _parse_input_credits_per_1000_tokens( + d.pop("input_credits_per_1000_tokens", UNSET) + ) + + is_new = d.pop("is_new", UNSET) + + last_used = d.pop("last_used", UNSET) + + def _parse_output_credits_per_1000_tokens(data: object) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + output_credits_per_1000_tokens = _parse_output_credits_per_1000_tokens( + d.pop("output_credits_per_1000_tokens", UNSET) + ) + + def _parse_payload_schema( + data: object, + ) -> None | PromptModelResponsePayloadSchemaType0 | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + try: + if not isinstance(data, dict): + raise TypeError() + payload_schema_type_0 = PromptModelResponsePayloadSchemaType0.from_dict( + data + ) + + return payload_schema_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(None | PromptModelResponsePayloadSchemaType0 | Unset, data) + + payload_schema = _parse_payload_schema(d.pop("payload_schema", UNSET)) + + def _parse_payload_schema_source_url(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + payload_schema_source_url = _parse_payload_schema_source_url( + d.pop("payload_schema_source_url", UNSET) + ) + + def _parse_released_at(data: object) -> datetime.datetime | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + try: + if not isinstance(data, str): + raise TypeError() + released_at_type_0 = isoparse(data) + + return released_at_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(datetime.datetime | None | Unset, data) + + released_at = _parse_released_at(d.pop("released_at", UNSET)) + + def _parse_schema_documentation_url(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + schema_documentation_url = _parse_schema_documentation_url( + d.pop("schema_documentation_url", UNSET) + ) + + def _parse_schema_notes(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + schema_notes = _parse_schema_notes(d.pop("schema_notes", UNSET)) + + def _parse_successor_model_id(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + successor_model_id = _parse_successor_model_id( + d.pop("successor_model_id", UNSET) + ) + + def _parse_sunset_at(data: object) -> datetime.datetime | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + try: + if not isinstance(data, str): + raise TypeError() + sunset_at_type_0 = isoparse(data) + + return sunset_at_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(datetime.datetime | None | Unset, data) + + sunset_at = _parse_sunset_at(d.pop("sunset_at", UNSET)) + + def _parse_supported_input_media(data: object) -> list[str] | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + try: + if not isinstance(data, list): + raise TypeError() + supported_input_media_type_0 = cast(list[str], data) + + return supported_input_media_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(list[str] | None | Unset, data) + + supported_input_media = _parse_supported_input_media( + d.pop("supported_input_media", UNSET) + ) + + def _parse_supported_languages(data: object) -> list[str] | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + try: + if not isinstance(data, list): + raise TypeError() + supported_languages_type_0 = cast(list[str], data) + + return supported_languages_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(list[str] | None | Unset, data) + + supported_languages = _parse_supported_languages( + d.pop("supported_languages", UNSET) + ) + + supports_openai_arguments = d.pop("supports_openai_arguments", UNSET) + + supports_streaming = d.pop("supports_streaming", UNSET) + + supports_structured_output = d.pop("supports_structured_output", UNSET) + + supports_thinking = d.pop("supports_thinking", UNSET) + + supports_tool_use = d.pop("supports_tool_use", UNSET) + + _tools_disabled = d.pop("tools_disabled", UNSET) + tools_disabled: list[PromptToolResponse] | Unset = UNSET + if _tools_disabled is not UNSET: + tools_disabled = [] + for tools_disabled_item_data in _tools_disabled: + tools_disabled_item = PromptToolResponse.from_dict( + tools_disabled_item_data + ) + + tools_disabled.append(tools_disabled_item) + + _tools_enabled = d.pop("tools_enabled", UNSET) + tools_enabled: list[PromptToolResponse] | Unset = UNSET + if _tools_enabled is not UNSET: + tools_enabled = [] + for tools_enabled_item_data in _tools_enabled: + tools_enabled_item = PromptToolResponse.from_dict( + tools_enabled_item_data + ) + + tools_enabled.append(tools_enabled_item) + + def _parse_training_cutoff_at(data: object) -> datetime.datetime | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + try: + if not isinstance(data, str): + raise TypeError() + training_cutoff_at_type_0 = isoparse(data) + + return training_cutoff_at_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(datetime.datetime | None | Unset, data) + + training_cutoff_at = _parse_training_cutoff_at( + d.pop("training_cutoff_at", UNSET) + ) + + def _parse_url(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + url = _parse_url(d.pop("url", UNSET)) + + def _parse_variants( + data: object, + ) -> list[VariantCategoryResponse] | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + try: + if not isinstance(data, list): + raise TypeError() + variants_type_0 = [] + _variants_type_0 = data + for variants_type_0_item_data in _variants_type_0: + variants_type_0_item = VariantCategoryResponse.from_dict( + variants_type_0_item_data + ) + + variants_type_0.append(variants_type_0_item) + + return variants_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(list[VariantCategoryResponse] | None | Unset, data) + + variants = _parse_variants(d.pop("variants", UNSET)) + + prompt_model_response = cls( + default=default, + description=description, + enabled=enabled, + id=id, + max_context_tokens=max_context_tokens, + max_conversation_length=max_conversation_length, + max_output_tokens=max_output_tokens, + model_id=model_id, + name=name, + provider=provider, + deprecated_at=deprecated_at, + family=family, + family_generation=family_generation, + input_1h_cache_write_credits_per_1000_tokens=input_1h_cache_write_credits_per_1000_tokens, + input_5m_cache_write_credits_per_1000_tokens=input_5m_cache_write_credits_per_1000_tokens, + input_cache_hit_credits_per_1000_tokens=input_cache_hit_credits_per_1000_tokens, + input_credits_per_1000_tokens=input_credits_per_1000_tokens, + is_new=is_new, + last_used=last_used, + output_credits_per_1000_tokens=output_credits_per_1000_tokens, + payload_schema=payload_schema, + payload_schema_source_url=payload_schema_source_url, + released_at=released_at, + schema_documentation_url=schema_documentation_url, + schema_notes=schema_notes, + successor_model_id=successor_model_id, + sunset_at=sunset_at, + supported_input_media=supported_input_media, + supported_languages=supported_languages, + supports_openai_arguments=supports_openai_arguments, + supports_streaming=supports_streaming, + supports_structured_output=supports_structured_output, + supports_thinking=supports_thinking, + supports_tool_use=supports_tool_use, + tools_disabled=tools_disabled, + tools_enabled=tools_enabled, + training_cutoff_at=training_cutoff_at, + url=url, + variants=variants, + ) + + prompt_model_response.additional_properties = d + return prompt_model_response + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/_generated/models/prompt_model_response_payload_schema_type_0.py b/seclai/_generated/models/prompt_model_response_payload_schema_type_0.py new file mode 100644 index 0000000..5a6c534 --- /dev/null +++ b/seclai/_generated/models/prompt_model_response_payload_schema_type_0.py @@ -0,0 +1,46 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar("T", bound="PromptModelResponsePayloadSchemaType0") + + +@_attrs_define +class PromptModelResponsePayloadSchemaType0: + """ """ + + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + prompt_model_response_payload_schema_type_0 = cls() + + prompt_model_response_payload_schema_type_0.additional_properties = d + return prompt_model_response_payload_schema_type_0 + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/_generated/models/prompt_tool_response.py b/seclai/_generated/models/prompt_tool_response.py new file mode 100644 index 0000000..15858b3 --- /dev/null +++ b/seclai/_generated/models/prompt_tool_response.py @@ -0,0 +1,246 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +if TYPE_CHECKING: + from ..models.prompt_tool_response_headers_type_0 import ( + PromptToolResponseHeadersType0, + ) + + +T = TypeVar("T", bound="PromptToolResponse") + + +@_attrs_define +class PromptToolResponse: + """Response model for a prompt tool. + + Attributes: + id (str): + name (str): + tool_type (str): + description (None | str | Unset): + documentation_url (None | str | Unset): + example (None | str | Unset): + headers (None | PromptToolResponseHeadersType0 | Unset): + notes (None | str | Unset): + tool_name (None | str | Unset): + tool_type_pattern (None | str | Unset): + """ + + id: str + name: str + tool_type: str + description: None | str | Unset = UNSET + documentation_url: None | str | Unset = UNSET + example: None | str | Unset = UNSET + headers: None | PromptToolResponseHeadersType0 | Unset = UNSET + notes: None | str | Unset = UNSET + tool_name: None | str | Unset = UNSET + tool_type_pattern: None | str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + from ..models.prompt_tool_response_headers_type_0 import ( + PromptToolResponseHeadersType0, + ) + + id = self.id + + name = self.name + + tool_type = self.tool_type + + description: None | str | Unset + if isinstance(self.description, Unset): + description = UNSET + else: + description = self.description + + documentation_url: None | str | Unset + if isinstance(self.documentation_url, Unset): + documentation_url = UNSET + else: + documentation_url = self.documentation_url + + example: None | str | Unset + if isinstance(self.example, Unset): + example = UNSET + else: + example = self.example + + headers: dict[str, Any] | None | Unset + if isinstance(self.headers, Unset): + headers = UNSET + elif isinstance(self.headers, PromptToolResponseHeadersType0): + headers = self.headers.to_dict() + else: + headers = self.headers + + notes: None | str | Unset + if isinstance(self.notes, Unset): + notes = UNSET + else: + notes = self.notes + + tool_name: None | str | Unset + if isinstance(self.tool_name, Unset): + tool_name = UNSET + else: + tool_name = self.tool_name + + tool_type_pattern: None | str | Unset + if isinstance(self.tool_type_pattern, Unset): + tool_type_pattern = UNSET + else: + tool_type_pattern = self.tool_type_pattern + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "id": id, + "name": name, + "tool_type": tool_type, + } + ) + if description is not UNSET: + field_dict["description"] = description + if documentation_url is not UNSET: + field_dict["documentation_url"] = documentation_url + if example is not UNSET: + field_dict["example"] = example + if headers is not UNSET: + field_dict["headers"] = headers + if notes is not UNSET: + field_dict["notes"] = notes + if tool_name is not UNSET: + field_dict["tool_name"] = tool_name + if tool_type_pattern is not UNSET: + field_dict["tool_type_pattern"] = tool_type_pattern + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.prompt_tool_response_headers_type_0 import ( + PromptToolResponseHeadersType0, + ) + + d = dict(src_dict) + id = d.pop("id") + + name = d.pop("name") + + tool_type = d.pop("tool_type") + + def _parse_description(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + description = _parse_description(d.pop("description", UNSET)) + + def _parse_documentation_url(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + documentation_url = _parse_documentation_url(d.pop("documentation_url", UNSET)) + + def _parse_example(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + example = _parse_example(d.pop("example", UNSET)) + + def _parse_headers( + data: object, + ) -> None | PromptToolResponseHeadersType0 | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + try: + if not isinstance(data, dict): + raise TypeError() + headers_type_0 = PromptToolResponseHeadersType0.from_dict(data) + + return headers_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(None | PromptToolResponseHeadersType0 | Unset, data) + + headers = _parse_headers(d.pop("headers", UNSET)) + + def _parse_notes(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + notes = _parse_notes(d.pop("notes", UNSET)) + + def _parse_tool_name(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + tool_name = _parse_tool_name(d.pop("tool_name", UNSET)) + + def _parse_tool_type_pattern(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + tool_type_pattern = _parse_tool_type_pattern(d.pop("tool_type_pattern", UNSET)) + + prompt_tool_response = cls( + id=id, + name=name, + tool_type=tool_type, + description=description, + documentation_url=documentation_url, + example=example, + headers=headers, + notes=notes, + tool_name=tool_name, + tool_type_pattern=tool_type_pattern, + ) + + prompt_tool_response.additional_properties = d + return prompt_tool_response + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/_generated/models/prompt_tool_response_headers_type_0.py b/seclai/_generated/models/prompt_tool_response_headers_type_0.py new file mode 100644 index 0000000..fa0dd1f --- /dev/null +++ b/seclai/_generated/models/prompt_tool_response_headers_type_0.py @@ -0,0 +1,46 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar("T", bound="PromptToolResponseHeadersType0") + + +@_attrs_define +class PromptToolResponseHeadersType0: + """ """ + + additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + prompt_tool_response_headers_type_0 = cls() + + prompt_tool_response_headers_type_0.additional_properties = d + return prompt_tool_response_headers_type_0 + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> str: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: str) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/_generated/models/provider_group_response.py b/seclai/_generated/models/provider_group_response.py new file mode 100644 index 0000000..c9c19e3 --- /dev/null +++ b/seclai/_generated/models/provider_group_response.py @@ -0,0 +1,84 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +if TYPE_CHECKING: + from ..models.prompt_model_response import PromptModelResponse + + +T = TypeVar("T", bound="ProviderGroupResponse") + + +@_attrs_define +class ProviderGroupResponse: + """Response model for provider group with models + + Attributes: + models (list[PromptModelResponse]): + provider (str): + """ + + models: list[PromptModelResponse] + provider: str + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + models = [] + for models_item_data in self.models: + models_item = models_item_data.to_dict() + models.append(models_item) + + provider = self.provider + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "models": models, + "provider": provider, + } + ) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.prompt_model_response import PromptModelResponse + + d = dict(src_dict) + models = [] + _models = d.pop("models") + for models_item_data in _models: + models_item = PromptModelResponse.from_dict(models_item_data) + + models.append(models_item) + + provider = d.pop("provider") + + provider_group_response = cls( + models=models, + provider=provider, + ) + + provider_group_response.additional_properties = d + return provider_group_response + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/_generated/models/source_index_mode.py b/seclai/_generated/models/source_index_mode.py new file mode 100644 index 0000000..bcb534c --- /dev/null +++ b/seclai/_generated/models/source_index_mode.py @@ -0,0 +1,11 @@ +from enum import Enum + + +class SourceIndexMode(str, Enum): + BALANCED = "balanced" + CUSTOM = "custom" + FAST_AND_CHEAP = "fast_and_cheap" + SLOW_AND_THOROUGH = "slow_and_thorough" + + def __str__(self) -> str: + return str(self.value) diff --git a/seclai/_generated/models/source_response.py b/seclai/_generated/models/source_response.py index b5c7e0b..0aaa0c2 100644 --- a/seclai/_generated/models/source_response.py +++ b/seclai/_generated/models/source_response.py @@ -7,6 +7,7 @@ from attrs import define as _attrs_define from attrs import field as _attrs_field +from ..models.source_index_mode import SourceIndexMode from ..types import UNSET, Unset T = TypeVar("T", bound="SourceResponse") @@ -44,6 +45,8 @@ class SourceResponse: embedding_model_type (None | str | Unset): Type of the embedding model. free_retention_days (int | None | Unset): Number of days content is stored for free before billing applies. has_historical_data (bool | Unset): Indicates if the source connection has historical data. Default: False. + index_mode (None | SourceIndexMode | Unset): Index mode for custom_index sources: fast_and_cheap, balanced, + slow_and_thorough, or custom. readonly (bool | Unset): Indicates if the source connection is read-only. Default: False. system_managed (bool | Unset): Indicates if this source is automatically managed by the system (e.g., agent traces). Default: False. @@ -76,6 +79,7 @@ class SourceResponse: embedding_model_type: None | str | Unset = UNSET free_retention_days: int | None | Unset = UNSET has_historical_data: bool | Unset = False + index_mode: None | SourceIndexMode | Unset = UNSET readonly: bool | Unset = False system_managed: bool | Unset = False additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -186,6 +190,14 @@ def to_dict(self) -> dict[str, Any]: has_historical_data = self.has_historical_data + index_mode: None | str | Unset + if isinstance(self.index_mode, Unset): + index_mode = UNSET + elif isinstance(self.index_mode, SourceIndexMode): + index_mode = self.index_mode.value + else: + index_mode = self.index_mode + readonly = self.readonly system_managed = self.system_managed @@ -236,6 +248,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["free_retention_days"] = free_retention_days if has_historical_data is not UNSET: field_dict["has_historical_data"] = has_historical_data + if index_mode is not UNSET: + field_dict["index_mode"] = index_mode if readonly is not UNSET: field_dict["readonly"] = readonly if system_managed is not UNSET: @@ -422,6 +436,23 @@ def _parse_free_retention_days(data: object) -> int | None | Unset: has_historical_data = d.pop("has_historical_data", UNSET) + def _parse_index_mode(data: object) -> None | SourceIndexMode | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + try: + if not isinstance(data, str): + raise TypeError() + index_mode_type_0 = SourceIndexMode(data) + + return index_mode_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(None | SourceIndexMode | Unset, data) + + index_mode = _parse_index_mode(d.pop("index_mode", UNSET)) + readonly = d.pop("readonly", UNSET) system_managed = d.pop("system_managed", UNSET) @@ -454,6 +485,7 @@ def _parse_free_retention_days(data: object) -> int | None | Unset: embedding_model_type=embedding_model_type, free_retention_days=free_retention_days, has_historical_data=has_historical_data, + index_mode=index_mode, readonly=readonly, system_managed=system_managed, ) diff --git a/seclai/_generated/models/variant_category_response.py b/seclai/_generated/models/variant_category_response.py new file mode 100644 index 0000000..f739bab --- /dev/null +++ b/seclai/_generated/models/variant_category_response.py @@ -0,0 +1,108 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +if TYPE_CHECKING: + from ..models.variant_option_response import VariantOptionResponse + + +T = TypeVar("T", bound="VariantCategoryResponse") + + +@_attrs_define +class VariantCategoryResponse: + """Response model for a variant category + + Attributes: + category (str): + configurable (bool): + description (str): + options (list[VariantOptionResponse]): + title (str): + """ + + category: str + configurable: bool + description: str + options: list[VariantOptionResponse] + title: str + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + category = self.category + + configurable = self.configurable + + description = self.description + + options = [] + for options_item_data in self.options: + options_item = options_item_data.to_dict() + options.append(options_item) + + title = self.title + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "category": category, + "configurable": configurable, + "description": description, + "options": options, + "title": title, + } + ) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.variant_option_response import VariantOptionResponse + + d = dict(src_dict) + category = d.pop("category") + + configurable = d.pop("configurable") + + description = d.pop("description") + + options = [] + _options = d.pop("options") + for options_item_data in _options: + options_item = VariantOptionResponse.from_dict(options_item_data) + + options.append(options_item) + + title = d.pop("title") + + variant_category_response = cls( + category=category, + configurable=configurable, + description=description, + options=options, + title=title, + ) + + variant_category_response.additional_properties = d + return variant_category_response + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/_generated/models/variant_option_response.py b/seclai/_generated/models/variant_option_response.py new file mode 100644 index 0000000..4c86dec --- /dev/null +++ b/seclai/_generated/models/variant_option_response.py @@ -0,0 +1,348 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +T = TypeVar("T", bound="VariantOptionResponse") + + +@_attrs_define +class VariantOptionResponse: + """Response model for a variant option + + Attributes: + default (bool): + title (str): + value (str): + description (None | str | Unset): + input_1h_cache_write_credits_per_1000_tokens (float | None | Unset): + input_5m_cache_write_credits_per_1000_tokens (float | None | Unset): + input_cache_hit_credits_per_1000_tokens (float | None | Unset): + input_credits_per_1000_tokens (float | None | Unset): + long_context_input_cache_hit_credits_per_1000_tokens (float | None | Unset): + long_context_input_credits_per_1000_tokens (float | None | Unset): + long_context_output_credits_per_1000_tokens (float | None | Unset): + long_context_threshold (int | None | Unset): + output_credits_per_1000_tokens (float | None | Unset): + """ + + default: bool + title: str + value: str + description: None | str | Unset = UNSET + input_1h_cache_write_credits_per_1000_tokens: float | None | Unset = UNSET + input_5m_cache_write_credits_per_1000_tokens: float | None | Unset = UNSET + input_cache_hit_credits_per_1000_tokens: float | None | Unset = UNSET + input_credits_per_1000_tokens: float | None | Unset = UNSET + long_context_input_cache_hit_credits_per_1000_tokens: float | None | Unset = UNSET + long_context_input_credits_per_1000_tokens: float | None | Unset = UNSET + long_context_output_credits_per_1000_tokens: float | None | Unset = UNSET + long_context_threshold: int | None | Unset = UNSET + output_credits_per_1000_tokens: float | None | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + default = self.default + + title = self.title + + value = self.value + + description: None | str | Unset + if isinstance(self.description, Unset): + description = UNSET + else: + description = self.description + + input_1h_cache_write_credits_per_1000_tokens: float | None | Unset + if isinstance(self.input_1h_cache_write_credits_per_1000_tokens, Unset): + input_1h_cache_write_credits_per_1000_tokens = UNSET + else: + input_1h_cache_write_credits_per_1000_tokens = ( + self.input_1h_cache_write_credits_per_1000_tokens + ) + + input_5m_cache_write_credits_per_1000_tokens: float | None | Unset + if isinstance(self.input_5m_cache_write_credits_per_1000_tokens, Unset): + input_5m_cache_write_credits_per_1000_tokens = UNSET + else: + input_5m_cache_write_credits_per_1000_tokens = ( + self.input_5m_cache_write_credits_per_1000_tokens + ) + + input_cache_hit_credits_per_1000_tokens: float | None | Unset + if isinstance(self.input_cache_hit_credits_per_1000_tokens, Unset): + input_cache_hit_credits_per_1000_tokens = UNSET + else: + input_cache_hit_credits_per_1000_tokens = ( + self.input_cache_hit_credits_per_1000_tokens + ) + + input_credits_per_1000_tokens: float | None | Unset + if isinstance(self.input_credits_per_1000_tokens, Unset): + input_credits_per_1000_tokens = UNSET + else: + input_credits_per_1000_tokens = self.input_credits_per_1000_tokens + + long_context_input_cache_hit_credits_per_1000_tokens: float | None | Unset + if isinstance(self.long_context_input_cache_hit_credits_per_1000_tokens, Unset): + long_context_input_cache_hit_credits_per_1000_tokens = UNSET + else: + long_context_input_cache_hit_credits_per_1000_tokens = ( + self.long_context_input_cache_hit_credits_per_1000_tokens + ) + + long_context_input_credits_per_1000_tokens: float | None | Unset + if isinstance(self.long_context_input_credits_per_1000_tokens, Unset): + long_context_input_credits_per_1000_tokens = UNSET + else: + long_context_input_credits_per_1000_tokens = ( + self.long_context_input_credits_per_1000_tokens + ) + + long_context_output_credits_per_1000_tokens: float | None | Unset + if isinstance(self.long_context_output_credits_per_1000_tokens, Unset): + long_context_output_credits_per_1000_tokens = UNSET + else: + long_context_output_credits_per_1000_tokens = ( + self.long_context_output_credits_per_1000_tokens + ) + + long_context_threshold: int | None | Unset + if isinstance(self.long_context_threshold, Unset): + long_context_threshold = UNSET + else: + long_context_threshold = self.long_context_threshold + + output_credits_per_1000_tokens: float | None | Unset + if isinstance(self.output_credits_per_1000_tokens, Unset): + output_credits_per_1000_tokens = UNSET + else: + output_credits_per_1000_tokens = self.output_credits_per_1000_tokens + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "default": default, + "title": title, + "value": value, + } + ) + if description is not UNSET: + field_dict["description"] = description + if input_1h_cache_write_credits_per_1000_tokens is not UNSET: + field_dict["input_1h_cache_write_credits_per_1000_tokens"] = ( + input_1h_cache_write_credits_per_1000_tokens + ) + if input_5m_cache_write_credits_per_1000_tokens is not UNSET: + field_dict["input_5m_cache_write_credits_per_1000_tokens"] = ( + input_5m_cache_write_credits_per_1000_tokens + ) + if input_cache_hit_credits_per_1000_tokens is not UNSET: + field_dict["input_cache_hit_credits_per_1000_tokens"] = ( + input_cache_hit_credits_per_1000_tokens + ) + if input_credits_per_1000_tokens is not UNSET: + field_dict["input_credits_per_1000_tokens"] = input_credits_per_1000_tokens + if long_context_input_cache_hit_credits_per_1000_tokens is not UNSET: + field_dict["long_context_input_cache_hit_credits_per_1000_tokens"] = ( + long_context_input_cache_hit_credits_per_1000_tokens + ) + if long_context_input_credits_per_1000_tokens is not UNSET: + field_dict["long_context_input_credits_per_1000_tokens"] = ( + long_context_input_credits_per_1000_tokens + ) + if long_context_output_credits_per_1000_tokens is not UNSET: + field_dict["long_context_output_credits_per_1000_tokens"] = ( + long_context_output_credits_per_1000_tokens + ) + if long_context_threshold is not UNSET: + field_dict["long_context_threshold"] = long_context_threshold + if output_credits_per_1000_tokens is not UNSET: + field_dict["output_credits_per_1000_tokens"] = ( + output_credits_per_1000_tokens + ) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + default = d.pop("default") + + title = d.pop("title") + + value = d.pop("value") + + def _parse_description(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + description = _parse_description(d.pop("description", UNSET)) + + def _parse_input_1h_cache_write_credits_per_1000_tokens( + data: object, + ) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + input_1h_cache_write_credits_per_1000_tokens = ( + _parse_input_1h_cache_write_credits_per_1000_tokens( + d.pop("input_1h_cache_write_credits_per_1000_tokens", UNSET) + ) + ) + + def _parse_input_5m_cache_write_credits_per_1000_tokens( + data: object, + ) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + input_5m_cache_write_credits_per_1000_tokens = ( + _parse_input_5m_cache_write_credits_per_1000_tokens( + d.pop("input_5m_cache_write_credits_per_1000_tokens", UNSET) + ) + ) + + def _parse_input_cache_hit_credits_per_1000_tokens( + data: object, + ) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + input_cache_hit_credits_per_1000_tokens = ( + _parse_input_cache_hit_credits_per_1000_tokens( + d.pop("input_cache_hit_credits_per_1000_tokens", UNSET) + ) + ) + + def _parse_input_credits_per_1000_tokens(data: object) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + input_credits_per_1000_tokens = _parse_input_credits_per_1000_tokens( + d.pop("input_credits_per_1000_tokens", UNSET) + ) + + def _parse_long_context_input_cache_hit_credits_per_1000_tokens( + data: object, + ) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + long_context_input_cache_hit_credits_per_1000_tokens = ( + _parse_long_context_input_cache_hit_credits_per_1000_tokens( + d.pop("long_context_input_cache_hit_credits_per_1000_tokens", UNSET) + ) + ) + + def _parse_long_context_input_credits_per_1000_tokens( + data: object, + ) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + long_context_input_credits_per_1000_tokens = ( + _parse_long_context_input_credits_per_1000_tokens( + d.pop("long_context_input_credits_per_1000_tokens", UNSET) + ) + ) + + def _parse_long_context_output_credits_per_1000_tokens( + data: object, + ) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + long_context_output_credits_per_1000_tokens = ( + _parse_long_context_output_credits_per_1000_tokens( + d.pop("long_context_output_credits_per_1000_tokens", UNSET) + ) + ) + + def _parse_long_context_threshold(data: object) -> int | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(int | None | Unset, data) + + long_context_threshold = _parse_long_context_threshold( + d.pop("long_context_threshold", UNSET) + ) + + def _parse_output_credits_per_1000_tokens(data: object) -> float | None | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(float | None | Unset, data) + + output_credits_per_1000_tokens = _parse_output_credits_per_1000_tokens( + d.pop("output_credits_per_1000_tokens", UNSET) + ) + + variant_option_response = cls( + default=default, + title=title, + value=value, + description=description, + input_1h_cache_write_credits_per_1000_tokens=input_1h_cache_write_credits_per_1000_tokens, + input_5m_cache_write_credits_per_1000_tokens=input_5m_cache_write_credits_per_1000_tokens, + input_cache_hit_credits_per_1000_tokens=input_cache_hit_credits_per_1000_tokens, + input_credits_per_1000_tokens=input_credits_per_1000_tokens, + long_context_input_cache_hit_credits_per_1000_tokens=long_context_input_cache_hit_credits_per_1000_tokens, + long_context_input_credits_per_1000_tokens=long_context_input_credits_per_1000_tokens, + long_context_output_credits_per_1000_tokens=long_context_output_credits_per_1000_tokens, + long_context_threshold=long_context_threshold, + output_credits_per_1000_tokens=output_credits_per_1000_tokens, + ) + + variant_option_response.additional_properties = d + return variant_option_response + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/seclai/seclai.py b/seclai/seclai.py index 24c186b..41a90e8 100644 --- a/seclai/seclai.py +++ b/seclai/seclai.py @@ -3352,6 +3352,118 @@ def get_model_recommendations(self, model_id: str) -> JSONValue: """ return self.request("GET", f"/models/{model_id}/recommendations") + def list_models( + self, + *, + provider: str | None = None, + supports_tool_use: bool | None = None, + supports_thinking: bool | None = None, + ) -> JSONValue: + """List all enabled LLM models grouped by provider. + + Args: + provider: Filter by provider name. + supports_tool_use: Filter to models that support tool use. + supports_thinking: Filter to models that support extended thinking. + + Returns: + List of provider groups with their models. + """ + return self.request( + "GET", + "/models", + params=_strip_none( + { + "provider": provider, + "supports_tool_use": supports_tool_use, + "supports_thinking": supports_thinking, + } + ), + ) + + def get_model(self, model_id: str) -> JSONValue: + """Get full details for a specific model. + + Args: + model_id: Model identifier. + + Returns: + Model details including capabilities, pricing, and lifecycle status. + """ + return self.request("GET", f"/models/{model_id}/details") + + # ── Model Playground Experiments ────────────────────────────────────────── + + def list_experiments( + self, + *, + days: int | None = None, + start_date: str | None = None, + end_date: str | None = None, + limit: int | None = None, + offset: int | None = None, + ) -> JSONValue: + """List model playground experiments. + + Args: + days: Look-back window in days (1-730, default 30). + start_date: Start date filter (YYYY-MM-DD). + end_date: End date filter (YYYY-MM-DD). + limit: Maximum number of results. + offset: Pagination offset. + + Returns: + Paginated list of experiments. + """ + return self.request( + "GET", + "/models/playground/experiments", + params=_strip_none( + { + "days": days, + "start_date": start_date, + "end_date": end_date, + "limit": limit, + "offset": offset, + } + ), + ) + + def create_experiment(self, body: dict[str, Any]) -> JSONValue: + """Create a model playground experiment. + + Args: + body: Experiment configuration including prompt, model_ids, etc. + + Returns: + Created experiment details. + """ + return self.request("POST", "/models/playground/experiments", json=body) + + def get_experiment(self, experiment_id: str) -> JSONValue: + """Get a model playground experiment by ID. + + Args: + experiment_id: Experiment identifier. + + Returns: + Experiment details. + """ + return self.request("GET", f"/models/playground/experiments/{experiment_id}") + + def cancel_experiment(self, experiment_id: str) -> JSONValue: + """Cancel a running model playground experiment. + + Args: + experiment_id: Experiment identifier. + + Returns: + Cancellation confirmation. + """ + return self.request( + "POST", f"/models/playground/experiments/{experiment_id}/cancel" + ) + # ── Search ──────────────────────────────────────────────────────────────── def search( @@ -6575,6 +6687,120 @@ async def get_model_recommendations(self, model_id: str) -> JSONValue: """ return await self.request("GET", f"/models/{model_id}/recommendations") + async def list_models( + self, + *, + provider: str | None = None, + supports_tool_use: bool | None = None, + supports_thinking: bool | None = None, + ) -> JSONValue: + """List all enabled LLM models grouped by provider. + + Args: + provider: Filter by provider name. + supports_tool_use: Filter to models that support tool use. + supports_thinking: Filter to models that support extended thinking. + + Returns: + List of provider groups with their models. + """ + return await self.request( + "GET", + "/models", + params=_strip_none( + { + "provider": provider, + "supports_tool_use": supports_tool_use, + "supports_thinking": supports_thinking, + } + ), + ) + + async def get_model(self, model_id: str) -> JSONValue: + """Get full details for a specific model. + + Args: + model_id: Model identifier. + + Returns: + Model details including capabilities, pricing, and lifecycle status. + """ + return await self.request("GET", f"/models/{model_id}/details") + + # ── Model Playground Experiments ────────────────────────────────────────── + + async def list_experiments( + self, + *, + days: int | None = None, + start_date: str | None = None, + end_date: str | None = None, + limit: int | None = None, + offset: int | None = None, + ) -> JSONValue: + """List model playground experiments. + + Args: + days: Look-back window in days (1-730, default 30). + start_date: Start date filter (YYYY-MM-DD). + end_date: End date filter (YYYY-MM-DD). + limit: Maximum number of results. + offset: Pagination offset. + + Returns: + Paginated list of experiments. + """ + return await self.request( + "GET", + "/models/playground/experiments", + params=_strip_none( + { + "days": days, + "start_date": start_date, + "end_date": end_date, + "limit": limit, + "offset": offset, + } + ), + ) + + async def create_experiment(self, body: dict[str, Any]) -> JSONValue: + """Create a model playground experiment. + + Args: + body: Experiment configuration including prompt, model_ids, etc. + + Returns: + Created experiment details. + """ + return await self.request("POST", "/models/playground/experiments", json=body) + + async def get_experiment(self, experiment_id: str) -> JSONValue: + """Get a model playground experiment by ID. + + Args: + experiment_id: Experiment identifier. + + Returns: + Experiment details. + """ + return await self.request( + "GET", f"/models/playground/experiments/{experiment_id}" + ) + + async def cancel_experiment(self, experiment_id: str) -> JSONValue: + """Cancel a running model playground experiment. + + Args: + experiment_id: Experiment identifier. + + Returns: + Cancellation confirmation. + """ + return await self.request( + "POST", f"/models/playground/experiments/{experiment_id}/cancel" + ) + # ── Search ──────────────────────────────────────────────────────────────── async def search(