imbi-api 2.67.0__tar.gz → 2.68.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {imbi_api-2.67.0 → imbi_api-2.68.0}/PKG-INFO +2 -2
- {imbi_api-2.67.0 → imbi_api-2.68.0}/pyproject.toml +2 -2
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/agent_tools.py +1 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/agent_api.py +11 -7
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/agent_api_routes.py +17 -2
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/organizations.py +133 -8
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/document_orgs.py +53 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/__init__.py +0 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/_document_reads.py +46 -13
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/_document_scope.py +14 -15
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/agent_platform.py +0 -2
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/agent_usage.py +0 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/agents.py +0 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/ai_model_defaults.py +0 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/ai_models.py +0 -2
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/ai_providers.py +0 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/auth.py +20 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/comments.py +11 -30
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/document_analytics.py +43 -15
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/document_presence.py +14 -13
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/documents.py +87 -9
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/harness.py +54 -9
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/integration_workflow_steps.py +0 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/mcp_servers.py +0 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/operations_log.py +0 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/organizations.py +181 -171
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_deployments.py +38 -8
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_integrations.py +0 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_plugins.py +0 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_types.py +11 -5
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/projects.py +17 -9
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/prompts.py +124 -198
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/scoring.py +6 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/search.py +13 -24
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/secret_broker.py +0 -6
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/tickets.py +4 -3
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/user_activity.py +27 -5
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/workflow_runs.py +21 -11
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/workflows.py +12 -6
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/maintenance/operations.py +20 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/maintenance/registry.py +22 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/mcp_test.py +6 -1
- imbi_api-2.68.0/src/imbi/api/prompt_orgs.py +197 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/release_promote/service.py +4 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/secret_broker/broker.py +126 -49
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/secret_broker/schemata.toml +6 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/tickets/schemata.toml +39 -3
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/tickets/store.py +151 -26
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/workflows/__init__.py +2 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/workflows/runs.py +10 -5
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/workflows/runtime_schemata.toml +21 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/workflows/schemata.toml +12 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/workflows/store.py +1 -1
- imbi_api-2.68.0/src/imbi/api/workflows/ticket_trigger.py +450 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_organizations.py +181 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_agent_api.py +19 -3
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_agent_task_actions.py +39 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_agent_tasks.py +47 -7
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_agents.py +2 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ai_providers.py +1 -3
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_auth.py +55 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_comments.py +2 -7
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_comments_attention.py +2 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_components.py +1 -8
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_cross_org_reads.py +24 -14
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_document_presence.py +6 -2
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_document_reads.py +16 -3
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_document_reads_sql.py +206 -3
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_documents.py +0 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_events.py +1 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_harness.py +72 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_harness_secrets.py +8 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_mcp_servers.py +3 -7
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_operations_log.py +1 -6
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_organizations.py +22 -8
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_analysis.py +4 -10
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_configuration.py +1 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_deployments.py +141 -38
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_deployments_autonomous.py +1 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_incidents.py +1 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_integrations.py +1 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_lifecycle.py +1 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_stars.py +1 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_types.py +13 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_projects.py +15 -13
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_prompt_decisions.py +0 -1
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_prompt_generative.py +39 -61
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_prompts.py +164 -228
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_pull_requests.py +0 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_releases.py +1 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_scoring.py +1 -4
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_search.py +31 -58
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ticket_handoff.py +38 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ticket_reopen.py +23 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_webhooks.py +0 -7
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_workflow_runs.py +81 -3
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/support.py +8 -2
- imbi_api-2.68.0/tests/test_document_org_scope.py +196 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_document_orgs.py +22 -0
- imbi_api-2.68.0/tests/test_prompt_orgs.py +258 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_release_promote_service.py +19 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_secret_broker.py +204 -10
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_ticket_state_trigger.py +270 -3
- imbi_api-2.67.0/src/imbi/api/prompt_orgs.py +0 -96
- imbi_api-2.67.0/src/imbi/api/workflows/ticket_trigger.py +0 -266
- imbi_api-2.67.0/tests/test_prompt_orgs.py +0 -82
- {imbi_api-2.67.0 → imbi_api-2.68.0}/.gitignore +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/README.md +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/moon.yml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/README.md +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/ai_catalog_orgs.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/app.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/autonomous.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/internal_services.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/seed.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/blueprint_sections.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/blueprint_values.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/commit_sync/queue.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/commit_sync/service.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/component_facts.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/component_governance_orgs.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/conversation_orgs.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/cves.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/deployment_sync/queue.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/drift.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/drift_classifier.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/email/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/email/models.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/email/templates/base.html +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/email/templates/base.txt +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/_document_events.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/_helpers.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/_local_time.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/ai_proxy.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/components.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/cves.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/dashboard.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/document_likes.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/document_templates.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/maintenance.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/project_stars.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/pull_requests.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/release_periods.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/releases.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/status.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/ticket_harness.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/endpoints/webhooks.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/harness/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/harness/auth.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/harness/platform.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/harness/schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/harness/store.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/harness/sweeper.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/lifespans.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/llm/generate.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/llm/prompted.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/maintenance/log.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/maintenance/state.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/maintenance/worker.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/mcp_server_orgs.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/model_calls/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/model_calls/schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/openapi.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/plugins/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/plugins/lifecycle_dispatch.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/plugins/release_dispatch.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/pr_sync/service.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/preferences/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/preferences/schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/prompts/release_notes_system.md +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/release_periods.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/scoring/queue.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/secret_broker/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/secret_broker/model_key.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/secret_broker/store.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/settings.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/tags.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/teams.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/tickets/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/tickets/announce.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/tickets/custom_fields.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/tickets/log.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/tickets/sweeper.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/workflows/plugin_calls.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/workflows/sweeper.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/src/imbi/api/workflows/tickets.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_seed.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_agent_task_harness.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_agent_task_log.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_agent_task_relations.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_agent_usage.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ai_model_defaults.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ai_models.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ai_proxy.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_caller_org_slugs.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_components_graph.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_cves.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_dashboard.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_harness_egress.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_integration_workflow_steps.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_integration_workflow_steps_choices.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_maintenance.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_person_tickets.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_projects_bulk_graph.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_projects_helpers.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_release_periods_graph.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_secret_broker.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_service_writeback.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_shared_identifier.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_status.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ticket_agent_activity.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ticket_attributes.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ticket_custom_fields.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ticket_links.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ticket_units.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_ticket_waiting.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_user_activity.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_user_preferences.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_workflow_run_history.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_workflow_triggers.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/endpoints/test_workflows.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/release_2_58/harness_schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/release_2_58/tickets_schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/release_a/harness_schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/release_a/tickets_schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/release_a_minus_1/agent_runtime_schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/release_a_minus_1/harness_schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/release_b/harness_schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/release_b/tickets_schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/release_b1/harness_schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/release_b1/tickets_schemata.toml +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/marketplace_support.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/secret_support.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_agent_platform.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_agent_task_events_e2e.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_agent_tools.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_ai_catalog_orgs.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_app.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_blueprint_values.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_clickhouse_project_ids.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_commit_sync_queue.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_component_facts.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_cves.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_deployment_array_drop.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_deployment_sync_queue.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_drift.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_drift_classifier.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_init.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_installer.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_lifecycle_dispatch.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_maintenance_log.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_maintenance_operations.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_maintenance_state.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_maintenance_worker.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_mcp_server_orgs.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_model_calls.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_models.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_openapi.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_projects_drift_ranges.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_prompt_seed.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_prompted.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_release_dispatch.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_secret_github_app.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_secret_mcp_credential.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_settings.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_tags.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_tickets_rename.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_workflow_reconcile.py +0 -0
- {imbi_api-2.67.0 → imbi_api-2.68.0}/tests/test_workflow_tickets.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: imbi-api
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.68.0
|
|
4
4
|
Summary: Imbi is the open-source service catalog that tracks every service's ownership, deployments, and health, and runs the AI agents and workflows that fix them.
|
|
5
5
|
Author-email: Alex Campbell <alexc@aweber.com>, Dave Shawley <daves@aweber.com>, "Gavin M. Roy" <gavinr@aweber.com>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -21,7 +21,7 @@ Requires-Dist: filetype
|
|
|
21
21
|
Requires-Dist: httpx2>=2.16.2
|
|
22
22
|
Requires-Dist: httpx<1,>=0.28.1
|
|
23
23
|
Requires-Dist: idna>=3.18
|
|
24
|
-
Requires-Dist: imbi-common[databases,llm,mcp,script,sentry,server]==2.
|
|
24
|
+
Requires-Dist: imbi-common[databases,llm,mcp,script,sentry,server]==2.68.0
|
|
25
25
|
Requires-Dist: jinja2
|
|
26
26
|
Requires-Dist: jsonpatch>=1.33
|
|
27
27
|
Requires-Dist: jsonschema>=4.26
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "imbi-api"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.68.0"
|
|
4
4
|
description = "Imbi is the open-source service catalog that tracks every service's ownership, deployments, and health, and runs the AI agents and workflows that fix them."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.14"
|
|
@@ -30,7 +30,7 @@ dependencies = [
|
|
|
30
30
|
"httpx>=0.28.1,<1",
|
|
31
31
|
"httpx2>=2.16.2",
|
|
32
32
|
"idna>=3.18",
|
|
33
|
-
"imbi-common[databases,llm,mcp,script,sentry,server]==2.
|
|
33
|
+
"imbi-common[databases,llm,mcp,script,sentry,server]==2.68.0",
|
|
34
34
|
"jinja2",
|
|
35
35
|
"jsonpatch>=1.33",
|
|
36
36
|
"jsonschema>=4.26",
|
|
@@ -142,7 +142,7 @@ def index(app: fastapi.FastAPI) -> None:
|
|
|
142
142
|
for route in app.routes
|
|
143
143
|
if isinstance(route, fastapi.routing.APIRoute)
|
|
144
144
|
for method in route.methods
|
|
145
|
-
if keys.get((route.endpoint, method)) in DEFAULT_ROUTES
|
|
145
|
+
if keys.get((route.endpoint, route.path, method)) in DEFAULT_ROUTES
|
|
146
146
|
)
|
|
147
147
|
|
|
148
148
|
|
|
@@ -131,15 +131,18 @@ def refused(module: str, method: str, key: str | None = None) -> bool:
|
|
|
131
131
|
|
|
132
132
|
def route_keys(
|
|
133
133
|
app: fastapi.FastAPI, prefix: str
|
|
134
|
-
) -> dict[tuple[typing.Any, str], str]:
|
|
135
|
-
"""``(endpoint, method)`` to ``"METHOD /template"`` (the
|
|
136
|
-
without the API prefix) for every mounted API route.
|
|
137
|
-
|
|
134
|
+
) -> dict[tuple[typing.Any, str, str], str]:
|
|
135
|
+
"""``(endpoint, path, method)`` to ``"METHOD /template"`` (the
|
|
136
|
+
template without the API prefix) for every mounted API route. The
|
|
137
|
+
path is in the key because routes can share one endpoint."""
|
|
138
|
+
keys: dict[tuple[typing.Any, str, str], str] = {}
|
|
138
139
|
for route in app.routes:
|
|
139
140
|
if isinstance(route, routing.APIRoute):
|
|
140
141
|
template = route.path.removeprefix(prefix) or '/'
|
|
141
142
|
for method in route.methods:
|
|
142
|
-
keys[(route.endpoint, method)] =
|
|
143
|
+
keys[(route.endpoint, route.path, method)] = (
|
|
144
|
+
f'{method} {template}'
|
|
145
|
+
)
|
|
143
146
|
return keys
|
|
144
147
|
|
|
145
148
|
|
|
@@ -256,10 +259,11 @@ async def guard(
|
|
|
256
259
|
return
|
|
257
260
|
endpoint = request.scope.get('endpoint')
|
|
258
261
|
module = str(getattr(endpoint, '__module__', ''))
|
|
259
|
-
keys: dict[tuple[typing.Any, str], str] = getattr(
|
|
262
|
+
keys: dict[tuple[typing.Any, str, str], str] = getattr(
|
|
260
263
|
request.app.state, 'agent_api_routes', {}
|
|
261
264
|
)
|
|
262
|
-
|
|
265
|
+
path = getattr(request.scope.get('route'), 'path', '')
|
|
266
|
+
key = keys.get((endpoint, path, request.method))
|
|
263
267
|
org_slug: str | None
|
|
264
268
|
if core.is_agent_api_token(token):
|
|
265
269
|
error = 'agent_api_forbidden'
|
|
@@ -17,6 +17,7 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
17
17
|
'DELETE /organizations/{org_slug}/document-templates/{slug}',
|
|
18
18
|
'DELETE /organizations/{org_slug}/documents/{document_id}',
|
|
19
19
|
'DELETE /organizations/{org_slug}/documents/{document_id}/comments/{thread_id}/comments/{comment_id}',
|
|
20
|
+
'DELETE /organizations/{org_slug}/projects/{project_id}/documents/{document_id}/comments/{thread_id}/comments/{comment_id}',
|
|
20
21
|
'DELETE /organizations/{org_slug}/documents/{document_id}/editing',
|
|
21
22
|
'DELETE /organizations/{org_slug}/documents/{document_id}/like',
|
|
22
23
|
'DELETE /organizations/{org_slug}/environments/{slug}',
|
|
@@ -73,6 +74,7 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
73
74
|
'GET /organizations/{org_slug}/documents/{document_id}/analytics',
|
|
74
75
|
'GET /organizations/{org_slug}/documents/{document_id}/analytics/readers',
|
|
75
76
|
'GET /organizations/{org_slug}/documents/{document_id}/comments',
|
|
77
|
+
'GET /organizations/{org_slug}/projects/{project_id}/documents/{document_id}/comments',
|
|
76
78
|
'GET /organizations/{org_slug}/documents/{document_id}/editing',
|
|
77
79
|
'GET /organizations/{org_slug}/documents/{document_id}/likes',
|
|
78
80
|
'GET /organizations/{org_slug}/documents/{document_id}/versions',
|
|
@@ -138,8 +140,6 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
138
140
|
'GET /organizations/{org_slug}/projects/{project_id}/score/trend',
|
|
139
141
|
'GET /organizations/{org_slug}/projects/{project_id}/services/',
|
|
140
142
|
# The prompts the organization uses: its own and the defaults.
|
|
141
|
-
# The routes of one prompt share their handlers with
|
|
142
|
-
# /prompts/..., so they have the keys of those routes.
|
|
143
143
|
'GET /organizations/{org_slug}/prompts/',
|
|
144
144
|
'GET /organizations/{org_slug}/pull-requests/',
|
|
145
145
|
'GET /organizations/{org_slug}/pull-requests/activity',
|
|
@@ -180,7 +180,9 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
180
180
|
'PATCH /organizations/{org_slug}/document-templates/{slug}',
|
|
181
181
|
'PATCH /organizations/{org_slug}/documents/{document_id}',
|
|
182
182
|
'PATCH /organizations/{org_slug}/documents/{document_id}/comments/{thread_id}',
|
|
183
|
+
'PATCH /organizations/{org_slug}/projects/{project_id}/documents/{document_id}/comments/{thread_id}',
|
|
183
184
|
'PATCH /organizations/{org_slug}/documents/{document_id}/comments/{thread_id}/comments/{comment_id}',
|
|
185
|
+
'PATCH /organizations/{org_slug}/projects/{project_id}/documents/{document_id}/comments/{thread_id}/comments/{comment_id}',
|
|
184
186
|
'PATCH /organizations/{org_slug}/environments/{slug}',
|
|
185
187
|
'PATCH /organizations/{org_slug}/link-definitions/{slug}',
|
|
186
188
|
'PATCH /organizations/{org_slug}/project-types/{slug}',
|
|
@@ -194,8 +196,11 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
194
196
|
'POST /organizations/{org_slug}/operations-log/',
|
|
195
197
|
'POST /organizations/{org_slug}/document-templates/',
|
|
196
198
|
'POST /organizations/{org_slug}/documents/{document_id}/comments',
|
|
199
|
+
'POST /organizations/{org_slug}/projects/{project_id}/documents/{document_id}/comments',
|
|
197
200
|
'POST /organizations/{org_slug}/documents/{document_id}/comments/{thread_id}/comments',
|
|
201
|
+
'POST /organizations/{org_slug}/projects/{project_id}/documents/{document_id}/comments/{thread_id}/comments',
|
|
198
202
|
'POST /organizations/{org_slug}/documents/{document_id}/comments/{thread_id}/comments/{comment_id}/acknowledge',
|
|
203
|
+
'POST /organizations/{org_slug}/projects/{project_id}/documents/{document_id}/comments/{thread_id}/comments/{comment_id}/acknowledge',
|
|
199
204
|
'POST /organizations/{org_slug}/documents/{document_id}/read-events',
|
|
200
205
|
'POST /organizations/{org_slug}/documents/{document_id}/versions/{version}/restore',
|
|
201
206
|
'POST /organizations/{org_slug}/environments/',
|
|
@@ -274,6 +279,16 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
|
|
|
274
279
|
'POST /organizations/{org_slug}/prompts/',
|
|
275
280
|
'POST /organizations/{org_slug}/prompts/run',
|
|
276
281
|
'POST /organizations/{org_slug}/prompts/{namespace}/{slug}/override',
|
|
282
|
+
'DELETE /organizations/{org_slug}/prompts/{namespace}/{slug}',
|
|
283
|
+
'DELETE /organizations/{org_slug}/prompts/{namespace}/{slug}/labels/{label}',
|
|
284
|
+
'GET /organizations/{org_slug}/prompts/resolve',
|
|
285
|
+
'GET /organizations/{org_slug}/prompts/{namespace}/{slug}',
|
|
286
|
+
'GET /organizations/{org_slug}/prompts/{namespace}/{slug}/versions',
|
|
287
|
+
'GET /organizations/{org_slug}/prompts/{namespace}/{slug}/versions/{n}',
|
|
288
|
+
'POST /organizations/{org_slug}/prompts/{namespace}/{slug}/versions',
|
|
289
|
+
'PUT /organizations/{org_slug}/prompts/{namespace}/{slug}/default-label',
|
|
290
|
+
'PUT /organizations/{org_slug}/prompts/{namespace}/{slug}/labels/{label}',
|
|
291
|
+
'PUT /organizations/{org_slug}/prompts/{namespace}/{slug}/versions/{n}/evaluation',
|
|
277
292
|
'POST /prompts/',
|
|
278
293
|
'POST /prompts/{namespace}/{slug}/versions',
|
|
279
294
|
'PUT /organizations/{org_slug}/agent-platform-config/',
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"""Membership of the organization in the request path.
|
|
2
2
|
|
|
3
|
-
Most permissions are not scoped to an organization.
|
|
4
|
-
``/organizations/{org_slug}/...``
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
``
|
|
9
|
-
|
|
3
|
+
Most permissions are not scoped to an organization. Most routers
|
|
4
|
+
mounted at ``/organizations/{org_slug}/...`` are in ``org_router``
|
|
5
|
+
(:mod:`imbi.api.endpoints.organizations`), which has
|
|
6
|
+
:func:`member_org_id` as a router dependency, so that a caller can
|
|
7
|
+
only use the routes of an organization that they are a member of
|
|
8
|
+
(``MEMBER_OF``). Three mounts are outside it and add their own check:
|
|
9
|
+
the document presence and document analytics routers use
|
|
10
|
+
:func:`member_org_id` on a direct mount, and the ticket harness router
|
|
11
|
+
uses ``harness_member_org_id`` on a direct mount. A
|
|
12
|
+
caller that is not a member gets ``403 organization_forbidden``, as in
|
|
13
|
+
:mod:`imbi.api.auth.autonomous`. There is no admin bypass.
|
|
10
14
|
|
|
11
15
|
A member's permissions on these routes are those of their role in that
|
|
12
16
|
organization only (issue #455): :func:`check_member` narrows
|
|
@@ -16,13 +20,16 @@ the route's own, so each ``require_permission`` check sees the narrowed
|
|
|
16
20
|
set.
|
|
17
21
|
"""
|
|
18
22
|
|
|
23
|
+
import hashlib
|
|
19
24
|
import logging
|
|
25
|
+
import time
|
|
20
26
|
import typing
|
|
21
27
|
|
|
22
28
|
import fastapi
|
|
29
|
+
import pydantic
|
|
23
30
|
|
|
24
31
|
from imbi.api.auth import autonomous, permissions
|
|
25
|
-
from imbi.common import graph
|
|
32
|
+
from imbi.common import graph, valkey
|
|
26
33
|
from imbi.common.auth import permissions as common_permissions
|
|
27
34
|
|
|
28
35
|
LOGGER = logging.getLogger(__name__)
|
|
@@ -34,6 +41,21 @@ OPTIONAL MATCH (u:User {{email: {email}}})-[:MEMBER_OF]->(o)
|
|
|
34
41
|
RETURN o.id AS id, u IS NOT NULL AS member
|
|
35
42
|
"""
|
|
36
43
|
|
|
44
|
+
#: How long :func:`cached_member_org_id` keeps a positive result.
|
|
45
|
+
#: A user who is removed from an organization, or whose role changes,
|
|
46
|
+
#: can keep the old access on these routes for this long.
|
|
47
|
+
MEMBER_CACHE_TTL_SECONDS = 30
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class _CachedMembership(pydantic.BaseModel):
|
|
51
|
+
"""A :func:`cached_member_org_id` entry in Valkey."""
|
|
52
|
+
|
|
53
|
+
org_id: typing.Annotated[str, pydantic.Field(min_length=1)]
|
|
54
|
+
permissions: list[str]
|
|
55
|
+
#: Wall-clock (``time.time()``) end of the entry. The Valkey expiry
|
|
56
|
+
#: starts when the write arrives, so a slow write can outlive it.
|
|
57
|
+
expires_at: float
|
|
58
|
+
|
|
37
59
|
|
|
38
60
|
def organization_id(value: object, slug: str) -> str:
|
|
39
61
|
"""The id of an organization node, parsed.
|
|
@@ -103,6 +125,109 @@ async def member_org_id(
|
|
|
103
125
|
return await check_member(org_slug, db, auth)
|
|
104
126
|
|
|
105
127
|
|
|
128
|
+
async def cached_member_org_id(
|
|
129
|
+
org_slug: str,
|
|
130
|
+
db: graph.Pool,
|
|
131
|
+
auth: typing.Annotated[
|
|
132
|
+
permissions.AuthContext, fastapi.Depends(permissions.get_current_user)
|
|
133
|
+
],
|
|
134
|
+
) -> str:
|
|
135
|
+
""":func:`member_org_id` that keeps a positive result for a user in
|
|
136
|
+
Valkey for :data:`MEMBER_CACHE_TTL_SECONDS`. A refusal is not kept.
|
|
137
|
+
|
|
138
|
+
Only for the document heartbeat routes, which a client calls every
|
|
139
|
+
few seconds (issue #1112). A removed or changed member keeps the old
|
|
140
|
+
access for the TTL, so use it only on routes that read data or
|
|
141
|
+
record the caller's own activity.
|
|
142
|
+
|
|
143
|
+
Raises:
|
|
144
|
+
403: The caller is not a member of the organization.
|
|
145
|
+
404: No such organization.
|
|
146
|
+
|
|
147
|
+
"""
|
|
148
|
+
key = _member_cache_key(org_slug, auth)
|
|
149
|
+
client = None
|
|
150
|
+
if key is not None:
|
|
151
|
+
try:
|
|
152
|
+
client = valkey.get_client()
|
|
153
|
+
cached = await client.get(key)
|
|
154
|
+
except Exception: # noqa: BLE001
|
|
155
|
+
LOGGER.debug('membership cache read failed', exc_info=True)
|
|
156
|
+
client = cached = None
|
|
157
|
+
if cached is not None:
|
|
158
|
+
try:
|
|
159
|
+
entry = _CachedMembership.model_validate_json(cached)
|
|
160
|
+
except pydantic.ValidationError:
|
|
161
|
+
LOGGER.debug('discarding malformed membership cache entry')
|
|
162
|
+
else:
|
|
163
|
+
if time.time() < entry.expires_at:
|
|
164
|
+
auth.permissions = set(entry.permissions)
|
|
165
|
+
return entry.org_id
|
|
166
|
+
# The TTL counts from the graph read, so a slow read or write does
|
|
167
|
+
# not make the entry live longer than the TTL after it.
|
|
168
|
+
expires_at = time.time() + MEMBER_CACHE_TTL_SECONDS
|
|
169
|
+
org_id = await check_member(org_slug, db, auth)
|
|
170
|
+
ttl_ms = int((expires_at - time.time()) * 1000)
|
|
171
|
+
if client is not None and key is not None and ttl_ms > 0:
|
|
172
|
+
try:
|
|
173
|
+
await client.set(
|
|
174
|
+
key,
|
|
175
|
+
_CachedMembership(
|
|
176
|
+
org_id=org_id,
|
|
177
|
+
permissions=sorted(auth.permissions),
|
|
178
|
+
expires_at=expires_at,
|
|
179
|
+
).model_dump_json(),
|
|
180
|
+
px=ttl_ms,
|
|
181
|
+
)
|
|
182
|
+
except Exception: # noqa: BLE001
|
|
183
|
+
LOGGER.debug('membership cache write failed', exc_info=True)
|
|
184
|
+
return org_id
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
def _member_cache_key(
|
|
188
|
+
org_slug: str, auth: permissions.AuthContext
|
|
189
|
+
) -> str | None:
|
|
190
|
+
"""The cache key of a membership result, or ``None`` when the
|
|
191
|
+
result is not cached.
|
|
192
|
+
|
|
193
|
+
The key has the permissions before :func:`check_member` narrows
|
|
194
|
+
them, because an API key with fewer scopes gets fewer permissions.
|
|
195
|
+
Only users are cached: a service account, or a request on behalf of
|
|
196
|
+
another principal, has more checks than the key holds.
|
|
197
|
+
"""
|
|
198
|
+
if auth.user is None or auth.on_behalf_of is not None:
|
|
199
|
+
return None
|
|
200
|
+
scopes = hashlib.sha256(
|
|
201
|
+
'\n'.join(sorted(auth.permissions)).encode()
|
|
202
|
+
).hexdigest()[:16]
|
|
203
|
+
return f'imbi:org-member:{org_slug}:{auth.user.email}:{scopes}'
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
async def forget_member_cache(org_slug: str) -> None:
|
|
207
|
+
"""Remove the cached membership results of ``org_slug``.
|
|
208
|
+
|
|
209
|
+
Call this when an organization is deleted or its slug changes, so
|
|
210
|
+
that a new organization with the slug does not accept a member of
|
|
211
|
+
the old one. ponytail: a check that read the graph before the
|
|
212
|
+
change can still write an entry after this; it expires after
|
|
213
|
+
:data:`MEMBER_CACHE_TTL_SECONDS`.
|
|
214
|
+
"""
|
|
215
|
+
try:
|
|
216
|
+
client = valkey.get_client()
|
|
217
|
+
keys: list[bytes | str] = [
|
|
218
|
+
key # pyright: ignore[reportUnknownVariableType]
|
|
219
|
+
async for key in client.scan_iter( # pyright: ignore[reportUnknownMemberType,reportUnknownVariableType]
|
|
220
|
+
match=f'imbi:org-member:{org_slug}:*'
|
|
221
|
+
)
|
|
222
|
+
]
|
|
223
|
+
if keys:
|
|
224
|
+
await client.delete(*keys)
|
|
225
|
+
except Exception: # noqa: BLE001
|
|
226
|
+
LOGGER.warning(
|
|
227
|
+
'membership cache purge for %r failed', org_slug, exc_info=True
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
|
|
106
231
|
async def check_member(
|
|
107
232
|
org_slug: str, db: graph.Graph, auth: permissions.AuthContext
|
|
108
233
|
) -> str:
|
|
@@ -16,7 +16,7 @@ organizations) is logged and keeps no edge: no organization shows it.
|
|
|
16
16
|
import logging
|
|
17
17
|
import typing
|
|
18
18
|
|
|
19
|
-
from imbi.common import graph
|
|
19
|
+
from imbi.common import clickhouse, graph
|
|
20
20
|
|
|
21
21
|
LOGGER = logging.getLogger(__name__)
|
|
22
22
|
|
|
@@ -64,3 +64,55 @@ async def backfill(db: graph.Graph) -> int:
|
|
|
64
64
|
if linked:
|
|
65
65
|
LOGGER.info('Linked %d documents to an organization', linked)
|
|
66
66
|
return linked
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
# The ClickHouse read rows written before they had ``org_id``, matched
|
|
70
|
+
# on their org slug. Two parallel arrays, not a Map: the driver sends a
|
|
71
|
+
# dict parameter as JSON, which ClickHouse cannot parse as a Map.
|
|
72
|
+
# ``mutations_sync = 2`` waits until every replica has the change, so
|
|
73
|
+
# the next run sees it. The WHERE matches only rows without ``org_id``,
|
|
74
|
+
# so a re-run changes nothing that an earlier run filled in.
|
|
75
|
+
_READ_TABLES: tuple[str, ...] = (
|
|
76
|
+
'document_read_events',
|
|
77
|
+
'document_read_sessions',
|
|
78
|
+
)
|
|
79
|
+
_ORGS: typing.LiteralString = (
|
|
80
|
+
'MATCH (o:Organization) WHERE o.id IS NOT NULL'
|
|
81
|
+
' RETURN o.slug AS slug, o.id AS id'
|
|
82
|
+
)
|
|
83
|
+
_MISSING = (
|
|
84
|
+
"SELECT count() AS c FROM imbi.{table} WHERE org_id = ''"
|
|
85
|
+
' AND has({{slugs:Array(String)}}, org_slug)'
|
|
86
|
+
)
|
|
87
|
+
_FILL = (
|
|
88
|
+
'ALTER TABLE imbi.{table} UPDATE org_id = transform('
|
|
89
|
+
"org_slug, {{slugs:Array(String)}}, {{ids:Array(String)}}, '')"
|
|
90
|
+
" WHERE org_id = '' AND has({{slugs:Array(String)}}, org_slug)"
|
|
91
|
+
' SETTINGS mutations_sync = 2'
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
async def clickhouse_backfill(db: graph.Graph) -> int:
|
|
96
|
+
"""Fill ``org_id`` in on the document read rows in ClickHouse that
|
|
97
|
+
have none, from their org slug; return the count of rows changed.
|
|
98
|
+
|
|
99
|
+
A row of an organization that no longer has its slug keeps no
|
|
100
|
+
``org_id``.
|
|
101
|
+
"""
|
|
102
|
+
records = await db.execute(_ORGS, {}, ['slug', 'id'])
|
|
103
|
+
if not records:
|
|
104
|
+
return 0
|
|
105
|
+
params = {
|
|
106
|
+
'slugs': [str(graph.parse_agtype(r['slug'])) for r in records],
|
|
107
|
+
'ids': [str(graph.parse_agtype(r['id'])) for r in records],
|
|
108
|
+
}
|
|
109
|
+
changed = 0
|
|
110
|
+
for table in _READ_TABLES:
|
|
111
|
+
rows = await clickhouse.query(_MISSING.format(table=table), params)
|
|
112
|
+
missing = int(rows[0]['c']) if rows else 0
|
|
113
|
+
if missing:
|
|
114
|
+
await clickhouse.command(_FILL.format(table=table), params)
|
|
115
|
+
changed += missing
|
|
116
|
+
if changed:
|
|
117
|
+
LOGGER.info('Filled org_id in on %d document read rows', changed)
|
|
118
|
+
return changed
|
|
@@ -32,8 +32,6 @@ from .operations_log import operations_log_router
|
|
|
32
32
|
from .organizations import organizations_router
|
|
33
33
|
from .plugin_entities import plugin_entities_router
|
|
34
34
|
from .plugins import plugins_router
|
|
35
|
-
from .project_integrations import project_integrations_router
|
|
36
|
-
from .project_plugins import project_plugins_router
|
|
37
35
|
from .prompts import prompts_router
|
|
38
36
|
from .roles import roles_router
|
|
39
37
|
from .sa_api_keys import sa_api_keys_router
|
|
@@ -71,8 +69,6 @@ prefixed_routers: list[fastapi.APIRouter] = [
|
|
|
71
69
|
plugin_entities_router,
|
|
72
70
|
plugins_router,
|
|
73
71
|
prompts_router,
|
|
74
|
-
project_integrations_router,
|
|
75
|
-
project_plugins_router,
|
|
76
72
|
roles_router,
|
|
77
73
|
sa_api_keys_router,
|
|
78
74
|
scoring_policies_router,
|
|
@@ -53,6 +53,13 @@ META_CACHE_TTL_SECONDS = 300
|
|
|
53
53
|
|
|
54
54
|
_META_KEY_PREFIX = 'imbi:document:readmeta'
|
|
55
55
|
|
|
56
|
+
#: Restricts read rows to one organization. Rows written before
|
|
57
|
+
#: ``org_id`` existed have an empty one and match on ``org_slug``.
|
|
58
|
+
ORG_FILTER: typing.LiteralString = (
|
|
59
|
+
'(org_id = {org_id:String}'
|
|
60
|
+
" OR (org_id = '' AND org_slug = {org_slug:String}))"
|
|
61
|
+
)
|
|
62
|
+
|
|
56
63
|
|
|
57
64
|
class DocumentReadMeta(pydantic.BaseModel):
|
|
58
65
|
"""Facts about a document needed to record and classify a read.
|
|
@@ -86,6 +93,7 @@ class DocumentReadEventRow(pydantic.BaseModel):
|
|
|
86
93
|
max_scroll_pct: int
|
|
87
94
|
clamped: int
|
|
88
95
|
is_final: int
|
|
96
|
+
org_id: str
|
|
89
97
|
|
|
90
98
|
|
|
91
99
|
class DocumentReadSessionRow(pydantic.BaseModel):
|
|
@@ -105,6 +113,7 @@ class DocumentReadSessionRow(pydantic.BaseModel):
|
|
|
105
113
|
is_view: int
|
|
106
114
|
is_read: int
|
|
107
115
|
finalized_at: datetime.datetime
|
|
116
|
+
org_id: str
|
|
108
117
|
|
|
109
118
|
|
|
110
119
|
def estimated_read_ms(content: str) -> int:
|
|
@@ -159,8 +168,9 @@ def classify(
|
|
|
159
168
|
return True, is_read
|
|
160
169
|
|
|
161
170
|
|
|
162
|
-
def _meta_key(
|
|
163
|
-
|
|
171
|
+
def _meta_key(org_id: str, document_id: str) -> str:
|
|
172
|
+
# Keyed by org ID, not slug: a slug changes when the org is renamed.
|
|
173
|
+
return f'{_META_KEY_PREFIX}:{org_id}:{document_id}'
|
|
164
174
|
|
|
165
175
|
|
|
166
176
|
# Resolves the document within the org through whichever vertex it is
|
|
@@ -177,7 +187,9 @@ _META_QUERY: typing.LiteralString = (
|
|
|
177
187
|
async def load_document_meta(
|
|
178
188
|
db: graph.Pool,
|
|
179
189
|
client: valkey_asyncio.Valkey | None,
|
|
190
|
+
*,
|
|
180
191
|
org_slug: str,
|
|
192
|
+
org_id: str,
|
|
181
193
|
document_id: str,
|
|
182
194
|
) -> DocumentReadMeta | None:
|
|
183
195
|
"""Read-meta for a document, cached in Valkey.
|
|
@@ -192,7 +204,7 @@ async def load_document_meta(
|
|
|
192
204
|
costs at most :data:`META_CACHE_TTL_SECONDS` of reads classified
|
|
193
205
|
against the previous revision's length.
|
|
194
206
|
"""
|
|
195
|
-
key = _meta_key(
|
|
207
|
+
key = _meta_key(org_id, document_id)
|
|
196
208
|
if client is not None:
|
|
197
209
|
try:
|
|
198
210
|
cached = await client.get(key)
|
|
@@ -261,8 +273,14 @@ async def record_events(rows: list[DocumentReadEventRow]) -> None:
|
|
|
261
273
|
# result independent of merge state, which ``FINAL`` would not do
|
|
262
274
|
# cheaply here: ``session_id`` is the third key column, so filtering on
|
|
263
275
|
# it alone cannot use the primary key.
|
|
276
|
+
#
|
|
277
|
+
# Neither level groups on ``org_slug``. A document is in one organization,
|
|
278
|
+
# so ``document_id`` already sets the organization. A session that spans
|
|
279
|
+
# an organization rename then gives one row with the newest slug, not
|
|
280
|
+
# one row for each slug.
|
|
264
281
|
_SESSION_AGGREGATE_SQL = """
|
|
265
|
-
SELECT org_slug,
|
|
282
|
+
SELECT argMax(seq_org_slug, seq_recorded_at) AS org_slug,
|
|
283
|
+
max(seq_org_id) AS org_id,
|
|
266
284
|
document_id,
|
|
267
285
|
session_id,
|
|
268
286
|
any(reader_principal) AS principal,
|
|
@@ -275,7 +293,12 @@ SELECT org_slug,
|
|
|
275
293
|
sum(engaged_ms) AS engaged_ms,
|
|
276
294
|
max(max_scroll_pct) AS max_scroll_pct
|
|
277
295
|
FROM (
|
|
278
|
-
SELECT org_slug,
|
|
296
|
+
SELECT argMax(org_slug, recorded_at) AS seq_org_slug,
|
|
297
|
+
-- An old row has an empty `org_id`; `max` keeps the one that
|
|
298
|
+
-- a newer row of the same session has. Not aliased back to
|
|
299
|
+
-- `org_id` or `org_slug`, for the same reason as
|
|
300
|
+
-- `seq_started_at` below: the outer select uses those names.
|
|
301
|
+
max(org_id) AS seq_org_id,
|
|
279
302
|
document_id,
|
|
280
303
|
session_id,
|
|
281
304
|
seq,
|
|
@@ -295,19 +318,27 @@ FROM (
|
|
|
295
318
|
argMax(max_scroll_pct, recorded_at) AS max_scroll_pct
|
|
296
319
|
FROM imbi.document_read_events
|
|
297
320
|
WHERE session_id IN {session_ids:Array(String)}
|
|
298
|
-
GROUP BY
|
|
321
|
+
GROUP BY document_id, session_id, seq
|
|
299
322
|
)
|
|
300
|
-
GROUP BY
|
|
323
|
+
GROUP BY document_id, session_id
|
|
301
324
|
"""
|
|
302
325
|
|
|
303
326
|
# A reader's own final flush finalizes only its own sessions: the
|
|
304
327
|
# session IDs come from the request body (#1044).
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
328
|
+
#
|
|
329
|
+
# The organization check is in HAVING, on the aggregated session. In the
|
|
330
|
+
# inner WHERE it would drop a legacy row (empty ``org_id``, slug from
|
|
331
|
+
# before a rename) of the same session, and lose its ``engaged_ms``.
|
|
332
|
+
_SCOPED_SESSION_AGGREGATE_SQL = (
|
|
333
|
+
_SESSION_AGGREGATE_SQL.replace(
|
|
334
|
+
'WHERE session_id IN {session_ids:Array(String)}',
|
|
335
|
+
'WHERE session_id IN {session_ids:Array(String)}'
|
|
336
|
+
' AND document_id = {document_id:String}'
|
|
337
|
+
' AND principal = {principal:String}',
|
|
338
|
+
)
|
|
339
|
+
+ 'HAVING '
|
|
340
|
+
+ ORG_FILTER
|
|
341
|
+
+ '\n'
|
|
311
342
|
)
|
|
312
343
|
|
|
313
344
|
|
|
@@ -315,6 +346,7 @@ class SessionScope(typing.NamedTuple):
|
|
|
315
346
|
"""The organization, document, and reader of the sessions."""
|
|
316
347
|
|
|
317
348
|
org_slug: str
|
|
349
|
+
org_id: str
|
|
318
350
|
document_id: str
|
|
319
351
|
principal: str
|
|
320
352
|
|
|
@@ -373,6 +405,7 @@ async def finalize_sessions(
|
|
|
373
405
|
is_view=int(is_view),
|
|
374
406
|
is_read=int(is_read),
|
|
375
407
|
finalized_at=now,
|
|
408
|
+
org_id=str(row.get('org_id') or ''),
|
|
376
409
|
)
|
|
377
410
|
)
|
|
378
411
|
if not rows:
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"""The org-scoping join shared by every document query.
|
|
2
2
|
|
|
3
3
|
A document hangs off exactly one vertex -- a ``Project``, a
|
|
4
|
-
``ProjectType``, or a ``User`` -- and
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
``ProjectType``, or a ``User`` -- and has a ``BELONGS_TO`` edge to its
|
|
5
|
+
organization. That edge is the authorization boundary for documents: a
|
|
6
|
+
query that does not match it returns another organization's document.
|
|
7
|
+
A user document stays in its organization when the user leaves it, and
|
|
8
|
+
when the user is deleted (then it has no attachment).
|
|
8
9
|
|
|
9
10
|
That made it worth having in one place. Callers concatenate a fragment
|
|
10
11
|
with their own ``RETURN``/``WITH`` tail:
|
|
@@ -12,26 +13,24 @@ with their own ``RETURN``/``WITH`` tail:
|
|
|
12
13
|
query = _document_scope.BY_ID + 'RETURN d.created_by AS created_by'
|
|
13
14
|
|
|
14
15
|
Both fragments leave ``d`` (the document) and ``p``/``pt``/``u`` (the
|
|
15
|
-
attachment candidates, at most one non-null
|
|
16
|
-
|
|
16
|
+
attachment candidates, at most one non-null; all null for the document
|
|
17
|
+
of a deleted user) in scope, end in a ``WHERE`` clause that callers can
|
|
18
|
+
extend with ``AND``, and require an ``org_slug`` parameter -- plus
|
|
19
|
+
``document_id`` for :data:`BY_ID`.
|
|
17
20
|
"""
|
|
18
21
|
|
|
19
22
|
import typing
|
|
20
23
|
|
|
21
|
-
# The
|
|
22
|
-
#
|
|
23
|
-
# itself is matched.
|
|
24
|
+
# The organization and the three attachment kinds. The ``WHERE`` only
|
|
25
|
+
# gives callers a clause to extend with ``AND``. Everything above it
|
|
26
|
+
# differs only in how the document itself is matched.
|
|
24
27
|
_ATTACHMENT_TAIL: typing.LiteralString = """
|
|
28
|
+
MATCH (d)-[:BELONGS_TO]->(:Organization {{slug: {org_slug}}})
|
|
25
29
|
OPTIONAL MATCH (d)-[:ATTACHED_TO]->(p:Project)
|
|
26
|
-
-[:OWNED_BY]->(:Team)
|
|
27
|
-
-[:BELONGS_TO]->(:Organization {{slug: {org_slug}}})
|
|
28
30
|
OPTIONAL MATCH (d)-[:ATTACHED_TO]->(pt:ProjectType)
|
|
29
|
-
-[:BELONGS_TO]->(:Organization {{slug: {org_slug}}})
|
|
30
31
|
OPTIONAL MATCH (d)-[:ATTACHED_TO]->(u:User)
|
|
31
|
-
-[:MEMBER_OF]->(:Organization {{slug: {org_slug}}})
|
|
32
|
-
<-[:BELONGS_TO]-(d)
|
|
33
32
|
WITH d, p, pt, u
|
|
34
|
-
WHERE
|
|
33
|
+
WHERE d IS NOT NULL
|
|
35
34
|
"""
|
|
36
35
|
|
|
37
36
|
#: One document by id, scoped to the org. Needs ``document_id``.
|
|
@@ -80,7 +80,6 @@ def _unprocessable(detail: str) -> fastapi.HTTPException:
|
|
|
80
80
|
|
|
81
81
|
agent_platform_config_router = fastapi.APIRouter(
|
|
82
82
|
tags=['Agent Platform'],
|
|
83
|
-
dependencies=[fastapi.Depends(organizations.member_org_id)],
|
|
84
83
|
)
|
|
85
84
|
|
|
86
85
|
|
|
@@ -184,7 +183,6 @@ async def put_agent_platform_config(
|
|
|
184
183
|
|
|
185
184
|
agent_marketplaces_router = fastapi.APIRouter(
|
|
186
185
|
tags=['Agent Platform'],
|
|
187
|
-
dependencies=[fastapi.Depends(organizations.member_org_id)],
|
|
188
186
|
)
|
|
189
187
|
|
|
190
188
|
|
|
@@ -36,14 +36,12 @@ LOGGER = logging.getLogger(__name__)
|
|
|
36
36
|
|
|
37
37
|
ai_models_router = fastapi.APIRouter(
|
|
38
38
|
tags=['AI Models'],
|
|
39
|
-
dependencies=[fastapi.Depends(organizations.member_org_id)],
|
|
40
39
|
)
|
|
41
40
|
|
|
42
41
|
#: Shares the ``ai-providers`` prefix with ``ai_providers_router``: the
|
|
43
42
|
#: route is addressed by provider, but its whole job is creating models.
|
|
44
43
|
ai_provider_imports_router = fastapi.APIRouter(
|
|
45
44
|
tags=['AI Models'],
|
|
46
|
-
dependencies=[fastapi.Depends(organizations.member_org_id)],
|
|
47
45
|
)
|
|
48
46
|
|
|
49
47
|
OrgId = organizations.MemberOrgId
|