@spoketech/hub-client 0.1.22 → 0.1.23

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.
package/README.md CHANGED
@@ -386,3 +386,31 @@ import type {
386
386
  OrganizationMembersListResponse,
387
387
  } from "@spoketech/hub-client";
388
388
  ```
389
+
390
+ ## Organization capabilities
391
+
392
+ Use `GET /organizations/:organizationId/capabilities` with `organizations:read`
393
+ access to the organization, or the convenience client:
394
+
395
+ ```ts
396
+ const [capabilities, error] = await client.organizations.capabilities({ organizationId });
397
+ ```
398
+
399
+ The raw client exposes `client.organizations.getOrganizationCapabilities({ params: { organizationId } })`.
400
+ The response contains `organizationId`, `points`, `vouchers`, `onsiteMemberLookup`,
401
+ and `memberCreation`. Each capability has `supported`, `enabled`, and a nullable
402
+ machine-readable `reason`. Member creation also has `mode`: `local` for Hub member
403
+ creation, or `source_managed` for Odyssey Ensure Active Membership.
404
+
405
+ `points` describes live provider points operations, and `vouchers` describes
406
+ provider voucher issuing. `supported` means the configured integration supports
407
+ the feature; `enabled` additionally checks configuration status and, for member
408
+ operations, agent configuration. Reasons include `not_configured`,
409
+ `unsupported_provider`, `unsupported_transport`, `source_inactive`,
410
+ `provider_inactive`, `agent_missing`, `agent_inactive`, `feature_disabled`, and
411
+ `agent_upgrade_required`.
412
+
413
+ This is configuration discovery: it does not probe onsite connectivity or grant
414
+ operation permissions. An enabled capability can still fail at runtime. No
415
+ provider configuration, credentials, or agent metadata are returned. Missing
416
+ organizations return 404; callers without organization access are rejected.