imbi-api 2.68.0__tar.gz → 2.69.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.68.0 → imbi_api-2.69.0}/PKG-INFO +2 -2
- {imbi_api-2.68.0 → imbi_api-2.69.0}/pyproject.toml +2 -2
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/agent_api.py +4 -15
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/agent_api_routes.py +12 -4
- imbi_api-2.69.0/src/imbi/api/clickhouse_orgs.py +135 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/commit_sync/service.py +2 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/document_orgs.py +10 -27
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/drift.py +9 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/drift_classifier.py +1 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/email/__init__.py +2 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/email/models.py +3 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/_document_events.py +2 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/_document_reads.py +7 -9
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/_helpers.py +17 -4
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/ai_models.py +31 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/comments.py +16 -4
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/dashboard.py +12 -7
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/document_analytics.py +8 -13
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/document_likes.py +18 -6
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/harness.py +7 -3
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/organizations.py +5 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_deployments.py +30 -4
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/projects.py +7 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/pull_requests.py +11 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/releases.py +12 -2
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/scoring.py +18 -12
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/tickets.py +173 -7
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/user_activity.py +113 -98
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/workflow_runs.py +934 -158
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/workflows.py +230 -17
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/maintenance/log.py +4 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/maintenance/operations.py +23 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/maintenance/registry.py +32 -6
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/maintenance/worker.py +6 -3
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/plugins/lifecycle_dispatch.py +18 -4
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/plugins/release_dispatch.py +7 -2
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/pr_sync/service.py +2 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/prompts/release_notes_system.md +6 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/release_promote/service.py +1 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/scoring/queue.py +12 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/tickets/__init__.py +21 -7
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/tickets/announce.py +16 -7
- imbi_api-2.69.0/src/imbi/api/tickets/code_channel.py +208 -0
- imbi_api-2.69.0/src/imbi/api/tickets/handoffs.py +272 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/tickets/log.py +5 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/tickets/schemata.toml +11 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/tickets/store.py +455 -32
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/workflows/__init__.py +21 -5
- imbi_api-2.69.0/src/imbi/api/workflows/deployment_trigger.py +607 -0
- imbi_api-2.69.0/src/imbi/api/workflows/manual.py +187 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/workflows/runs.py +239 -37
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/workflows/runtime_schemata.toml +38 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/workflows/schemata.toml +37 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/workflows/store.py +48 -7
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/workflows/sweeper.py +43 -4
- imbi_api-2.69.0/src/imbi/api/workflows/ticket_steps.py +1017 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/workflows/ticket_trigger.py +8 -2
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_agent_api.py +1 -7
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_agent_task_harness.py +24 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_agent_task_log.py +29 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ai_models.py +40 -2
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_comments.py +2 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_cross_org_reads.py +115 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_document_reads.py +2 -3
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_document_reads_sql.py +8 -14
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_deployments.py +52 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_deployments_autonomous.py +6 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_projects.py +9 -2
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_releases.py +46 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_scoring.py +44 -26
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ticket_handoff.py +317 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ticket_reopen.py +31 -0
- imbi_api-2.69.0/tests/endpoints/test_ticket_slack_channel.py +253 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_user_activity.py +14 -9
- imbi_api-2.69.0/tests/endpoints/test_workflow_create_ticket.py +498 -0
- imbi_api-2.69.0/tests/endpoints/test_workflow_run_workflow.py +1110 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_workflow_runs.py +826 -47
- imbi_api-2.69.0/tests/endpoints/test_workflow_ticket_steps.py +1805 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_workflows.py +389 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/support.py +21 -0
- imbi_api-2.69.0/tests/test_clickhouse_orgs.py +192 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_cves.py +3 -1
- imbi_api-2.69.0/tests/test_dashboard_org_reads.py +74 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_deployment_array_drop.py +3 -1
- imbi_api-2.69.0/tests/test_deployment_recorded_trigger.py +806 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_drift.py +24 -5
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_lifecycle_dispatch.py +17 -14
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_maintenance_log.py +13 -2
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_maintenance_operations.py +3 -1
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_maintenance_worker.py +3 -2
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_release_promote_service.py +2 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_ticket_state_trigger.py +48 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_workflow_reconcile.py +12 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/.gitignore +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/README.md +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/moon.yml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/README.md +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/agent_tools.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/ai_catalog_orgs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/app.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/authorization_codes.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/autonomous.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/internal_services.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/local_auth.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/login_providers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/membership.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/models.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/oauth_clients.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/organizations.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/password.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/permissions.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/principals.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/seed.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/sessions.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/tokens.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/auth/totp.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/blueprint_attributes.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/blueprint_compliance.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/blueprint_sections.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/blueprint_values.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/commit_sync/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/commit_sync/queue.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/component_facts.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/component_governance_orgs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/conversation_orgs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/cves.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/deployment_sweeper.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/deployment_sync/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/deployment_sync/queue.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/deployment_sync/service.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/documents/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/documents/read_sweeper.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/domain/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/domain/models.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/domain/scoring.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/email/client.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/email/dependencies.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/email/templates/base.html +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/email/templates/base.txt +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/email/templates/password_reset.html +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/email/templates/password_reset.txt +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/email/templates/welcome.html +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/email/templates/welcome.txt +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/email/templates.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/_credentials.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/_document_history.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/_document_scope.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/_json_fields.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/_local_time.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/_pagination.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/_request_urls.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/_search_index.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/admin.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/admin_plugins.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/agent_platform.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/agent_usage.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/agents.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/ai_model_defaults.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/ai_providers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/ai_proxy.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/api_keys.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/auth.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/auth_providers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/blueprints.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/client_credentials.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/components.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/cves.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/document_presence.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/document_templates.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/document_versions.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/documents.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/environments.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/events.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/graph_query.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/iggy_connectors.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/integration_workflow_steps.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/integrations.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/link_definitions.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/local_auth.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/maintenance.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/mcp_servers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/mfa.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/oauth_metadata.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/operations_log.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/plugin_edges.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/plugin_entities.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/plugins.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_analysis.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_commit_sync.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_configuration.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_incidents.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_integrations.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_lifecycle.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_logs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_plugins.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_pr_sync.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_stars.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/project_types.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/prompts.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/release_periods.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/roles.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/sa_api_keys.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/scoring_policies.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/search.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/secret_broker.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/service_accounts.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/status.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/tags.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/teams.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/ticket_harness.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/uploads.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/users.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/endpoints/webhooks.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/entrypoint.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/graph_sql.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/harness/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/harness/auth.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/harness/egress.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/harness/marketplaces.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/harness/metrics.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/harness/platform.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/harness/schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/harness/store.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/harness/sweeper.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/harness/tokens.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/identity/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/identity/attribution.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/identity/endpoints.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/identity/errors.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/identity/flows.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/identity/host_integration.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/identity/models.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/identity/repository.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/identity/resolution.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/identity/state.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/identity/sweeper.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/iggy_metrics.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/lifespans.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/llm/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/llm/dependencies.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/llm/generate.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/llm/prompted.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/llm/tokens.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/maintenance/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/maintenance/state.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/mcp_server_orgs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/mcp_test.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/middleware/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/middleware/rate_limit.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/model_calls/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/model_calls/schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/models.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/openapi.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/orphan_releases.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/plugins/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/plugins/assignment_writer.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/plugins/assignments.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/plugins/credentials.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/plugins/installer.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/plugins/lifecycle.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/plugins/reload.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/plugins/resolution.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/plugins/schemas.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/pr_sync/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/pr_sync/queue.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/preferences/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/preferences/schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/prompt_orgs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/prompts/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/prompts/seed.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/py.typed +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/relationships.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/release_periods.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/release_promote/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/release_promote/queue.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/sbom.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/scoring/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/secret_broker/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/secret_broker/audit.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/secret_broker/broker.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/secret_broker/identity.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/secret_broker/model_key.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/secret_broker/providers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/secret_broker/schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/secret_broker/store.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/settings.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/storage/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/storage/client.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/storage/dependencies.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/storage/thumbnails.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/storage/validation.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/tags.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/teams.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/tickets/custom_fields.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/tickets/sweeper.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/workflows/plugin_calls.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/src/imbi/api/workflows/tickets.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_authentication.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_authorization.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_encryption.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_internal_services.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_login_providers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_membership.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_oauth_server.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_organizations.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_permissions.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_seed.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_sessions.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/auth/test_totp.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/clickhouse/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/clickhouse/test_client.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/clickhouse/test_init.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/clickhouse/test_privacy.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/email/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/email/test_audit_clickhouse.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/email/test_client.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/email/test_init.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/email/test_integration.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/email/test_models.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/email/test_templates.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_admin.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_admin_plugins.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_agent_platform.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_agent_task_actions.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_agent_task_relations.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_agent_tasks.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_agent_usage.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_agents.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ai_model_defaults.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ai_providers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ai_proxy.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_api_keys.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_auth.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_auth_providers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_blueprints.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_caller_org_slugs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_client_credentials.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_comments_attention.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_components.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_components_graph.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_credentials.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_cves.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_dashboard.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_document_analytics.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_document_likes.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_document_presence.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_document_templates.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_document_versions.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_documents.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_environments.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_events.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_github_app_repository.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_graph_query.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_harness.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_harness_egress.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_harness_secrets.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_iggy_connectors.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_init.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_integration_workflow_steps.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_integration_workflow_steps_choices.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_integrations.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_json_fields.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_link_definitions.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_local_auth.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_maintenance.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_mcp_servers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_mfa.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_operations_log.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_organizations.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_pagination.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_person_tickets.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_plugin_label_validation.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_plugins.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_analysis.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_commit_sync.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_configuration.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_incidents.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_integrations.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_lifecycle.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_logs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_plugins.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_response_surfacing.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_stars.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_project_types.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_projects_bulk_graph.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_projects_helpers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_prompt_decisions.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_prompt_generative.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_prompts.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_pull_requests.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_release_periods_graph.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_request_urls.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_roles.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_sa_api_keys.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_scoring_policies.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_search.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_search_index.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_secret_broker.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_service_accounts.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_service_writeback.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_shared_identifier.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_status.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_tags.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_teams.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ticket_agent_activity.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ticket_attributes.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ticket_custom_fields.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ticket_links.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ticket_units.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_ticket_waiting.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_uploads.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_user_preferences.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_users.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_webhooks.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_workflow_run_history.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/endpoints/test_workflow_triggers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/marketplaces/claude-code.json +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/release_2_58/harness_schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/release_2_58/tickets_schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/release_a/harness_schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/release_a/tickets_schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/release_a_minus_1/agent_runtime_schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/release_a_minus_1/harness_schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/release_b/harness_schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/release_b/tickets_schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/release_b1/harness_schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/release_b1/tickets_schemata.toml +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/sbom/npm-realistic.json +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/sbom/pypi-realistic.json +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/fixtures/sbom/tiny.json +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/identity/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/identity/test_endpoints.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/identity/test_errors.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/identity/test_flows.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/identity/test_host_integration.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/identity/test_repository.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/identity/test_resolution.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/identity/test_state.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/identity/test_sweeper.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/marketplace_support.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/middleware/test_rate_limit.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/secret_support.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/storage/__init__.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/storage/test_client.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/storage/test_init.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/storage/test_thumbnails.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/storage/test_validation.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_agent_platform.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_agent_task_events_e2e.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_agent_tools.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_ai_catalog_orgs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_ai_provider_tokens.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_app.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_assignment_writer.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_auth_settings.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_blueprint_attributes.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_blueprint_compliance.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_blueprint_values.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_blueprints.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_clickhouse_project_ids.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_commit_sync_queue.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_commit_sync_service.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_component_facts.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_deployment_sweeper.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_deployment_sync_queue.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_deployment_sync_service.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_document_org_scope.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_document_orgs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_drift_classifier.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_entrypoint.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_graph_sql.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_identity_attribution.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_iggy_metrics.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_init.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_installer.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_lifespans.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_maintenance_state.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_mcp_server_orgs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_model_calls.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_models.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_openapi.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_orphan_releases.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_plugin_schemas.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_plugins.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_plugins_assignments.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_plugins_credentials.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_pr_sync_queue.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_pr_sync_service.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_projects_drift_ranges.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_prompt_orgs.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_prompt_seed.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_prompted.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_pull_request_resync_clickhouse.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_pull_request_reviews_clickhouse.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_pull_requests_pending_deploy.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_release_dispatch.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_sbom.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_scoring_queue.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_scoring_triggers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_secret_broker.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_secret_github_app.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_secret_identity.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_secret_mcp_credential.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_secret_providers.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_settings.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_tags.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.0}/tests/test_tickets_rename.py +0 -0
- {imbi_api-2.68.0 → imbi_api-2.69.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.69.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.69.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.69.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.69.0",
|
|
34
34
|
"jinja2",
|
|
35
35
|
"jsonpatch>=1.33",
|
|
36
36
|
"jsonschema>=4.26",
|
|
@@ -19,8 +19,8 @@ route and refuses it:
|
|
|
19
19
|
(:mod:`imbi.api.auth.agent_api_routes`) or refused above; a test
|
|
20
20
|
fails on an unclassified route, so a new route needs a decision;
|
|
21
21
|
- for an organization that is not the token's: the ``org_slug`` (or,
|
|
22
|
-
on the organization routes, ``slug``) path parameter
|
|
23
|
-
|
|
22
|
+
on the organization routes, ``slug``) path parameter must be the
|
|
23
|
+
token's ``org_slug`` claim. A
|
|
24
24
|
``project_id`` path parameter must name a project of that
|
|
25
25
|
organization (404 otherwise): some project routes do not check that
|
|
26
26
|
the project is in the path's organization. An allowed route with no
|
|
@@ -98,16 +98,6 @@ GLOBAL_SAFE: dict[str, str] = {
|
|
|
98
98
|
'GET /status': 'service status',
|
|
99
99
|
'GET /users/me': 'the caller itself',
|
|
100
100
|
'GET /users/me/permissions': 'the caller itself',
|
|
101
|
-
'GET /scores/history-by-team': (
|
|
102
|
-
'the required org query parameter is checked'
|
|
103
|
-
),
|
|
104
|
-
'GET /scores/history-feed': (
|
|
105
|
-
'the required org query parameter is checked'
|
|
106
|
-
),
|
|
107
|
-
'GET /scores/monthly-improvement': (
|
|
108
|
-
'the required org query parameter is checked'
|
|
109
|
-
),
|
|
110
|
-
'GET /scores/rollup': 'the required org query parameter is checked',
|
|
111
101
|
}
|
|
112
102
|
|
|
113
103
|
_PROJECT_IN_ORG: typing.LiteralString = """
|
|
@@ -216,15 +206,14 @@ async def _require_org(
|
|
|
216
206
|
org_slug: str,
|
|
217
207
|
error: str,
|
|
218
208
|
) -> None:
|
|
219
|
-
"""The path
|
|
220
|
-
|
|
209
|
+
"""The path organization must be ``org_slug``, and a path project
|
|
210
|
+
must be in it."""
|
|
221
211
|
params = request.path_params
|
|
222
212
|
for slug in (
|
|
223
213
|
params.get('org_slug'),
|
|
224
214
|
params.get('slug')
|
|
225
215
|
if module == 'imbi.api.endpoints.organizations'
|
|
226
216
|
else None,
|
|
227
|
-
request.query_params.get('org'),
|
|
228
217
|
):
|
|
229
218
|
if slug is not None and slug != org_slug:
|
|
230
219
|
raise _forbidden(
|
|
@@ -145,6 +145,10 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
145
145
|
'GET /organizations/{org_slug}/pull-requests/activity',
|
|
146
146
|
'GET /organizations/{org_slug}/pull-requests/pending-deploy',
|
|
147
147
|
'GET /organizations/{org_slug}/reports/problem-packages',
|
|
148
|
+
'GET /organizations/{org_slug}/scores/history-by-team',
|
|
149
|
+
'GET /organizations/{org_slug}/scores/history-feed',
|
|
150
|
+
'GET /organizations/{org_slug}/scores/monthly-improvement',
|
|
151
|
+
'GET /organizations/{org_slug}/scores/rollup',
|
|
148
152
|
'GET /organizations/{org_slug}/search',
|
|
149
153
|
'GET /organizations/{org_slug}/tags/',
|
|
150
154
|
'GET /organizations/{org_slug}/tags/{tag_slug}',
|
|
@@ -168,10 +172,6 @@ ALLOWED_ROUTES: frozenset[str] = frozenset(
|
|
|
168
172
|
'GET /organizations/{slug}',
|
|
169
173
|
'GET /organizations/{slug}/members',
|
|
170
174
|
'GET /plugins/{slug}/manifest',
|
|
171
|
-
'GET /scores/history-by-team',
|
|
172
|
-
'GET /scores/history-feed',
|
|
173
|
-
'GET /scores/monthly-improvement',
|
|
174
|
-
'GET /scores/rollup',
|
|
175
175
|
'GET /scoring/policies/',
|
|
176
176
|
'GET /scoring/policies/{slug}',
|
|
177
177
|
'GET /status',
|
|
@@ -308,6 +308,7 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
|
|
|
308
308
|
'DELETE /organizations/{org_slug}/tickets/{short_id}/links',
|
|
309
309
|
'DELETE /organizations/{org_slug}/tickets/{short_id}/projects/{project_id}',
|
|
310
310
|
'DELETE /organizations/{org_slug}/tickets/{short_id}/requires/{prerequisite}',
|
|
311
|
+
'DELETE /organizations/{org_slug}/tickets/{short_id}/slack-channel',
|
|
311
312
|
'PATCH /organizations/{org_slug}/tickets/{short_id}',
|
|
312
313
|
'POST /organizations/{org_slug}/tickets/',
|
|
313
314
|
'POST /organizations/{org_slug}/tickets/subject',
|
|
@@ -324,10 +325,12 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
|
|
|
324
325
|
'POST /organizations/{org_slug}/tickets/{short_id}/requests/{request_id}/resolve',
|
|
325
326
|
'POST /organizations/{org_slug}/tickets/{short_id}/resume',
|
|
326
327
|
'POST /organizations/{org_slug}/tickets/{short_id}/retry',
|
|
328
|
+
'POST /organizations/{org_slug}/tickets/{short_id}/slack-channel/start',
|
|
327
329
|
'POST /organizations/{org_slug}/tickets/{short_id}/status',
|
|
328
330
|
'PUT /organizations/{org_slug}/tickets/{short_id}/parent',
|
|
329
331
|
'PUT /organizations/{org_slug}/tickets/{short_id}/projects/{project_id}',
|
|
330
332
|
'PUT /organizations/{org_slug}/tickets/{short_id}/requires/{prerequisite}',
|
|
333
|
+
'PUT /organizations/{org_slug}/tickets/{short_id}/slack-channel',
|
|
331
334
|
# Credentials and data outside Imbi: integrations, project integration assignments, webhooks, project configuration stores (values:fetch and history:fetch return secret values)
|
|
332
335
|
'DELETE /organizations/{org_slug}/integrations/{slug}',
|
|
333
336
|
'DELETE /organizations/{org_slug}/projects/{project_id}/configuration/{key:path}',
|
|
@@ -365,9 +368,14 @@ REFUSED_ROUTES: frozenset[str] = frozenset(
|
|
|
365
368
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/agent-task',
|
|
366
369
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/agent-task/cancel',
|
|
367
370
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/assign-ticket',
|
|
371
|
+
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/create-ticket',
|
|
368
372
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/email',
|
|
373
|
+
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/get-ticket',
|
|
369
374
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/retry',
|
|
375
|
+
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/run-workflow',
|
|
376
|
+
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/run-workflow/cancel',
|
|
370
377
|
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/slack',
|
|
378
|
+
'POST /organizations/{org_slug}/workflows/{slug}/runs/{run_id}/steps/{node_id}/update-ticket',
|
|
371
379
|
'GET /organizations/{org_slug}/workflow-runs/side-effects/deployments',
|
|
372
380
|
'POST /organizations/{org_slug}/workflow-runs/side-effects/resolve',
|
|
373
381
|
'POST /organizations/{org_slug}/workflows/{slug}/test-runs',
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"""Fill the organization in on ClickHouse rows written before they had it.
|
|
2
|
+
|
|
3
|
+
The ``clickhouse-org-backfill`` maintenance operation runs
|
|
4
|
+
:func:`backfill` after the upgrade that added ``organization_id``. A row
|
|
5
|
+
gets the id of the organization that owns its project now. A row whose
|
|
6
|
+
project is gone, or that has no project, keeps ``''``. :func:`fill` is
|
|
7
|
+
also what ``document-clickhouse-org-backfill`` uses.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import logging
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
from imbi.common import clickhouse, graph
|
|
14
|
+
|
|
15
|
+
LOGGER = logging.getLogger(__name__)
|
|
16
|
+
|
|
17
|
+
#: The tables that key on ``project_id``. ``email_audit`` is not here:
|
|
18
|
+
#: its rows have no project.
|
|
19
|
+
TABLES: tuple[str, ...] = (
|
|
20
|
+
'events',
|
|
21
|
+
'pull_requests',
|
|
22
|
+
'pull_request_reviews',
|
|
23
|
+
'pull_request_review_requests',
|
|
24
|
+
'score_history',
|
|
25
|
+
'commits',
|
|
26
|
+
'commit_drift',
|
|
27
|
+
'tags',
|
|
28
|
+
'maintenance_log',
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
#: Keys per mutation. ClickHouse rejects a bound parameter longer than
|
|
32
|
+
#: 131072 bytes, and an id array of this size is about 50 KB.
|
|
33
|
+
CHUNK = 2000
|
|
34
|
+
|
|
35
|
+
_PROJECTS: typing.LiteralString = (
|
|
36
|
+
'MATCH (p:Project)-[:OWNED_BY]->(:Team)-[:BELONGS_TO]->(o:Organization)'
|
|
37
|
+
' WHERE o.id IS NOT NULL RETURN p.id AS project_id, o.id AS org_id'
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
#: Rebuilds the state of each project in ``score_latest_org_data`` from
|
|
41
|
+
#: ``score_history``. The same statement is the
|
|
42
|
+
#: ``score_latest_org_data_populate`` step of the schemata. It runs
|
|
43
|
+
#: again here after ``score_history`` is filled in, because a mutation
|
|
44
|
+
#: does not go through the materialized view. Every state is ``argMax``
|
|
45
|
+
#: or ``max``, so a row that the view or an earlier run wrote does not
|
|
46
|
+
#: change the result.
|
|
47
|
+
SCORE_LATEST_POPULATE = (
|
|
48
|
+
'INSERT INTO imbi.score_latest_org_data'
|
|
49
|
+
' SELECT project_id, argMaxState(score, timestamp),'
|
|
50
|
+
' maxState(timestamp),'
|
|
51
|
+
' argMaxState(organization_id, (timestamp, organization_id))'
|
|
52
|
+
' FROM imbi.score_history GROUP BY project_id'
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
#: A workflow email is the only email to an organization, and every
|
|
56
|
+
#: workflow email written after the upgrade has its organization. So a
|
|
57
|
+
#: workflow row without one is from before the upgrade, and its
|
|
58
|
+
#: organization cannot be found. A welcome or password reset email is
|
|
59
|
+
#: to a user and keeps ``''`` before and after the upgrade, so those
|
|
60
|
+
#: rows are not deleted.
|
|
61
|
+
_EMAIL_COUNT = (
|
|
62
|
+
'SELECT count() AS c FROM imbi.email_audit'
|
|
63
|
+
" WHERE organization_id = '' AND template_name = 'workflow'"
|
|
64
|
+
)
|
|
65
|
+
_EMAIL_DELETE = (
|
|
66
|
+
'ALTER TABLE imbi.email_audit DELETE'
|
|
67
|
+
" WHERE organization_id = '' AND template_name = 'workflow'"
|
|
68
|
+
' SETTINGS mutations_sync = 2'
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
_WHERE = "{column} = '' AND has({{keys:Array(String)}}, {key})"
|
|
72
|
+
_COUNT = 'SELECT count() AS c FROM imbi.{table} WHERE {where}'
|
|
73
|
+
_FILL = (
|
|
74
|
+
'ALTER TABLE imbi.{table} UPDATE {column} = transform('
|
|
75
|
+
"{key}, {{keys:Array(String)}}, {{values:Array(String)}}, '')"
|
|
76
|
+
' WHERE ' + _WHERE + ' SETTINGS mutations_sync = 2'
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
async def fill(
|
|
81
|
+
table: str, column: str, key: str, pairs: list[tuple[str, str]]
|
|
82
|
+
) -> int:
|
|
83
|
+
"""Set ``column`` from ``key`` by the ``(key, value)`` pairs on the
|
|
84
|
+
rows where it is ``''``; return the count of rows changed.
|
|
85
|
+
|
|
86
|
+
Two parallel arrays, not a Map: the driver sends a dict parameter
|
|
87
|
+
as JSON, which ClickHouse cannot parse as a Map. ``mutations_sync =
|
|
88
|
+
2`` waits until every replica has the change, so the next chunk and
|
|
89
|
+
the next run see it. Only rows with no value match, so a re-run
|
|
90
|
+
changes nothing that an earlier run filled in.
|
|
91
|
+
"""
|
|
92
|
+
names = {'table': table, 'column': column, 'key': key}
|
|
93
|
+
count = _COUNT.format(table=table, where=_WHERE.format(**names))
|
|
94
|
+
changed = 0
|
|
95
|
+
for start in range(0, len(pairs), CHUNK):
|
|
96
|
+
chunk = pairs[start : start + CHUNK]
|
|
97
|
+
params = {
|
|
98
|
+
'keys': [k for k, _ in chunk],
|
|
99
|
+
'values': [v for _, v in chunk],
|
|
100
|
+
}
|
|
101
|
+
rows = await clickhouse.query(count, params)
|
|
102
|
+
missing = int(rows[0]['c']) if rows else 0
|
|
103
|
+
if missing:
|
|
104
|
+
await clickhouse.command(_FILL.format(**names), params)
|
|
105
|
+
changed += missing
|
|
106
|
+
return changed
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
async def backfill(db: graph.Graph) -> int:
|
|
110
|
+
"""Fill ``organization_id`` in on the project rows that have none,
|
|
111
|
+
rebuild ``score_latest_org_data``, and delete the workflow email
|
|
112
|
+
rows that have none; return the count of rows changed."""
|
|
113
|
+
records = await db.execute(_PROJECTS, {}, ['project_id', 'org_id'])
|
|
114
|
+
pairs = [
|
|
115
|
+
(
|
|
116
|
+
str(graph.parse_agtype(r['project_id'])),
|
|
117
|
+
str(graph.parse_agtype(r['org_id'])),
|
|
118
|
+
)
|
|
119
|
+
for r in records
|
|
120
|
+
]
|
|
121
|
+
changed = 0
|
|
122
|
+
for table in TABLES:
|
|
123
|
+
changed += await fill(table, 'organization_id', 'project_id', pairs)
|
|
124
|
+
await clickhouse.command(SCORE_LATEST_POPULATE)
|
|
125
|
+
rows = await clickhouse.query(_EMAIL_COUNT)
|
|
126
|
+
deleted = int(rows[0]['c']) if rows else 0
|
|
127
|
+
if deleted:
|
|
128
|
+
await clickhouse.command(_EMAIL_DELETE)
|
|
129
|
+
changed += deleted
|
|
130
|
+
if changed:
|
|
131
|
+
LOGGER.info(
|
|
132
|
+
'Filled organization_id in on or deleted %d ClickHouse rows',
|
|
133
|
+
changed,
|
|
134
|
+
)
|
|
135
|
+
return changed
|
|
@@ -78,7 +78,7 @@ async def _build_context(
|
|
|
78
78
|
# never pulls the endpoints package at import time.
|
|
79
79
|
from imbi.api.endpoints import _helpers
|
|
80
80
|
|
|
81
|
-
project_slug, team_slug = await _helpers.
|
|
81
|
+
project_slug, team_slug, org_id = await _helpers.lookup_project_owner(
|
|
82
82
|
db, project_id
|
|
83
83
|
)
|
|
84
84
|
project_links = await _helpers.lookup_project_links(db, project_id)
|
|
@@ -96,6 +96,7 @@ async def _build_context(
|
|
|
96
96
|
project_id=project_id,
|
|
97
97
|
project_slug=project_slug,
|
|
98
98
|
org_slug=org_slug,
|
|
99
|
+
org_id=org_id,
|
|
99
100
|
team_slug=team_slug,
|
|
100
101
|
project_links=project_links,
|
|
101
102
|
project_type_slugs=project_type_slugs,
|
|
@@ -16,7 +16,8 @@ organizations) is logged and keeps no edge: no organization shows it.
|
|
|
16
16
|
import logging
|
|
17
17
|
import typing
|
|
18
18
|
|
|
19
|
-
from imbi.
|
|
19
|
+
from imbi.api import clickhouse_orgs
|
|
20
|
+
from imbi.common import graph
|
|
20
21
|
|
|
21
22
|
LOGGER = logging.getLogger(__name__)
|
|
22
23
|
|
|
@@ -67,11 +68,7 @@ async def backfill(db: graph.Graph) -> int:
|
|
|
67
68
|
|
|
68
69
|
|
|
69
70
|
# The ClickHouse read rows written before they had ``org_id``, matched
|
|
70
|
-
# on their org slug
|
|
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.
|
|
71
|
+
# on their org slug (see :func:`imbi.api.clickhouse_orgs.fill`).
|
|
75
72
|
_READ_TABLES: tuple[str, ...] = (
|
|
76
73
|
'document_read_events',
|
|
77
74
|
'document_read_sessions',
|
|
@@ -80,16 +77,6 @@ _ORGS: typing.LiteralString = (
|
|
|
80
77
|
'MATCH (o:Organization) WHERE o.id IS NOT NULL'
|
|
81
78
|
' RETURN o.slug AS slug, o.id AS id'
|
|
82
79
|
)
|
|
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
80
|
|
|
94
81
|
|
|
95
82
|
async def clickhouse_backfill(db: graph.Graph) -> int:
|
|
@@ -100,19 +87,15 @@ async def clickhouse_backfill(db: graph.Graph) -> int:
|
|
|
100
87
|
``org_id``.
|
|
101
88
|
"""
|
|
102
89
|
records = await db.execute(_ORGS, {}, ['slug', 'id'])
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
'ids': [str(graph.parse_agtype(r['id'])) for r in records],
|
|
108
|
-
}
|
|
90
|
+
pairs = [
|
|
91
|
+
(str(graph.parse_agtype(r['slug'])), str(graph.parse_agtype(r['id'])))
|
|
92
|
+
for r in records
|
|
93
|
+
]
|
|
109
94
|
changed = 0
|
|
110
95
|
for table in _READ_TABLES:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
await clickhouse.command(_FILL.format(table=table), params)
|
|
115
|
-
changed += missing
|
|
96
|
+
changed += await clickhouse_orgs.fill(
|
|
97
|
+
table, 'org_id', 'org_slug', pairs
|
|
98
|
+
)
|
|
116
99
|
if changed:
|
|
117
100
|
LOGGER.info('Filled org_id in on %d document read rows', changed)
|
|
118
101
|
return changed
|
|
@@ -170,6 +170,7 @@ async def record_verdicts(
|
|
|
170
170
|
*,
|
|
171
171
|
source: str = 'note',
|
|
172
172
|
recorded_at: collections.abc.Mapping[str, datetime.datetime] | None = None,
|
|
173
|
+
organization_id: str,
|
|
173
174
|
) -> int | None:
|
|
174
175
|
"""Persist per-commit verdicts, one publish for the whole batch.
|
|
175
176
|
|
|
@@ -205,6 +206,7 @@ async def record_verdicts(
|
|
|
205
206
|
'drift_detected': verdict.drift_detected,
|
|
206
207
|
'paths': verdict.paths,
|
|
207
208
|
'recorded_at': stamps.get(sha.lower(), now),
|
|
209
|
+
'organization_id': organization_id,
|
|
208
210
|
}
|
|
209
211
|
if source != 'note':
|
|
210
212
|
row['source'] = source
|
|
@@ -383,6 +385,7 @@ async def apply_notes_diff(
|
|
|
383
385
|
await record_verdicts(
|
|
384
386
|
project_id,
|
|
385
387
|
{sha: parse_note_verdict(body) for sha, body in changed.items()},
|
|
388
|
+
organization_id=ctx.org_id,
|
|
386
389
|
)
|
|
387
390
|
updated = 0
|
|
388
391
|
for full_sha, body in changed.items():
|
|
@@ -482,6 +485,7 @@ async def backfill_verdicts(
|
|
|
482
485
|
recorded = await record_verdicts(
|
|
483
486
|
project_id,
|
|
484
487
|
{sha: parse_note_verdict(body) for sha, body in listing.notes.items()},
|
|
488
|
+
organization_id=ctx.org_id,
|
|
485
489
|
)
|
|
486
490
|
if recorded is None:
|
|
487
491
|
# Raised rather than returned as zero: the caller cannot tell a
|
|
@@ -769,7 +773,11 @@ async def resync_verdicts(
|
|
|
769
773
|
for sha, verdict in verdicts.items()
|
|
770
774
|
if sha.lower() not in raced
|
|
771
775
|
}
|
|
772
|
-
recorded = await record_verdicts(
|
|
776
|
+
recorded = await record_verdicts(
|
|
777
|
+
project_id,
|
|
778
|
+
verdicts,
|
|
779
|
+
organization_id=ctx.org_id,
|
|
780
|
+
)
|
|
773
781
|
if recorded is None:
|
|
774
782
|
raise RuntimeError(
|
|
775
783
|
f'could not store drift verdicts for project {project_id}'
|
|
@@ -161,6 +161,7 @@ async def send_workflow_email(
|
|
|
161
161
|
to_email: str,
|
|
162
162
|
subject: str,
|
|
163
163
|
body: str,
|
|
164
|
+
organization_id: str,
|
|
164
165
|
) -> models.EmailAudit:
|
|
165
166
|
"""Send the plain-text message of a workflow email step (ADR 0021).
|
|
166
167
|
|
|
@@ -176,6 +177,7 @@ async def send_workflow_email(
|
|
|
176
177
|
template_name='workflow',
|
|
177
178
|
)
|
|
178
179
|
)
|
|
180
|
+
audit.organization_id = organization_id
|
|
179
181
|
await _save_audit(audit)
|
|
180
182
|
return audit
|
|
181
183
|
|
|
@@ -47,6 +47,9 @@ class EmailAudit(pydantic.BaseModel):
|
|
|
47
47
|
user_id: str | None = None
|
|
48
48
|
related_entity_type: str | None = None
|
|
49
49
|
related_entity_id: str | None = None
|
|
50
|
+
#: The organization of a workflow email; ``''`` for an
|
|
51
|
+
#: email to a user, such as a password reset.
|
|
52
|
+
organization_id: str = ''
|
|
50
53
|
|
|
51
54
|
@pydantic.computed_field # type: ignore[prop-decorator]
|
|
52
55
|
@property
|
|
@@ -20,6 +20,7 @@ LIKE_EVENT_TYPE = 'document-like'
|
|
|
20
20
|
|
|
21
21
|
async def emit_like_event(
|
|
22
22
|
*,
|
|
23
|
+
organization_id: str,
|
|
23
24
|
org_slug: str,
|
|
24
25
|
project_id: str,
|
|
25
26
|
document_id: str,
|
|
@@ -49,6 +50,7 @@ async def emit_like_event(
|
|
|
49
50
|
'document_id': document_id,
|
|
50
51
|
'action': action,
|
|
51
52
|
},
|
|
53
|
+
organization_id=organization_id,
|
|
52
54
|
)
|
|
53
55
|
],
|
|
54
56
|
)
|
|
@@ -53,12 +53,10 @@ META_CACHE_TTL_SECONDS = 300
|
|
|
53
53
|
|
|
54
54
|
_META_KEY_PREFIX = 'imbi:document:readmeta'
|
|
55
55
|
|
|
56
|
-
#: Restricts read rows to one organization.
|
|
57
|
-
#:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
" OR (org_id = '' AND org_slug = {org_slug:String}))"
|
|
61
|
-
)
|
|
56
|
+
#: Restricts read rows to one organization. ``org_slug`` is not used:
|
|
57
|
+
#: an organization rename changes it. Rows written before ``org_id``
|
|
58
|
+
#: existed get it from ``document-clickhouse-org-backfill``.
|
|
59
|
+
ORG_FILTER: typing.LiteralString = 'org_id = {org_id:String}'
|
|
62
60
|
|
|
63
61
|
|
|
64
62
|
class DocumentReadMeta(pydantic.BaseModel):
|
|
@@ -327,8 +325,9 @@ GROUP BY document_id, session_id
|
|
|
327
325
|
# session IDs come from the request body (#1044).
|
|
328
326
|
#
|
|
329
327
|
# The organization check is in HAVING, on the aggregated session. In the
|
|
330
|
-
# inner WHERE it would drop a
|
|
331
|
-
# before
|
|
328
|
+
# inner WHERE it would drop a row of the same session with an empty
|
|
329
|
+
# ``org_id`` (written before the column, not yet backfilled), and lose
|
|
330
|
+
# its ``engaged_ms``.
|
|
332
331
|
_SCOPED_SESSION_AGGREGATE_SQL = (
|
|
333
332
|
_SESSION_AGGREGATE_SQL.replace(
|
|
334
333
|
'WHERE session_id IN {session_ids:Array(String)}',
|
|
@@ -345,7 +344,6 @@ _SCOPED_SESSION_AGGREGATE_SQL = (
|
|
|
345
344
|
class SessionScope(typing.NamedTuple):
|
|
346
345
|
"""The organization, document, and reader of the sessions."""
|
|
347
346
|
|
|
348
|
-
org_slug: str
|
|
349
347
|
org_id: str
|
|
350
348
|
document_id: str
|
|
351
349
|
principal: str
|
|
@@ -402,27 +402,40 @@ async def lookup_project_slugs(
|
|
|
402
402
|
are template-only inputs (never authorization-relevant) and audit
|
|
403
403
|
writes also tolerate an empty slug.
|
|
404
404
|
"""
|
|
405
|
+
slug, team_slug, _ = await lookup_project_owner(db, project_id)
|
|
406
|
+
return slug, team_slug
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
async def lookup_project_owner(
|
|
410
|
+
db: graph.Graph,
|
|
411
|
+
project_id: str,
|
|
412
|
+
) -> tuple[str, str | None, str]:
|
|
413
|
+
""":func:`lookup_project_slugs` and the id of the organization that
|
|
414
|
+
owns the project, ``''`` when there is none, in one query."""
|
|
405
415
|
query: typing.LiteralString = (
|
|
406
416
|
'MATCH (p:Project {{id: {project_id}}}) '
|
|
407
417
|
'OPTIONAL MATCH (p)-[:OWNED_BY]->(t:Team) '
|
|
408
|
-
'
|
|
418
|
+
'OPTIONAL MATCH (t)-[:BELONGS_TO]->(o:Organization) '
|
|
419
|
+
'RETURN p.slug AS slug, t.slug AS team_slug, o.id AS org_id'
|
|
409
420
|
)
|
|
410
421
|
try:
|
|
411
422
|
records = await db.execute(
|
|
412
423
|
query,
|
|
413
424
|
{'project_id': project_id},
|
|
414
|
-
['slug', 'team_slug'],
|
|
425
|
+
['slug', 'team_slug', 'org_id'],
|
|
415
426
|
)
|
|
416
427
|
except Exception: # noqa: BLE001
|
|
417
428
|
LOGGER.debug('Project slug lookup failed', exc_info=True)
|
|
418
|
-
return '', None
|
|
429
|
+
return '', None, ''
|
|
419
430
|
if not records:
|
|
420
|
-
return '', None
|
|
431
|
+
return '', None, ''
|
|
421
432
|
slug_raw = graph.parse_agtype(records[0]['slug'])
|
|
422
433
|
team_raw = graph.parse_agtype(records[0].get('team_slug'))
|
|
434
|
+
org_raw = graph.parse_agtype(records[0].get('org_id'))
|
|
423
435
|
return (
|
|
424
436
|
str(slug_raw) if slug_raw else '',
|
|
425
437
|
str(team_raw) if team_raw else None,
|
|
438
|
+
str(org_raw) if org_raw else '',
|
|
426
439
|
)
|
|
427
440
|
|
|
428
441
|
|
|
@@ -23,6 +23,7 @@ import pydantic
|
|
|
23
23
|
import slugify
|
|
24
24
|
|
|
25
25
|
from imbi.api import teams as org_teams
|
|
26
|
+
from imbi.api import workflows
|
|
26
27
|
from imbi.api.auth import organizations, permissions
|
|
27
28
|
from imbi.api.endpoints import ai_providers
|
|
28
29
|
from imbi.api.endpoints._helpers import conflict_on_unique_violation
|
|
@@ -262,6 +263,12 @@ DELETE r
|
|
|
262
263
|
"""
|
|
263
264
|
|
|
264
265
|
|
|
266
|
+
_SLUG_QUERY: typing.LiteralString = """
|
|
267
|
+
MATCH (m:AIModel {{id: {id}}})
|
|
268
|
+
-[:BELONGS_TO]->(:Organization {{id: {org_id}}})
|
|
269
|
+
RETURN m.slug AS slug
|
|
270
|
+
"""
|
|
271
|
+
|
|
265
272
|
#: The organizations and teams whose default model is the model.
|
|
266
273
|
_DEFAULT_OF_QUERY: typing.LiteralString = """
|
|
267
274
|
MATCH (s)-[:USES_DEFAULT_MODEL]->(:AIModel {{id: {id}}})
|
|
@@ -849,6 +856,7 @@ async def delete_ai_model(
|
|
|
849
856
|
org_id: OrgId,
|
|
850
857
|
id: str,
|
|
851
858
|
db: graph.Pool,
|
|
859
|
+
store: workflows.Store,
|
|
852
860
|
auth: typing.Annotated[
|
|
853
861
|
permissions.AuthContext,
|
|
854
862
|
fastapi.Depends(permissions.require_permission('ai_model:delete')),
|
|
@@ -862,10 +870,20 @@ async def delete_ai_model(
|
|
|
862
870
|
Raises:
|
|
863
871
|
404: No such model.
|
|
864
872
|
409: The model is the default model of an organization or a
|
|
865
|
-
team
|
|
873
|
+
team, or a ``model_decision`` step of a workflow names it
|
|
874
|
+
(see :meth:`~imbi.api.workflows.WorkflowStore.model_references`).
|
|
866
875
|
|
|
867
876
|
"""
|
|
868
877
|
_ = auth
|
|
878
|
+
records = await db.execute(
|
|
879
|
+
_SLUG_QUERY, {'id': id, 'org_id': org_id}, ['slug']
|
|
880
|
+
)
|
|
881
|
+
if not records:
|
|
882
|
+
raise fastapi.HTTPException(
|
|
883
|
+
status_code=404,
|
|
884
|
+
detail=f'AI model with id {id!r} not found',
|
|
885
|
+
)
|
|
886
|
+
slug = str(graph.parse_agtype(records[0]['slug']))
|
|
869
887
|
records = await db.execute(
|
|
870
888
|
_DEFAULT_OF_QUERY, {'id': id, 'org_id': org_id}, ['slug']
|
|
871
889
|
)
|
|
@@ -878,6 +896,18 @@ async def delete_ai_model(
|
|
|
878
896
|
f'{", ".join(names)}; choose another default first'
|
|
879
897
|
),
|
|
880
898
|
)
|
|
899
|
+
# A save between this check and the delete can still add a
|
|
900
|
+
# reference; workflow validation then reports the missing model.
|
|
901
|
+
used = await store.model_references(org_id, [id, slug])
|
|
902
|
+
if used:
|
|
903
|
+
raise fastapi.HTTPException(
|
|
904
|
+
status_code=409,
|
|
905
|
+
detail=(
|
|
906
|
+
f'AI model {slug!r} is used by the workflow'
|
|
907
|
+
f'{"" if len(used) == 1 else "s"} {", ".join(used)}; '
|
|
908
|
+
'remove it from them first'
|
|
909
|
+
),
|
|
910
|
+
)
|
|
881
911
|
query: typing.LiteralString = """
|
|
882
912
|
MATCH (m:AIModel {{id: {id}}})
|
|
883
913
|
-[:BELONGS_TO]->(:Organization {{id: {org_id}}})
|