Commit 8da90c9
feat(client): add 30+ missing methods for API parity
Surveyed the OpenAPI schema and added the methods that were missing
from the SDK. Existing list_/get_ patterns preserved throughout —
shape-aware where the underlying endpoint supports shaping, plain
dict-returning where it doesn't.
Webhook alerts (convenience layer over filter subscriptions):
- list_webhook_alerts / get_webhook_alert / create_webhook_alert
/ update_webhook_alert / delete_webhook_alert
- New WebhookAlert dataclass
Resolve / validate (POST-based identity helpers):
- resolve(name, target_type, ...) — entity/org name disambiguation
- validate(identifier_type, value) — PIID/solicitation/UEI format check
- New ResolveCandidate, ResolveResult, ValidateResult dataclasses
Reference data:
- list_departments, get_department
- list_psc, get_psc, get_psc_metrics
- get_naics, get_naics_metrics
- get_business_type
- list_assistance_listings, get_assistance_listing
- list_mas_sins, get_mas_sin
Entity sub-resources (all under /api/entities/{uei}/...):
- list_entity_contracts, list_entity_idvs
- list_entity_otas, list_entity_otidvs
- list_entity_subawards, list_entity_lcats
- get_entity_metrics
IDV sub-resources:
- list_idv_lcats
Agency sub-resources:
- list_agency_awarding_contracts
- list_agency_funding_contracts
Misc:
- search_opportunity_attachments(q, top_k, include_extracted_text)
- get_version()
- list_api_keys()
Decisions:
- Kept `uuid=` for vehicle methods to match `get_vehicle(uuid)` and the
existing list_vehicle_awardees / list_vehicle_orders surface — these
match the API path param. IDVs use `key=`, vehicles use `uuid=`, and
the SDK stays consistent.
- Stayed away from /api/accounts/usage/ admin endpoints, /api/events/,
/api/news/, and /api/company/rag/ — niche internal surfaces. Easy to
add when there's user demand.
- list_entities, list_vehicle_awardees, and list_idv_transactions are
not getting `ordering` because their server-side parameters don't
advertise it (verified against OpenAPI).
Backward compatible — all additions, no existing call sites changed.
Existing tests still pass (238/238).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f3b6255 commit 8da90c9
4 files changed
Lines changed: 871 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
| 63 | + | |
56 | 64 | | |
57 | 65 | | |
58 | 66 | | |
| |||
0 commit comments