29 lines
905 B
Markdown

---
name: pipeline-dist
description: "Pipeline distribution module — distributor management, API key generation, and pipeline authorization."
---
# pipeline_dist
Manages distributors (downstream consumers) and their authorized pipeline access.
## Data Model
| Table | Key Fields |
|-------|-----------|
| `distributors` | id, name, api_key, status, org_id |
| `distributor_pipeline` | id, distributor_id, pipeline_id |
## DSPY Endpoints
- `distributors_create/update/delete.dspy` — distributor CRUD
- `distributor_generate_key.dspy` — generate API key
- `distributor_pipeline_create/update/delete.dspy` — grant/revoke pipeline access
- `get_search_distributor_id.dspy` — dropdown search
## Pitfalls
- API key uses `password_encode()` / `password_decode()` helpers.
- CRUD scoped by `org_id` — multi-tenant safe.
- Generated dirs (`wwwroot/distributors/`) are auto-generated by xls2ui.